OpenXcom Forum

Modding => OpenXcom Extended => OXCE Suggestions DONE => Topic started by: mark617 on January 11, 2018, 07:13:28 pm

Title: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: mark617 on January 11, 2018, 07:13:28 pm
First of all, thank you to everyone who has spent time working on Open Xcom.

I am playing TFTD. I have just a few issues that bother me.

1) I don't like the stat caps of soldiers, and would prefer them all at 100. So, two questions: first of all, it seems all I need to do is change the stat caps in the soldiers.rul file, is this correct? Second, are there any unforeseen consequences I may not be considering?

2) DPL waypoints just feels cheap. Is this done by simply editing in the items.rul file line under DPL ammo Waypoints: 9 to Waypoints: false?

3) There is the ability to remove Psionics from the game as a mod, and I like this, but I would prefer to keep the MC Reader as a usable item. How can I do this but keep everything else out of the game?

4) Is there a mod I may not know about or an easy way to add doors opposite their current location in the Triton and Leviathan (Hammerhead South direction as sole exit is fine)? One set of doors feels cheap when you end up on the right side of the map. What kind of navigator have I employed? I would simply like a double door on the right side of crafts in addition to the current / original placement (so, two 2-tile doors).

5) I know this is against the spirit of the game, and excellent authors like Meridian have stated why they don't like it. I do not want any fancy missions added or anything else, but is there a way to add a parameter that if a nation leaves funding, I can get them back the next month by eliminating all bases within their region? They can start at 0 funding or their minimum, money is not the issue, I am just OCD about my success and I do not want to beat the game. I just want to play and play because I simply enjoy killing aliens!

If infiltration missions didn't eventually have the 100% pact sign aspect regardless of destroying UFOs I would not care, as it would be in my hands, but it is annoying to lose countries even when I do things perfectly. I don't need any fancy text or anything even telling me they have rejoined. Whatever would be the most minimal way to add this function would be awesome, if possible.

Again, thanks to everyone who spends time on this project. It is appreciated!
Title: Re: Couple Basic Questions
Post by: The Reaver of Darkness on January 11, 2018, 08:01:08 pm
1.) That's correct, and the only unforeseen consequence I can think of is that they'll hit the caps sooner. Min and max stats set the range at which they arrive when hired, stat caps are the highest they can get--or rather they can get very slightly higher if they collect extra EXP in the final mission in which they hit the cap.

2.) Edit it to Waypoints: 0. You can see information such as this in the ruleset reference (https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#Items). It doesn't say it in this specific case, but if you look at other things in the reference, you start to get a feel for how it works.

3.) You can set all aliens molecular skill to 0, then remove the MC-Lab and MC-Disruptor from the research tree either by using the delete command or giving the prerequisites that make them impossible to complete. Whichever you choose, you must also remove all of the times that MC-Lab is unlocked by researching a MC alien.

4.) You have to edit the tileset and map, and you might need some drawing skills or copy+pasting skills. More info in this thread (https://openxcom.org/forum/index.php?topic=5503.15).

5.) I have discussed this with Meridian, Warboy, and others, and put in my opinion that it should be possible for modders to change this. I don't think Warboy is going to cave on this one, and I don't think Meridian will be willing to try and figure it out. Probably if we want it to happen, we will need to find someone who can at least figure out how to do it and explain it in terms a programmer can understand.
Title: Re: Couple Basic Questions
Post by: Meridian on January 11, 2018, 08:21:48 pm
5) I don't think there is anything to "figure out"... it can quite easily be implemented exactly as mark617 described... I just said I was not interested in such a feature, that's all.

Give me one more vote and I'll put it on the todo list :P
Title: Re: Couple Basic Questions
Post by: Solarius Scorch on January 11, 2018, 11:11:33 pm
5) I don't think there is anything to "figure out"... it can quite easily be implemented exactly as mark617 described... I just said I was not interested in such a feature, that's all.

Give me one more vote and I'll put it on the todo list :P

Then you can have my vote. :)

