Author Topic: New Alien Deployments [Solved]  (Read 2228 times)

Offline pjlasl

  • Captain
  • ***
  • Posts: 54
    • View Profile
New Alien Deployments [Solved]
« on: December 24, 2021, 06:06:33 pm »
I have been successful in loading my new unit into the game and I can play against them in the Battle Mode.
I see that I need to add them to the alienMissions and here is an example of that "Pink Sectoids":

Spoiler:
alienMissions:
  - type: STR_ALIEN_RESEARCH
    raceWeights:
      0:       
        STR_SECTOID: 40
        STR_PINK_SECTOID: 30
        STR_SNAKEMAN: 10
        STR_FLOATER: 20
      1:
        STR_SECTOID: 30
        STR_PINK_SECTOID: 30
        STR_SNAKEMAN: 10
        STR_FLOATER: 30
      3:
        STR_SECTOID: 20
        STR_PINK_SECTOID: 30
        STR_SNAKEMAN: 10
        STR_MUTON: 20
        STR_FLOATER: 20
      6:
        STR_SECTOID: 10
        STR_PINK_SECTOID: 10
        STR_SNAKEMAN: 10
        STR_MUTON: 40
        STR_FLOATER: 30
      9:
        STR_SECTOID: 20
        STR_PINK_SECTOID: 10
        STR_SNAKEMAN: 10
        STR_MUTON: 30
        STR_FLOATER: 30

Can someone explain how these work? I tried to make them 100 and remove the others (I did this for all missions) and that didn't work. What am I doing wrong?
« Last Edit: December 26, 2021, 10:50:09 pm by pjlasl »

Offline Nord

  • Commander
  • *****
  • Posts: 1652
  • The Gate is open.
    • View Profile
Re: New Alien Deployments
« Reply #1 on: December 25, 2021, 10:00:48 am »
You need to add your unit to new race in "alienraces". Then you use this new race in alien deployment.

Offline pjlasl

  • Captain
  • ***
  • Posts: 54
    • View Profile
Re: New Alien Deployments
« Reply #2 on: December 25, 2021, 04:30:57 pm »
This is what I have, so it is just a matter of chance for each type of deployment?

alienRaces: # usually in file AlianRaces.rul
  - id: STR_PINK_SECTOID
    members:
      - STR_PINK_SECTOID_COMMANDER #COMMANDER
      - STR_PINK_SECTOID_LEADER # LEADER
      - STR_PINK_SECTOID_ENGINEER # ENGINEER
      - STR_PINK_SECTOID_MEDIC #MEDIC
      - STR_PINK_SECTOID_NAVIGATOR # NAVIGATOR
      - STR_PINK_SECTOID_SOLDIER #SOLDIER
      - STR_PINK_SECTOID_TERRORIST #TERRORIST
« Last Edit: December 25, 2021, 05:59:18 pm by pjlasl »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11499
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: New Alien Deployments
« Reply #3 on: December 25, 2021, 06:22:19 pm »
I think it would be better if you clarified what you want to do:
1) Create a new alien race/faction (like Sectoids, Mutons, etc.)?
2) Create a new unit, to appear among other units of the same existing faction (like adding a new sectoid type to appear along other sectoids)?
3) Something else?

Offline pjlasl

  • Captain
  • ***
  • Posts: 54
    • View Profile
Re: New Alien Deployments
« Reply #4 on: December 26, 2021, 05:54:48 pm »
Sure. What I am trying to do is create a new Alien Race (Pink Sectoids). I have created an alien race and updated the alien missions. I can fight against them in the one off battles, but I want to make sure they also show up as an option during the different alien missions (harvester, research, etc...)

This is my alien race:

Spoiler:
alienRaces: # usually in file AlianRaces.rul
  - id: STR_PINK_SECTOID
    members:
      - STR_PINK_SECTOID_COMMANDER #COMMANDER
      - STR_PINK_SECTOID_LEADER # LEADER
      - STR_PINK_SECTOID_ENGINEER # ENGINEER
      - STR_PINK_SECTOID_MEDIC #MEDIC
      - STR_PINK_SECTOID_NAVIGATOR # NAVIGATOR
      - STR_PINK_SECTOID_SOLDIER #SOLDIER

