RavynousHunter on 4/5/2007 at 17:10
Quote Posted by Gamall
I didn't say two billions at random :P In case you didn't notice, 2,147,483,647 ~2 billions.
The var is stored as a signed integer (= signed long), so the limit is roughly two billions (2,147,483,647 if you really really love figures).
By the way,
That is what you read in books, however, this type doesn't
really exist on 32 bits systems. Only on 16 bits systems. Maybe something like "short int" in C++ (But there is really no point in using short ints (16 bits) on 32 bits systems anyway...), which is confusing with your "short" type which is in fact a "char", using C++ terminology...
(and the bounds you gave are not all exactly correct either: 0-255 and not 0-256 etc...)
edit: made a little (
http://www.gamall-ida.com/f/viewtopic.php?t=135) demo, if you want to play around with how integer values are stored in memory (notice the inverted bytes).
All this is more than slightly off topic anyway.
Well, i was using the calculator prog to convert em cuz my compiler was acting up, so it could possibly be off... but yeah, that was a lol OT.. I think the Builder'll forgive me. :cheeky:
Also, i noticed w/ the price editor thingy, that no matter what i set the price for Fire Arrows to, they always stayed the same, is that possibly a mistake in the addy that was edited as the price, but was really something else?
Gamall on 4/5/2007 at 17:27
Quote Posted by RavynousHunter
Also, i noticed w/ the price editor thingy, that no matter what i set the price for Fire Arrows to, they always stayed the same, is that possibly a mistake in the addy that was edited as the price, but was really something else?
1° This thread is for discussing my program, which is about carrying
limits and
not prices, so you should post that in the appropriate thread ;)
Still, since I know the answer, I'll answer your question despite its offtopicness :P
-> AFAIK, the offset of the price for the Fire arrow is unknown as of yet. The offset given (
http://www.ttlg.com/forums/showthread.php?t=84417&highlight=hex+madness) here (3DC07 - Fire Crystal, FA (250)) is trivially incorrect, as the price is wrong (225 != 250). Saracoth acknowledged that fact in the very same thread ;) So you
can't change the price of your Fire arrows, sorry...
Let's get back on-topic :angel:
RavynousHunter on 7/5/2007 at 14:49
Quote Posted by Gamall
So you
can't change the price of your Fire arrows, sorry...
Let's get back on-topic :angel:
Sry for goin OT, but as for the prices, its only a matter of time, theres a lot of smart taffers out there (excluding myself, of course, i got post-HS plans to worry about atm) so it shouldnt be THAT hard. :cheeky:
As for the limits, I know that stuff's easily edited. Personally, I just bypass the limits using Tsearch. Just can't beat the convenience of memory hacking sometimes, eh? Sides, I wanna mess w/ the core T3 files as little as possible, somethin about it I just dont trust (quite possibly its vile lizard tounge).