Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Mobius on May 29, 2009, 02:08:27 pm

Title: Getting rid of integrity percentages...
Post by: Mobius on May 29, 2009, 02:08:27 pm
FreeSpace makes use of integrity percentages, which aren't used in most games. Overall, it's much more common to see bars and/or different colors.

I'd like to know if it may be possible to replace percentages with colored bars(green = good ---> red = bad) or with bars similar to the ammo/energy gauges the SCP has already implemented.

It would make the game look like a more realistic representation of space battles, with little to poor influence by Maths. Think about a warship whose integrity is reduced by 2 every time a given weapon hits it... if it has, let's say, 9% hull left, we all know it'll drop to 7, 5, 3, 1 and then 0. This system kills the unpredictability factor, which may be a good one.

Thanks to bars/colors, it will be possible to come out with reliable estimations instead of mere numbers. The option may be chosen via Launcher, just like the ballistic ammo gauge.
Title: Re: Getting rid of integrity percentages...
Post by: General Battuta on May 29, 2009, 02:21:24 pm
I like the idea, but I disagree that it should be launcher-chosen; this should be a table setting on a per-mod basis, in case some projects want to hide ship integrity from exact player view.
Title: Re: Getting rid of integrity percentages...
Post by: karajorma on May 29, 2009, 02:55:12 pm
AFAIK there's no reason this can't be scripted right now.
Title: Re: Getting rid of integrity percentages...
Post by: Mobius on May 29, 2009, 05:17:19 pm
I like the idea, but I disagree that it should be launcher-chosen; this should be a table setting on a per-mod basis, in case some projects want to hide ship integrity from exact player view.

But that would prevent you from using that setting normally. If I want to play the main FS2 campaign with that setting, I should be able to do that without making any changes.

AFAIK there's no reason this can't be scripted right now.

Are there any potential issues?

I mean, replacing places devoted to numbers with colors/bars might result in odd effects. It may work perfectly in the escort list... same thing for the target box... but subsystems' integrity values may be a problem.
Title: Re: Getting rid of integrity percentages...
Post by: Rodo on May 29, 2009, 06:19:27 pm
IIRC the game already show a "hit bar" on the lower part of the HUD, right next to the target view... but it's a vertical bar.

Even so.. I like this idea, would be a nice improvement on the HUD, I find it sometimes not that friendly to the user and somewhat lacking of life.
Title: Re: Getting rid of integrity percentages...
Post by: karajorma on May 30, 2009, 02:15:17 am
But that would prevent you from using that setting normally. If I want to play the main FS2 campaign with that setting, I should be able to do that without making any changes.

No you shouldn't. You definitely should have to make table changes in order to do something like that.

Quote
Are there any potential issues?

I mean, replacing places devoted to numbers with colors/bars might result in odd effects. It may work perfectly in the escort list... same thing for the target box... but subsystems' integrity values may be a problem.

Why?

I've barely touched lua scripting so I have very little idea of what it can or cannot do but I can't see any reason why this should be beyond it.
Title: Re: Getting rid of integrity percentages...
Post by: Mobius on May 31, 2009, 02:22:33 am
IIRC the game already show a "hit bar" on the lower part of the HUD, right next to the target view... but it's a vertical bar.

Even so.. I like this idea, would be a nice improvement on the HUD, I find it sometimes not that friendly to the user and somewhat lacking of life.

:yes:

Why?

I've barely touched lua scripting so I have very little idea of what it can or cannot do but I can't see any reason why this should be beyond it.

No doubt it can be done... the problem with subsystems' integrity is that the target box lacks the space needed to add a bar. The percentage can be barely read when targeting subsystems with long names, such as "Communications".
Title: Re: Getting rid of integrity percentages...
Post by: KeldorKatarn on May 31, 2009, 07:41:19 am
There already is a hull integrity bar in the target box. And subsystem names should be shortened. This can be done in the ships.tbl with a subsystem naming entry (look up the wiki for the exact syntax).
Title: Re: Getting rid of integrity percentages...
Post by: Mobius on May 31, 2009, 07:55:54 am
There's no integrity bar in the escort list. Same thing for the player's hull and subsystem integrity monitor on the HUD.
Title: Re: Getting rid of integrity percentages...
Post by: Wanderer on May 31, 2009, 12:44:02 pm
In 3.6.11 you can spread the subsystem name over multiple lines if you want to (though only in the targeting view)
Title: Re: Getting rid of integrity percentages...
Post by: haloboy100 on May 31, 2009, 01:03:48 pm
But that would prevent you from using that setting normally. If I want to play the main FS2 campaign with that setting, I should be able to do that without making any changes.

No you shouldn't. You definitely should have to make table changes in order to do something like that.
Really? It seems like it should be a more user-customizable option, to me. As well, it can be forced anyway in the tables if a campaign requires it, right? Otherwise such an option could simply be noted that the player has to enable upon the campaign release.
Title: Re: Getting rid of integrity percentages...
Post by: General Battuta on May 31, 2009, 01:25:14 pm
As has been pointed out before with launcher flags, that's a support nightmare.
Title: Re: Getting rid of integrity percentages...
Post by: karajorma on May 31, 2009, 04:47:58 pm
Really? It seems like it should be a more user-customizable option, to me. As well, it can be forced anyway in the tables if a campaign requires it, right? Otherwise such an option could simply be noted that the player has to enable upon the campaign release.

So a mod goes to all the hassle of making a cockpit, preparing a HUD gauge to sit in exactly the right position and then some prick comes along and turns the option off cause they don't know what the launcher flags do. And then complains about it to the team behind the mod.

Yeah. Definitely makes sense to have that as a user option.
Title: Re: Getting rid of integrity percentages...
Post by: Mobius on June 02, 2009, 06:43:31 am
Can we expect updates? :)
Title: Re: Getting rid of integrity percentages...
Post by: karajorma on June 02, 2009, 07:53:56 am
On what? I've not seen any coder say anything other than script it.
Title: Re: Getting rid of integrity percentages...
Post by: Mobius on June 02, 2009, 08:02:48 am
Erm... ok... :nervous: