RimWorld

RimWorld

ZippyVtuber Jul 10, 2020 @ 7:38am
Error while loading map
When I opened Rimworld today, it had to redownload part of it. weird, I thought, but whatever, my save's still there.
except when I start it it says error loading map. This is my best colony so far and I really don't wanna loose it.
After digging a bit, I found this:


Mono path[0] = 'C:/Program Files (x86)/Steam/steamapps/common/RimWorld/RimWorldWin64_Data/Managed'
Mono config path = 'C:/Program Files (x86)/Steam/steamapps/common/RimWorld/MonoBleedingEdge/etc'
Initialize engine version: 2019.2.17f1 (8e603399ca02)
[XR] Discovering subsystems at path C:/Program Files (x86)/Steam/steamapps/common/RimWorld/RimWorldWin64_Data/UnitySubsystems
GfxDevice: creating device client; threaded=1
d3d11: QueryInterface(IDXGIFactory5) failed (80004002).
Direct3D:
Version: Direct3D 11.0 [level 11.0]
Renderer: NVIDIA GeForce GTX 750 Ti (ID=0x1380)
Vendor:
VRAM: 1977 MB
Driver: 23.21.13.8813
Begin MonoManager ReloadAssembly
- Completed reload, in 0.166 seconds
<RI> Initializing input.

<RI> Input initialized.

<RI> Initialized touch support.

UnloadTime: 0.832315 ms
RimWorld 1.1.2654 rev672
Unloading 5 Unused Serialized files (Serialized files now loaded: 1)
UnloadTime: 0.528830 ms

Unloading 52 unused Assets to reduce memory usage. Loaded Objects now: 10547.
Total: 89.028694 ms (FindLiveObjects: 0.776710 ms CreateObjectMapping: 0.364650 ms MarkObjects: 87.713204 ms DeleteObjects: 0.173253 ms)

Loading game from file Cavers with mods:
- Ludeon.RimWorld
- Ludeon.RimWorld.Royalty
Exception while init loading file: C:/Users/Pc/AppData/LocalLow/Ludeon Studios/RimWorld by Ludeon Studios\Saves\Cavers.rws
System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 179485, position 1.
at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) [0x00027] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlTextReaderImpl.Throw (System.String res, System.String[] args) [0x00029] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlTextReaderImpl.Throw (System.Int32 pos, System.String res, System.String[] args) [0x0000c] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlTextReaderImpl.ThrowInvalidChar (System.Char[] data, System.Int32 length, System.Int32 invCharPos) [0x0000f] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlTextReaderImpl.ParseText (System.Int32& startPos, System.Int32& endPos, System.Int32& outOrChars) [0x0033c] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlTextReaderImpl.ParseText () [0x0003e] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlTextReaderImpl.ParseElementContent () [0x00192] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlTextReaderImpl.Read () [0x00085] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlLoader.LoadNode (System.Boolean skipOverWhitespace) [0x0025b] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlLoader.LoadDocSequence (System.Xml.XmlDocument parentDoc) [0x0001b] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlLoader.Load (System.Xml.XmlDocument doc, System.Xml.XmlReader reader, System.Boolean preserveWhitespace) [0x000b4] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlDocument.Load (System.Xml.XmlReader reader) [0x0002e] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at Verse.ScribeLoader.InitLoading (System.String filePath) [0x0006f] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