Here is my alienmissions (I set to 100 thinking I could always make them show, but it isn't working):

Spoiler:
alienMissions:
  - type: STR_ALIEN_RESEARCH
    raceWeights:
      0:       
        #STR_SECTOID: 30
        STR_PINK_SECTOID: 100
        #STR_SNAKEMAN: 10
        #STR_FLOATER: 20
      1:
        STR_SECTOID: 30
        STR_PINK_SECTOID: 30
        STR_SNAKEMAN: 10
        STR_FLOATER: 30
      3:
        STR_SECTOID: 20
        STR_PINK_SECTOID: 30
        STR_SNAKEMAN: 10
        STR_MUTON: 20
        STR_FLOATER: 20
      6:
        STR_SECTOID: 10
        STR_PINK_SECTOID: 10
        STR_SNAKEMAN: 10
        STR_MUTON: 40
        STR_FLOATER: 30
      9:
        STR_SECTOID: 20
        STR_PINK_SECTOID: 10
        STR_SNAKEMAN: 10
        STR_MUTON: 30
        STR_FLOATER: 30
  - type: STR_ALIEN_HARVEST   
    raceWeights:
      0:
        STR_SECTOID: 30
        STR_PINK_SECTOID: 20
        STR_SNAKEMAN: 20
        STR_FLOATER: 30
      1:
        STR_SECTOID: 30
        STR_PINK_SECTOID: 30
        STR_FLOATER: 40
      3:
        STR_SECTOID: 20
        STR_PINK_SECTOID: 30
        STR_MUTON: 20
        STR_FLOATER: 30
      6:
        STR_SECTOID: 10
        STR_PINK_SECTOID: 10
        STR_MUTON: 40
        STR_FLOATER: 40
      9:
        STR_SECTOID: 30
        STR_PINK_SECTOID: 10
        STR_MUTON: 30
        STR_FLOATER: 30
  - type: STR_ALIEN_ABDUCTION   
    raceWeights:
      0:
        STR_SECTOID: 40
        STR_PINK_SECTOID: 30
        STR_FLOATER: 30
      1:
        STR_SECTOID: 20
        STR_PINK_SECTOID: 20
        STR_FLOATER: 60
      3:
        STR_SECTOID: 40
        STR_PINK_SECTOID: 20
        STR_FLOATER: 40
      6:
        STR_SECTOID: 30
        STR_PINK_SECTOID: 30
        STR_FLOATER: 40
      9:
        STR_SECTOID: 30
        STR_PINK_SECTOID: 30
        STR_FLOATER: 40
  - type: STR_ALIEN_INFILTRATION
    raceWeights:
      0:
        STR_SECTOID: 30
        STR_PINK_SECTOID: 30
        STR_SNAKEMAN: 20
        STR_FLOATER: 20
      1:
        STR_SECTOID: 30
        STR_PINK_SECTOID: 20
        STR_SNAKEMAN: 20
        STR_FLOATER: 30
      3:
        #STR_SECTOID: 20
        TR_PINK_SECTOID_Warband: 10
        STR_SNAKEMAN: 20
        STR_MUTON: 40
        STR_FLOATER: 10
      6:
        STR_SECTOID: 10
        STR_PINK_SECTOID: 10
        STR_SNAKEMAN: 10
        STR_ETHEREAL: 30
        STR_MUTON: 30
        STR_FLOATER: 10
      9:
        STR_SECTOID: 20
        STR_PINK_SECTOID: 10
        STR_SNAKEMAN: 20
        STR_ETHEREAL: 10
        STR_MUTON: 30
        STR_FLOATER: 10
  - type: STR_ALIEN_BASE
    raceWeights:
      0:
        STR_SECTOID: 30
        STR_PINK_SECTOID: 10
        STR_SNAKEMAN: 20
        STR_FLOATER: 40
      1:
        STR_SECTOID: 30
        STR_PINK_SECTOID: 20
        STR_SNAKEMAN: 20
        STR_FLOATER: 30
      3:
        STR_SECTOID: 10
        STR_PINK_SECTOID: 10
        STR_SNAKEMAN: 30
        STR_MUTON: 30
        STR_FLOATER: 20
      6:
        STR_SECTOID: 10
        STR_PINK_SECTOID: 10
        STR_SNAKEMAN: 30
        STR_ETHEREAL: 10
        STR_MUTON: 20
        STR_FLOATER: 20
      9:
        STR_SECTOID: 10
        STR_PINK_SECTOID: 10
        STR_SNAKEMAN: 20
        STR_ETHEREAL: 30
        STR_MUTON: 20
        STR_FLOATER: 10
  - type: STR_ALIEN_TERROR
    raceWeights:
      0:
        STR_SECTOID: 20
        STR_PINK_SECTOID: 20
        STR_FLOATER: 60
      1:
        STR_SECTOID: 50
        STR_PINK_SECTOID: 20
        STR_FLOATER: 30
      3:
        STR_SECTOID: 20
        STR_PINK_SECTOID: 20
        STR_SNAKEMAN: 40
        STR_FLOATER: 20
      6:
        STR_SECTOID: 10
        STR_PINK_SECTOID: 10
        STR_SNAKEMAN: 20
        STR_ETHEREAL: 30
        STR_MUTON: 20
        STR_FLOATER: 10
      9:
        STR_SECTOID: 20
        STR_PINK_SECTOID: 10
        STR_SNAKEMAN: 20
        3STR_ETHEREAL: 20
        STR_MUTON: 20
        STR_FLOATER: 10
  - type: STR_ALIEN_RETALIATION
    raceWeights: # In the case of a shootdown, race comes from the UFO that triggered the mission.
      0:
        STR_SECTOID: 10
        STR_PINK_SECTOID: 10
        STR_SNAKEMAN: 20
        STR_ETHEREAL: 20
        STR_MUTON: 20
        STR_FLOATER: 20

If my understanding of the raceweights is correct, if I set it to 100, then for those missions I would expect to see Pink Sectoids. On the others where they are mixed in with the other races, there is a % chance it would be the pink sectoid that loads in.

Please review my attached .rul and let me know if something is amiss.


Offline Nord

  • Commander
  • *****
  • Posts: 1652
  • The Gate is open.
    • View Profile
Re: New Alien Deployments
« Reply #5 on: December 26, 2021, 07:22:50 pm »
Quote
    raceWeights:
      0:       
        #STR_SECTOID: 30
        STR_PINK_SECTOID: 100
        #STR_SNAKEMAN: 10
        #STR_FLOATER: 20
means that you can encounter them with 100% probability only when beginning new game. After first month will work setting with "1:", after second - "2:", and so on.

also for the example (maybe you need it):
if you use
Code: [Select]
    raceWeights:
      0:       
        STR_SECTOID: 10
        STR_PINK_SECTOID: 100
#end of code
then you will encounter 10 pink and 1 normal sectoid through the game, not always pink ones.

Offline pjlasl

  • Captain
  • ***
  • Posts: 54
    • View Profile
Re: New Alien Deployments
« Reply #6 on: December 26, 2021, 09:43:51 pm »
Ok. So Just so I understand the Months:
0 is the start
1 = January, 2 = February, etc?


Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8682
    • View Profile
Re: New Alien Deployments
« Reply #7 on: December 26, 2021, 09:52:59 pm »
Depends on when your mod is configured to start.

If you're asking about vanilla UFO, then:
0 = January 1999
1 = February 1999
etc.

Offline pjlasl

  • Captain
  • ***
  • Posts: 54
    • View Profile
Re: New Alien Deployments
« Reply #8 on: December 26, 2021, 10:07:27 pm »
for OpenXcom and OXCE 0 = Jan and so forth? because that is what I am playing on. I just copied the original UFO folders to the appropriate folder.
I would not ever know where to change 1 = Jan.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8682
    • View Profile
Re: New Alien Deployments
« Reply #9 on: December 26, 2021, 10:20:28 pm »
for OpenXcom and OXCE 0 = Jan and so forth?

yes