• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[General] Comma in hero name

Status
Not open for further replies.
Level 26
Joined
Aug 18, 2009
Messages
4,097
The default object data in wc3 is stored in slk and txt files. The changes you do in the editor are handled separately and in their own format. So they do not directly overwrite those slk/txt files but are additional. When Wc3 loads a map, it first takes a look at the standard data, then overwrites individual assignments according to your editor object data.

Since the format differs and stuff, the possibilities vary a bit. For example the txt files are normally localized, each language of Wc3 has their own version. This is no longer the case if your map overshadows those txt files' paths. You can also import custom slks. However, the World Editor is not laid out for it, so you won't see it in the object editor, nor can you modify it from within the WE. There are other advantages and disadvantages but if it's just for inserting commas into your proper names, do not bother.
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
Like you access any other wc3 resource. Opening the standard mpqs in Wc3's main directory with an mpq editor. Wc3 loads and merges those mpqs at startup, the precedence being War3Patch > War3x > war3, meaning if there is a file with the same path in War3Patch, it overshadows the one from War3x/war3.

Most of the slks/txts are in Units\
The human proper names assignments e.g. are in Units\HumanUnitStrings.txt
If the unit in your case is a custom object and you want the proper name to be different from the unit you based it on (if it is not sufficient to change the original unit's entry), then you would have to have the custom object be transformed into a new original unit altogether. There are several slks for units where you would have to enter it.
 
Level 8
Joined
Mar 12, 2008
Messages
437
Like you access any other wc3 resource. Opening the standard mpqs in Wc3's main directory with an mpq editor. Wc3 loads and merges those mpqs at startup, the precedence being War3Patch > War3x > war3, meaning if there is a file with the same path in War3Patch, it overshadows the one from War3x/war3.

Most of the slks/txts are in Units\
The human proper names assignments e.g. are in Units\HumanUnitStrings.txt
If the unit in your case is a custom object and you want the proper name to be different from the unit you based it on (if it is not sufficient to change the original unit's entry), then you would have to have the custom object be transformed into a new original unit altogether. There are several slks for units where you would have to enter it.

Late reply... but I have opened the map in an mpq editor, and there are only two text files, none of which seem to have to do anything with Hero names. Is this supposed to happen?

The Hero is a custom object by the way.
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
As I said, the objects you create/modify in the editor are not done via slks but with object modification files like w3a, w3u, w3t, ...

Therefore the editor does not inject any slks. But you can import files to the paths described above to overshadow the equally-named ones from the standard mpqs and then Wc3 will consider them when the map is launched.

For example extract the Units\HumanUnitStrings.txt from the War3Patch.mpq, edit it, then import it into the map on Units\HumanUnitStrings.txt.
 
Status
Not open for further replies.
Top