Lvl Over 314 Server Side

All Helbreath Server Source Discussion here.
Post Reply
wannabee
Loyal fan
Posts: 270
Joined: Sun Dec 21, 2003 12:42 am

Post by wannabee »

here is why it does it:
exp goes over the max number that a INT can store. (-2,147,483,648 to 2,147,483,647)

howto fix:
(temporary untill like lvl 1006)
recompile it with a "unsigned __int64" (0 to 40mil i think)

(permanint fix)
rewrite half of the exp code so there is a prossesor function which swaps it in and out of char (eg. chr exp[1024] with will support (10x10^1024)-1)

note: both ways will increace server memory usage by 25% - 50%

(there is no need to do this client side unless your into attention to detail)
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Human knowleag belongs to THE WORLD<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>So i highly dislike people who keep to their proud selfs... thats why i wanna share everything i got with you guys :D
Slipknight
Loyal fan
Posts: 423
Joined: Thu Apr 07, 2005 7:53 pm

Post by Slipknight »

wannabee wrote: here is why it does it:
exp goes over the max number that a INT can store. (-2,147,483,648 to 2,147,483,647)

howto fix:
(temporary untill like lvl 1006)
recompile it with a "unsigned __int64" (0 to 40mil i think)

(permanint fix)
rewrite half of the exp code so there is a prossesor function which swaps it in and out of char (eg. chr exp[1024] with will support (10x10^1024)-1)

note: both ways will increace server memory usage by 25% - 50%

(there is no need to do this client side unless your into attention to detail)
Its old news on other forums but I think your the first too post it here soo GJ mate.
<img src='http://www.bleachportal.net/interactive ... irjjkt.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/Slipknot%20Fan.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/UT2004%20Player.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/AC%20DC%20Fan.png' border='0' alt='user posted image' /><br>
Post Reply