| Author |
Message |
Erf Novice

Joined: Aug 09 2003 Posts: 49 Offline
|
Posted: Wed Apr 21, 2004 5:01 pm Post subject: Max bullet speed |
 |
|
|
|
| what is it? |
|
| Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Wed Apr 21, 2004 5:16 pm Post subject: |
 |
|
|
|
is there? even so, either the program - subgame/continuum will put a cap on it. _________________ Performance is often the art of cheating carefully. - James Gosling |
|
| Back to top |
|
 |
Erf Novice

Joined: Aug 09 2003 Posts: 49 Offline
|
Posted: Wed Apr 21, 2004 7:59 pm Post subject: |
 |
|
|
|
| I figure someone has figured it out at one time or another |
|
| Back to top |
|
 |
Mr Ekted Movie Geek

Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
|
| Back to top |
|
 |
Erf Novice

Joined: Aug 09 2003 Posts: 49 Offline
|
Posted: Wed Apr 21, 2004 10:13 pm Post subject: |
 |
|
|
|
| well, one of my ships is set at 40000,50000, and 60000.... the bullets actually go backwards |
|
| Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:42 Gender: Joined: Aug 01 2002 Posts: 3616 Location: Las Vegas Offline
|
Posted: Wed Apr 21, 2004 10:36 pm Post subject: |
 |
|
|
|
| Its a signed value. |
|
| Back to top |
|
 |
Erf Novice

Joined: Aug 09 2003 Posts: 49 Offline
|
Posted: Wed Apr 21, 2004 10:40 pm Post subject: |
 |
|
|
|
| translated into non-programming language means? |
|
| Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:42 Gender: Joined: Aug 01 2002 Posts: 3616 Location: Las Vegas Offline
|
Posted: Wed Apr 21, 2004 10:46 pm Post subject: |
 |
|
|
|
I spent a good 5 minutes on MSDN trying to find their listing of type sizes and their min/max values, but fuck that shit, that thing is just pure bloat. Then I remembered Google is the best way to find anything.
Bullet speed is a signed short, thus it has a range of -32768 to 32767. |
|
| Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Thu Apr 22, 2004 12:00 am Post subject: |
 |
|
|
|
| MSDN is good but often times can't locate the material you need, so yeah just Google :-p .. i feel da pain! |
|
| Back to top |
|
 |
Mr Ekted Movie Geek

Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Thu Apr 22, 2004 2:32 am Post subject: |
 |
|
|
|
| Mine GO BOOM wrote: | | Its a signed value. |
Bleh, I used an old copy of Catid's structure as a reference.  |
|
| Back to top |
|
 |
Mr Ekted Movie Geek

Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Thu Apr 22, 2004 2:33 am Post subject: |
 |
|
|
|
| Mine GO BOOM wrote: | I spent a good 5 minutes on MSDN trying to find their listing of type sizes and their min/max values, but fuck that shit, that thing is just pure bloat. Then I remembered Google is the best way to find anything.
Bullet speed is a signed short, thus it has a range of -32768 to 32767. |
WTF dude? Can't you calculate the largest signed/unsigned value for any number of bytes? |
|
| Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Thu Apr 22, 2004 9:47 am Post subject: |
 |
|
|
|
Yah, its -2^15 to 2^15-1
30 seconds tops, none of that 5 mins junk  _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
| Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Thu Apr 22, 2004 10:22 am Post subject: |
 |
|
|
|
I know I wouldn't as I have 2^15-1 million other things to memorize :/ LOL perhaps one day  |
|
| Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Thu Apr 22, 2004 6:10 pm Post subject: |
 |
|
|
|
Well you have to remember that a short is 16 bits, and the top bit is for the sign. Easy calculation. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
| Back to top |
|
 |
Mr Ekted Movie Geek

Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Thu Apr 22, 2004 7:40 pm Post subject: |
 |
|
|
|
| Cyan~Fire wrote: | | Well you have to remember that a short is 16 bits, and the top bit is for the sign. |
If one doesn't know that, they have no business programming. |
|
| Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Thu Apr 22, 2004 8:56 pm Post subject: |
 |
|
|
|
| Or they just don't know much yet? |
|
| Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:42 Gender: Joined: Aug 01 2002 Posts: 3616 Location: Las Vegas Offline
|
Posted: Fri Apr 23, 2004 1:05 pm Post subject: |
 |
|
|
|
| Mr Ekted wrote: | | WTF dude? Can't you calculate the largest signed/unsigned value for any number of bytes? |
I was hoping to find their page I found a long time ago that explained all the types very well, with how they are formed, max values, etc. |
|
| Back to top |
|
 |
Mr Ekted Movie Geek

Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Fri Apr 23, 2004 2:39 pm Post subject: |
 |
|
|
|
signed:
char sxxxxxxx (min -128, max 127)
short sxxxxxxx xxxxxxxx (min -32768, max 32767)
int/long sxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx (min -2147483648, max 2147483647)
unsigned:
char xxxxxxxx (min 0, max 255)
short xxxxxxxx xxxxxxxx (min 0, max 65535)
int/long xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx (min 0, max 4294967295)
Note: On Intel, bytes are stored in reverse order in memory. |
|
| Back to top |
|
 |
|