wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Warcraft Editing Tools
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 04-07-2017, 07:44 AM   #1
Krysho
User
 
Krysho's Avatar
 
Join Date: Jan 2007
Posts: 53

Krysho will become famous soon enough (45)Krysho will become famous soon enough (45)

Default tool to convert order ids in maps (from 1.27 to 1.28)

Patch 1.28.1 went live. As such, this tool should not be used. If you were playing on a map generated by this tool, you should revert back to the original version of the map.

Hidden information:
Patch 1.28 introduced a change in order ids which is capable of breaking various functionality in many maps.

I suspect Blizzard will try to quickly patch to revert this change, but until then we probably could benefit from some stopgap measures. And as one such measure...

I wrote a tool to automate converting the known changed order ids to their new values.

It is a very simple tool that only does pattern matching to find numbers in base16 or base10, and changes those numbers if they correspond with an order id from the game before patch 1.28.

Maps that will benefit from this would be maps that used order ids straight as they are, or used order strings and had said strings converted to ids through an optimizer.

The tool simply tries to extract the map script file, run a lua script on it to handle the conversion, and then generate a new map with the modified script.

As it is a very simple tool, there is no guarantee it will fix anything. Scripts always have the option of using GetIssuedOrderId or OrderId or OrderId2StringBJ, and then manipulating and using that value (such as to index an array). Or the script might offset from a base order value instead of using the order ids directly. Such usage will not be fixed by this tool. You would have to fix those errors yourself by modifying the map script file.

But hey, if you are lucky, this tool might fix some of the bugs 1.28 introduced in the maps you like.

Quote:
Usage:
1) copy map to attempt conversion on into the same folder as the mottr7.exe file
2) drag the map onto mottr7.exe
3) optionally, drag the generated "output.w3m" or "output.w3x" file onto w3mr.exe to try to reclaim some space
4) optionally, view the created log.txt file to see what changes were made

5) copy the modified map somewhere the game can see it and try it out
a) use the "output_repack.w3x" map if you did step 3
b) use the "output.w3m" or "output.w3x" map if you only did step 2

Things to keep in mind:
- this is not meant to be used on maps that you yourself are developing. If you are developing a map and you are using order ids directly for some reason, you should fix up your script yourself.
- always keep a copy of the original map. Blizzard may patch the game to fix this issue and the older map will be vital in this circumstance.
- any fixed behavior as a result of using this tool will break if the generated map is used on a game version before 1.28 (another reason to keep the old map around)
Attached Files
File Type: zip mottr7-17.0406.zip (903.9 KB, 28 views)

Last edited by Krysho : 04-28-2017 at 06:24 AM.
Krysho is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 10:44 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2018, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services