[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  levels increased to 200...experience goes into negatives
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

levels increased to 200...experience goes into negatives

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Kik   (18 posts)  [Biography] bio
Date Mon 05 Apr 2004 09:11 PM (UTC)  quote  ]
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 ?
[Go to top] top

Posted by Meerclar   USA  (586 posts)  [Biography] bio
Date Reply #1 on Mon 05 Apr 2004 09:31 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Typhon   USA  (112 posts)  [Biography] bio
Date Reply #2 on Tue 20 Apr 2004 12:07 AM (UTC)  quote  ]
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.
[Go to top] top

Posted by Remcon   (7 posts)  [Biography] bio
Date Reply #3 on Tue 20 Apr 2004 05:27 PM (UTC)  quote  ]
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.
[Go to top] 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.


2,511 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Web site powered by FutureQuest.Net]