Hard Light Productions Forums

Hosted Projects - FS2 Required => Blue Planet => Topic started by: yomi on June 11, 2011, 08:05:51 am

Title: bigger ship's armor
Post by: yomi on June 11, 2011, 08:05:51 am
i noticed that primary weapons, and some secondary weapons are ineffective against larger ships,
but this rule seems to not apply to AI. I can shot for few minutes with maxim at larger ships and do nothing, but AI with subach hl7 can actually deal some damage preaty fast. Is this some kind of bug or is that supposed to work that way?
Title: Re: bigger ship's armor
Post by: Dragon on June 11, 2011, 08:12:11 am
Note, there are ussualy more AI ships than you.
I don't see any other reason why it could be happening.
Also, remember that capship can only be destroyed by weapons with "huge" flag.
Neither you nor AI can kill a capship without such weapons, but they can bring it down to 15% (IIRC).
Title: Re: bigger ship's armor
Post by: yomi on June 11, 2011, 08:40:54 am
i just checked:
1 erinyes AI fighter with maxim, could bring deimos to 89% in 30 seconds.
than i told my wingman to depart and started hiting deimos by myself(ofc i used the same ship and weapon)
after few minutes i managed to destroy every turret and subsystem, but deimos had 88% hp.
I managed to deal only 1% damage in few minutes?
Title: Re: bigger ship's armor
Post by: headdie on June 11, 2011, 09:13:28 am
What difficulty are you playing on?
Title: Re: bigger ship's armor
Post by: yomi on June 11, 2011, 09:43:31 am
What difficulty are you playing on?
normal
Title: Re: bigger ship's armor
Post by: The E on June 11, 2011, 10:46:16 am
i just checked:
1 erinyes AI fighter with maxim, could bring deimos to 89% in 30 seconds.
than i told my wingman to depart and started hiting deimos by myself(ofc i used the same ship and weapon)
after few minutes i managed to destroy every turret and subsystem, but deimos had 88% hp.
I managed to deal only 1% damage in few minutes?

If you concentrated on taking out turrets, that's pretty much what you'd expect to see. If a turret takes damage, that damage is never applied to the ship the turret is mounted on unless a few special flags are used.
Title: Re: bigger ship's armor
Post by: Qent on June 11, 2011, 11:08:29 am
If you concentrated on taking out turrets, that's pretty much what you'd expect to see. If a turret takes damage, that damage is never applied to the ship the turret is mounted on unless a few special flags are used.
I think it's the other way around.
Title: Re: bigger ship's armor
Post by: The E on June 11, 2011, 11:28:31 am
Yeah, you're right. My bad.
Title: Re: bigger ship's armor
Post by: Qent on June 11, 2011, 11:50:03 am
I'm getting the same results. I tried on Insane difficulty. My wingman was an Erinyes with all Maxims and no missiles with BP-General AI. In 30 seconds of firing (and running out of gun energy, by the way), the hostile Deimos was down to 88% hull. I tried the same thing by myself, and the Deimos was completely undamaged after 2 minutes of firing with all power to guns. I didn't target any specific subsystem.
Title: Re: bigger ship's armor
Post by: General Battuta on June 11, 2011, 11:56:02 am
What the...?

This is really weird. What builds are you guys on?
Title: Re: bigger ship's armor
Post by: Qent on June 11, 2011, 12:04:26 pm
7109. I should probably find the latest now. :nervous:
Title: Re: bigger ship's armor
Post by: General Battuta on June 11, 2011, 12:05:59 pm
And can you compare vs 3.6.12 too please?
Title: Re: bigger ship's armor
Post by: Qent on June 11, 2011, 12:25:49 pm
It's the same in 3.6.12 and r7237.
Title: Re: bigger ship's armor
Post by: General Battuta on June 11, 2011, 12:34:27 pm
What the ****.
Title: Re: bigger ship's armor
Post by: The E on June 11, 2011, 12:46:03 pm
That sounds like a rather serious regression there. Gotta check it out myself, I guess.
Title: Re: bigger ship's armor
Post by: yomi on June 11, 2011, 12:51:24 pm
if i remember correct i had similar problem playing original freespace 2, few years ago, in mission "Exodus (FS2)",
Title: Re: bigger ship's armor
Post by: General Battuta on June 11, 2011, 12:55:02 pm
Can you reproduce this issue on retail?  :nervous:
Title: Re: bigger ship's armor
Post by: crizza on June 11, 2011, 12:59:31 pm
On retail, there was some thing, when the damage you inflict upon a target stacks...like the lower the hitpoints of a ship are, the more damage you must inflict, untill you can't destroy it.
Title: Re: bigger ship's armor
Post by: Snail on June 11, 2011, 01:02:01 pm
But that applied to AI as well as the player ("big damage"). This seems to only affect the player.
Title: Re: bigger ship's armor
Post by: The E on June 11, 2011, 01:46:21 pm
Confirmed as only affecting the player.

