Jump to content
Sign in to follow this  
verymild

Editing hero values in dddk

Recommended Posts

Hi everyone. I have been , modding dd in my spare time for ages. I am looking to increase the players level cap but every time I do I go into the game and put in the console AddScoreForEveryone 1000000000 and the exp just goes funny to something like -2billion or something, no idea what's going on. I put the level cap to 1000. I have even tried just adding 1 exp and it still goes weird... Really don't know if there is another reference in the code to setting level cap or max experience. The main code I'm looking at is in dundefhero.uc I believe.

Share this post


Link to post
Share on other sites

You have to operate within the limits of the game. The variable which stores XP is a signed 32-bit integer (aka long).


min value: -2.147.483.647

max value: 2.147.483.647


You may also have to convert your input upfront.

Share this post


Link to post
Share on other sites


@EagleOne quote:

You have to operate within the limits of the game. The variable which stores XP is a signed 32-bit integer (aka long).


min value: -2.147.483.647

max value: 2.147.483.647


You may also have to convert your input upfront.

Nice, cheers. I thought it may be that but thought there may have been a chance that a double was used instead. but thanks for confirming. Will play around with the exponent vals so i can level through to 1000 at a faster rate. so basically 10 levels per 1

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...