Mirage Engine
Saving in Binary - Printable Version

+- Mirage Engine (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Saving in Binary (/showthread.php?tid=1688)



Saving in Binary - Anthony - 17-04-2008

Well, I have a question about saving data in Binary. Storing say a string. Say my NpcRec has AttackSay as String * 255. However the string used in Npc 1 is actually only 30 characters long. The saving stores all the white space and includes all those extra bytes Sad. I am hoping somebody can tell me how to eliminate the white space. Hopefully a simple check can do it but I am expecting something complicated haha.


Re: Saving in Binary - Rezeyu - 17-04-2008

Don't you HAVE to use fixed length strings in Binary?

I don't see why it's a problem anyways.
=/


Re: Saving in Binary - Rezeyu - 17-04-2008

Makes sense, I still don't see why it's that big of a deal though.
It can't use up very much filesize.

>.>