Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (-1) | Shanky.com
Max bullet speed

 
Post new topic   Reply to topic Printable version
 View previous topic  Settings Post :: Post Work Around?  View next topic  
Author Message
Erf
Novice


Joined: Aug 09 2003
Posts: 49
Offline

PostPosted: Wed Apr 21, 2004 5:01 pm    Post subject: Max bullet speed Reply to topic Reply with quote

what is it?
Back to top
View users profile Send private message Add User to Ignore List
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Wed Apr 21, 2004 5:16 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Erf
Novice


Joined: Aug 09 2003
Posts: 49
Offline

PostPosted: Wed Apr 21, 2004 7:59 pm    Post subject: Reply to topic Reply with quote

I figure someone has figured it out at one time or another
Back to top
View users profile Send private message Add User to Ignore List
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Wed Apr 21, 2004 8:11 pm    Post subject: Reply to topic Reply with quote

Code: Show/Hide
unsigned short bullet_speed;


Maximum physical value is 65535, which translates to 6553 pixels per second, or 65 pixels per game tick (10ms). This is ludicrous speed (see Spaceballs). You would probably not be able to see them.
_________________
4,691 irradiated haggis!
Back to top
View users profile Send private message Add User to Ignore List
Erf
Novice


Joined: Aug 09 2003
Posts: 49
Offline

PostPosted: Wed Apr 21, 2004 10:13 pm    Post subject: Reply to topic Reply with quote

well, one of my ships is set at 40000,50000, and 60000.... the bullets actually go backwards
Back to top
View users profile Send private message Add User to Ignore List
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:42
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3616
Location: Las Vegas
Offline

PostPosted: Wed Apr 21, 2004 10:36 pm    Post subject: Reply to topic Reply with quote

Its a signed value.
Back to top
View users profile Send private message Add User to Ignore List Send email
Erf
Novice


Joined: Aug 09 2003
Posts: 49
Offline

PostPosted: Wed Apr 21, 2004 10:40 pm    Post subject: Reply to topic Reply with quote

translated into non-programming language means?
Back to top
View users profile Send private message Add User to Ignore List
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:42
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3616
Location: Las Vegas
Offline

PostPosted: Wed Apr 21, 2004 10:46 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Thu Apr 22, 2004 12:00 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Thu Apr 22, 2004 2:32 am    Post subject: Reply to topic Reply with quote

Mine GO BOOM wrote:
Its a signed value.


Bleh, I used an old copy of Catid's structure as a reference. icon_sad.gif
Back to top
View users profile Send private message Add User to Ignore List
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Thu Apr 22, 2004 2:33 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Thu Apr 22, 2004 9:47 am    Post subject: Reply to topic Reply with quote

Yah, its -2^15 to 2^15-1

30 seconds tops, none of that 5 mins junk tongue.gif
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Thu Apr 22, 2004 10:22 am    Post subject: Reply to topic Reply with quote

I know I wouldn't as I have 2^15-1 million other things to memorize :/ LOL perhaps one day icon_smile.gif
Back to top
View users profile Send private message Add User to Ignore List
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Thu Apr 22, 2004 6:10 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Thu Apr 22, 2004 7:40 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Thu Apr 22, 2004 8:56 pm    Post subject: Reply to topic Reply with quote

Or they just don't know much yet?
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:42
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3616
Location: Las Vegas
Offline

PostPosted: Fri Apr 23, 2004 1:05 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Fri Apr 23, 2004 2:39 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> General Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 209 page(s) served in previous 5 minutes.

phpBB Created this page in 0.222674 seconds : 42 queries executed (83.6%): GZIP compression disabled