aliens

Author Topic: [ADDON] ROSE - Rebalanced Orks and Sisters, Expanded  (Read 21916 times)

Offline Leflair

  • Colonel
  • ****
  • Posts: 247
    • View Profile
Re: [ADDON] ROSE - Rebalanced Orks and Sisters, Expanded
« Reply #60 on: April 03, 2021, 07:08:35 pm »
That's not how it works. Either the research topic (f. ex STR_ADEPTAS_ARMORS_DEP1) lists which dependencies it needs, of which all have to be met.

Or one research topic (f. ex STR_FLOATER_SOLDIER) unlocks a different research topic (f. ex STR_ADEPTAS_ARMORS_DEP1). The dependencies of your topic don't matter if you got a different one unlocking yours. Then dependencies aren't being checked on unlock (unlike requires)

Spoiler:
research:
  - name: STR_ADEPTAS_ARMORS
    cost: 180
    points: 20
    dependencies:
      - STR_ADEPTAS_ARMORS_DEP1
      - STR_ADEPTAS_ARMOR

  - name: STR_ADEPTAS_ARMORS_DEP1
    requires: # is checked for unlock
      - STR_ADEPTAS
    dependencies: # are not checked for unlock
      - STR_FLOATER_SOLDIER
      - STR_FLOATER_MEDIC
      - STR_FLOATER_NAVIGATOR 
      - STR_FLOATER_ENGINEER
      - STR_FLOATER_LEADER
      - STR_FLOATER_COMMANDER

  - name: STR_FLOATER_MEDIC
    cost: 75
    points: 50
    needItem: true
    unlocks:
      - STR_ADEPTAS_ARMORS_DEP1 # will unlock topic
      - STR_INTERROGATION_COMPLETED

You can try the attached rul file.

So run them all through DEP1 like this?
Spoiler:
  - name: STR_ADEPTAS_ARMORS_DEP1
    requires:
      - STR_ADEPTAS
    dependencies:
      - STR_FLOATER_SOLDIER
      - STR_FLOATER_MEDIC
      - STR_FLOATER_NAVIGATOR 
      - STR_FLOATER_ENGINEER
      - STR_FLOATER_LEADER
      - STR_FLOATER_COMMANDER
      - STR_WARPTALON_SOLDIER
      - STR_WARPTALON_COMMANDER
      - STR_ORK_STORMBOY

With each dependency having the unlock, instead of DEP1.

I.e the chain should be:
1. "research ANY ONE of the listed (flying) units",
2.  This Unlock "DEP1" (DEP1 has no research cost, so the player gets it right away without researching it as a topic)
3. DEP1 is set as dependency for all of the Flying type armors. If other dependencies are fulfilled,
4. The Flying Type Armor of your faction is now available as a research topic.
(haven´t made DEP1 the dependency for the Assault Marine Armor yet but that´s the idea).

To limit each armor unlock to only one faction or strategy, it might require several DEP1 versions, like for assault armor:
Spoiler:
  - name: STR_ASS_ARMOR
    cost: 180
    points: 20
    dependencies:
      - STR_ASS_ARMOR_DEP1
      - STR_PERSONAL_ARMOR

  - name: STR_ASS_ARMOR_DEP1
    requires:
      - STR_ASSAULT
    dependencies:
      - STR_FLOATER_SOLDIER
      - STR_FLOATER_MEDIC
      - STR_FLOATER_NAVIGATOR 
      - STR_FLOATER_ENGINEER
      - STR_FLOATER_LEADER
      - STR_FLOATER_COMMANDER
      - STR_WARPTALON_SOLDIER
      - STR_WARPTALON_COMMANDER
      - STR_ORK_STORMBOY

Each listed unit have unlock: - STR_ADEPTAS_ARMORS_DEP1 and STR_ASS_ARMOR_DEP1, but because each armor DEP1 research topic is limited by an "requires: X Faction", only the relevant armor should appear as a topic for the player.
« Last Edit: April 03, 2021, 07:31:06 pm by Leflair »

Offline Buscher

  • Colonel
  • ****
  • Posts: 167
    • View Profile
Re: [ADDON] ROSE - Rebalanced Orks and Sisters, Expanded
« Reply #61 on: April 03, 2021, 07:31:51 pm »
I have already pushed a fix on Git. Also the research file attached in the previous post already contains the fix. When you are available I can show you everything in detail.

But in general what you want to achieve is what you see in the attachments. This also matches with your chain.

The dependencies in your code block are just for show. They are the most restrictive requirements. Think of the dependency list like a boolean AND. Think of the unlock like a  boolean OR. For the unlock the acting entry is not STR_ADEPTAS_ARMORS_DEP1. This research entry can do whatever, it doesn't matter. The acting party in my example is STR_FLOATER_MEDIC or _SOLDIER or _whatever. The medic/soldier/whatever research is the subject which unlocks the object STR_ADEPTAS_ARMORS_DEP1. So this means you have to modify your nine individual entries, each unlocking STR_ADEPTAS_ARMORS_DEP1 upon being researched. For reference I have dropped DEP2 and DEP3 as DEP1 being unlocked by any Raptor (FLOATER), Warptalon or Stormboy is enough.

Offline Leflair

  • Colonel
  • ****
  • Posts: 247
    • View Profile
Re: [ADDON] ROSE - Rebalanced Orks and Sisters, Expanded
« Reply #62 on: April 03, 2021, 08:51:49 pm »
Edit: The additions, fixes and (a lot more) is now available in ROSIGMA
https://openxcom.mod.io/rosigma
https://openxcom.org/forum/index.php/topic,9687.0.html
Which combines ROSE with IGMA!
Go download that for the latest version of ROSE.


I´ve implemented the research suggestion for ROSE in the (now updated) main file.

This includes setting up the plasma pistol research in the same way + Assault Armor for the Space Marines.

For those in a testing mood, researching any live version of the Raptors, the Warptalons or the Ork Stormboy should now give access to the Seraphim (If you´re playing Sister) or Assault Armor (if you´re playing with the Assault Strategy as Space Marines) research.

I've also fixed another couple of crash bugs and updated the language file.

20210417: Small update while waiting for the [big one], almost done there with lots of juicy new stuff. This tiny update fixes the battlesheets for the Braygor/Ungor/Gor (thanks to the Unit Sprite Studio it's now pretty easy to find misaligned arms and the like).
« Last Edit: May 02, 2021, 02:54:21 pm by Leflair »