aliens

Author Topic: Ruleset Validator for VSCode v0.9.11  (Read 13237 times)

Offline Nord

  • Commander
  • *****
  • Posts: 1420
  • The Gate is open.
    • View Profile
Re: Ruleset Validator for VSCode v0.9.4
« Reply #15 on: April 24, 2020, 05:55:03 pm »
Looks like "refNode" still not supported.

Offline Buscher

  • Colonel
  • ****
  • Posts: 118
    • View Profile
Re: Ruleset Validator for VSCode v0.9.11
« Reply #16 on: April 04, 2022, 10:40:19 pm »
No clue if this is the right spot. I would like to report a few false positives shown by the OpenXcom Ruleset Tools. Some of these are related to how mod: - index: are handled as well as a list being allowed for customArmorPreviewIndex.

Code: [Select]
items:
  - type: STR_SOME_ITEM
    vaporColorSurface: {mod: 40k, index: 2} # Warning: Expected Integer # Works fine in Extended 7.5.8

armors:
  - type: STR_SOME_ARMOR
    moveSound: {mod: 40k, index: 700} # Warning: Expected Integer # Works fine in Extended 7.5.8
    customArmorPreviewIndex: [{mod: 40k, index: 560}, {mod: 40k, index: 561}, {mod: 40k, index: 562}] # Warning: Expected Integer # Works fine in Extended 7.5.8
    layersDefaultPrefix: 20 # Warning: Expected string # The value 20 is not nice but works in Extended 7.5.8

Also if one changes the accuracyMultiplier as a script and it's not part of scripts: and doesn't use the normal syntax, f. ex.
Code: [Select]
items:
# No Warning here
  - type: STR_SOME_ITEM
    accuracyMultiplier:
      firing: 1

accuracyMultiplier: | probably needs extra handling.

Code: [Select]
items:
# Warning: Use syntax from the code field above
  - type: STR_SOMETHING
    accuracyMultiplier: | # Works fine in Extended 7.5.8
      return bonus;
« Last Edit: April 04, 2022, 10:42:03 pm by Buscher »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 7380
    • View Profile
Re: Ruleset Validator for VSCode v0.9.11
« Reply #17 on: April 04, 2022, 10:47:50 pm »
Yes, this is the right spot.

Thanks for the report.
I'll fix it before the next release.

Offline The Offensive Lemon

  • Sergeant
  • **
  • Posts: 10
  • Praise the Ł É Ɱ Ö Ñ, for the Ł É Ɱ Ö Ñ is eternal
    • View Profile
Re: Ruleset Validator for VSCode v0.9.11
« Reply #18 on: April 29, 2022, 07:51:18 pm »
It appears moveCost for armors isn't supported.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 7380
    • View Profile
Re: Ruleset Validator for VSCode v0.9.11
« Reply #19 on: April 29, 2022, 09:41:59 pm »
It appears moveCost for armors isn't supported.

Of course.
moveCost is not an officially released feature yet.

Offline The Offensive Lemon

  • Sergeant
  • **
  • Posts: 10
  • Praise the Ł É Ɱ Ö Ñ, for the Ł É Ɱ Ö Ñ is eternal
    • View Profile
Re: Ruleset Validator for VSCode v0.9.11
« Reply #20 on: April 29, 2022, 10:48:50 pm »
Of course.
moveCost is not an officially released feature yet.

Oh.  I was not aware of that.