• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] Cannot open map in reforged

Status
Not open for further replies.
I have a map that I worked on until yesterday.

When tried to open it, the following error occured.

Any thoughts about it? It's full of custom models btw.

err.png
 
Level 13
Joined
Jun 23, 2009
Messages
299
One has to wonder what is the "Main map file" World Editor cannot open, that might refer to the whole map or to some missing (war3map?) file in the map itself, I personally would use an MPQ Editor (like Ladik's) to see what's contained in the map's base path and compare it with the information in this guide, like the common files list in "1.10 .w3m and .w3x Files Format"

If you also post a screen of the content you see in the map file's base path I can try and give it a look too.

It's full of custom models btw.
Fyi, I don't think it's about custom models, errors they might give don't stop World Editor from loading maps

EDIT: maybe you moved the map from that folder? I just tried that and it gives me the same error you're showing here
1643988413727.png
 
Last edited:
Level 20
Joined
Jan 3, 2022
Messages
364
I'd try to open the map file in Notepad++ to see if it's something stupid like data corruption. For example the end of the file filled with NULs (byte value of zero). This happens during computer crashes and improper shutdowns. If everything still looks like random characters to you, it might be something else: silent data corruption (wrong values at unexpected places) or a bug in WorldEdit. I hope that's not the only copy of your map.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,287
Make sure the user account has permission over the map file. Also as people have mentioned try opening it from a more flat directory in case there is some issue parsing the file path.

If neither World Editor or MPQEdit can open the map archive file then it is corrupt. In this case you will need to roll back to a backup copy of the map.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,287
Indeed, opening with N++ it shows like this:
That is pretty normal as MPQ archives are a binary file format. When opened with a text editor you will mostly she a sequence of nonsense garbage.

However you should be able to find the sequence MPQ somewhere within the first few thousand characters. That is where the MPQ archive header starts with the data before that being fast access preview and metadata.

If you are more hands on with programming you can try to open a copy of the map file in JMPQ with debug enabled and try to explicitly extract files at know locations, like the map script file, using that. Stepping through different stages of the logic might help identify the sort of corruption that occurred and may or may not be able to salvage some data. Still it is recommended to load a backup if available as this process is very time consuming and there is no guarantee you will even be able to salvage anything.
 
Status
Not open for further replies.
Top