aliens

Author Topic: Bring Out Your Dead!  (Read 4007 times)

Offline Dentrassi_BBQ

  • Sergeant
  • **
  • Posts: 16
    • View Profile
Bring Out Your Dead!
« 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?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9099
    • View Profile
Re: Bring Out Your Dead!
« Reply #1 on: October 29, 2019, 07:46:55 pm »
Wrong indentation.

Offline Dentrassi_BBQ

  • Sergeant
  • **
  • Posts: 16
    • View Profile
Re: Bring Out Your Dead!
« Reply #2 on: October 30, 2019, 10:57:08 am »
I'm just cutting and pasting, so i don't see how the indentation is changing...

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9099
    • View Profile
Re: Bring Out Your Dead!
« Reply #3 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.

Offline Dentrassi_BBQ

  • Sergeant
  • **
  • Posts: 16
    • View Profile
Re: Bring Out Your Dead!
« Reply #4 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??

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9099
    • View Profile
Re: Bring Out Your Dead!
« Reply #5 on: October 31, 2019, 09:29:21 am »
Dead soldiers are indented differently than live ones.

You need to make the change.

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Bring Out Your Dead!
« Reply #6 on: November 02, 2019, 07:43:45 am »
in the world of YAML, indentation is everything