I don't care about this feature in vanilla, or any of the mods I play... But it would be useful for new projects and ideas.
Title: Re: Couple Basic Questions
Post by: The Reaver of Darkness on January 12, 2018, 01:14:56 am
I feel similarly. Any nice feature is something I want to be in openxcom, even if I'm not going to use it. But in this case, I do plan to use it, though I'd be more interested in being able to make infiltration missions fail before they succeed. But I'll take what I can get.
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: Meridian on July 29, 2018, 07:19:14 pm
I feel similarly. Any nice feature is something I want to be in openxcom, even if I'm not going to use it. But in this case, I do plan to use it...

Done.

Global variable:
Code: [Select]
allowCountriesToCancelAlienPact: true

If you destroy the alien base that caused a pact, you will get the country back... at the end of the month... unless aliens manage to infiltrate it again in the meantime :P

...though I'd be more interested in being able to make infiltration missions fail before they succeed.

Also done today.
More info: https://openxcom.org/forum/index.php/topic,6456.msg100411.html#msg100411
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: Ethereal on July 29, 2018, 08:01:46 pm
If you destroy the alien base that caused a pact, you will get the country back... at the end of the month... unless aliens manage to infiltrate it again in the meantime :P

And technically, what would it look like? The base will be somehow different from the usual? I understand that can assign anything to "siteType:", but I'm just curious.
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: Meridian on July 29, 2018, 08:12:16 pm
And technically, what would it look like? The base will be somehow different from the usual? I understand that can assign anything to "siteType:", but I'm just curious.

I didn't change anything in the base... it's the same base that always spawned when infiltration was done.
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: Ethereal on July 29, 2018, 08:54:08 pm
I didn't change anything in the base... it's the same base that always spawned when infiltration was done.

I mean, there could be multiple bases in the zone. If they are, say, 3, then the destruction of one of them return country, or have all 3 to destroy?
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: Meridian on July 29, 2018, 08:58:25 pm
I mean, there could be multiple bases in the zone. If they are, say, 3, then the destruction of one of them return country, or have all 3 to destroy?

Each infiltration base makes a pact with exactly 1 country when it is spawned.
This country is remembered.
When the base is later destroyed, that remembered country is liberated.
Other bases don't have any effect.
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: Ethereal on July 29, 2018, 09:03:51 pm
Each infiltration base makes a pact with exactly 1 country when it is spawned.
This country is remembered.
When the base is later destroyed, that remembered country is liberated.
Other bases don't have any effect.

Understood. Thank you!
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: LouisdeFuines on July 29, 2018, 09:41:44 pm
Do I have to turn that feature in the options on?
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: The Reaver of Darkness on July 29, 2018, 11:05:41 pm
Do I have to turn that feature in the options on?
You have to add the line:
Code: [Select]
allowCountriesToCancelAlienPact: trueinto the vars section of the mod.
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: LouisdeFuines on July 30, 2018, 06:14:57 pm
You have to add the line:
Code: [Select]
allowCountriesToCancelAlienPact: trueinto the vars section of the mod.
Excue me, but what is a "vars-section"?

Could you just tell me the name of the file, that must be worked with an the position, where the line hast to be pasted into?

@Meridian, couldn`t this be implemented as an advanced option to the game?
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: Yankes on July 30, 2018, 07:18:45 pm
This is for moders who can balance game around this.
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: Ethereal on July 30, 2018, 08:20:43 pm
Excue me, but what is a "vars-section"?

Could you just tell me the name of the file, that must be worked with an the position, where the line hast to be pasted into?

@Meridian, couldn`t this be implemented as an advanced option to the game?

allowCountriesToCancelAlienPact: true

This is a parameter for the file "vars.rul".
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: LouisdeFuines on July 30, 2018, 08:23:17 pm
allowCountriesToCancelAlienPact: true

This is a parameter for the file "vars.rul".
Okay, got it. Where do I find that file? It isn`t in the OXCE+ folder as far as I had seen.
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: Ethereal on July 30, 2018, 08:33:05 pm
Okay, got it. Where do I find that file? It isn`t in the OXCE+ folder as far as I had seen.

openxcom\standard\xcom1\
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: LouisdeFuines on July 30, 2018, 08:53:48 pm
Found that file. On which position has the entry need to be pasted?
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: robin on July 30, 2018, 09:43:56 pm
What if I changed the type of mission generated from successful infiltration?
Example:

  - type: STR_ALIEN_SUBVERSION  # replaces classic ALIEN INFILTRATION
    points: 150  # Pact score only awarded on month end
    objective: 1
    siteType: STR_SUBVERTED_CORPORATE_HQ # alienbase-like mission site
    spawnZone: 4 # Mission zone for alien bases
    raceWeights: ...
    waves: ...