However, there's a problem here. We can't actually fix this directly, as it seems this behaviour was present in retail as well. Now, granted, it doesn't really make any sense, but there you have it. AI will be more effective at killing Capships than players.

I think I'm going to intro an AI Profiles flag to alter this behaviour.
Title: Re: bigger ship's armor
Post by: headdie on June 11, 2011, 02:02:52 pm
Confirmed as only affecting the player.

However, there's a problem here. We can't actually fix this directly, as it seems this behaviour was present in retail as well. Now, granted, it doesn't really make any sense, but there you have it. AI will be more effective at killing Capships than players.

I think I'm going to intro an AI Profiles flag to alter this behaviour.

Please it would make mission balancing more predictable
Title: Re: bigger ship's armor
Post by: General Battuta on June 11, 2011, 02:15:12 pm
Hahaha what the **** is this

The_E I am genuinely interested to know how this system works on the code level.
Title: Re: bigger ship's armor
Post by: The E on June 11, 2011, 02:29:02 pm
And it's in. Coming soon to a post-7238 nightly near you.

The option is called "$disable weapon damage scaling for player:", and it will disable the rather arbitrary damage scaling the player is subjected to. In retail, a non-huge primary fired by the player was nerfed to 1 percent of its normal damage potential, secondaries were cut down to 5 percent of normal. With this flag active, players will do full damage against big ships, so you'll have to rely on armor.tbl to do any nerfing you feel necessary.

Hahaha what the **** is this

The_E I am genuinely interested to know how this system works on the code level.

Well, there's not much to it, really. When a  "huge" or larger ship gets hit by a weapon that is not "huge", and if that weapon was fired by a player, the damage would get scaled down. In code terms, this is what it looks like:
Code: [Select]
// if the weapon is a small weapon being fired at a big ship
if( is_big_damage_ship && !(wip->wi_flags & (WIF_HURTS_BIG_SHIPS)) ){

// if the player is firing it
if ( from_player && !(The_mission.ai_profile->flags2 & AIPF2_PLAYER_WEAPON_SCALE_FIX)) {
// if it's a laser weapon
if(wip->subtype == WP_LASER){
total_scale *= 0.01f;
} else {
total_scale *= 0.05f;
}
}

// scale based on hull
if(hull_pct > 0.1f) {
total_scale *= hull_pct;
} else {
return 0.0f;
}
}
Title: Re: bigger ship's armor
Post by: General Battuta on June 11, 2011, 02:30:07 pm
What the ****  :eek2:
Title: Re: bigger ship's armor
Post by: -Norbert- on June 11, 2011, 02:32:40 pm
Was the retail AI really THAT incompetent that we never noticed this before?
Title: Re: bigger ship's armor
Post by: Scotty on June 11, 2011, 04:21:25 pm
Killing the Tiamat just got easier.
Title: Re: bigger ship's armor
Post by: SypheDMar on June 11, 2011, 06:44:59 pm
Only if you manually turn it off.
Title: Re: bigger ship's armor
Post by: Qent on June 11, 2011, 06:50:09 pm
Weirdest "feature" since beam whack. :P
Title: Re: bigger ship's armor
Post by: LordPomposity on June 11, 2011, 11:32:37 pm
Killing the Tiamat just got easier.

Well, there goes one of the only two reasons to ever take the EMP Advanced in the FS2 main campaign.  :p

Granted, the other one is in the same mission.
Title: Re: bigger ship's armor
Post by: General Battuta on June 11, 2011, 11:37:01 pm
Killing the Tiamat just got easier.

