Mirage Source http://miragesource.net/forums/ |
|
Declare Binary DataType http://miragesource.net/forums/viewtopic.php?f=201&t=1334 |
Page 1 of 11 |
Author: | Bakekitsune [ Sat Feb 10, 2007 11:00 pm ] |
Post subject: | Declare Binary DataType |
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? |
Author: | Lea [ Sat Feb 10, 2007 11:08 pm ] |
Post subject: | |
Boolean is a binary datatype. The reason boolean is bigger than byte is because True = -1. One byte to make it negative, one byte to store the 1. Stupid, I know. I posted a tutorial for Bitfields. This effectivly lets you store 8 boolean values in a byte. Search it. |
Author: | Bakekitsune [ Sat Feb 10, 2007 11:38 pm ] |
Post subject: | |
kwl thx! also can u save memory and packet lag by changing sep_char and end_char to s_c and e_c? |
Author: | Bakekitsune [ Sat Feb 10, 2007 11:40 pm ] |
Post subject: | |
or using a symbol like !@ and !# sry for double post... |
Author: | Obsidian [ Sat Feb 10, 2007 11:45 pm ] |
Post subject: | |
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. |
Author: | Lea [ Sat Feb 10, 2007 11:46 pm ] |
Post subject: | |
Sorry, Sep_Char and End_char are just names for a non-ascii character (a single character) You can't really make it smaller. |
Author: | Spodi [ Sun Feb 11, 2007 9:11 am ] |
Post subject: | |
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. |
Author: | Bakekitsune [ Sat Feb 17, 2007 11:25 am ] |
Post subject: | |
no probs no need to underestimate me... just wait till i bring out my game. 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. |
Author: | wanai [ Wed May 18, 2022 9:39 pm ] |
Post subject: | Re: Declare Binary DataType |
kbps |
Author: | wanai [ Wed May 18, 2022 9:40 pm ] |
Post subject: | Re: Declare Binary DataType |
129.5 |
Author: | wanai [ Wed May 18, 2022 9:41 pm ] |
Post subject: | Re: Declare Binary DataType |
Repr |
Author: | wanai [ Wed May 18, 2022 9:42 pm ] |
Post subject: | Re: Declare Binary DataType |
Norm |
Author: | wanai [ Wed May 18, 2022 9:43 pm ] |
Post subject: | Re: Declare Binary DataType |
Davi |
Author: | wanai [ Wed May 18, 2022 9:44 pm ] |
Post subject: | Re: Declare Binary DataType |
Wind |
Author: | wanai [ Wed May 18, 2022 9:45 pm ] |
Post subject: | Re: Declare Binary DataType |
Dami |
Author: | wanai [ Wed May 18, 2022 9:47 pm ] |
Post subject: | Re: Declare Binary DataType |
Spid |
Author: | wanai [ Wed May 18, 2022 9:48 pm ] |
Post subject: | Re: Declare Binary DataType |
Robe |
Author: | wanai [ Wed May 18, 2022 9:49 pm ] |
Post subject: | Re: Declare Binary DataType |
Fisk |
Author: | wanai [ Wed May 18, 2022 9:50 pm ] |
Post subject: | Re: Declare Binary DataType |
Jose |
Author: | wanai [ Wed May 18, 2022 9:51 pm ] |
Post subject: | Re: Declare Binary DataType |
Geis |
Author: | wanai [ Wed May 18, 2022 9:52 pm ] |
Post subject: | Re: Declare Binary DataType |
Akut |
Author: | wanai [ Wed May 18, 2022 9:53 pm ] |
Post subject: | Re: Declare Binary DataType |
Marg |
Page 1 of 11 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |