Author Topic: Change of retaliatory mission  (Read 11746 times)

Offline Vangrimar1

  • Colonel
  • ****
  • Posts: 143
    • View Profile
Change of retaliatory mission
« on: July 17, 2018, 05:02:59 pm »
I want to create a retribution mission for a new race. There are two problems: 1. A battleship is constantly flown on a mission instead of the ship that I put. 2. I can not change weapons from enemies to their own, all with plasma weapons.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: Change of retaliatory mission
« Reply #1 on: July 17, 2018, 05:11:43 pm »
So, how exactly are we supposed to find problems with your mod/ruleset if we don't have access to it?



1. Changing retaliation UFO (possible in OXC):

Code: [Select]
alienMissions:
  - type: STR_ALIEN_RETALIATION
    spawnUfo: STR_MEDIUM_SCOUT                   # Spawned for the final retaliation run

2. Changing weapon loadout and alien crew (requires OXCE):

Code: [Select]
ufos:
  - type: STR_MEDIUM_SCOUT
    missionCustomDeploy: STR_SMALL_SCOUT         #override mission default weapon deployment for all races, just 1 teensy alien
    raceBonus:
      STR_FLOATER:
        missionCustomDeploy: STR_MEDIUM_SCOUT    #for floater race allow a few more
« Last Edit: July 17, 2018, 05:43:22 pm by Meridian »

Offline Vangrimar1

  • Colonel
  • ****
  • Posts: 143
    • View Profile
Re: Change of retaliatory mission
« Reply #2 on: July 18, 2018, 08:20:27 am »
I use the X-Files of the latest version + my plug-in mod.

ufos:
 - type: STR_RETALATOR_CULTHELICOPTER #вертолет ответного удара
    missionCustomDeploy: STR_CULTHELICOPTER         #override mission default weapon deployment for all races, just 1 teensy alien
    raceBonus:
      STR_CHURCH_OF_DAGON:
        missionCustomDeploy: STR_RETALATOR_CULTHELICOPTER    #for floater race allow a few more
      STR_EXALT:
        missionCustomDeploy: STR_RETALATOR_CULTHELICOPTER    #for floater race allow a few more
      STR_ZSRR:
        missionCustomDeploy: STR_RETALATOR_CULTHELICOPTER    #for floater race allow a few more
      STR_BLACK_LOTUS:
        missionCustomDeploy: STR_RETALATOR_CULTHELICOPTER    #for floater race allow a few more

alienMissions:
 - type: STR_CULT_RETALIATION
    spawnUfo: STR_RETALATOR_CULTHELICOPTER # Spawned for the final retaliation run

