[GUIDE] Restoring corrupted .w3i

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

Moderator: Cheaters

User avatar
devoltz
Co-Admin
Posts: 3133
Joined: March 23rd, 2016, 8:06 pm
Has thanked: 11 times
Been thanked: 53 times

[GUIDE] Restoring corrupted .w3i

Post by devoltz »

  • The process that i'm going to teach, is only worth if you want to deprotect a map in a way that you can save it with World Editor.
    • Note: Different from the other deprotecting ways, with this one, you don't lose any data/map options.
    • Note: It's also a good way to edit the .w3i file itself, on a human-readable way.
    • Note: All spoilers have images, open it!


  • 1.
    • Open the map that you want to deprotect on MPQ Editor
Spoiler:
Image
      • I'm going to take The World RPG on this example.
  • 2.
    • Find the "war3map.w3i" file and extract it.
      Note: If you want a more accurate data, export all war3map.xxx
Spoiler:
Image
Image
  • 3.
    • Create a new MPQ and import only the extracted .w3i file.
Spoiler:
Image
  • 4.
    • Open "w3x2lni", drag the recent created MPQ there and click on "To Lni"
Spoiler:
Image
  • 5.
    • Mark all avaliable options and hit the start button.
Spoiler:
Image
  • 6.
    • A new folder will be created on your desktop, this folder basicly has the raw data of .w3i file, if you want to do any edit to .w3i, just go on "table" subfolder and open the "w3i.ini", you can edit it with Notepad.
Spoiler:
Image
Image
  • 7.
    • After your edits, just open "w3x2lni" again, drag the whole main folder on it and click on "To Obj" option, mark everything and click on start.
Spoiler:
Image
  • 8.
    • A new .w3x file will be created (or just replaced if you didn't deleted the old one), just open it with MPQ Editor and extract the fresh "war3map.w3i" and the "war3mapunits.doo" that are inside of mpq file.
Spoiler:
Image
  • 9.
    • This is the final step, just re-import these new files inside the original map, after that, the edited map will be openable/saveable on World Edit and playable on W3, with or without changes on it.
Spoiler:
Image

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: 7 times

Re: [GUIDE] Restoring corrupted .w3i

Post by nuzamacuxe »

Nice guide
User avatar
null
V.I.P.
Posts: 128
Joined: August 5th, 2017, 2:26 am
Title: Moon#6000
Location: Discord:
Been thanked: 1 time

Re: [GUIDE] Restoring corrupted .w3i

Post by null »

Thanks for taking the time making this guide.
User avatar
zhu2014ce
Newcomer
Posts: 1
Joined: April 27th, 2018, 2:19 am

Re: [GUIDE] Restoring corrupted .w3i

Post by zhu2014ce »

Thank you~ I will try it.
darkkingbc
Newcomer
Posts: 4
Joined: July 12th, 2014, 3:08 pm

Re: [GUIDE] Restoring corrupted .w3i

Post by darkkingbc »

can you make a video guide deprotect map
User avatar
devoltz
Co-Admin
Posts: 3133
Joined: March 23rd, 2016, 8:06 pm
Has thanked: 11 times
Been thanked: 53 times

Re: [GUIDE] Restoring corrupted .w3i

Post by devoltz »

darkkingbc wrote:can you make a video guide deprotect map
Here
https://youtu.be/buNi-9W_-8M
dataless
Newcomer
Posts: 1
Joined: September 23rd, 2019, 10:16 am

Re: [GUIDE] Restoring corrupted .w3i

Post by dataless »

How might one get past the second step, when the MPQ files are obfuscated like the following?
You do not have the required permissions to view the files attached to this post.
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: 7 times

Re: [GUIDE] Restoring corrupted .w3i

Post by nuzamacuxe »

It's not obfuscated, you just aren't using a listfile.
User avatar
3nemy_
Cheater
Posts: 133
Joined: November 21st, 2016, 6:50 pm

Re: [GUIDE] Restoring corrupted .w3i

Post by 3nemy_ »

you don't lose any data/map options
Does this also include the triggers or will they be lost like with deprotection tools?
VectorM12
Newcomer
Posts: 4
Joined: June 11th, 2013, 1:51 pm

Re: [GUIDE] Restoring corrupted .w3i

Post by VectorM12 »

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.