OpenXcom Forum

Modding => Work In Progress => Topic started by: The Reaver of Darkness on February 19, 2017, 06:14:40 am

Title: [DONE] Making more UFO sizes attack your base
Post by: The Reaver of Darkness on February 19, 2017, 06:14:40 am
I'm sure this has been discussed before but I can't figure out what keywords to use to find it.

I want more UFO sizes to attack your base, so it's not always a battleship, especially earlier on. If I could make first or second-month attacks tend toward being a large scout, then there'd be some purpose for installing 1-2 missile defense early in the game. As it stands, it's plasma or fusion defense, before that no point in putting up any at all. Also, battleships traveling 5000 knots have a high chance of avoiding detection all the way to your base, while any slower ship has a much higher chance of being detected in transit, giving you a chance to react and shoot it down. Lastly, most ships can be caught by Firestorm but battleship can only be caught by Avenger.

Ideally I'd like to be able to make all of these changes:
1.) make final retaliation ship spawn type vary
2.) make ship type choice weighted based on progression (maybe alien tech level)
3.) make alien deployment depend on the attacking ship

If I can do at least the first piece, I'll be happy. If the attacking ship varied between battleship and terror ship, there's no need to change the deployment since their crews are roughly equal, but the hit points of the incoming ship would depend greatly on which ship was attacking you.
Title: Re: Making more UFO sizes attack your base
Post by: Hobbes on February 19, 2017, 06:30:55 am
Ideally I'd like to be able to make all of these changes:
1.) make final retaliation ship spawn type vary
2.) make ship type choice weighted based on progression (maybe alien tech level)
3.) make alien deployment depend on the attacking ship

1) is possible, you just need to create several Retaliation alienMissions and assign to each a different ufo. Then you set the missionScript with research triggers for each Retaliation to start/end (like Alien Origins/Martian Solution/etc.). The issue is that this only applies to the scripted Retaliations and not those who are spawned from ufo shootdowns, and in that case the Retaliation is chosen randomly from all the missions tagged with objective 4.

3) is currently impossible
Title: Re: Making more UFO sizes attack your base
Post by: The Reaver of Darkness on February 19, 2017, 08:09:54 am
3) is currently impossible

Neat stuff!

I was taking a peek at the missionScripts file and I see this:
Code: [Select]
  - type: beginnerRetaliation
    missionWeights:
      0:
        STR_ALIEN_RETALIATION: 100

I wonder: is it possible to design my own retaliation missions including the attack on the base plus its own unique deployment section, with the missionWeights rule determining which mission is selected?


edit: I have successfully made a terror ship attack my base. I think I made the game weight terror ships pretty high on both research retaliation as well as difficulty retaliation. It's a push in the right direction, but still I think the majority (if not vast majority) of retaliation missions will be triggered by shooting down UFOs, which is why I really wish there was a ruleset to declare stats relating to that missionScript. It remains undeclared despite being one of the most important missionScripts in the game. We also need a way to determine a mission's choice of deployment and map, including if it's an X-Com base assault. It'd be cool to then have a way to determine a unique crashed state based on what weapons were used against a craft, or how much damage it sustained above its crash threshold. This would be useful both for making unique craft weapons with effects other than damage as well as determining things like how many aliens get through when your defenses fail to shoot down the alien ship.
Title: Re: Making more UFO sizes attack your base
Post by: Meridian on February 19, 2017, 11:15:58 am
1) see Hobbes' answer

2) in mission script, you can use either game month and/or locked/unlocked research to affect which mission -- from 1) -- to spawn

3) is available in OXCE/OXCE+

You can define different weapon loadouts for a landing/crash site and for a mission site (e.g. base defense).
You can also define them differently for each race if you want.

