Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Negative Experience --> long int ?

Negative Experience --> long int ?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Mike Scherling   USA  (20 posts)  Bio
Date Wed 14 Jul 2004 07:36 AM (UTC)
Message
I read somewhere on a forum how to fix this problem...


210) 286319063 exp
211) 309032311 exp
212) -312282185 exp
213) -289133203 exp
214) -265764800 exp


of the exp going negative, rolling back to 0 then going positive again... and i heard there was a way to change it from int to a long int or something along those lines, is tehre any proof to this? Ive got the current level curve that i want for my level 200 (215 for imms) max system and it stops right around the 310mil area (it resets around level 125 the first time)

any truth to the long int? or should i concentrate on redoing my exp curve to incorporate having this negative value go away?

The source is all around us...
in the food you eat...
in the air you breath...
in your tooth... yes, your tooth...
any questions?
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #1 on Wed 14 Jul 2004 08:35 AM (UTC)
Message
You could use unsigned int just as easily as long but regardless what datatype you change to, there are a LOT of places in the code that have to be changed and missing even 1 can have unexpected results. It may be simpler to restructure the xp cost per lvl depending how much time you're prepared to devote to the project.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by Mike Scherling   USA  (20 posts)  Bio
Date Reply #2 on Wed 14 Jul 2004 09:04 AM (UTC)

Amended on Wed 14 Jul 2004 09:05 AM (UTC) by Mike Scherling

Message
as long as it takes =)
Hoping to find a workaround for it though... hehe

The source is all around us...
in the food you eat...
in the air you breath...
in your tooth... yes, your tooth...
any questions?
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


13,274 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.