[GUIDE] Restoring corrupted .w3i

Cheatpacks and learning how to use them, as well as other guides for manipulating maps.

Moderator: Cheaters

User avatar
Vegas
Shopping Maul USA Creator
Posts: 1759
Joined: January 18th, 2007, 11:07 am
Title: No Comment
Location: Calgary Canada
Has thanked: 44 times
Been thanked: 8 times

Re: [GUIDE] Restoring corrupted .w3i

Post by Vegas »

Depends on the map if the triggers will be available. Back in the early days it could be possible for even Xdep to deprotect the map with the triggers, but somewhat rare. I've done this with different Wintermaul TDs.
These days, the chances of having the full GUI triggers will be EXTREMELY rare.

Open up your map in a MPQ editor, if you see war3map.wtg, then you might have a chance of recovery. it's funny with WC3 being such an old game that after all these years someone hasn't made a program that could reverse engineer the jass into GUI triggers.
VectorM12
Newcomer
Posts: 4
Joined: June 11th, 2013, 1:51 pm

Re: [GUIDE] Restoring corrupted .w3i

Post by VectorM12 »

Vegas wrote:Depends on the map if the triggers will be available. Back in the early days it could be possible for even Xdep to deprotect the map with the triggers, but somewhat rare. I've done this with different Wintermaul TDs.
These days, the chances of having the full GUI triggers will be EXTREMELY rare.

Open up your map in a MPQ editor, if you see war3map.wtg, then you might have a chance of recovery. it's funny with WC3 being such an old game that after all these years someone hasn't made a program that could reverse engineer the jass into GUI triggers.

Yeah I've just rebuilt a map and fixed the w3i file. It opens in WE but no GUI triggers are shown. There is a guide on XGM.ru on how to manually convert JASS into GUI but it will probably take me a three months at least, to fully convert it, and even then probably half the triggers won't be working properly since I@m not that good with JASS :D.

Yeah It's a shame that there is no JASS to GUI conversion tool :(

I tried to manually create a trigger in JASS and re-import the .j file back into the map but the map is now not opening even in WC3 so something is obviously wrong. I was hoping that I could rebuild the map and open it in WE to see the GUI trigger and convert it into JASS but sadly GUI triggers are not shown even after rebuild :(
User avatar
Vegas
Shopping Maul USA Creator
Posts: 1759
Joined: January 18th, 2007, 11:07 am
Title: No Comment
Location: Calgary Canada
Has thanked: 44 times
Been thanked: 8 times

Re: [GUIDE] Restoring corrupted .w3i

Post by Vegas »

Give me a link to your map so I can look.
User avatar
nuzamacuxe
Also Not an Admin, but closer than devoltz
Posts: 1655
Joined: February 14th, 2018, 5:35 am
Title: Just Another S.Mod
Been thanked: 6 times

Re: [GUIDE] Restoring corrupted .w3i

Post by nuzamacuxe »

3nemy_ wrote:
you don't lose any data/map options
Does this also include the triggers or will they be lost like with deprotection tools?
VectorM12 wrote:
3nemy_ wrote:
you don't lose any data/map options
Does this also include the triggers or will they be lost like with deprotection tools?

I have the same question here. Will the triggers actually be readable or will it be a one big trigger like after X-dep tool.

Nope. It doesn't includes the triggers. Neither one big trigger file. Unfortunately, recover triggers is a manual work.
lemuel789101112
Newcomer
Posts: 2
Joined: April 18th, 2017, 3:21 am

Re: [GUIDE] Restoring corrupted .w3i

Post by lemuel789101112 »

dataless wrote:How might one get past the second step, when the MPQ files are obfuscated like the following?
yea, how do you get past this? any tutorial on how to?
User avatar
nuzamacuxe
Also Not an Admin, but closer than devoltz
Posts: 1655
Joined: February 14th, 2018, 5:35 am
Title: Just Another S.Mod
Been thanked: 6 times

Re: [GUIDE] Restoring corrupted .w3i

Post by nuzamacuxe »

User avatar
Unryze
Member
Posts: 75
Joined: October 21st, 2013, 4:18 pm

Re: [GUIDE] Restoring corrupted .w3i

Post by Unryze »

3nemy_ wrote:
you don't lose any data/map options
Does this also include the triggers or will they be lost like with deprotection tools?
They are lost. GUI Triggers can't be restored, well they can, but no one really bothered to fully automate this process, as it is kind of useless.
VectorM12 wrote:
3nemy_ wrote:
you don't lose any data/map options
Does this also include the triggers or will they be lost like with deprotection tools?

I have the same question here. Will the triggers actually be readable or will it be a one big trigger like after X-dep tool.
Triggers do not change, all of them are converted to jass code and dumped in war3map.j, then it depends on map makers what they want to do with it, obfuscate or not. Obfuscated maps will remain so, there was War 3 Map Restorer that was mostly able to rewrite obfuscated names, but it still fails sometimes.

In short, to both, no, this method only makes the map openable, nothing more.
Rasuari
Newcomer
Posts: 8
Joined: January 31st, 2020, 5:19 am

Re: [GUIDE] Restoring corrupted .w3i

Post by Rasuari »

is there any work around for a map that has say 1.262 billion region files to load just to open the damn map in the editor? asking for a friend T.T
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm
Been thanked: 1 time

Re: [GUIDE] Restoring corrupted .w3i

Post by owner123 »

Honestly, I'd just overwrite it with a new file, don't even bother restoring if it's that corrupt. You can fix the settings yourself in the World Editor.

(are regions stored in the war3map.w3i? I didn't know that.)
n0kia2k7
Newcomer
Posts: 3
Joined: November 3rd, 2018, 3:54 am

Re: [GUIDE] Restoring corrupted .w3i

Post by n0kia2k7 »

i give w3c.i but it show didn't find listfile, how to fix it?