Author Topic: [OLD] Old OXCE discussion thread  (Read 663212 times)

Offline Yankes

  • Moderator
  • Commander
  • ***
  • Posts: 3194
    • View Profile
Re: [EXE] OpenXcom Extended
« Reply #270 on: April 12, 2015, 06:00:27 pm »
un-hardcoding Cydonia is required by TFTD. I can made patch for normal OXC that will do it.

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: [EXE] OpenXcom Extended
« Reply #271 on: April 13, 2015, 01:59:04 am »
... it's not hard coded in the slightest, that was removed months ago (around the same time as mapscripts)

Offline Yankes

  • Moderator
  • Commander
  • ***
  • Posts: 3194
    • View Profile
Re: [EXE] OpenXcom Extended
« Reply #272 on: April 13, 2015, 09:14:30 am »
Done :D

Offline Dioxine

  • Commander
  • *****
  • Posts: 5412
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: [EXE] OpenXcom Extended
« Reply #273 on: April 13, 2015, 10:54:05 am »
btw custom ranks have big road block. when you try go back from OXCE to OXC after changing numbers of ranks game will crash or alt least be heavy bugged.
I prefer features that can easy fall back to original ones without big fuss. I don't know if this feature is worth breaking this forward compatibility with basic version.

I don't think it's worth it then, personally.

Offline Yankes

  • Moderator
  • Commander
  • ***
  • Posts: 3194
    • View Profile
Re: [EXE] OpenXcom Extended
« Reply #274 on: April 13, 2015, 08:13:09 pm »
I don't think it's worth it then, personally.
But after some thoughts I can see light in tunnel. Simply don't touch ranks and its logic at all, but introduce new sub ranks. Something like you propose for Sergeant.
Every rank could have 1 or more sub ranks. This would be a lot of more compatible with basic version because solders rank will be still valid value after version downgrade. Only conceptual problem I see is how to best handle promotion of hi subrank to next normal rank. Do lowest subrank in next rank is better or worse than largest subrank in previous rank.

Offline Dioxine

  • Commander
  • *****
  • Posts: 5412
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: [EXE] OpenXcom Extended
« Reply #275 on: April 13, 2015, 10:10:17 pm »
But after some thoughts I can see light in tunnel. Simply don't touch ranks and its logic at all, but introduce new sub ranks. Something like you propose for Sergeant.
Every rank could have 1 or more sub ranks. This would be a lot of more compatible with basic version because solders rank will be still valid value after version downgrade. Only conceptual problem I see is how to best handle promotion of hi subrank to next normal rank. Do lowest subrank in next rank is better or worse than largest subrank in previous rank.

That seems like a perfect solution! This could actually permit for basically unlimited number of ranks.
Hmm... if the problem is a conceptual one, it's a safe bet to leave it to the modders to decide (each rank has 'outgoing' rank which can be defined in the ruleset, by default Rank 1 highest goes to Rank 2 lowest. This is a list, so if there is more than single outgoing, the game checks prerequisites - like officer post availability and/or number of kills*missions? If more than one next rank satisfies the preqs, chooses randomly).
« Last Edit: April 13, 2015, 10:15:22 pm by Dioxine »

Offline DoxaLogos (JG)

  • Colonel
  • ****
  • Posts: 358
  • Squaddie cautiously peering through the breach
    • View Profile
Re: [EXE] OpenXcom Extended
« Reply #276 on: April 14, 2015, 02:34:30 am »
So something like this: https://docs.google.com/spreadsheets/d/1rgHZaZYI7_WQ1-x_vTAmYcYCRpW2VFjPA3-Zfng3_bY/edit?usp=sharing  ?

This is just a reference for a starting point for OXC ranks mapped to OXC Extended sub ranks.  I based it on U.S. Army, because it's what I know more.  I'm certainly not tied to the nationality for the ranks, since X-COM is a international military op.
« Last Edit: April 14, 2015, 02:37:49 am by jgatkinsn »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [EXE] OpenXcom Extended
« Reply #277 on: April 16, 2015, 05:46:11 pm »
Yankes, while this is a bit bold, there's a feature that I would like to see in the game, and that desire grows every day.

We can now have any ships perform special missions (like Terror or Retaliation), but they all will deploy exactly the same crew, because STR_TERROR_MISSION and STR_BASE_DEFENSE aren't related to the ship that drops them. This pretty much kills the concept, since we can't have multiple crews for the job - the landing party is always the same.

