Mirage Source
Declare Binary DataType - Printable Version

+- Mirage Source (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: Declare Binary DataType (/showthread.php?tid=730)



Declare Binary DataType - Bakekitsune - 10-02-2007

I have a few of questions

1. Can you declare a Binary DataType?

2. Why is boolean bigger than byte?

3. whats the smallest data type?


- Bakekitsune - 10-02-2007

kwl thx!

also can u save memory and packet lag by changing sep_char and end_char to s_c and e_c?


- Bakekitsune - 10-02-2007

or using a symbol like !@ and !#

sry for double post...


- Obsidian - 10-02-2007

SEP_CHAR and END_CHAR just represent different ASCII characters that would never be used normally. Basically as soon as the server sees them, it knows to either divide them up, or that it has found the very end of them. If you want to save memory and bandwidth, look at Byte Array packets.


- Spodi - 11-02-2007

Obsidian Wrote:If you want to save memory and bandwidth, look at Byte Array packets.

I wouldn't recommend this unless you know Visual Basic well, and with the questions you made, I doubt you do. It takes a hell of a lot of time, and you have to be ready for some huge, complicated bug tracking. :wink:


- Bakekitsune - 17-02-2007

no probs no need to underestimate me... just wait till i bring out my game. Smile

Its not that i dont no vb well i just dont no Mirage source well

and to me Boolean is not a binary datatype because its so big and fundamentally the computer isnt based on booleans.