Skip to main content

Questions tagged [binary]

An entity composed of 2 pieces or with 2 states.

Filter by
Sorted by
Tagged with
21 votes
4 answers

How to encrypt Save Files without using a key? [closed]

Say I made a simple program that takes a file .dat that is encrypted in Binary Format, then I decrypt it into a byte array and then everything is rewritten again ...
Daniel Béjar's user avatar
11 votes
2 answers

Authentication for a multiplayer game via sockets

I'm implementing a custom binary protocol for a new multiplayer game I'm working on. Its a turn-based strategy game so timing doesn't really matter. I've currently got the basic data sync portion of ...
Robin Rodricks's user avatar
9 votes
3 answers

How can I handle versioning changes when saving assets?

I've been working on an RPG now for a while and I use two of different serialization techniques. Enemies, Weapons, items are as saved as XML. Maps and events are saved as "controlled binary" (every ...
user1776562's user avatar
8 votes
3 answers

How to have operations with character/items in binary with concrete operations?

I have the next problem. A item can have a lot of states: ...
vgonisanz's user avatar
  • 232
6 votes
2 answers

What are the benefits of binary format when storing map info?

I am developing isometric 2D exploration game. At this moment I faced with a problem where game takes too much disk space. Game's world at this moment is about 1 square kilometer and it's about 50MB. ...
Tom's user avatar
  • 233
4 votes
2 answers

Creating a custom binary format for 3D meshes

I've seen people saying it's better and faster to use a custom binary format for your 3D models, based on your needs, instead of using exchange formats. But, I'd like to know how to create a basic ...
Ceramic Pot's user avatar
3 votes
2 answers

(XNA) Possible to hide, compress, or rename .XNB files?

I'm fairly new to XNA (only a week into C# and XNA at this point) but I have been developing games for a while now, and the program I used did not require any/many external files in creating an ...
BlackAfricano's user avatar
2 votes
2 answers

What is the most efficient way to convert to binary and back in C#?

I'm trying to write a general purpose socket server for a game I'm working on. I know I could very well use already built servers like SmartFox and Photon, but I wan't to go through the pain of ...
Saad Imran.'s user avatar
2 votes
1 answer

Reading a Binary File in Unity

I am trying to display the first two bytes of a binary file as a test. I have the following code. ...
StackingofOverflows's user avatar
2 votes
1 answer

Unable to save player data in a binary file within Update() method

I'm trying to save player life within a binary file in Application.persistenceDataPath. I've written a method to store the player life: ...
RationeUtor's user avatar
1 vote
1 answer

Dealing with binary data and endianness

When distributing my game, I am going to compile all the resources and level data into a single binary package file, which is loaded from by the game. Do I have to worry about my machine being a ...
jmegaffin's user avatar
  • 4,923
1 vote
1 answer

Binary Serialization and Protocol

i found this page Protocols. I'm currently working on a game similar to agario and i find that page is helpful for my game. They using WebSocket for sending game messages which is mine too. But i'm ...
billyzaelani's user avatar
1 vote
0 answers

HLSL - Binary operations

I'm trying to do binary operations with integers in the hlsl code. For example: int n = 10 & 15; Binary value of 10 = 1010 and Binary value of 15 = 1111. ...
glz's user avatar
  • 31
0 votes
1 answer

Connecting rooms after BSP

GoldCredential's user avatar
0 votes
1 answer

How can I read an image from a binary file?

I'm trying to put all the assets inside a binary file and then trying to read them from the file itself, without scattering all them around in separate folders to let them exposed. What I'm trying to ...
Dormin's user avatar
  • 34
-2 votes
1 answer

3d objects in binary files

Currently I have 11 3d spheres created at runtime in my application. The application runs well as it is, but I'm anticipating some garbage collection hiccups due to camera panning. Would performance ...
ChocoMan's user avatar
  • 741