Well, there goes one of the only two reasons to ever take the EMP Advanced in the FS2 main campaign.  :p

Granted, the other one is in the same mission.

What are you guys talking about? Nothing is going to change about this behavior. It's retail default and will stay.

Only way it'll be altered is in mods which add this new AI Profiles option.
Title: Re: bigger ship's armor
Post by: The E on June 12, 2011, 03:43:03 am
And the code that made it impossible to kill huge ships with non-huge weapons isn't affected by this in the slightest. Activating this option only restores the effectiveness of the player weapons.
Title: Re: bigger ship's armor
Post by: Snail on June 12, 2011, 05:10:02 am
And it took how long for us to discover this? :blah:
Title: Re: bigger ship's armor
Post by: LordPomposity on June 12, 2011, 07:26:34 am
Just failing at reading comprehension as usual. :p
Title: Re: bigger ship's armor
Post by: headdie on June 12, 2011, 07:30:07 am
And it took how long for us to discover this? :blah:

Agreed you would have thought at over the ten year mark we would have known them all, but then it is one of those things you have to be looking for it to find it.  Good work everyone involved.
Title: Re: bigger ship's armor
Post by: Commander Zane on June 12, 2011, 08:25:46 am
This thread gives me about as many laughs as the void glitch. :lol:
I think the main reason people wouldn't notice this is because if you're not flying something that's meant to kill a big ship, you're not really trying to kill that ship, instead you're working on disabling or disarming it. So you're not looking at how much hull integrity you're taking off of it, because that's not the goal.
If you're flying a bomber, then you're trying to kill a big ship, so you're going to make it go boom.

At least I think people don't try to kill capitals in a fighter. :nervous: Least I don't.
Title: Re: bigger ship's armor
Post by: headdie on June 12, 2011, 08:44:25 am
At least I think people don't try to kill capitals in a fighter. :nervous: Least I don't.

cruisers and corvettes are fair game but yer a destroyer is a tall order even for Alpha 1 :D
Title: Re: bigger ship's armor
Post by: Commander Zane on June 12, 2011, 08:55:03 am
As far as Corvettes go I'll destroy the beam cannons but leave the rest of it for the other ships to kill.
But yes Cruisers I'll space with Tempest strafing runs.
Title: Re: bigger ship's armor
Post by: Snail on June 12, 2011, 10:35:04 am
No wonder about the Hawkwood.
Title: Re: bigger ship's armor
Post by: Trivial Psychic on June 12, 2011, 06:19:58 pm
I'll often try to dish out as much punishment as possible, so that when a friendly cap-ship takes it down, I still get the kill for it.  In FS2 I always make a run against the Belasarius and blast it with Tempests and Subach fire until the Psamtik beams it to death.  Since cap-ship beams don't get the credit for kills, I get all the credit.  :)
Title: Re: bigger ship's armor
Post by: General Battuta on June 12, 2011, 06:20:53 pm
I'll often try to dish out as much punishment as possible, so that when a friendly cap-ship takes it down, I still get the kill for it.  In FS2 I always make a run against the Belasarius and blast it with Tempests and Subach fire until the Psamtik beams it to death.  Since cap-ship beams don't get the credit for kills, I get all the credit.  :)

Yeah I did a run getting kill credit on (iirc) almost every hostile capship in FS2, was pretty fun times
Title: Re: bigger ship's armor
Post by: MatthTheGeek on June 12, 2011, 06:52:42 pm
Isn't that now much harder now that beams count toward damage scored by ships ?
Title: Re: bigger ship's armor
Post by: NGTM-1R on June 12, 2011, 06:53:40 pm
Isn't that now much harder now that beams count toward damage scored by ships ?

I think this is a flag.
Title: Re: bigger ship's armor
Post by: General Battuta on June 12, 2011, 07:00:43 pm
Isn't that now much harder now that beams count toward damage scored by ships ?

They don't, like NGTM1R said this is an optional flag.
Title: Re: bigger ship's armor
Post by: Parias on June 12, 2011, 08:55:24 pm
At least I think people don't try to kill capitals in a fighter. :nervous: Least I don't.

Silent Threat retail, anyone? :)