Exception from asynchronous event: System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 179485, position 1.
at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) [0x00027] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlTextReaderImpl.Throw (System.String res, System.String[] args) [0x00029] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlTextReaderImpl.Throw (System.Int32 pos, System.String res, System.String[] args) [0x0000c] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlTextReaderImpl.ThrowInvalidChar (System.Char[] data, System.Int32 length, System.Int32 invCharPos) [0x0000f] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlTextReaderImpl.ParseText (System.Int32& startPos, System.Int32& endPos, System.Int32& outOrChars) [0x0033c] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlTextReaderImpl.ParseText () [0x0003e] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlTextReaderImpl.ParseElementContent () [0x00192] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlTextReaderImpl.Read () [0x00085] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlLoader.LoadNode (System.Boolean skipOverWhitespace) [0x0025b] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlLoader.LoadDocSequence (System.Xml.XmlDocument parentDoc) [0x0001b] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlLoader.Load (System.Xml.XmlDocument doc, System.Xml.XmlReader reader, System.Boolean preserveWhitespace) [0x000b4] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlDocument.Load (System.Xml.XmlReader reader) [0x0002e] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at Verse.ScribeLoader.InitLoading (System.String filePath) [0x000d2] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0
at Verse.SavedGameLoaderNow.LoadGameFromSaveFileNow (System.String fileName) [0x0007b] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0
at Verse.Root_Play+<>c.<Start>b__1_1 () [0x00005] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0
at Verse.LongEventHandler.RunEventFromAnotherThread (System.Action action) [0x00008] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

Unloading 2 Unused Serialized files (Serialized files now loaded: 1)
UnloadTime: 0.407378 ms

Unloading 2 unused Assets to reduce memory usage. Loaded Objects now: 10533.
Total: 87.344164 ms (FindLiveObjects: 0.637113 ms CreateObjectMapping: 0.482590 ms MarkObjects: 86.117056 ms DeleteObjects: 0.106820 ms)

Setting up 2 worker threads for Enlighten.
Thread -> id: 1da0 -> priority: 1
Thread -> id: 2620 -> priority: 1




Sorry for the wall of what is most likely gibberish to most of you, but uh,,I assume that the problem starts at "Exception" and teh like and invalid character.
There anything that can be done? is it something that Luden studios can fix? or is it just....lost?
;-;

I really don't wanna loose it >.<

yes it's the only save file I have. Unfortunately. Would recovering a game backup work? It backups automatically, right?

Edit: I also verified the integrety of teh games files and such. seemed normal.

Edit2: Is there any editing I can do in the save file to de-corrupt it?
Last edited by ZippyVtuber; Jul 10, 2020 @ 8:17am
< >
Showing 1-15 of 21 comments
Hedgie Jul 10, 2020 @ 8:21am 
I'm assuming you have no mods?
Do you have autosaves or is it permadeath
ZippyVtuber Jul 10, 2020 @ 8:32am 
Originally posted by Hedgie:
I'm assuming you have no mods?
Do you have autosaves or is it permadeath
Autosaves, no permadeath, no mods, only core and royalty.
ZippyVtuber Jul 10, 2020 @ 9:12am 
Um, any help on how to fix it? Please?
Edit: Ok, I have the save file open on notepad, will just look around and not do anything, might copy paste the save file somewhere in case something happens.
Awaiting instructions. :3
Edit: wait, since...is it even fixable using notepad? seems to be deepr in the programming, no?
Last edited by ZippyVtuber; Jul 10, 2020 @ 9:19am
Razor 2.3 Jul 10, 2020 @ 9:29am 
Originally posted by Champion6:
Exception while init loading file: C:/Users/Pc/AppData/LocalLow/Ludeon Studios/RimWorld by Ludeon Studios\Saves\Cavers.rws
System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 179485, position 1.
So there's a null at the start of line 179485. If that's the last line, as in after the "</savegame>", you can just delete the line and try again. But chances are the save is corrupted; try another.
ZippyVtuber Jul 10, 2020 @ 9:31am 
Originally posted by Razor 2.3:
Originally posted by Champion6:
Exception while init loading file: C:/Users/Pc/AppData/LocalLow/Ludeon Studios/RimWorld by Ludeon Studios\Saves\Cavers.rws
System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 179485, position 1.
So there's a null at the start of line 179485. If that's the last line, as in after the "</savegame>", you can just delete the line and try again. But chances are the save is corrupted; try another.
I don't have another ;-;
NOw I only have to find line #179485..how the hell do I do that? xD
if it is the last line...so I just delete </savegame>?
ZippyVtuber Jul 10, 2020 @ 10:02am 
well, I tried and tried....how exactly do you delete an empty line? there's literally nothing there. it's the line right after the last </li> thing.
Is there something I'm supposed to type?
If there is a way to delete it somehow I'm open ears.
Last edited by ZippyVtuber; Jul 10, 2020 @ 10:16am
Razor 2.3 Jul 10, 2020 @ 10:28am 
After the </savegame>. Without the ending tag, it's not valid XML.
Anyways, make a new save on a new game, and make sure you can load that. Just to rule out any problems beyond this save.

