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

Gammon 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]  Negative Experience --> long int ?
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Negative Experience --> long int ?

It is now over 60 days since the last post. This thread is closed.   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Mike Scherling   USA  (20 posts)  [Biography] bio
Date Wed 14 Jul 2004 07:36 AM (UTC)  quote  ]
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?
[Go to top] top

Posted by Meerclar   USA  (607 posts)  [Biography] bio
Date Reply #1 on Wed 14 Jul 2004 08:35 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Mike Scherling   USA  (20 posts)  [Biography] bio
Date Reply #2 on Wed 14 Jul 2004 09:04 AM (UTC)  quote  ]

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?
[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.


1,556 views.

It is now over 60 days since the last post. This thread is closed.   [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]