(Yeah, yeah, I know, technically FS1....)
Title: Re: bigger ship's armor
Post by: -Norbert- on June 13, 2011, 02:53:49 am
Let's go even further back. FS1.
When the Bastion forces it's way past that demon, I usually took out the demons engines as soon as the area was clear of bombers and then after the Bastion warped out, finished off the demon with my tiny little Valykrie.
Title: Re: bigger ship's armor
Post by: fightermedic on June 13, 2011, 05:01:06 pm
now this is really weird, great find btw
Title: Re: bigger ship's armor
Post by: Droid803 on June 13, 2011, 11:04:17 pm
In FS1, there's no damage scaling at all.
Not even the "big ship" damage reduction.

AFAIK, that is.
Title: Re: bigger ship's armor
Post by: Meneldil on July 12, 2011, 06:09:35 pm
And it's in. Coming soon to a post-7238 nightly near you.

The option is called "$disable weapon damage scaling for player:", and it will disable the rather arbitrary damage scaling the player is subjected to. In retail, a non-huge primary fired by the player was nerfed to 1 percent of its normal damage potential, secondaries were cut down to 5 percent of normal. With this flag active, players will do full damage against big ships, so you'll have to rely on armor.tbl to do any nerfing you feel necessary.

Hahaha what the **** is this

The_E I am genuinely interested to know how this system works on the code level.

Well, there's not much to it, really. When a  "huge" or larger ship gets hit by a weapon that is not "huge", and if that weapon was fired by a player, the damage would get scaled down. In code terms, this is what it looks like:
Code: [Select]
// if the weapon is a small weapon being fired at a big ship
if( is_big_damage_ship && !(wip->wi_flags & (WIF_HURTS_BIG_SHIPS)) ){

// if the player is firing it
if ( from_player && !(The_mission.ai_profile->flags2 & AIPF2_PLAYER_WEAPON_SCALE_FIX)) {
// if it's a laser weapon
if(wip->subtype == WP_LASER){
total_scale *= 0.01f;
} else {
total_scale *= 0.05f;
}
}

// scale based on hull
if(hull_pct > 0.1f) {
total_scale *= hull_pct;
} else {
return 0.0f;
}
}
Are you sure that completely disabling the first damage scaling is the best choice? If I'm reading this correctly, then the second damage reduction, the one that applies to everyone, has a rather moderate effect: in worst case scenario, if you try shooting down a Deimos from 100% hull integrity all the way to 10%, it'll take 10/9 log 10 (= approx. two and a half) as much time from what the raw hitpoint count would suggest. The first reduction on the other hand makes it's hull virtually invulnerable to anything without the "huge" flag.
Another arguably reasonable solution could be to impose a reduction similar to the first one on both the player and the new, (very much) improved AI. So perhaps it'd be better to allow for more customizability via flags in this case.

p.s. sorry for replying to such an old post, but I just saw it, and it's an interesting topic
Title: Re: bigger ship's armor
Post by: The E on July 12, 2011, 06:20:26 pm
Quote
Are you sure that completely disabling the first damage scaling is the best choice?

I think you are misunderstanding the problem and the solution that was implemented. The first scaling, the player-only one, is configurable via the AI Profiles option introduced, the second scaling option is kept due it being expected behaviour.

Further customization can and should be done via armor.tbl.
Title: Re: bigger ship's armor
Post by: Meneldil on July 12, 2011, 07:39:22 pm
No, but sorry if I wasn't clear enough ("completely disabling" was a rather wrong choice of words for "allowing only completely disabling...").
And "misunderstanding the problem" is subjective, which was more or less my point. You could say the player deals only 1% of the damage he should deal, or you could say that everybody else deals 10000% of what they should.
Do note that from the Retail's perspective the second one makes more sense: the amount of damage the player can inflict is the same in both the Retail and the mods, and is what the developers intended. What changes is the amount of damage the AI can inflict, and that happened due to it's later improvements. That's why I said one could argue that a better way of restoring the balance is restricting the AI too, and not... unrestricting the player.
Now, if you can simulate that by using armor.tbl (that is, if you can globally scale down the damage big ships take from primaries and (independently) small secondaries), then great, and I apologize.
And in that case, for what little it's worth, I would definitively recommend flagging the player-specific restriction away, and imposing a global, potentially milder one. Otherwise the "big ships" become far too vulnerable to the Maxim+Tempest spam for my taste, especially if their hull strength is above say, 50%. But ultimately I guess it is a matter of taste.
Title: Re: bigger ship's armor
Post by: Qent on July 12, 2011, 09:39:40 pm
And "misunderstanding the problem" is subjective, which was more or less my point. You could say the player deals only 1% of the damage he should deal, or you could say that everybody else deals 10000% of what they should.
Or better yet, leave it in the control of the modder to go either way, which is what has been done.

