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
➜ levels increased to 200...experience goes into negatives
levels increased to 200...experience goes into negatives
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Kik
(18 posts) Bio
|
Date
| Mon 05 Apr 2004 09:11 PM (UTC) |
Message
| i set my max mortal levels to 200 and my wiz levels to 215 .. problem is i noticed after mortals hit level 116 (1 level after the old supreme entity level) their experience tables to into negatives, after that when they gain any exp it shoots em up like 10 levels and resets their tables to 0 ... whats up ? | Top |
|
Posted by
| Meerclar
USA (733 posts) Bio
|
Date
| Reply #1 on Mon 05 Apr 2004 09:31 PM (UTC) |
Message
| What variable type is experiance defined as and how much is needed to reach the former max_level? It sounds like you need to chance experience to a larger or maybe just an unsigned data type. If experience is being cast as an integer and you try to exceed 32k (64k for unsigned) it will return negative numbers like you've described. |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | Top |
|
Posted by
| Typhon
USA (112 posts) Bio
|
Date
| Reply #2 on Tue 20 Apr 2004 12:07 AM (UTC) |
Message
| might want to keep in mind that stock smaug doesnt have a set exp per level. instead its something like lvl*lvl*lvl*get_base_exp(ch)
that line is in handler.c in exp_level function if you base exp is 1000 your talking about 200*200*200*1000 or something like 8 billion exp to get to lvl 200. so if that sounds a tad out there you might want to change that line. | Top |
|
Posted by
| Remcon
(7 posts) Bio
|
Date
| Reply #3 on Tue 20 Apr 2004 05:27 PM (UTC) |
Message
| As others have shown there are lots of ways you can go about this. Sorry can't say if the ways they have listed would work or not. I increased my muds to 100 mortal levels and 115 max level. Also noticed the exp problem at around level 66+ the way i personaly choose to handle it was to instead of always keeping the hold exp and just having to get to the next set, was to take away the exp needed to gain a level when you leveled. Like lets say you start out at 0 exp at level 1. To get to level 2 you need 4000 exp. When they get to 4000 exp and it levels them subtract 4000 exp from their current exp. Yea it isn't just a quick change. Lots of little spots that need changed in order to make it correctly work and handle properly. Just an idea of how to handle it though. | 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.
16,640 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top