alienDeployments:
  - type: STR_CULTHELICOPTER
    data:
      - alienRank: 3
        lowQty: 2
        highQty: 2
        dQty: 2
        percentageOutsideUfo: 20
        itemSets:
          -
            - STR_COLT45
            - STR_COLT45_CLIP
            - STR_COLT45_CLIP
            - STR_MACHETE
          -
            - STR_COLT45
            - STR_COLT45_CLIP
            - STR_COLT45_CLIP
            - STR_COMBAT_KNIFE
          -
            - STR_GLOCK_18
            - STR_GLOCK_18_CLIP
            - STR_GLOCK_18_CLIP
            - STR_GLOCK_18_CLIP
          -
            - STR_COLT_COMMANDO
            - STR_MP40_CLIP
            - STR_MP40_CLIP
          -
            - STR_RIFLE_M16
            - STR_RIFLE_M16_CLIP
            - STR_RIFLE_M16_CLIP
          -
            - STR_COLT45
            - STR_COLT45_CLIP
            - STR_COLT45_CLIP
            - STR_MACHETE
          -
            - STR_CALICO
            - STR_CALICO_CLIP
            - STR_CALICO_CLIP
            - STR_COMBAT_KNIFE
          -
            - STR_GLOCK_18
            - STR_GLOCK_18_CLIP
            - STR_GLOCK_18_CLIP
            - STR_GLOCK_18_CLIP
          -
            - STR_UZI
            - STR_UZI_CLIP
            - STR_UZI_CLIP
            - STR_ELECTRIC_CLUB
          -
            - STR_RIFLE_M16
            - STR_RIFLE_M16_CLIP
            - STR_RIFLE_M16_CLIP
      - alienRank: 2
        lowQty: 2
        highQty: 2
        dQty: 0
        percentageOutsideUfo: 20
        itemSets:
          -
            - STR_COLT_COMMANDO
            - STR_MP40_CLIP
            - STR_MP40_CLIP
          -
            - STR_RIFLE_M16
            - STR_RIFLE_M16_CLIP
            - STR_RIFLE_M16_CLIP
          -
            - STR_MAGNUM
            - STR_MAGNUM_DRUM
            - STR_MAGNUM_DRUM
            - STR_MAGNUM_DRUM
          -
            - STR_GRENADE_LAUNCHER
            - STR_LAUNCHER_FRAG
            - STR_LAUNCHER_FRAG
            - STR_LAUNCHER_INC
            - STR_LAUNCHER_INC
          -
            - STR_RIFLE_M16
            - STR_RIFLE_M16_CLIP
            - STR_RIFLE_M16_CLIP
          -
            - STR_RIFLE_M16
            - STR_RIFLE_M16_CLIP
            - STR_RIFLE_M16_CLIP
          -
            - STR_M60
            - STR_M60_CLIP
            - STR_M60_CLIP
          -
            - STR_MAGNUM
            - STR_MAGNUM_DRUM
            - STR_MAGNUM_DRUM
            - STR_MAGNUM_DRUM
          -
            - STR_GRENADE_LAUNCHER
            - STR_LAUNCHER_FRAG
            - STR_LAUNCHER_FRAG
            - STR_LAUNCHER_INC
            - STR_LAUNCHER_INC
      - alienRank: 1
        lowQty: 1
        highQty: 1
        dQty: 0
        percentageOutsideUfo: 0
        itemSets:
          -
            - STR_RIFLE_M16
            - STR_RIFLE_M16_CLIP
            - STR_RIFLE_M16_CLIP
          -
            - STR_DESERT_EAGLE
            - STR_DESERT_EAGLE_CLIP
            - STR_DESERT_EAGLE_CLIP
            - STR_COMBAT_KNIFE
          -
            - STR_GRENADE_LAUNCHER
            - STR_LAUNCHER_FRAG
            - STR_LAUNCHER_FRAG
            - STR_LAUNCHER_INC
            - STR_LAUNCHER_INC
          -
            - STR_HK_MK23_SOCOM
            - STR_HK_MK23_SOCOM_CLIP
            - STR_HK_MK23_SOCOM_CLIP
            - STR_COMBAT_KNIFE
            - STR_HIGH_EXPLOSIVE
          -
            - STR_M83_BARETT
            - STR_M83_BARETT_CLIP
            - STR_M83_BARETT_CLIP
          -
            - STR_RIFLE_M16
            - STR_RIFLE_M16_CLIP
            - STR_RIFLE_M16_CLIP
          -
            - STR_DESERT_EAGLE
            - STR_DESERT_EAGLE_CLIP
            - STR_DESERT_EAGLE_CLIP
            - STR_COMBAT_KNIFE
          -
            - STR_GRENADE_LAUNCHER
            - STR_LAUNCHER_FRAG
            - STR_LAUNCHER_FRAG
            - STR_LAUNCHER_INC
            - STR_LAUNCHER_INC
          -
            - STR_HK_MK23_SOCOM
            - STR_HK_MK23_SOCOM_CLIP
            - STR_HK_MK23_SOCOM_CLIP
            - STR_COMBAT_KNIFE
            - STR_HIGH_EXPLOSIVE
          -
            - STR_M83_BARETT
            - STR_M83_BARETT_CLIP
            - STR_M83_BARETT_CLIP
    width: 40
    length: 40
    height: 6



Offline Vangrimar1

  • Colonel
  • ****
  • Posts: 143
    • View Profile
Re: Change of retaliatory mission
« Reply #3 on: July 18, 2018, 08:23:54 am »
Еnemies come in accordance with the race, but all armed with plasma weapons, and not what I put. The number of enemies corresponds to the battleship and does not change.

Offline Vangrimar1

  • Colonel
  • ****
  • Posts: 143
    • View Profile
Re: Change of retaliatory mission
« Reply #4 on: July 20, 2018, 07:48:24 am »
Any ideas?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: Change of retaliatory mission
« Reply #5 on: July 20, 2018, 10:24:07 am »
Any ideas?

Code: [Select]
missionCustomDeploy: STR_RETALATOR_CULTHELICOPTER

should be