Do note that from the Retail's perspective the second one makes more sense:
For Retail, the AI should do 100x the damage that a player does with a small gun to a big ship.

the amount of damage the player can inflict is the same in both the Retail and the mods, and is what the developers intended. What changes is the amount of damage the AI can inflict, and that happened due to it's later improvements. That's why I said one could argue that a better way of restoring the balance is restricting the AI too, and not... unrestricting the player.
For new mods like WiH that use much smarter AI, this is probably true. Which is why I suspect that they will probably use your solution.

Now, if you can simulate that by using armor.tbl (that is, if you can globally scale down the damage big ships take from primaries and (independently) small secondaries), then great, and I apologize.
You can.

And in that case, for what little it's worth, I would definitively recommend flagging the player-specific restriction away, and imposing a global, potentially milder one. Otherwise the "big ships" become far too vulnerable to the Maxim+Tempest spam for my taste, especially if their hull strength is above say, 50%. But ultimately I guess it is a matter of taste.
Some mods will probably do this, but Retail must play the same as always.
Title: Re: bigger ship's armor
Post by: Meneldil on July 12, 2011, 11:46:14 pm
And "misunderstanding the problem" is subjective, which was more or less my point. You could say the player deals only 1% of the damage he should deal, or you could say that everybody else deals 10000% of what they should.
Or better yet, leave it in the control of the modder to go either way, which is what has been done.
Which is what I suggested in my first post ;)
Obviously, I wasn't aware what scale armor.tbl operates on, and now I see there's a FreeSpace Wiki entry on it... well, that's embarrassing *sigh*
So yes, I see it's very much doable, although in a somewhat tiresome, but really flexible way. That table's a brilliant addition.

Basically, it boils down to your "you can" and my "then great, I apologize", which I do mean.

Quote
Some mods will probably do this, but Retail must play the same as always.
In Retail that's hardly a problem, since it's AI lacks the necessary tenacity, but a WiH-style Maxim attack by a wing of four crafts firing a quad bank for fifteen seconds will reduce an Orion class destroyer from 100% down to 66% hull integrity. Which I think is bad. Of course, it hopefully wouldn't be allowed to happen in a well designed campaign (such as WiH), but arguably it shouldn't be possible at all.
Title: Re: bigger ship's armor
Post by: assasing123 on July 13, 2011, 07:15:17 am
is it possible to disable this "silly gameplay trick" behavior as to make the game more realist? i don't see any reason why a small ship cannot do enough damage over time to a capital ship to destroy it, and neither why should  the player weapons do any less damage than other ships.

how can i disable BOTH things for any mod, retail or anything i play with? can this be set to a parameter on the launcher?
Title: Re: bigger ship's armor
Post by: MatthTheGeek on July 13, 2011, 07:42:35 am
In Retail that's hardly a problem, since it's AI lacks the necessary tenacity, but a WiH-style Maxim attack by a wing of four crafts firing a quad bank for fifteen seconds will reduce an Orion class destroyer from 100% down to 66% hull integrity. Which I think is bad. Of course, it hopefully wouldn't be allowed to happen in a well designed campaign (such as WiH), but arguably it shouldn't be possible at all.
I don't see what's wrong with that. Think of it as firing multiple anti-material sniper rounds on a tank at the same rate. At some point penetration will wreak your tank's systems.
Title: Re: bigger ship's armor
Post by: The E on July 13, 2011, 07:45:42 am
how can i disable BOTH things for any mod, retail or anything i play with? can this be set to a parameter on the launcher?

