Shube Posted May 22, 2012 Author Share Posted May 22, 2012 How can i remove the stats limits? How can i set the stats limit at 999? Link to comment Share on other sites More sharing options...
Yuko Posted May 22, 2012 Share Posted May 22, 2012 @Shube:> How can i remove the stats limits? How can i set the stats limit at 999?Using VB6 you can compile codes to your game. Updating both CLIENT & SERVER are required.Step 1: Go to server>src>modConstants which SHOULD be a VB6 file.Step 2: Edit it with VB6, then compile in "Run"Step 3: SaveThen do the exact same with the client.The max for the bytes is 255, not 999.In those files it should be easy to decide which is which.Hope this helped. Link to comment Share on other sites More sharing options...
The New World Posted May 22, 2012 Share Posted May 22, 2012 Ignore Cici.The stats are represented by constants, which are unchanging variables. The MAX_ constants are bytes, or you could think of them as variables that have a range of 0 - 255\. By changing any of the MAX_ variables defined "As Byte" you cannot make them surpass 255 or go below 0, or you'll get an "Overflow" error. If you wish your MAX_ variable to be larger, simply change the "As Byte" for that variable definition to "As Integer" or "As Long" if you wish to know the ranges of those data types, google "VB6 data types" and you'll find a nifty little chart.Now to edit these MAX_ variables, you must edit the source code appropriately. To do this, open your Client and Server projects respectively, these are in the Client and Server folders, .vbp files.Now in your VB6 IDE should be a list of source files, in each project you're going to want to the edit the appropriate MAX_ variable in the module modConstants. You must then File -> Save Project, and File -> Make "Client.exe" / "Server.exe" to make the executable versions of the code include your modifications.Hope this helps. Link to comment Share on other sites More sharing options...
Yuko Posted May 22, 2012 Share Posted May 22, 2012 @[rose:> link=topic=80321.msg859815#msg859815 date=1337707161]> Ignore Cici.Well then…You just made it the long way..:l No one likes the long way Link to comment Share on other sites More sharing options...
The New World Posted May 22, 2012 Share Posted May 22, 2012 It's the right way. Link to comment Share on other sites More sharing options...
Stein Posted May 22, 2012 Share Posted May 22, 2012 Cici, your way would've compiled, but cause inevitable RTE6's ;] Link to comment Share on other sites More sharing options...
Shube Posted May 22, 2012 Author Share Posted May 22, 2012 Ok, thank you all! I love this community ^^I have changed in server side and client side (they are more than one)```Stat(1 To Stats.Stat_Count - 1) as Byte```with```Stat(1 To Stats.Stat_Count - 1) as Long```Im sorry for my bad english! But its dont work.. Link to comment Share on other sites More sharing options...
erkro1 Posted May 23, 2012 Share Posted May 23, 2012 @Shube:> Ok, thank you all! I love this community ^^> > I have changed in server side and client side (they are more than one)> ```> Stat(1 To Stats.Stat_Count - 1) as Byte> ```with> ```> Stat(1 To Stats.Stat_Count - 1) as Long> ```> Im sorry for my bad english! But its dont work..Have you removed all your accounts after the edit? Link to comment Share on other sites More sharing options...
Shube Posted May 23, 2012 Author Share Posted May 23, 2012 Yes man.. Link to comment Share on other sites More sharing options...
Shube Posted May 23, 2012 Author Share Posted May 23, 2012 See.. Its rest under 255… Link to comment Share on other sites More sharing options...
Shube Posted May 23, 2012 Author Share Posted May 23, 2012 Ok i have solved! Link to comment Share on other sites More sharing options...
Matt Posted May 23, 2012 Share Posted May 23, 2012 How did you solve it? Link to comment Share on other sites More sharing options...
erkro1 Posted May 23, 2012 Share Posted May 23, 2012 @Sigridunset:> How did you solve it?I think he changed the scrlbar max value. Link to comment Share on other sites More sharing options...
Shube Posted May 24, 2012 Author Share Posted May 24, 2012 @Sigridunset:> How did you solve it?1) Client and Server sideChange all```(1 To Stats.Stat_Count - 1) as Byte```with```(1 To Stats.Stat_Count - 1) as Long```2) Client sideChange```If Value > MAX_BYTE Then Value = MAX_BYTE```with```If Value > MAX_LONG Then Value = MAX_LONG```3) Server sideDelete this folders: …server/data/account and ...server/data/items Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now