Now, what I would like to propose is to ignore deployments like STR_TERROR_MISSION and STR_BASE_DEFENSE and use the same crew as the ship's. This would allow you much more freedom, for example to design several threat levels for alien missions. Besides, why would the landing party use different equipment than what they had on board? (Not that the difference was significant at any point.)

Offline Dioxine

  • Commander
  • *****
  • Posts: 5412
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: [EXE] OpenXcom Extended
« Reply #278 on: April 16, 2015, 05:58:25 pm »
Now, what I would like to propose is to ignore deployments like STR_TERROR_MISSION and STR_BASE_DEFENSE and use the same crew as the ship's. This would allow you much more freedom, for example to design several threat levels for alien missions. Besides, why would the landing party use different equipment than what they had on board? (Not that the difference was significant at any point.)

Yeah I'd second that - separate mission/ufo deployment loadout just makes you copy-paste stuff, and there's little practical use for it.

Offline Yankes

  • Moderator
  • Commander
  • ***
  • Posts: 3194
    • View Profile
Re: [EXE] OpenXcom Extended
« Reply #279 on: April 16, 2015, 07:17:25 pm »
Simply you want flag "ignoreMissionDeploy" in craft? :)

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [EXE] OpenXcom Extended
« Reply #280 on: April 16, 2015, 08:06:57 pm »
Simply you want flag "ignoreMissionDeploy" in craft? :)

Maybe, I don't know the code. :) But yeah, I think so.

Offline Yankes

  • Moderator
  • Commander
  • ***
  • Posts: 3194
    • View Profile
Re: [EXE] OpenXcom Extended
« Reply #281 on: April 16, 2015, 11:09:47 pm »
This will be probably easy to do. I will put it on my TODO list :)

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [EXE] OpenXcom Extended
« Reply #282 on: April 17, 2015, 10:41:53 am »
This will be probably easy to do. I will put it on my TODO list :)

Cool. :) Though please leave the old option open in case someone wants it.

Actually, I would like to have yet another request: assigning equipment by race.
For example:
(not actual code, I don't have the files here)
ship: STR_TERROR_SHIP
rank: alien rank 5
equipment:
- STR_HEAVY_PLASMA
- STR_HEAVY_PLASMA_CLIP
- STR_HEAVY_PLASMA_CLIP
- STR_ALIEN_GRENADE

rank: alien rank 5
race: STR_SECTOID
equipment:
- STR_PLASMA_RIFLE
- STR_PLASMA_RIFLE_CLIP
- STR_PLASMA_RIFLE_CLIP
- STR_ALIEN_GRENADE

So this particular alien is armed with a Heavy Plasma, as long as it's not a Sectoid - in this case, he gets a Plasma Rifle instead.

This mechanics can be used for example to eliminate Sectoids with heavy weapons (like some people envisage them), but my main objective is to allow non-alien enemies to have their own specific weapons in general missions like Retaliation, for example Men in Black using firearms.

Offline Yankes

  • Moderator
  • Commander
  • ***
  • Posts: 3194
    • View Profile
Re: [EXE] OpenXcom Extended
« Reply #283 on: April 19, 2015, 05:00:58 pm »
New version is ready

Update to recent nightly.
I made Solarius Scorch request first because it had biggest `gameplay impact`/`lines of code` ratio :)

Now every ufo have two new properties:
Code: [Select]
ufos:
  - type: STR_UFO_TYPE
    craftCustomDeploy: STR_BATTLESHIP
    missionCustomDeploy: STR_TERROR_MISSION_AND_BASE_RAID
    raceBonus: #bonus stats per race.
      STR_SECTOID: #name of race that bonus apply.
        craftCustomDeploy: STR_BATTLESHIP_SECTOID #override for race
        missionCustomDeploy: STR_TERROR_MISSION_SECTOID #override for race
`craftCustomDeploy` is used when you attack ufo do determine what weapons aliens have (use data form `data` node in aliens deployments).
`missionCustomDeploy` is used when that ufo start mission. All mission will use it (terror/base defense).

I added option to change weapon deploy in alien bases too:
Code: [Select]
alienRaces:
  - id: STR_SECTOID
    baseCustomDeploy: STR_ALIEN_BASE_ASSAULT_SECTOID
Right now you can't override map generation data only weapons/units. Is possible to do it but for now it will skip it.
Another thing is next stage of mission will use only data from mission definition deploy. I had hard time with way is correct/better, ufo data always override alien deploy or next stage deploy is fixed.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [EXE] OpenXcom Extended
« Reply #284 on: April 19, 2015, 05:06:39 pm »
Thank you, thank you, thank you!