aliens

Author Topic: Ruleset Editing Questions (& Some m'Orz Qestions)  (Read 40534 times)

Offline greg77

  • Sergeant
  • **
  • Posts: 17
    • View Profile
Re: Ruleset Editing Questions (& Some mOrz Qestions)
« Reply #75 on: December 31, 2015, 05:05:30 pm »
hi,
i'm new here and i also consider myself a newbie in openxcom modding.

what i don't quite know is how to properly add a new top-level technology to research rules. laser weapons show up automatically, but new entries i put into my rul file would not. what am i missing here?

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8626
    • View Profile
Re: Ruleset Editing Questions (& Some mOrz Qestions)
« Reply #76 on: December 31, 2015, 05:23:52 pm »
Well, then take the "Laser Weapons" entry, make a copy and change the ID... should work.

Without the actual code, my guess is that your new technology has some dependencies, which are not discovered yet, i.e. won't pop up automatically.

Offline greg77

  • Sergeant
  • **
  • Posts: 17
    • View Profile
Re: Ruleset Editing Questions (& Some mOrz Qestions)
« Reply #77 on: January 02, 2016, 06:07:41 pm »
thank you, Meridian, i'm right on track.

Offline Cristao

  • Colonel
  • ****
  • Posts: 404
    • View Profile
Re: Ruleset Editing Questions (& Some mOrz Qestions)
« Reply #78 on: January 13, 2016, 01:51:45 pm »
What Meridan said. @greg77 - what I do is I tend to look for a mod or item that has the behaviour I need then modify it to give me what I want

Offline silencer_pl

  • Captain
  • ***
  • Posts: 83
    • View Profile
Re: Ruleset Editing Questions (& Some mOrz Qestions)
« Reply #79 on: January 26, 2016, 01:03:14 am »
Has something changed in way for adding custom music files?

I have seperate file for music rule:

Code: [Select]
musics:
  - type: LIGHTNINGWAR
    normalization: 1.00

And in another rule for example I've added it to base defense

Code: [Select]
  - type: STR_BASE_DEFENSE
    music:
      - type: LIGHTNINGWAR

After I've switched to 2015-12-27 nightly it doesn't work anymore.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8626
    • View Profile
Re: Research: Dependencies & Requirements
« Reply #80 on: June 27, 2017, 10:18:05 am »
Usage of 'getOneFree' also has a side effect which is that the research topic will always be available for research, even with dependencies.

This limitation has been removed in the latest nightly.

PS: I'll be necroing a few posts to let modders know what's new.

Offline Hobbes

  • Commander
  • *****
  • Posts: 2101
  • Infiltration subroutine in progress
    • View Profile
Re: Research: Dependencies & Requirements
« Reply #81 on: June 27, 2017, 06:55:31 pm »
PS: I'll be necroing a few posts to let modders know what's new.

It would also be useful to update the UFOPaedia.org page regarding the Nightlies ruleset to include the new functionalities and what they allow

And great work with the code rewrite done by you sir :)

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8626
    • View Profile
Re: Research: Dependencies & Requirements
« Reply #82 on: June 29, 2017, 02:38:29 pm »
It would also be useful to update the UFOPaedia.org page regarding the Nightlies ruleset to include the new functionalities and what they allow

I just checked https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#Research
and everything written there is correct, no need to update IMO.