Reading/Parsing w3u data

Level 3
Joined
Nov 16, 2024
Messages
7
Hello!

Was wondering if there was a way to read exported Object Editor data? Like being able to open it as a CSV or something else nicely formatted?
In this case, I have a w3u unit data that I would like to read.
I would like to break down an old map's immense object editor bloat using Reforged editor's new Unit functions.
 
Level 29
Joined
Sep 26, 2009
Messages
2,594
All of the various files inside map are binary files - that includes the unit data files *.w3u. In other words, it's just a bunch of bytes, seemingly without format - it's a data format optimized for storage, not for human readability.
There are guides, like this https://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=42787 that describe the files format, so it is possible to understand what those files contain, but it's no easy task.
There are also tools, like GitHub - ChiefOfGxBxL/WC3MapTranslator: Translate war3map ⇄ json formats for WarCraft III .w3x maps which convert the binary data into json format.

Also, I am not sure what exactly you intend to do, but just know that those object-related binary files contain only fields you have edited in the editor (i.e. only the magenta-colored fields). Default values are not stored in those files, they are read from WC3's casc files instead.
 
Level 3
Joined
Nov 16, 2024
Messages
7
I see. That makes a lot of sense. That second link appears to provide what I am looking for. Thanks for your help

The user-modified fields are indeed the data I am seeking to view in a readable format. I've noticed that now, with the new tools and functions in the World Editor, I can practically fabricate a Unit out of the trigger editor. I have an old map that has over 1500 units in the Object editor, I figured I could reduce this value to both reduce lag, and make adding future units more efficient and easy. The reason that it has this many is the many different attributes a unit has that could not be adjusted in-game.

For example, if I wanted to change the base attack time (or attack cooldown) for a unit, I would've had to either
  • Create an upgrade that applies to the unit (not possible in my map considering it affects all units with that ID)
  • Create an entirely new unit with the desired BAT and have it "replace" the prior unit as cleanly as possible.
 
Level 3
Joined
Nov 16, 2024
Messages
7
Well I might also want to change a unit's selection circle, scaling value, weapon damage point, a bunch of unique attributes. I couldn't do that before, but now I can.

I might be wrong, but I couldn't recall an item ability that applied an Attack Cooldown adjustment. Gloves of Haste applies an attack speed bonus, but that is a separate attribute. I think that one adjusts both Attack Cooldown and Damage Point/Backswing point. Don't know the full math with it, but I believe there was a hardcap to how high a unit's Attack Speed can be (400 IIRC)
 
Top