Only by editing the mods' table files. And no, this will never, ever be a launcher option, due to the extreme gameplay-breaking consequences this would have. In addition, the fact that only appropriately powerful weapons can be used to destroy capital ships is such a fundamental gameplay design choice that removing it would be very, very stupid of us (Not to mention a violation of SCP policy #1, "Don't **** with retail"). Mods can and have gone other ways, but it's not something we can or want to enforce through code changes.
Title: Re: bigger ship's armor
Post by: Meneldil on July 13, 2011, 10:55:03 am
In Retail that's hardly a problem, since it's AI lacks the necessary tenacity, but a WiH-style Maxim attack by a wing of four crafts firing a quad bank for fifteen seconds will reduce an Orion class destroyer from 100% down to 66% hull integrity. Which I think is bad. Of course, it hopefully wouldn't be allowed to happen in a well designed campaign (such as WiH), but arguably it shouldn't be possible at all.
I don't see what's wrong with that. Think of it as firing multiple anti-material sniper rounds on a tank at the same rate. At some point penetration will wreak your tank's systems.
Nothing at all if you choose to believe so. You can certainly use technobable to justify going either way. You could also claim that the Retail's reduction wasn't done for some conceptual reasons, but purely for mission balancing ones. I did say it's a matter of taste.
And as for the above mentioned situation, I find it distasteful both because I don't want the Orion to get skewered by fighter mounted canons, and becouse such an attack can be made almost unstoppable. Fighters jump in, shoot until the defenders start closing in, jump out.
(I'll admit however that the BP's Little Devil AI doesn't really come close to the projected 66%, it's closer to 80. So either they have energy management issues, or I screwed up the numbers. But when I test it with mk 2 Hercs, they do exactly as expected, at least for the first 15 seconds.)
Title: Re: bigger ship's armor
Post by: MatthTheGeek on July 13, 2011, 11:04:24 am
And as for the above mentioned situation, I find it distasteful both because I don't want the Orion to get skewered by fighter mounted canons, and becouse such an attack can be made almost unstoppable. Fighters jump in, shoot until the defenders start closing in, jump out.
Have you really played WiH ? Fighters mounting maxims are good, but they're far to be the overwhelming nigh-invincible you make it sound like. Capships in BPverse have active armor that can resist a fair amount of those, and Kents will close in and dispatch those long before they can do any really significant damage on their own.

Large, sustained fire of Maxim will drain hull fast, but that's true of everything, right ?
Title: Re: bigger ship's armor
Post by: Meneldil on July 13, 2011, 11:25:54 am
Have you really played WiH ? Fighters mounting maxims are good, but they're far to be the overwhelming nigh-invincible you make it sound like.
That's because WiH doesn't allow them to be.
You said "I don't see what's wrong with that", and I replied with what I think is wrong with that. And it certainly didn't involve me saying "look at WiH, it's wrong like that" . ;)
So to sum up what I wanted to say: yes, it's a matter of taste and of course that the balance issues can be resolved by a good mission design. But I still believe it wouldn't be the best choice of settings and that the point (although obviously and admittedly not really a strong one) can be made against it. However, I don't know whether this topic was the best place to do it; sorry if it wasn't.
Title: Re: bigger ship's armor
Post by: assasing123 on July 14, 2011, 09:06:53 pm
how can i disable BOTH things for any mod, retail or anything i play with? can this be set to a parameter on the launcher?

Only by editing the mods' table files. And no, this will never, ever be a launcher option, due to the extreme gameplay-breaking consequences this would have. In addition, the fact that only appropriately powerful weapons can be used to destroy capital ships is such a fundamental gameplay design choice that removing it would be very, very stupid of us (Not to mention a violation of SCP policy #1, "Don't **** with retail"). Mods can and have gone other ways, but it's not something we can or want to enforce through code changes.

true it would "break" gameplay for mods, but could be a single player flag for player tastes, i m not saying it should be enforced at all, and sorry not being mean "In addition, the fact that only appropriately powerful weapons.... etc" it's bull****,  there is no reason a player or fighter cannot finish a capital ship with its primaries, the "big" weapons will still be essential since the ammount of damage they output will always be much more effective than just firing your small guns.

either way, then could you illuminate me on how to exactly modify or what to modify as to disable said game behavior? i have done VERY small modding in FS but at least i know how to not screw up everything :P so i could appreciate some insight into what table or where to find those modifiers and edit them.