1. The Melee Mapping Contest #4: 2v2 - Results are out! Step by to congratulate the winners!
    Dismiss Notice
  2. We're hosting the 15th Mini-Mapping Contest with YouTuber Abelhawk! The contestants are to create a custom map that uses the hidden content within Warcraft 3 or is inspired by any of the many secrets within the game.
    Dismiss Notice
  3. The 20th iteration of the Terraining Contest is upon us! Join and create exquisite Water Structures for it.
    Dismiss Notice
  4. Check out the Staff job openings thread.
    Dismiss Notice

Increasing level past 10,000

Discussion in 'World Editor Help Zone' started by Jeine, Jan 13, 2019.

  1. Jeine

    Jeine

    Joined:
    Nov 9, 2017
    Messages:
    4
    Resources:
    0
    Resources:
    0
    Hi everyone. I wanted to ask, how to increase max level past 10,000, because this is the maximum game constants allow. Is there any mod for world editor or any other way to do this? Thanks.
     
  2. UreDe4D

    UreDe4D

    Joined:
    Nov 4, 2006
    Messages:
    1,156
    Resources:
    2
    Maps:
    2
    Resources:
    2
    Hold Shift when you double Click the field, it removes the fields regular limits.
     
  3. apsyll

    apsyll

    Joined:
    Aug 28, 2015
    Messages:
    184
    Resources:
    1
    Maps:
    1
    Resources:
    1
    What project are you doing that you need more than 10,000 level?
     
  4. Tasyen

    Tasyen

    Joined:
    Jul 18, 2010
    Messages:
    1,132
    Resources:
    13
    Tools:
    2
    Maps:
    2
    Spells:
    7
    Tutorials:
    1
    JASS:
    1
    Resources:
    13
    You also need to lower the exp curve to reach levels above 6500. (needed exp to level up)

    Super NightElf Wizard

    Super Bloodmage.jpg
     
  5. LordDz

    LordDz

    Joined:
    May 11, 2007
    Messages:
    4,308
    Resources:
    0
    Resources:
    0
    Are you creating a disco map where the hero levels up every half second to create a lighting effect?
     
  6. Sieben

    Sieben

    Joined:
    Nov 23, 2013
    Messages:
    635
    Resources:
    0
    Resources:
    0
    Dragon Ball Z maybe? ;)
     
  7. Jeine

    Jeine

    Joined:
    Nov 9, 2017
    Messages:
    4
    Resources:
    0
    Resources:
    0
    Thank you, it worked, but not quite like I intended.


    My personal project. Just for myself.

    Okay, this is my mistake. A character above certain level remains at level one. Can you please explain, how to lower exp curve so it'd look like on your screenshot?


    No, just my humble personal project.
     
  8. MN Lahmar

    MN Lahmar

    Joined:
    Jul 28, 2013
    Messages:
    577
    Resources:
    8
    Models:
    7
    Icons:
    1
    Resources:
    8
    lol is this the meme where you say "something's" level over 9999!
     
  9. Tasyen

    Tasyen

    Joined:
    Jul 18, 2010
    Messages:
    1,132
    Resources:
    13
    Tools:
    2
    Maps:
    2
    Spells:
    7
    Tutorials:
    1
    JASS:
    1
    Resources:
    13
    in Gameconstants there are 3 exp formulars.

    Needed Exp to level up <- this one you need to change to enable levels over 6500
    Exp gained by non heroes.
    Exp gained by heroes.

    How they work:
    There is constant factor: exp value rises each level by this value (linear) (1, 2, 3 ,4 ,5, 6, 7 ....)
    Level factor: exp value adds a linear rising value (summation row) (1, 3[1+2], 6[1+2+3], 10[1+2+3+4], 15 ...)
    table: define custom values used on that levels.
    previous value:

    As formular:
    value = constant x level + (heroLevel² + heroLevel)/2 x levelfactor + previousvalue x factor


    To enable really high levels (from a exp point) remove or shrink down the level factor. Cause level factor becomes really big from level 6500.
    Warcraft 3 only supports exp values upto 2,147,483,648 (2^31) one needs to keep that summation row low.
    (summartion row value of 6500 = 21,128,250 ), won't have much left, if you multiply that with 100 (2,112,825,000 almost 2,147,483,648).

    if you change the needed table you also should change exp gained.
     
    Last edited: Jan 13, 2019
  10. Jeine

    Jeine

    Joined:
    Nov 9, 2017
    Messages:
    4
    Resources:
    0
    Resources:
    0
    I'm really appreciating your help, but, unfortunately, it's really complex for me to understand, I'm very sorry.
    Can you please simply name the lines in gameconstants that I should edit and what numbers I should type there?
    Like, for example -- maximum hero level, 66,000
    Really sorry for the inconvenience.
     
  11. Tasyen

    Tasyen

    Joined:
    Jul 18, 2010
    Messages:
    1,132
    Resources:
    13
    Tools:
    2
    Maps:
    2
    Spells:
    7
    Tutorials:
    1
    JASS:
    1
    Resources:
    13
    use shift + enter to edit the max hero level field inser 66,000.

    Now you need to lower the needed exp to level up, cause default exp curve will exceed the value an 32 bit integer can take on level 6500.

    To reach high levels, I recomment for example.
    Needed Exp Table 0
    Needed Exp Level 0
    Needed Exp Constant 100
    Needed Exp previous 1.0

    Now every levelup would need 100 exp, which allows such a high max level.
    Problem is that higher units/heroes give now to much exp, but that was not the question until now.

    Edit: You can visualize the exp values your fomular defines by using an excel software (libre office for example).
    The exp needed for the highest wanted level must not exceed 2^31.
     
    Last edited: Jan 14, 2019
  12. Wrda

    Wrda

    Joined:
    Nov 18, 2012
    Messages:
    900
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Why the heroes need so many levels anyway? Are you trying to make a map with the objective exceeding limits?
     
  13. Jeine

    Jeine

    Joined:
    Nov 9, 2017
    Messages:
    4
    Resources:
    0
    Resources:
    0
    Thank you so much, it all worked perfectly! Well, not really, because my game freezes when I set hero to have max level once the game starts, but I managed to find another way. Thanks again for your help and patience, they were invaluable for me.

    I always make maps for my personal use, and this is one of them. Just want a hero to be above certain level, that is all.
     
  14. Tasyen

    Tasyen

    Joined:
    Jul 18, 2010
    Messages:
    1,132
    Resources:
    13
    Tools:
    2
    Maps:
    2
    Spells:
    7
    Tutorials:
    1
    JASS:
    1
    Resources:
    13
    Yeah had that freezing too when I created that LVL 9,999,999 nightelf hero
     
    Last edited: Jan 14, 2019