aliens

Author Topic: Renaming UFOs "STR_.." and hardcoded missions involving those UFOs  (Read 7266 times)

Offline robin

  • Commander
  • *****
  • Posts: 1216
  • ULTIMATE ROOKIE
    • View Profile
For reason of uniformity and clarity of my ruleset I wanted to rename all the UFOs strings adding "UFO_" after "STR_" (since I also have non-UFO -aka human- ships); IE:
STR_SUPPLY_SHIP --> STR_UFO_SUPPLY_SHIP

But I wonder if this will break hardcoded missions that involve those special UFOs, such as alien base, terror and supply.

?

Thanks.
« Last Edit: January 31, 2015, 04:20:52 am by robin »

Offline Hobbes

  • Commander
  • *****
  • Posts: 2101
  • Infiltration subroutine in progress
    • View Profile
Re: Renaming UFOs "STR_.." and hardcoded missions involving those UFOs
« Reply #1 on: January 31, 2015, 06:00:34 am »
To my knowledge, there shouldn't an issue with replacing the vanilla UFO STRs with new ones as long as you assign the new UFOs to the existing missions. I think you could even get rid of the Infiltration, Research, Harvest and Abductions alien missions without any issues. But you'll always need to have the Base, Terror, Supply and Retaliation missions staffed with UFOs.

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: Renaming UFOs "STR_.." and hardcoded missions involving those UFOs
« Reply #2 on: January 31, 2015, 07:03:44 am »
and you get incompatible with everymany ufo mods out there

Offline robin

  • Commander
  • *****
  • Posts: 1216
  • ULTIMATE ROOKIE
    • View Profile
Re: Renaming UFOs "STR_.." and hardcoded missions involving those UFOs
« Reply #3 on: January 31, 2015, 11:07:33 am »
To my knowledge, there shouldn't an issue with replacing the vanilla UFO STRs with new ones as long as you assign the new UFOs to the existing missions. I think you could even get rid of the Infiltration, Research, Harvest and Abductions alien missions without any issues. But you'll always need to have the Base, Terror, Supply and Retaliation missions staffed with UFOs.
I don't want to get rid of the missions, quite the opposite: I want to change the STRs while being sure everything will still work properly.

and you get incompatible with everymany ufo mods out there
it's a total conversion, ufos will use custom mcd sets, it's going to be incompatible anyway.
« Last Edit: January 31, 2015, 11:29:05 am by robin »

Offline Yankes

  • Commander
  • *****
  • Posts: 3209
    • View Profile
Re: Renaming UFOs "STR_.." and hardcoded missions involving those UFOs
« Reply #4 on: January 31, 2015, 02:58:00 pm »
Right now its worked on, I even made path that do it. I don't now if it get pass, because SupSuper is working on alien mission and my patch could be incompatible.
This mean that in one way or another it will be soon fix.

Offline robin

  • Commander
  • *****
  • Posts: 1216
  • ULTIMATE ROOKIE
    • View Profile
Re: Renaming UFOs "STR_.." and hardcoded missions involving those UFOs
« Reply #5 on: January 31, 2015, 03:23:59 pm »
Right now its worked on, I even made path that do it. I don't now if it get pass, because SupSuper is working on alien mission and my patch could be incompatible.
This mean that in one way or another it will be soon fix.
I see. I'm going to keep them unchanged for now.

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2160
    • View Profile
Re: Renaming UFOs "STR_.." and hardcoded missions involving those UFOs
« Reply #6 on: January 31, 2015, 06:14:18 pm »
There are a lot of hardcoded UFO IDs and mission IDs right now so I wouldn't recommend changing the vanilla stuff (though you can add your own).

We're currently rewriting all the mission stuff for TFTD so this will be fixed, but it'll likely break mission mods as well, so either way you'll have to update your mods afterwards. At least you'll also get some new features to play with. ;)

Right now its worked on, I even made path that do it. I don't now if it get pass, because SupSuper is working on alien mission and my patch could be incompatible.
This mean that in one way or another it will be soon fix.
Yeah currently your patch conflicts with my changes so I'll probably apply your changes myself or ask you to remake the patch afterwards.

Offline robin

  • Commander
  • *****
  • Posts: 1216
  • ULTIMATE ROOKIE
    • View Profile