Code: [Select]
ufos:
  - type: STR_UFO_TYPE
    craftCustomDeploy: STR_BATTLESHIP_1 #override craft default weapon deploy.
    missionCustomDeploy: STR_TERROR_MISSION_2 #override mission default weapon deploy.
    raceBonus: #bonus stats per race.
      STR_SECTOID: #name of race that bonus apply.
        craftCustomDeploy: STR_BATTLESHIP_3 #override craft default weapon deploy.
        missionCustomDeploy: STR_TERROR_MISSION_4 #override mission default weapon deploy.

4)

It'd be cool to then have a way to determine a unique crashed state based on what weapons were used against a craft, or how much damage it sustained above its crash threshold. This would be useful both for making unique craft weapons with effects other than damage as well as determining things like how many aliens get through when your defenses fail to shoot down the alien ship.

The missions are easy enough already.
Don't think any developer will agree to implement something to make the base defense even easier.
Title: Re: Making more UFO sizes attack your base
Post by: The Reaver of Darkness on February 19, 2017, 11:34:53 am
Don't think any developer will agree to implement something to make the base defense even easier.
Who says it'll be easier?Being able to change it will allow for making it harder as well! But what I want to do is make it more variable. If I wanted to make it easier, I could simply change the deployment to put fewer aliens in. What I really want to do is make a small number of base defenses have a non-zero usefulness.
Title: Re: Making more UFO sizes attack your base
Post by: Meridian on February 19, 2017, 02:14:08 pm
Who says it'll be easier?Being able to change it will allow for making it harder as well!

Uhm... how?
Title: Re: Making more UFO sizes attack your base
Post by: Nord on February 19, 2017, 03:59:45 pm
As example - early cruiser retaliations with 6-7 enemy.
Title: Re: Making more UFO sizes attack your base
Post by: Meridian on February 19, 2017, 04:03:00 pm
How is that harder than (current) early battleship with 20+ enemies?
Title: Re: Making more UFO sizes attack your base
Post by: yrizoud on February 19, 2017, 05:00:21 pm
It's harder than "no battleship retaliation ever, because you can prevent them entirely when you know the game internals"
Title: Re: Making more UFO sizes attack your base
Post by: Meridian on February 19, 2017, 05:14:05 pm
Fine, feel free to do it... just wanted to say I don't see any use for that.