As for HOW to identify the line, any text editor should give you line numbers. Even Notepad. I prefer Notepad++, though.
Last edited by Razor 2.3; Jul 10, 2020 @ 10:32am
ZippyVtuber Jul 10, 2020 @ 10:32am 
Originally posted by Razor 2.3:
After the </savegame>. Without the ending tag, it's not valid XML.
Anyways, make a new save on a new game, and make sure you can load that. Just to rule out any problems beyond this save.
I did doa new savegame and it wa sfine.
after </savegame>?
What </savegame>? I don't see it. is it at the very very bottom?
Edit: Imma enter it to see what happens
Edit: nvm didn't work -_-
I just don't see it.
Last edited by ZippyVtuber; Jul 10, 2020 @ 10:36am
Razor 2.3 Jul 10, 2020 @ 10:41am 
Then something happened while the file was being created, and you have a partial save. You could try making it valid XML, but I have no idea how much of the game state you'd have if you did manage to get RW to load it. System/game crashed while the save was ongoing, or something?
ZippyVtuber Jul 10, 2020 @ 10:46am 
Originally posted by Razor 2.3:
Then something happened while the file was being created, and you have a partial save. You could try making it valid XML, but I have no idea how much of the game state you'd have if you did manage to get RW to load it. System/game crashed while the save was ongoing, or something?
The only thing I can think of is *maybe* I closed the game too early? idk. don't recal doing that.
so...how do I make it a valid XML? delete everything until I see anothewr </savegame>, if there is at all?
Razor 2.3 Jul 10, 2020 @ 10:58am 
Close every open tag (eg "<something>") by providing the missing closing tag (eg "</something>"). This is why I said delete everything after the "</savegame>". You see the open savegame tag right after the line declaring the file is XML, so the last line needs to be its matching closing tag.

XML is a computer standard, so you can read up on the requirements of the format pretty much anywhere people talk about file formats.
ZippyVtuber Jul 10, 2020 @ 11:19am 
Update: seems I have a bit of work to do
Exception while init loading file: C:/Users/Pc/AppData/LocalLow/Ludeon Studios/RimWorld by Ludeon Studios\Saves\Cavers.rws
System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: records, records, li, pawnsDead, worldPawns, world, game, savegame. Line 179487, position 8468473.
Razor 2.3 Jul 10, 2020 @ 11:21am 
At the very least, it looks like it gave you your missing close tags, and presumably the order you need to close them.
ZippyVtuber Jul 10, 2020 @ 11:25am 
Originally posted by Razor 2.3:
At the very least, it looks like it gave you your missing close tags, and presumably the order you need to close them.
Yes. but now I put </li> and then all of a sudden the records don't need to be close dnow. uh, ok, weird xD

Edit: SO CLOSE. loked like it was getting somewhere, loading longer than before, but it error again in the end. at leats I'm getting somewhere >.<
Last edited by ZippyVtuber; Jul 10, 2020 @ 11:34am
ZippyVtuber Jul 10, 2020 @ 11:35am 
Now the error is this:

Error in WorldGenStep: System.NullReferenceException: Object reference not set to an instance of an object
< >
Showing 1-15 of 21 comments
Per page: 1530 50

Date Posted: Jul 10, 2020 @ 7:38am
Posts: 21