---------------------------------------------------------------------------
How to obtain RAWCodes:
Tools needed:
RMPQEx
---------------------------------------------------------------------------
Step 1: Opening the map
Open up the map you want the RAWCodes for in RMPQEx. This can be done with the "Browse" button. Hit the "Browse" button, shown in red, and find the map you are looking for. Then hit the "Open" button, shown in blue. For this example, I shall open the RAWCodes for Eclipse ORPG.
Step 1.5 (optional): Adding listfiles/finding the unknowns
Depending on what you want to extract, you might need to add another listfile in order to view all (or most) of the unknowns (ex: Extracting skins). You can download the listfile found in the attachments if you wish to do so (You might need 7zip to uncompress. It's free, don't worry).
As you can see in the picture, the green checks are the files that are known, while the yellow ! (exclamation points) are the ones that are unknown. To get a RAWCode you wouldn't need these often (I can't think of a time where you would, actually). But if you want to add it, hit auto search (in red) and then hit Add Listfile (in blue) and select the listfile you want to add. Auto search searches through WC3's defaults and sees if it can find anything and add listfile searches through your listfile to see if it can find matches.
---------------------------------------------------------------------------
Step 2: Extracting the codes
If you want to get RAW Codes, click on "Dump Object Data" (in red).
Unit Data: This is the unit data. Use this with -spawn to summon units and heroes.
Item Data: This is the item data. Use this with -spawn to summon items.
Destructible Data (RMPQ spells it wrong o_o): These are the destructibles, like gates and barrels. I've never personally used these before, so I assume -spawn would do the trick. Anyone like to test and tell me?
Doodad Data: These are other doodads that can't be attacked, such as lamp posts, fences, etc..I've also never used these before, but I assume -spawn works for these, too. Anyone wanna test this, too?
Ability Data: These are the spells (abilities) that a hero can learn. Use -add to add these to your hero. I do not know if you can add spells to creeps. Another test?
Buff Data: These are buffs, like stunned, poisoned, unholy frenzied, etc... The buffs are the little icons that show up on your status bar. I've never used these before. I don't think JJ's CP can add buffs.
Upgrade Data: These are upgrade data such as Steel Forged Swords or Increased rifle range. I've also never used these before and I don't think that JJ's CP can add these, either.
All in one File: Just like the name says: It'll make one big .txt file with all of the above-mentioned data.
Make sure that the WC3 Path is given at the top of the box before continuing. After you have chosen which ones you want to extract, hit Ok and it'll make a .txt file at the specified location in the "Extract to:" bar.
NOTE: If you already have a file under the name of "items", "abilities", "units", "buffs", "doodads", "upgrades", etc... it will overwrite the data without asking you. Normally you would want this unless you are strange and titled one of your personal masterpieces as "items". So be wary of that.
For those of you who want to extract skins, you need to look at the big list where the green checks and yellow exclamation points are. If your skin is a custom one, you would need to scroll until you find a bunch of filenames that have "war3mapImported\" and find the filename that you think is the one you're looking for. Right click -> Extract. It will extract to the same location as stated above and be inside a folder named "war3mapImported"
---------------------------------------------------------------------------
Step 3: Interpreting the data.
When you have extracted it, open it up (the extracted name should be quite obvious. The item data will be named "items" and ability data will be named "abilities". Use your imagination to find the one you're looking for) and you should see something like this.
Please note that I have deleted a few lines of the data so that you can see more than one code on one 'page'.
It's actually quite simple. I will use an example from the first item in Eclipse's Raw Code sheet.
Ignore the comments, most of the time they will be blank, anyway. The Name is what gives you the item name (duh). So the raw code for Crown of Kings +5 is
Code: Select all
ckng
1. Highlight the spot where you want it to drop (Meaning click on a unit or building).
2. Type -spawn ckng
3. Pick it up.
4. Laugh.
5. Repeat.
Please note that if you do not do step 4, it will EVENTUALLY hate you and NEVER WORK ANYMORE!
EDIT: I should also mention that you will see RAW Codes for custom items will start with I0 (usually). This is a Capital i and the number zero (0).
Abilities work the same way, except you would need to use -add and highlight (or select) your hero (or unit/creeps if it works on them). To increase the level, you'd need to do -add (ability code) (level).
If you want to spawn anything else, you need to highlight (select) the place where you want it to be spawned. This does NOT mean that if you make a green box with your cursor and type in -spawn xxxx, a barrel will pop out. You need to move your hero or unit to the spot you want it to be summoned and type -spawn xxxx.
Extra RAWCodes (default ones) can be found here! Credits to JJ for this list.
---------------------------------------------------------------------------
That's it! You're done!
Credits:
Thanks to d07.RiV for his RMPQex program.
Thanks to JJ2197 for his cheatpack.
Thanks to Dekar for this website!
Thanks to Paint for obvious reasons.
And thanks to me! Cuz I'm cool like that.