Would it still work?
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: Meridian on July 30, 2018, 11:07:08 pm
@Meridian, couldn`t this be implemented as an advanced option to the game?

You are not supposed to change this as a user... modders should be doing this.

I'm pretty sure it is NOT supposed to be turned on for PirateZ that you're playing now...

--- posts merged. seriously, 2 minutes apart? ---

What if I changed the type of mission generated from successful infiltration?
Example:

  - type: STR_ALIEN_SUBVERSION  # replaces classic ALIEN INFILTRATION
    points: 150  # Pact score only awarded on month end
    objective: 1
    siteType: STR_SUBVERTED_CORPORATE_HQ # alienbase-like mission site
    spawnZone: 4 # Mission zone for alien bases
    raceWeights: ...
    waves: ...

Would it still work?

I don't know... what does that even do?

But it probably will work... "objective: 1" is important thing here...
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: robin on July 30, 2018, 11:37:46 pm
I don't know... what does that even do?

But it probably will work... "objective: 1" is important thing here...
Well,
STR_SUBVERTED_CORPORATE_HQ would be a mission like an alien base, just with a different terrain.
The rest is 1:1 with vanilla infiltration, besides the names.

The big doubt is about the enemy race that will populate the "alien base".
Normally it is the alien race that succeeds the infiltration.
But I'd need a different race, a human race (maybe with a sprinkle of aliens). I can define this specific race into the alienDeployments (like it is done for Cydonia)... the problem is that I don't know if that option can override the race set from the infiltration mission.

Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: Ethereal on July 31, 2018, 12:52:25 pm
Well,
STR_SUBVERTED_CORPORATE_HQ would be a mission like an alien base, just with a different terrain.
The rest is 1:1 with vanilla infiltration, besides the names.

The big doubt is about the enemy race that will populate the "alien base".
Normally it is the alien race that succeeds the infiltration.
But I'd need a different race, a human race (maybe with a sprinkle of aliens). I can define this specific race into the alienDeployments (like it is done for Cydonia)... the problem is that I don't know if that option can override the race set from the infiltration mission.

No. Only this

Code: [Select]
alienMissions:
  - type: STR_ALIEN_INFILTRATION
    points: 150
    objective: 1
    siteType: STR_CULT_VAULT_MISSION
    spawnZone: 4 #Mission zone for alien bases
....
alienDeployments:
  - type: STR_CULT_VAULT_MISSION
...
    race: STR_CULT

Quote
.. the problem is that I don't know if that option can override the race set from the infiltration mission.

It's not clear-infiltration after infiltration?
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: Meridian on July 31, 2018, 07:44:47 pm
The big doubt is about the enemy race that will populate the "alien base".
Normally it is the alien race that succeeds the infiltration.
But I'd need a different race, a human race (maybe with a sprinkle of aliens). I can define this specific race into the alienDeployments (like it is done for Cydonia)... the problem is that I don't know if that option can override the race set from the infiltration mission.

Yes, you can do that.

What Ethereal described is exactly what you were asking about... if I understand correctly.
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: robin on July 31, 2018, 09:37:08 pm
Yes, you can do that.

What Ethereal described is exactly what you were asking about... if I understand correctly.
Yeah, I was talking about the same thing that Ethereal described.

This feature was on my wishlist, thank you for adding it.
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: DaveQB on September 14, 2018, 02:44:43 pm
I really like this feature. It may create a great sensation of getting an edge against the aliens, or playing a nervous tug-of-war with them (get bac one country, lose another). I'll certainly try it in a future play.
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: Garich on June 08, 2020, 11:43:48 am
Is it works in OXCE 6.5.3 (v2020-05-28) with swithced on "OpenXCom FinalMod pack 2.7"?
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: Solarius Scorch on June 08, 2020, 12:11:29 pm
Is it works in OXCE 6.5.3 (v2020-05-28) with swithced on "OpenXCom FinalMod pack 2.7"?

No, FMP doesn't have this feature.
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: KiethSomataw99 on February 12, 2021, 05:27:15 am
Is it possible for this mod to be compatible with OpenXCOM rather than OpenXCOM extended? Or can you create a mod for that purpose?
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: Solarius Scorch on February 12, 2021, 03:08:16 pm
Is it possible for this mod to be compatible with OpenXCOM rather than OpenXCOM extended? Or can you create a mod for that purpose?

Sorry, which mod? From the context I can't see any mod you could be referring to.
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: KiethSomataw99 on February 12, 2021, 07:43:22 pm
Sorry, which mod? From the context I can't see any mod you could be referring to.

I'm referring to the Liberation mod. Country liberation I think.
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: Solarius Scorch on February 12, 2021, 08:24:07 pm
I'm referring to the Liberation mod. Country liberation I think.

Never heard of this mod. Can't see it on the mod.io portal either.

I guess it's a case of real miscommunication...
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: Meridian on February 12, 2021, 08:40:01 pm
Never heard of this mod. Can't see it on the mod.io portal either.

I guess it's a case of real miscommunication...

It's attached in the first post of this thread.

Is it possible for this mod to be compatible with OpenXCOM rather than OpenXCOM extended? Or can you create a mod for that purpose?

No, it requires OXCE, sorry.
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: KiethSomataw99 on February 13, 2021, 12:29:09 am
But can someone make a copy of that mod that is compatible?
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: Meridian on February 13, 2021, 08:09:10 am
But can someone make a copy of that mod that is compatible?

No.

The mod requires a functionality that is not present in OpenXcom engine.
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: Solarius Scorch on February 13, 2021, 10:20:56 am
It's attached in the first post of this thread.

Ah. :P
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: KiethSomataw99 on February 23, 2021, 01:30:53 am
But what if the game migrates from OpenXCOM vanilla to OpenXCOM Extended? Will it apply to countries infiltrated during vanilla? Also, was wondering about a someone making a mod that makes it so at the end of every month, depending on XCOM vs Alien activity in an infiltrated country with no alien base, there is a chance that the country will renounce its pact with the aliens.

Was also thinking of someone doing a future mod in which to balance the liberation mod out: New Loss Condition - Too Many Countries Infiltrated

Basically if more than 50% of the total sponsors sign pacts with the aliens, the project will be terminated (because the corrupted sponsors are calling for the project to come to the end so that it won't interfere with the aliens' "work"), even if you are running a positive budget and are doing well in battling the aliens.
At the end of each month, on the summary, you'll see the message:
Message in UFO
"Many of the council's sponsors have signed secret pacts with the aliens. You must find a way to either bring the war to an end soon or liberate countries from the invaders, otherwise the project could face termination."
Message in TFTD
"Many of the committee's sponsors have signed secret pacts with the aliens. You must find a way to either bring the war to an end soon or liberate organizations from the invaders, otherwise the funding could face termination."

If by the end of the month the number of currently infiltrated countries reaches over 50%, you'll get the message, following the defeat sequence:
Message in UFO
"A majority of your sponsors have signed pacts with the aliens and unfortunately, they have voted for the council of funding nations to terminate the project. They have convinced the remaining nations to deal with the problem in the same way that they have. We can only hope that we can come to some accommodation with these alien forces, and that the general population will come to terms with the apparently hostile visitors."
Message in TFTD
"A majority of your sponsors have signed pacts with the aliens and unfortunately, they have voted for the committee of funding organizations to terminate funding XCOM. They have convinced the remaining organizations to deal with the problem in the same way that they have. We can only hope that we can come to some accommodation with these ancient forces, and that the general population will come to terms with the aquatic visitors."
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: Meridian on February 23, 2021, 09:27:22 am
But what if the game migrates from OpenXCOM vanilla to OpenXCOM Extended? Will it apply to countries infiltrated during vanilla?

No, it will not apply to already infiltrated countries.
(unless you modify the save manually)

Only to countries that will be infiltrated after you migrate.
Title: Re: [DONE] [Suggestion] Get country back after they sign a pact with aliens
Post by: KiethSomataw99 on February 24, 2021, 05:34:53 am
Damn. I wish there was a way to make it so it would.