top level

Technical and coding related questions.

Moderator: Board moderators

kshinji
Regular
Posts: 55
Joined: Fri Jan 27, 2006 9:27 am

Post by kshinji »

From what you said, i assumed that it should overflow at server after 32768 or 65536. (its 16-bit)
cavesomething
Forum Fanatic
Posts: 852
Joined: Sun Jun 13, 2004 2:07 am
Location: Hemel Hempstead

Post by cavesomething »

bencha wrote:a signed 8 bit char of 127+1 is -128, if it is unsigned, 255+1 is 0
er.. yes, It appears I have lost the ability to count properly.
cavesomething
Forum Fanatic
Posts: 852
Joined: Sun Jun 13, 2004 2:07 am
Location: Hemel Hempstead

Post by cavesomething »

kshinji wrote:From what you said, i assumed that it should overflow at server after 32768 or 65536. (its 16-bit)
if (and only if) the skill value is at no point manipulated as a char (which would work, but be quite ugly) - If you are sure that the server doesn't do this at any point, then values up to 32768 will be ok (it is a signed 16bit int that is used) - if however there is a case where the skill number is manipulated as an 8-bit value, it will fail at one of the lower values.

However, skill values are referenced enough that I am not going to try reading half of the server code to resolve this point. - try it and see if it fails
kshinji
Regular
Posts: 55
Joined: Fri Jan 27, 2006 9:27 am

Post by kshinji »

I am pretty sure that its always maintained correclty. I dont understand why would one do it any other way :-/
cavesomething
Forum Fanatic
Posts: 852
Joined: Sun Jun 13, 2004 2:07 am
Location: Hemel Hempstead

Post by cavesomething »

for much the same reason that the face number for an image varies from 4 bytes to two bytes depending on how and when it is sent.
kshinji
Regular
Posts: 55
Joined: Fri Jan 27, 2006 9:27 am

Post by kshinji »

oh this... :-/
I'll be back ;) With python.
Casper
Senior member
Posts: 288
Joined: Fri Aug 06, 2004 7:17 pm
Location: UK/Ukraine

Post by Casper »

exp table with about 200 levels, with the first 115 levels roughly the same as they are now would be interesting...
Casper
Senior member
Posts: 288
Joined: Fri Aug 06, 2004 7:17 pm
Location: UK/Ukraine

Post by Casper »

...then levelling up can be made easier (by modifying exp loss settings), and overall the game will stay the same, but there will be a higher feeling of progress.
elmex
Luser
Posts: 24
Joined: Tue Mar 21, 2006 6:04 am

Post by elmex »

the experience table should be more exponential and there should be more
monsters which give more experience.
Post Reply