OpenXcom Forum

OpenXcom => Troubleshooting => Topic started by: Dentrassi_BBQ on October 29, 2019, 07:42:40 pm

Title: Bring Out Your Dead!
Post by: Dentrassi_BBQ on October 29, 2019, 07:42:40 pm
I would like re-animate one of my soldiers.  I opened the save file in Notepad++, found the soldier in the deadSoldiers block, cut him, pasted him back in the soldiers block and deleted the sub-block for death.  However, that gets me "Load failed yaml-cpp: error at line 755, column 2: end of map not found".  Line 755 is indeed the first line of my dead soldier, and his whole block is indented two columns to the left compared to the other soldiers.  What am i doing wrong?
Title: Re: Bring Out Your Dead!
Post by: Meridian on October 29, 2019, 07:46:55 pm
Wrong indentation.
Title: Re: Bring Out Your Dead!
Post by: Dentrassi_BBQ on October 30, 2019, 10:57:08 am
I'm just cutting and pasting, so i don't see how the indentation is changing...
Title: Re: Bring Out Your Dead!
Post by: Meridian on October 30, 2019, 11:39:40 am
Line 755 is indeed the first line of my dead soldier, and his whole block is indented two columns to the left compared to the other soldiers.  What am i doing wrong?

Exactly this is wrong, it should not be indented two columns to the left. It must be indented the same way as all other soldiers.
Title: Re: Bring Out Your Dead!
Post by: Dentrassi_BBQ on October 31, 2019, 03:16:22 am
But that's not in question.  My question is, how do i do this without this unwanted change creeping in?  I still don't know where the change of indent is coming from.  Do i need a different editor??
Title: Re: Bring Out Your Dead!
Post by: Meridian on October 31, 2019, 09:29:21 am
Dead soldiers are indented differently than live ones.

You need to make the change.
Title: Re: Bring Out Your Dead!
Post by: Warboy1982 on November 02, 2019, 07:43:45 am
in the world of YAML, indentation is everything