• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Problem with Gameplay Constants

Status
Not open for further replies.
Level 3
Joined
Nov 28, 2008
Messages
24
Hi there! I'm having some problem with the gameplay constants. Here's the problem :

-I set the maximum hero level to 20 (I also checked the "Use Custom Gameplay Constants" box)
-Placed a hero on the map and set the hero's level to 20
-Tested the map and the level of the hero shown in game is 10 with its experience bar full
-Closed warcraft 3 and rechecked the gameplay constants. Maximum hero level is still 20
-Saved the map and exited WE
-Reopened WE and the map
-Checked the gameplay constants and found that the maximum hero level field is not modified but the "Use Custom Gameplay Constants" box is checked.

Does anyone know how to solve this problem?
Please help~
+rep for those who help
 
Level 21
Joined
Jul 2, 2009
Messages
2,934
This would be helpful and useful, because I seen DOTA do it for the heroes and I was curious on how it was done as well.
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
The fields there sound like things fitting rather into war3mapSkin.txt. But okay, if they are in misc and I am positive I have not seen them in the World Editor, then you have to keep the import and assemble it manually. When you remove the import and save the map with modified constants, you can open the map archive with a mpq extractor and then pull the war3mapMisc.txt out, merge the lines of this file with the one for the custom fonts and finally reimport it into your map.

There might be another solution in case you possess JNGP. There is an in-bult gameplay constants merger. You could create an external call in vJass that runs the program and combines the current constants in the map with exterior files (e.g. the font specifications) or maybe it is enough to call it just once from the >>>Extensions menu but I am not sure if it keeps the font fields upon saving then as they are normally not displayed in editor, so might not be cached. JNGP also has a function to export all files of a map including constants.
 
Status
Not open for further replies.
Top