aliens

Author Topic: [Submod] Everyone surrender  (Read 3869 times)

Offline Juku121

  • Commander
  • *****
  • Posts: 1798
  • We're all mad here.
    • View Profile
Re: [Submod] Everyone surrender
« Reply #15 on: January 02, 2024, 12:24:42 pm »
Should the type: be instead override:.  I assume, it's a more correct approach when developing a submod.
Ideologically, yes. Practically, this only makes the submod 100% crash if Solarius removes an enemy, as opposed to maybe causing a minor issue and very likely nothing. So, not really unless you're dedicated to maintaining the submod.
« Last Edit: January 03, 2024, 05:40:32 pm by Meridian »

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3349
    • View Profile
Re: [Submod] Everyone surrender
« Reply #16 on: January 02, 2024, 03:36:57 pm »
Then if you do not want crash then use `update:` as it only spam logs when do not find rule with given name.

Offline Juku121

  • Commander
  • *****
  • Posts: 1798
  • We're all mad here.
    • View Profile
Re: [Submod] Everyone surrender
« Reply #17 on: January 02, 2024, 07:46:28 pm »
Spoiler" Ignore me":
What does this even mean?
Quote from: Ruleset reference
     Another feature (added in OXCE v7.9) allows modders to better control how rulesets are overridden between mods and submods:

 items: !info                # this tag can be used to check if a given ruleset supports the new features
   - type: STR_RANDOM        # from OXC, this was effectively split into `update:` and `new:` to make modder's intention clearer
   - delete: STR_X           # from OXC
   - new: STR_UNIQUE_NAME    # if an item with this name exists already (i.e. was created by another mod), the game raises a hard error
   - override: STR_OLD_NAME  # check if this name was used already and update the given item, hard error if the item did not exist
   - update: STR_OPTIONAL    # check if this name was used already and update the given item, do nothing if the item did not exist
« Last Edit: January 02, 2024, 07:58:56 pm by Juku121 »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9084
    • View Profile
Re: [Submod] Everyone surrender
« Reply #18 on: January 03, 2024, 05:43:01 pm »
Replaced [/t]] with [/tt] so that forum displays correct text formatting.

Deleted all posts about what does [/t]] mean... feel free to continue the discussion.
« Last Edit: January 03, 2024, 05:45:28 pm by Meridian »