OpenXcom Forum

Modding => Help => Topic started by: wcho035 on September 11, 2019, 08:58:37 pm

Title: Annoying game crash problem.
Post by: wcho035 on September 11, 2019, 08:58:37 pm
Hey guys, I have an annoying problem with this should be simple and obvious code in my starting condition.

For example.

startingConditions:
  - type: STR_UNDERWATERTEST
    defaultArmor:
      STR_SOLDIER:
        STR_NONE_UC : 100
    forbiddenCraft:
      - STR_MI_24_HIND          
    forbiddenArmors:   
      - STR_STANDARD_UC
    forbiddenSoldierTypes   
      - STR_DOGE
  - type: STR_UNDERWATERTESTMIDDEEP   
    defaultArmor:
      STR_SOLDIER:
        STR_NONE_UC : 100
    forbiddenCraft:
      - STR_MI_24_HIND          
    forbiddenArmors:   
      - STR_STANDARD_UC
    forbiddenSoldierTypes   
      - STR_DOGE

This is a simple code with two different type of starting condition. However, the game will boot up properly with only one type
working. If I stack more than two, this error happens. It says illegal map value. I uses a Notepad++ and the same error still persist.

Any clue is to why? I now currently have to have 2 separate startingcondition.ruls to prevent the game from crashing.
Title: Re: Annoying game crash problem.
Post by: Meridian on September 11, 2019, 10:04:22 pm
Missing ":" after "forbiddenSoldierTypes"

Also, please use the ruleset validator, it will make your life easier.
Title: Re: Annoying game crash problem.
Post by: wcho035 on September 11, 2019, 10:09:07 pm
Hey thanks again Meridian. Didn't notice of the small typo mistake.