Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Map File Corrupted
A.M Team Offline
Banned

Posts: 811
Threads: 63
Joined: Sep 2014
#1
Map File Corrupted

My map file wouldn't open, it would say "Error loading file, resetting (Check log for details)". This is really important for me as I spent a month on this map.

Fixing...
(This post was last modified: 10-09-2015, 05:53 PM by A.M Team.)
10-09-2015, 06:52 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: Map File Corrupted

Editting this post with a long answer so that everyone else can learn about how to do this. One moment

Alright! Errors like this can come up, but be aware, it is NOT the end of the world! There are solutions to these kinds of problems, and if an error along the lines of "Error reading map file (Check Log for details)" is on your Level Editor, then it is a hint as to what to do! Logs contain an amass of vital information to assist with correcting problems which come up, in all of the HPL3 tools and SOMA.

Following the instructions, once you have established there is an error, just close the Level Editor and navigate to the LevelEditor.log file. It should be located here:

Documents\HPL3
OR
C:\Users\<user_name>\Documents\HPL3

Upon looking at the level editor log file and scrolling down to when it is loading the map (noted by the "Loading scene:" line) it gave me a few errors. The one that causes the Level Editor to not function correctly is more often than not, the last line before "Error Loading Scene". Let's have a look at this Log file as an example:

---------------------------------------------------------------------------------------------------------------------------------------------------------
-- Loading scene: C:/Program Files (x86)/Steam/steamapps/common/SOMA/mods/troubleshooting/HPL3 Map/00_reception_start/00_reception_start.hpm
---------------------------------------------------------------------------------------------------------------------------------------------------------

Resetting editor...
Failed parsing of XML document C:/Users/Romulator/Documents/HPL3/Sessions/1998F7E08B747B0759B2D030905E4D367AEF24A5.hpm_session: file not found
ERROR: Could not open file C:/Program Files (x86)/Steam/steamapps/common/SOMA/mods/troubleshooting/HPL3 Map/00_reception_start/00_reception_start.hpm_Terrain_heightmap.png for reading!
ERROR: Could not open file C:/Program Files (x86)/Steam/steamapps/common/SOMA/mods/troubleshooting/HPL3 Map/00_reception_start/00_reception_start.hpm_Terrain_diffusecolorblend.png for reading!
Loading FileIndex: TerrainDecals ...not found
Loading FileIndex: UndergrowthMaterials ...not found
Creating DetailMesh: detail_meshes/robot/infections/wau_infections_wall01_wauonly.dae
Cache out of date! Reloading collada file 'C:/Program Files (x86)/Steam/steamapps/common/SOMA/detail_meshes/robot/infections/wau_infections_wall01_wauonly.dae'
WARNING: No 'extra scene' element found!
ERROR: Mesh C:/Program Files (x86)/Steam/steamapps/common/SOMA/detail_meshes/robot/infections/wau_infections_wall01_wauonly.dae has as many indices as vertices and does not seem to be correctly UV-mapped!
Optimized Mesh C:/Program Files (x86)/Steam/steamapps/common/SOMA/detail_meshes/robot/infections/wau_infections_wall01_wauonly.dae and removed 97 kb vertex data
Loading FileIndex: StaticObjects ...found
Cache out of date! Reloading collada file 'C:/Program Files (x86)/Steam/steamapps/common/SOMA/static_objects/robot/infections/wau_infections_debris_wall01_wauonly.dae'
WARNING: No 'extra scene' element found!
ERROR: Mesh C:/Program Files (x86)/Steam/steamapps/common/SOMA/static_objects/robot/infections/wau_infections_debris_wall01_wauonly.dae has as many indices as vertices and does not seem to be correctly UV-mapped!
Optimized Mesh C:/Program Files (x86)/Steam/steamapps/common/SOMA/static_objects/robot/infections/wau_infections_debris_wall01_wauonly.dae and removed 97 kb vertex data
Cache out of date! Reloading collada file 'C:/Program Files (x86)/Steam/steamapps/common/SOMA/static_objects/robot/detail/wall_detail_organic01_tentacles.dae'
WARNING: No 'extra scene' element found!
Failed parsing of XML document C:/Program Files (x86)/Steam/steamapps/common/SOMA/mods/troubleshooting/HPL3 Map/00_reception_start/00_reception_start.hpm_Entity: Error reading Attributes. in line 2320, column 66
---------------------------------------------------------------------------------------------------------------------------------------------------------
-- Error loading scene
---------------------------------------------------------------------------------------------------------------------------------------------------------

As we can see, the last few lines mention that it failed to parse the 00_reception_start.hpm_Entity file, which means that our error is located in there. Further reading of the line, it explicitly states that the error is located in line 2320, column 66.

So now we open up the 00_reception_start.hpm_Entity file with a text editor (preferably one with a line counter. I used NotePad++ here). At line 2320, we have this:

[Image: 4818f9865d.png]

Can you see the error? In this line, there are three quotation marks, therefore, it messes up all the text below it, converting it to strings. You can see it somewhat if we look at it with NotePad++ set to XML mode (since map files, and their respective contents, excluding the .hps file, are in XML format).

[Image: 5fff0bca4f.png]

Fix up the error as you see fit. The best way in this case is to simply remove one quotation mark. Save it, then reopen the Level Editor. Run again and see if we have any more problems, and in DoctorPoo's case, there were not any further problems.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 10-09-2015, 08:22 AM by Romulator.)
10-09-2015, 07:46 AM
Find
A.M Team Offline
Banned

Posts: 811
Threads: 63
Joined: Sep 2014
#3
RE: Map File Corrupted

Thank you very much! You should put this information on the wiki, it's really important! Heart
10-09-2015, 06:06 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#4
RE: Map File Corrupted

He already did Wink

10-09-2015, 10:54 PM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#5
RE: Map File Corrupted

Surprisingly, I actually did not add this particular post to that page, but it did inspire me to create it xD I have since added it under the Level Editor Troubleshooting and have used a few images to explain why it happens.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
10-09-2015, 11:51 PM
Find




Users browsing this thread: 3 Guest(s)