- If your knowledge of xcom internals is so deep you know how to prevent (early) retaliation missions (you can't prevent late ones), you wouldn't be looking for easy-ass ones I guess... but maybe I'm wrong and people do indeed want to play base defense which feels like small/medium scout on easy difficulty
- Also, early on (before you have at least 3-4 bases), the chance that the retaliation will spawn in your region is tiny... and even if it does, the chance that they will find your tiny radar outpost base is small too

But yeah, go ahead... take away from us the only way how an experienced player can actually lose the game: https://openxcom.org/forum/index.php/topic,5287.0.html
Title: Re: Making more UFO sizes attack your base
Post by: The Reaver of Darkness on February 19, 2017, 08:11:37 pm
But yeah, go ahead... take away from us the only way how an experienced player can actually lose the game: https://openxcom.org/forum/index.php/topic,5287.0.html
I'm not trying to lose the game. I prefer to see my mistakes building up, rather than suddenly losing and not knowing what happened. But my modding efforts won't take anything away from you, so I don't see why you object so strongly. If you think my mods are too easy, you can just not install them. There are plenty of hard-mode mods for you to use.
Title: Re: Making more UFO sizes attack your base
Post by: Meridian on February 19, 2017, 08:29:15 pm
I was just trying to understand how it can make the game harder... and nobody really answered yet, or I'm too stupid to understand, also possible. I still think it only makes the game easier.

As for the link... I was just trying to use it as (positive!) example. I haven't installed any of your mods yet, so I can't say if they make the game easier or not. And that's not even the point... why do we digress? You can make any mods you wish, that's what modding is all about.

So, I'll repeat my question again:
If we implement a feature that decreases the number of aliens spawned in base defense mission based on the damage taken... how can it be used to make the game harder (or same difficulty), not easier?

EDIT: this is the original statement that caught my attention:

Who says it'll be easier?Being able to change it will allow for making it harder as well!
Title: Re: Making more UFO sizes attack your base
Post by: The Reaver of Darkness on February 19, 2017, 09:33:13 pm
So, I'll repeat my question again:
If we implement a feature that decreases the number of aliens spawned in base defense mission based on the damage taken... how can it be used to make the game harder (or same difficulty), not easier?
I didn't say anything about implementing a feature that decreases number of aliens. I want the power to choose how many aliens spawn in varying situations, to make it not always the same but differ based on interesting factors.

The part I mentioned about decreasing aliens based on damage to the incoming ship was but one point among several around this topic, and even that could be used to make the game harder if it gave the modder enough control. You could make MORE aliens drop out of a craft that was almost destroyed, if for whatever reason that's what you wanted to do.

The way I'd use it might involve making an even bigger and scarier UFO with even more aliens that only spawns in late game, has a high chance of making it through your defenses, but if you shoot at it enough you might reduce the aliens coming in to numbers you can handle.
Title: Re: Making more UFO sizes attack your base
Post by: Nord on February 19, 2017, 09:43:57 pm
Or you can make so many aliens deployed from almost destroyed ship as now they are deployed total. And bigger amount from undamaged. Or, maybe, heavy units from undamaged ship, as additional sectopod with normal cyberdisc-sectoid crew.
I'm just agree that now any type of defense except blaster(or pwt in tftd) are completely useless. Yes, someone can build 10 - 15 laser defense modules, but it is rare situation. And rare player mind state, i think. ;D
Title: Re: Making more UFO sizes attack your base
Post by: The Reaver of Darkness on February 19, 2017, 09:51:49 pm
Yeah, in fact that's a pretty good idea! A mothership which spawns only once per game, when the aliens start to think you're about to win and they want to make one last ditch attempt to remove you from their (your) planet. The higher your difficulty, the larger and stronger the ship.

On superhuman, you'd need so many defense facilities to shoot it down that you'd have to cannibalize significant parts of your base. But if you can damage it halfway then half the aliens arrive dead and the mission is still easier. It'll always target your largest base but if you lose that base you can still probably win the game. Not too rough, but gives the aliens sort of a "backed into a corner" attitude. On beginner, the mothership would be barely stronger than the battleship.

The different power levels of the mothership could be determined by making five different ships which carry the same name but show on different difficulty settings.


Yes, someone can build 10 - 15 laser defense modules, but it is rare situation. And rare player mind state, i think. ;D
I did it once though. I used to like the sound the laser defense made so much that I made a base called LaserFence and made the border of the base all laser defenses. I never got to see the thing in action, unfortunately.

Yes, it has always bothered me the binary nature of base attacks. Either they all get in or none of them do. I want some middle ground, so there's a reason to ever install defenses before you have fusion defenses and a grav shield.
Title: Re: Making more UFO sizes attack your base
Post by: Meridian on February 19, 2017, 10:06:28 pm
I didn't say anything about implementing a feature that decreases number of aliens.

I don't know how else to read this:

This would be useful both for making unique craft weapons with effects other than damage as well as determining things like how many aliens get through when your defenses fail to shoot down the alien ship.

But I'll stop now, I have nothing more to say.
Title: Re: Making more UFO sizes attack your base
Post by: The Reaver of Darkness on February 19, 2017, 10:55:04 pm
I don't know how else to read this:

But I'll stop now, I have nothing more to say.
I get what you're saying, but you're cherry-picking my words. I'm not trying to be argumentative but I think this is an important point. I did talk about reducing aliens. That was just one tiny part of my tirade, and it isn't representative of the general idea I was trying to get across. It's entirely reasonable if you felt that I was attempting to make the game easier and I'll tell you it wasn't my intention to convey that, but the more important point is that I can play an easier game if I want to, and you have no good excuse to object to my questions on the basis of how I like to play the game. It's good if you choose to disagree and play your way, fine if you think you're a better player, but I felt like my post was under attack when you said:
The missions are easy enough already.
Don't think any developer will agree to implement something to make the base defense even easier.

If I am asking for a feature that can allow me as a modder to make my game easier, does that really make my request any less valid?
Title: Re: Making more UFO sizes attack your base
Post by: HelmetHair on February 26, 2017, 08:02:16 pm
Geez Meridian when did you become such a blatant dick about everything?

You used to be so kind to people. Now, you just shit on everything. Like thread after thread after thread of shitting all over people for no reason. I see you constantly implying that there is only one way to play a game while you actively work very hard to expand features for that WERE NOT IN THE ORIGINAL GAME! WTF cognitive dissonance! It seems that anything deviating from what you think is ideal is worth sniping at the poster about in the most asinine shit hearted way. Why?

Reaver had an early base defense and ate it hard.... it happens. Maybe he is wanting to have more than one option as far as how Alien Retaliation missions work? Nitpicking phrasing to be "right" makes you look like a jackass. You are NOT a jackass, why are you acting like one?

Maybe you have some personal shit going on in your life, but seriously You are NOT acting like the neat LPer and modder I brocrushed on.

The fuck dude?
Title: Re: Making more UFO sizes attack your base
Post by: Meridian on February 26, 2017, 10:13:17 pm
Yeah, makes me really sad to read this.
(And I was NOT nitpicking, he said it clearly and several times.)

But as you may have noticed, in the last few days, my activity on the forum has decreased significantly; and I have completely abandoned discord forum too.

Comments, where I "allow myself" to disagree with someone have caused shitstorms a lot more recently than before (and I have disagreed with people since I can remember). So, in the interest of the community, I will shut up completely and not say anything with even a slightest hint of disagreement, ever again; and will use my newly gained time constructively instead, to continue developing OXCE+. Too bad I won't be able to get that valuable feedback as before from all the discussions, where people disagreed with each other. Good times, past times.

Cheers,
Meridian
Title: Re: Making more UFO sizes attack your base
Post by: The Reaver of Darkness on February 27, 2017, 08:46:43 am
Hey I like the heated discussion, just as long as everybody's heated comment is accepted by everyone else! Agree to disagree? Doesn't mean you can't tell 'em how much of an idiot they are for thinking differently! :D

To be honest, I just want base defense missions to be more scalable. How easy or hard they are is something I can easily balance later once I have that scalability. As it stands there's little I can change, and that's what bothers me. If all I wanted was to make it easier or harder, I need only edit the attributes of the battleship, the defense facilities, or the base defense deployment.
Title: Re: Making more UFO sizes attack your base
Post by: HelmetHair on February 27, 2017, 09:11:48 am
Meridian,

bad phrasing on my part.

Disagreement is fine and actually intellectually healthy. You've disagreed with me publicly more than once and were polite about your thoughts, a perfect gentleman and a total bro. It is not even the words themselves but the tone here recently so very angry, dismissive, trite, and impatient.

 I'm actually a little concerned. You, through your labors have brought so much joy into something I thought I was alone in enjoying in xcom. Over literally years I have come to know your writing and natural tone and inflection, not you as a person but how you express yourself in our special corner of the world. As stated ive noticed a changed recently that hurts the soul because of what you as Meridian represent in my eyes as a community leader.


I AM NOT a model internet citizen and won't pretend to be and if my post came across as a correction, please know it is not. I'm not your daddy and it ain't my place. I will give you feedback and accept in and all vitriol in honest discourse because unlike you...I am a jackass...professional top tier. The silencing of your voice is unacceptable to me and I don't want that and in all reality your opinion is an actually expert opinion and the community does matter.

however, you don't owe us shit. we are not entitled to make you crazy and to drive you into some self imposed exile over "disagreement".

In short; fuck the haters, but please don't be a dick.

I am going to break protocol and say my name is Alex and I'm here to be whatever you need because I believe you are the community and deserve to feel whole and accepted within it.

,only the best

-HH