Code: [Select]
missionCustomDeploy: STR_CULTHELICOPTER

?

PS: if it doesn't help, please upload the whole mod as zip and also a save just before the mission
« Last Edit: July 20, 2018, 10:28:54 am by Meridian »

Offline Vangrimar1

  • Colonel
  • ****
  • Posts: 143
    • View Profile
Re: Change of retaliatory mission
« Reply #6 on: July 20, 2018, 02:17:16 pm »
Damn, I do not understand the error! >:( The race is changing and the weapon is not. Is there a ready-made example of changing the missions of retribution? As in the X-pirates?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: Change of retaliatory mission
« Reply #7 on: July 20, 2018, 02:54:18 pm »
Damn, I do not understand the error! >:( The race is changing and the weapon is not. Is there a ready-made example of changing the missions of retribution? As in the X-pirates?

Why do you refuse to upload your mod?
I can't tell you what's wrong if I don't see it...

I made a small mod for you, see attached that does what you want + a save just before base defense.

Offline Vangrimar1

  • Colonel
  • ****
  • Posts: 143
    • View Profile
Re: Change of retaliatory mission
« Reply #8 on: July 20, 2018, 04:04:33 pm »
Perhaps the problem is in my settings, since your mod works. I load my mod. It requires X-com files to work. Two save, one on the globe, the other on the base. On the globe, the attack script is already running, you need to wait. Please help me figure it out.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: Change of retaliatory mission
« Reply #9 on: July 20, 2018, 05:38:43 pm »
Perhaps the problem is in my settings, since your mod works. I load my mod. It requires X-com files to work. Two save, one on the globe, the other on the base. On the globe, the attack script is already running, you need to wait. Please help me figure it out.

Your mod load order is wrong... first your mod is loaded, then XCF is loaded (and overwrites your changes... where both of you modify the same thing and there is a conflict).

You need to put your mod BELOW the XCF, see screenshot.
« Last Edit: July 20, 2018, 05:41:13 pm by Meridian »

Offline Vangrimar1

  • Colonel
  • ****
  • Posts: 143
    • View Profile
Re: Change of retaliatory mission
« Reply #10 on: July 21, 2018, 02:31:11 am »
Yes, it worked! :) But I did not fully understand the mechanics of the mission of retaliation. I do not want my changes to affect aliens' retaliation missions. That is, aliens must continue to fly on battleships with plasma weapons.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: Change of retaliatory mission
« Reply #11 on: July 21, 2018, 10:13:07 am »
So they fly on UFOs with plasma weapons, but when they land in your base they switch to something else? What sense does that make??

Anyway, can be done like this:

Code: [Select]
ufos:
  - type: STR_MY_UFO      # deployment when crashed/landed
    missionCustomDeploy: STR_MY_WEAK_WEAPONS    # deployment when attacking base

alienDeployment:
  - type: STR_MY_UFO
    data:
      - alienRank: 5
        <snip>
        itemSets:
          -
            - STR_STRONG_GUN
            - STR_STRONG_CLIP
          -
            - STR_STRONG_GUN
            - STR_STRONG_CLIP
          -
            - STR_STRONG_GUN
            - STR_STRONG_CLIP
  - type: STR_MY_WEAK_WEAPONS
    data:
      - alienRank: 5
        <snip>
        itemSets:
          -
            - STR_WEAK_GUN
            - STR_WEAK_CLIP
          -
            - STR_WEAK_GUN
            - STR_WEAK_CLIP
          -
            - STR_WEAK_GUN
            - STR_WEAK_CLIP

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11722
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Change of retaliatory mission
« Reply #12 on: July 22, 2018, 02:02:24 pm »
So they fly on UFOs with plasma weapons, but when they land in your base they switch to something else? What sense does that make??

Hmm, maybe they're Yautja (Predators) who always choose weaponry relevant to the prey, as to not overwhelm it? :)

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3350
    • View Profile
Re: Change of retaliatory mission
« Reply #13 on: July 22, 2018, 02:15:57 pm »
Probably opposite could have more sens, they fly with pistols and maybe with couple of rifles but when attaching they switch to heavy gear.

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: Change of retaliatory mission
« Reply #14 on: July 25, 2018, 12:51:26 am »
Hmm, maybe they're Yautja (Predators) who always choose weaponry relevant to the prey, as to not overwhelm it? :)

When everything else fails, label the irrational behavior you're trying to sell as 'alien honor' ;)