Author Topic: [HELP] Deployment order error  (Read 3610 times)

Offline AzureSkye

  • Sergeant
  • **
  • Posts: 18
    • View Profile
[HELP] Deployment order error
« on: June 09, 2014, 06:32:24 am »
Hey, I need some help. I'm trying to create my first mod to adjust the Avenger's deployment, but I keep getting this error:
Code: [Select]
yaml-cpp: error at line 3, column 15: illegal map value
The code I'm trying to use follows, but I get the same error if I copy and paste out of the XCOM1Ruleset.rul file.

Code: [Select]
crafts:
 - type: STR_AVENGER
    deployment:
      - [4, 9, 1, 0]
      - [5, 9, 1, 0]
      - [3, 10, 1, 0]
      - [4, 10, 1, 0]
      - [5, 10, 1, 0]
      - [6, 10, 1, 0]
      - [3, 11, 1, 0]
      - [4, 11, 1, 0]
      - [5, 11, 1, 0]
      - [6, 11, 1, 0]
      - [3, 12, 1, 0]
      - [4, 12, 1, 0]
      - [5, 12, 1, 0]
      - [6, 12, 1, 0]
      - [3, 13, 1, 0]
      - [4, 13, 1, 0]
      - [5, 13, 1, 0]
      - [6, 13, 1, 0]
      - [3, 14, 1, 0]
      - [4, 14, 1, 0]
      - [5, 14, 1, 0]
      - [6, 14, 1, 0]
      - [4, 15, 1, 0]
      - [5, 15, 1, 0]
      - [4, 16, 1, 0]
      - [5, 16, 1, 0]

Pulling out the ":" in question allows the mod to run, but doesn't change the deployment order

Additionally, the Skyranger doesn't appear to have a deployment order defined in XCOM1Ruleset.rul. Which just seems odd.

Any ideas?

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: [HELP] Deployment order error
« Reply #1 on: June 09, 2014, 09:26:45 am »
always good to try https://yaml-online-parser.appspot.com/
your deployment and type word are not onthe same level
Code: [Select]
crafts:
 - type: STR_AVENGER
   deployment:
      - [4, 9, 1, 0]
      - [5, 9, 1, 0]
      - [3, 10, 1, 0]
works

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: [HELP] Deployment order error
« Reply #2 on: June 09, 2014, 02:28:50 pm »
skyranger doesn't have one because it uses default behaviour.

Offline AzureSkye

  • Sergeant
  • **
  • Posts: 18
    • View Profile
Re: [HELP] Deployment order error
« Reply #3 on: June 10, 2014, 01:22:49 am »
Oh bugger, I knew it'd be something silly. I seem to be running into all sorts of "I am not a bright man" moments these days

Edit: Okay, it parses now, but it doesn't seem to actually effect anything. Did I miss something?

Code: [Select]
crafts:
  - type: STR_AVENGER
    deployment:
      - [4, 9, 1, 0]
      - [5, 9, 1, 0]
      - [3, 10, 1, 0]
      - [4, 10, 1, 0]
      - [5, 10, 1, 0]
      - [6, 10, 1, 0]
      - [3, 11, 1, 0]
      - [4, 11, 1, 0]
      - [5, 11, 1, 0]
      - [6, 11, 1, 0]
      - [3, 12, 1, 0]
      - [4, 12, 1, 0]
      - [5, 12, 1, 0]
      - [6, 12, 1, 0]
      - [3, 13, 1, 0]
      - [4, 13, 1, 0]
      - [5, 13, 1, 0]
      - [6, 13, 1, 0]
      - [3, 14, 1, 0]
      - [4, 14, 1, 0]
      - [5, 14, 1, 0]
      - [6, 14, 1, 0]
      - [4, 15, 1, 0]
      - [5, 15, 1, 0]
      - [4, 16, 1, 0]
      - [5, 16, 1, 0]
    repairRate: 5
« Last Edit: June 10, 2014, 01:41:02 am by AzureSkye »

Offline Xeno Wiper

  • Sergeant
  • **
  • Posts: 45
    • View Profile
Re: [HELP] Deployment order error
« Reply #4 on: October 04, 2014, 08:40:24 am »
If it's not too late, I don't know why what you were trying to do didn't work. Have you tried it with or without tanks?

Well, I have something that could work for you. It's the old deployment layout. A soldier can throw a smoke grenade on the floor most of the time. But it's better using it with tank squads.


https://openxcom.org/forum/index.php?topic=2997.0