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 ➜ Exp, Hp, and Mana all going into the negative...

Exp, Hp, and Mana all going into the negative...

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


Pages: 1  2  3 

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #30 on Thu 27 May 2004 04:16 PM (UTC)
Message
You can assign signed/unsigned to each other as long as they have the same size. For example unsigned long long to long long is fine, but unsigned long long to long is not fine.

Toy, I noticed the following function, which should have return type uint I believe:
int level_exp( CHAR_DATA *ch, unsigned int exp )

Don't forget to check your printing functions as well, make sure they're printing unsigned ints and not normal ints.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Toy   (206 posts)  Bio
Date Reply #31 on Fri 28 May 2004 12:20 AM (UTC)
Message
After 2 days of trying to track down this issue, I'm realizing it's more trouble then it's worth. Decided to put the max levels down to 100. Fits in better with what I'm looking to do (level 50 hero, level 100 legend..) and it avoids the irrating neg. ints.

Thanks anyways for all the help guys! :)

-Toy

It's always good to know how far you are willing to go to be the best...

Karl Mancine
aka
Toy the Dark Puppet
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #32 on Fri 28 May 2004 12:27 AM (UTC)
Message
It would be more work, but you may be better off having sub-levels. It would mean more work, but of a much less tedious kind. :)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #33 on Fri 28 May 2004 03:30 AM (UTC)
Message
Yeah, it was fun attempting what you just tried, when I changed max level to 1015 on a Final Fantasy MUD I was coding for. Then I simply resorted to changing the level requirements, and ways of getting exp.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Typhon   USA  (112 posts)  Bio
Date Reply #34 on Sat 29 May 2004 07:01 PM (UTC)
Message
yea what zeno said.. you might wanna change the way smaug determines how much exp per level. at lvl 210 your talking...lvl * lvl * lvl * get_exp_base(ch).. or if your exp base is say 1000, 9,261,000,000, just a though. check you exp_level function in handler.c, i upped my mud to 210 levels and i had to change that. then again if you do that you might wanna redo the exp system a little keeping in mind that you get exp with every hit against a mob and when you kill it.
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.


113,381 views.

This is page 3, subject is 3 pages long:  [Previous page]  1  2  3 

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.