Re: Renaming UFOs "STR_.." and hardcoded missions involving those UFOs
« Reply #7 on: February 01, 2015, 11:23:29 am »
So, hum, you guys did the modification already?

I'm looking at this
    specialUfo: STR_TERROR_SHIP
    deployment: STR_TERROR_MISSION
    markerName: STR_TERROR_SITE

Offline Yankes

  • Commander
  • *****
  • Posts: 3209
    • View Profile
Re: Renaming UFOs "STR_.." and hardcoded missions involving those UFOs
« Reply #8 on: February 01, 2015, 12:56:25 pm »
Yes, yesterday SupSuper add his code and merge my patch.

My part do:
Quote
New field specialUfo used my missions to determine how handle different UFO types.
Retaliation: ufo of this type is spawn.
Supply: ufo of this type is transport craft.
Terror: ufo of this type can create terror site.

Offline robin

  • Commander
  • *****
  • Posts: 1216
  • ULTIMATE ROOKIE
    • View Profile
Re: Renaming UFOs "STR_.." and hardcoded missions involving those UFOs
« Reply #9 on: February 01, 2015, 01:49:41 pm »
New field specialUfo used my missions to determine how handle different UFO types.
Retaliation: ufo of this type is spawn.
Supply: ufo of this type is transport craft.
Terror: ufo of this type can create terror site.
Where is that stuff? I can't find it.

Offline Yankes

  • Commander
  • *****
  • Posts: 3209
    • View Profile
Re: Renaming UFOs "STR_.." and hardcoded missions involving those UFOs
« Reply #10 on: February 01, 2015, 02:02:45 pm »
I don't get this question, what are you looking for?

Offline robin

  • Commander
  • *****
  • Posts: 1216
  • ULTIMATE ROOKIE
    • View Profile
Re: Renaming UFOs "STR_.." and hardcoded missions involving those UFOs
« Reply #11 on: February 01, 2015, 02:11:47 pm »
I don't get this question, what are you looking for?
If I do this in my ruleset:

alienMissions:
  - type: STR_ALIEN_TERROR
    points: 10
    specialUfo: STR_TERROR_SHIP
    deployment: STR_TERROR_MISSION
    markerName: STR_TERROR_SITE
    raceWeights:
      [...]
    waves:
      [...]
      - ufo: STR_TERROR_SHIP
        count: 1
        trajectory: P7
        timer: 9000
  - type: STR_ALIEN_HORROR
    points: 10
    specialUfo: STR_HORROR_SHIP
    deployment: STR_HORROR_MISSION
    markerName: STR_HORROR_SITE
    raceWeights:
      [...]
    waves:
      [...]
      - ufo: STR_HORROR_SHIP
        count: 1
        trajectory: P7
        timer: 9000

I'll have a second terror-like mission in game.. or is everything still tied and exclusive to the mission type "STR_ALIEN_TERROR"?
« Last Edit: February 01, 2015, 02:14:34 pm by robin »

Offline Yankes

  • Commander
  • *****
  • Posts: 3209
    • View Profile
Re: Renaming UFOs "STR_.." and hardcoded missions involving those UFOs
« Reply #12 on: February 01, 2015, 02:25:33 pm »
Right now yes, its only work with build in missions. But my next step will be allow any mission to work like terror/retaliation/supply mission.

Offline robin

  • Commander
  • *****
  • Posts: 1216
  • ULTIMATE ROOKIE
    • View Profile
Re: Renaming UFOs "STR_.." and hardcoded missions involving those UFOs
« Reply #13 on: February 01, 2015, 02:50:45 pm »
Right now yes, its only work with build in missions. But my next step will be allow any mission to work like terror/retaliation/supply mission.
I see.

Offline robin

  • Commander
  • *****
  • Posts: 1216
  • ULTIMATE ROOKIE
    • View Profile
Re: Renaming UFOs "STR_.." and hardcoded missions involving those UFOs
« Reply #14 on: February 07, 2015, 02:16:25 pm »
I have another question sort-of related. Since I "found out" that messing with trajectories can mess things up (final landing sites not happening or something), I wonder: what about the speed of the UFOs? Significantly higher speed could mean that they cover the trajectory waypoints faster, could this lead to issues too?