Author Topic: Suggestion for new feature: Auto equalize shields  (Read 4666 times)

0 Members and 1 Guest are viewing this topic.

Offline ARSPR

  • Preys On Mantis
  • 29
Suggestion for new feature: Auto equalize shields
Well, when I play FS2 and I am in heavy fight (mainly dogfighting), I am continously pressing Equalize Shield to repair the damaged cuadrants of it. And of course if it is really weak I transfer enery from lasers.

But the equalizing action is just an automatic one without thinking or watching if it is really needed. If I'm in heavy combat I equalize all the time. So, at least for me, this action is just a waste of one joystick button.

So it would be nice to have an Auto-Equalize Shield function so I could free this joystick binding. From just a player point of view, (not a coder one), I can see three ways of adding this function:

1. (The worst one). Coding a launcher flag so if you want auto-equalize function it would be always enabled. Logically, this one would interfere with desired asymetric shield distributions, (set through cursor keys), because this new function will erase these distributions. (But, guy, it is up to you using it or not).

2. (I think the good one). Coding a new action Toggle Auto-Equalize Shield on/off. In this way you could switch on/off this feature within play. So if you want to set a special shield configuration, just toggle it off.

3. (The perfect one). Coding 2 and displaying it in HUD in the same way auto-targeting or auto-speed matching do now.


The way this function should work would be: Just after every enemy hit, equalize shields. In this way it won't change the amount of damage each hit does to yourself (or if it damages your hull or not).

I think this feature should be quite easy to code and it could be pretty useful. (Now I only need a bored coder with free time, without friends, girl/boyfriend, husband/wife, sons/daughters, no books to read and no movies to watch  ;)).
« Last Edit: May 25, 2006, 10:16:56 am by ARSPR »
IF YOU HAVE TROUBLES WITH FS2:
  • Please, please, please, READ and UNDERSTAND the sticky threads in FreeSpace & FreeSpace Open Support board.
    A lot of people are willing to help you, but, as anyone can understand, seeing the very same "issues" repeated again and again can become quite depressing. Please, spend a bit of time trying to solve the issue by yourself.
    (Lobo deserves a monument).
  • Then, if you aren't still able to solve your issue, feel free to ask for help in that same board.
    FYI, most of the troubles are caused by wrong mod installations which lead to either missing data or undesired cross-effects between them. Always follow the mod installation instructions and keep a clean FS2 installation as explained in the sticky threads. Two additional links about how the game handles game data:
  • If you think that you've discovered a bug, mantis it.
    Provide as much info as you can, and try to narrow it down. A lonely "FS2 doesn't work" is not a good report.

Whoever Hanlon was: Never attribute to malice that which can be adequately explained by stupidity.
Albert Einstein: Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe.

Dell Dimension 9200 - Vista 32-bit Ultimate
Core 2 Quad Q6600 @2.4GHz - RAM 2 GB DDR2
nvidia 8800 GTX - Integrated Sigmatel Audio

 

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Re: Suggestion for new feature: Auto equalize shields
Use Q key to toggle a loop containing the Equalise code/function?
I'll leave it to you codey guys...
Campaigns I've added my distinctiveness to-
- Blue Planet: Battle Captains
-Battle of Neptune
-Between the Ashes 2
-Blue planet: Age of Aquarius
-FOTG?
-Inferno R1
-Ribos: The aftermath / -Retreat from Deneb
-Sol: A History
-TBP EACW teaser
-Earth Brakiri war
-TBP Fortune Hunters (I think?)
-TBP Relic
-Trancsend (Possibly?)
-Uncharted Territory
-Vassagos Dirge
-War Machine
(Others lost to the mists of time and no discernible audit trail)

Your friendly Orestes tactical controller.

Secret bomb God.
That one time I got permabanned and got to read who was being bitxhy about me :p....
GO GO DEKKER RANGERSSSS!!!!!!!!!!!!!!!!!
President of the Scooby Doo Model Appreciation Society
The only good Zod is a dead Zod
NEWGROUNDS COMEDY GOLD, UPDATED DAILY
http://badges.steamprofile.com/profile/default/steam/76561198011784807.png

 

Offline Col. Fishguts

  • voodoo doll
  • 211
Re: Suggestion for new feature: Auto equalize shields
Auto shield equalizing would render the 4 quadrants useless. You would live longer, but that would take away an integral gameplay feature.

Smart shields are a better way to handle this, IMO.
"I don't think that people accept the fact that life doesn't make sense. I think it makes people terribly uncomfortable. It seems like religion and myth were invented against that, trying to make sense out of it." - D. Lynch

Visit The Babylon Project, now also with HTL flavour  ¦ GTB Rhea

 

Offline ARSPR

  • Preys On Mantis
  • 29
Re: Suggestion for new feature: Auto equalize shields
Auto shield equalizing would render the 4 quadrants useless. You would live longer, but that would take away an integral gameplay feature.

Smart shields are a better way to handle this, IMO.

Yes, as I've said it can make these quadrants useless. But while dogfighting, I actually do make quadrants useless by continuous and automatic use of Equalize Shields, (you never know where you are going to be hit so it has no point making any quadrant stronger), while wasting a joystick button. I would prefer my PC doing it for myself and freeing this binding for any other and more interesting action.

OTOH, in any of the ways I have thought about this feature, it would be fully optional. So nobody would be forced to use it if he/she doesn't want to. And more over, even in multiplayer, you couldn't notice if an opponent is using the auto-equalizing feature or just pressing equalizing action as mad (as I do now).

Smart-shields just works for slowly repair holes in your shields. But in heavy dogfighting you need fast repairs (so your friends are equalize and laser->shields).
IF YOU HAVE TROUBLES WITH FS2:
  • Please, please, please, READ and UNDERSTAND the sticky threads in FreeSpace & FreeSpace Open Support board.
    A lot of people are willing to help you, but, as anyone can understand, seeing the very same "issues" repeated again and again can become quite depressing. Please, spend a bit of time trying to solve the issue by yourself.
    (Lobo deserves a monument).
  • Then, if you aren't still able to solve your issue, feel free to ask for help in that same board.
    FYI, most of the troubles are caused by wrong mod installations which lead to either missing data or undesired cross-effects between them. Always follow the mod installation instructions and keep a clean FS2 installation as explained in the sticky threads. Two additional links about how the game handles game data:
  • If you think that you've discovered a bug, mantis it.
    Provide as much info as you can, and try to narrow it down. A lonely "FS2 doesn't work" is not a good report.

Whoever Hanlon was: Never attribute to malice that which can be adequately explained by stupidity.
Albert Einstein: Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe.

Dell Dimension 9200 - Vista 32-bit Ultimate
Core 2 Quad Q6600 @2.4GHz - RAM 2 GB DDR2
nvidia 8800 GTX - Integrated Sigmatel Audio

 

Offline CaptJosh

  • 210
Re: Suggestion for new feature: Auto equalize shields
What about just flying better so that you get hit less? *runs*
CaptJosh

There are only 10 kinds of people in the world;
those who understand binary and those who don't.

 

Offline Mars

  • I have no originality
  • 211
  • Attempting unreasonable levels of reasonable
Re: Suggestion for new feature: Auto equalize shields
I personally think it's a good idea, but might inhibit the player from learning how to properly manage shields.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Suggestion for new feature: Auto equalize shields
It would also get in the way those times you do need to manage shield manually. You'd have to find the keys to turn this off and then do things manually.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Re: Suggestion for new feature: Auto equalize shields
I think this feature should be quite easy to code and it could be pretty useful.

Fair warning: Any feature request thread that includes "I think this would be easy to code" usually gets placed on the top of the "make sure not to add this feature" list.

 

Offline ARSPR

  • Preys On Mantis
  • 29
Re: Suggestion for new feature: Auto equalize shields
I think this feature should be quite easy to code and it could be pretty useful.

Fair warning: Any feature request thread that includes "I think this would be easy to code" usually gets placed on the top of the "make sure not to add this feature" list.

You're fully right. I don't know about coding so probably, after looking in the code, it will result in a PITA to do ... (Specially if it's a feature the "possible" coder doesn't like or consider it worthless ...)

As always, you're fully free to do whatever you want, and no-one can complain about it.  :yes:
IF YOU HAVE TROUBLES WITH FS2:
  • Please, please, please, READ and UNDERSTAND the sticky threads in FreeSpace & FreeSpace Open Support board.
    A lot of people are willing to help you, but, as anyone can understand, seeing the very same "issues" repeated again and again can become quite depressing. Please, spend a bit of time trying to solve the issue by yourself.
    (Lobo deserves a monument).
  • Then, if you aren't still able to solve your issue, feel free to ask for help in that same board.
    FYI, most of the troubles are caused by wrong mod installations which lead to either missing data or undesired cross-effects between them. Always follow the mod installation instructions and keep a clean FS2 installation as explained in the sticky threads. Two additional links about how the game handles game data:
  • If you think that you've discovered a bug, mantis it.
    Provide as much info as you can, and try to narrow it down. A lonely "FS2 doesn't work" is not a good report.

Whoever Hanlon was: Never attribute to malice that which can be adequately explained by stupidity.
Albert Einstein: Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe.

Dell Dimension 9200 - Vista 32-bit Ultimate
Core 2 Quad Q6600 @2.4GHz - RAM 2 GB DDR2
nvidia 8800 GTX - Integrated Sigmatel Audio

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: Suggestion for new feature: Auto equalize shields
Scripting.tbl....
Code: [Select]
#Global Hooks

$Simulation:

[

for i = 1,mn.getNumShips() do
   shields = (mn.getShipByIndex(i).Shields[1] + mn.getShipByIndex(i).Shields[2] + mn.getShipByIndex(i).Shields[3] + mn.getShipByIndex(i).Shields[4]) / 4
   mn.getShipByIndex(i).Shields[1] = shields
   mn.getShipByIndex(i).Shields[2] = shields
   mn.getShipByIndex(i).Shields[3] = shields
   mn.getShipByIndex(i).Shields[4] = shields
end
   
]

#End

Its easy to implement it for all ships (as above) though its a bit harder to specify just invidual ships and then generating triggers for it..
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: Suggestion for new feature: Auto equalize shields
It would be slightly more efficient to do it like so:
Code: [Select]
#Global Hooks

$Simulation:

[

for i = 1,mn.getNumShips() do
   ship = mn.getShipByIndex(i)
   shields = (ship.Shields[1] + ship.Shields[2] + ship.Shields[3] + ship.Shields[4]) / 4
   ship.Shields[1] = shields
   ship.Shields[2] = shields
   ship.Shields[3] = shields
   ship.Shields[4] = shields
end
   
]

#End

This saves the time required to index the ships array (getShipByIndex). Relatively speaking, that function is fairly slow due to the way ships are stored. Also, you can never depend on one index being the same ship across frames, and between different hooks, because dead/departed ships are removed from the list.

Was the documentation unclear on that?
-C

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: Suggestion for new feature: Auto equalize shields
Not really... but using getShipByIndex that was the easiest way of implementing global shield auto equalizing.
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: Suggestion for new feature: Auto equalize shields
Oh, yeah, it's exactly what should be used in this case...I'm just curious if there was a specific reason that you used the function call rather than a variable...ie if the documentation sounded, to you, like you should use the function call every time, rather than setting the result to a variable.
-C

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: Suggestion for new feature: Auto equalize shields
I just thought of making the example as streamlined as possible... nothing else.
Do not meddle in the affairs of coders for they are soggy and hard to light

 
Re: Suggestion for new feature: Auto equalize shields
It could be set up to auto equalize when the hull takes damage. That way when the ship gets hit on the hull it plugs the hole for you and letting only one or two bolts thru and buying you more time to dodge.

 

Offline Mars

  • I have no originality
  • 211
  • Attempting unreasonable levels of reasonable
Re: Suggestion for new feature: Auto equalize shields
No, that's getting too close to doing things for the player.

 

Offline ARSPR

  • Preys On Mantis
  • 29
Re: Suggestion for new feature: Auto equalize shields
No, that's getting too close to doing things for the player.

Yes, I agree with you.

I have suggested Auto-equalize because the original game HAS an equalize function which you can be constantly using (as I do). If there wasn't this function it would be completly tricky. (I even think that smart shields is a bit tricky ...)
IF YOU HAVE TROUBLES WITH FS2:
  • Please, please, please, READ and UNDERSTAND the sticky threads in FreeSpace & FreeSpace Open Support board.
    A lot of people are willing to help you, but, as anyone can understand, seeing the very same "issues" repeated again and again can become quite depressing. Please, spend a bit of time trying to solve the issue by yourself.
    (Lobo deserves a monument).
  • Then, if you aren't still able to solve your issue, feel free to ask for help in that same board.
    FYI, most of the troubles are caused by wrong mod installations which lead to either missing data or undesired cross-effects between them. Always follow the mod installation instructions and keep a clean FS2 installation as explained in the sticky threads. Two additional links about how the game handles game data:
  • If you think that you've discovered a bug, mantis it.
    Provide as much info as you can, and try to narrow it down. A lonely "FS2 doesn't work" is not a good report.

Whoever Hanlon was: Never attribute to malice that which can be adequately explained by stupidity.
Albert Einstein: Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe.

Dell Dimension 9200 - Vista 32-bit Ultimate
Core 2 Quad Q6600 @2.4GHz - RAM 2 GB DDR2
nvidia 8800 GTX - Integrated Sigmatel Audio

 

Offline wolf421

  • 22
Re: Suggestion for new feature: Auto equalize shields
 :wtf: I'm new in this forum so pot shots or missels yet...lol
I've been playing FS 1&2 for years, and never thought about the equalize shields button until I downloaded the open verison over at scp website. Now with the updated code and all I actually have to use it. I'm not the best player out here on the web but why not just setup your desk and place your keyboard within reach and hit the keys you need to when needed.  Thats what I've done for years and I have a real nice joystick with 6 buttons and  a 8 position hat on it but still I use the keyboard for alot of function keys that I can't bind to my joystick.
Heck try playing (the orginal descent on keyboard without a joystick)  and see how fast you learn to use the keys without looking...lol
 :yes: I would love to have a auto function toggle to equalize shields, but hey I can deal with it the way it is... :D 
Hear that beeping? If you do it's my missle comeing at you. Have a nice day!!

 

Offline ARSPR

  • Preys On Mantis
  • 29
Re: Suggestion for new feature: Auto equalize shields
:wtf: I'm new in this forum so pot shots or missels yet...lol
I've been playing FS 1&2 for years, and never thought about the equalize shields button until I downloaded the open verison over at scp website. Now with the updated code and all I actually have to use it. I'm not the best player out here on the web but why not just setup your desk and place your keyboard within reach and hit the keys you need to when needed.  Thats what I've done for years and I have a real nice joystick with 6 buttons and  a 8 position hat on it but still I use the keyboard for alot of function keys that I can't bind to my joystick.
Heck try playing (the orginal descent on keyboard without a joystick)  and see how fast you learn to use the keys without looking...lol
 :yes: I would love to have a auto function toggle to equalize shields, but hey I can deal with it the way it is... :D 

Oh please, let finish this tradition of saying "Your function isn`t needed at all", "If you play in easy mode or you are a very expert pilot, you don't need that", "I've played without it during centuries so why do we need it now?", "I do like equalizing shields with cursor keys", "I do like destroying Q key by constant pressing" and so on.

I do know you can go without this function cos we ARE without it now, so I know there are 3 million ways of living without it. I was just suggesting a FULLY OPTIONAL feature that can be useful to SOME people or even myself alone (not pretending to EVERYONE) and more over it doesn't break any backwards compatibility.

I don't know coding, so if someone inside SCP crew is bored and wants to code it, I'll be happy. If no-one does it, I'll be happy too.

(Not wanting to be rude even if it seems  ;) ...)
IF YOU HAVE TROUBLES WITH FS2:
  • Please, please, please, READ and UNDERSTAND the sticky threads in FreeSpace & FreeSpace Open Support board.
    A lot of people are willing to help you, but, as anyone can understand, seeing the very same "issues" repeated again and again can become quite depressing. Please, spend a bit of time trying to solve the issue by yourself.
    (Lobo deserves a monument).
  • Then, if you aren't still able to solve your issue, feel free to ask for help in that same board.
    FYI, most of the troubles are caused by wrong mod installations which lead to either missing data or undesired cross-effects between them. Always follow the mod installation instructions and keep a clean FS2 installation as explained in the sticky threads. Two additional links about how the game handles game data:
  • If you think that you've discovered a bug, mantis it.
    Provide as much info as you can, and try to narrow it down. A lonely "FS2 doesn't work" is not a good report.

Whoever Hanlon was: Never attribute to malice that which can be adequately explained by stupidity.
Albert Einstein: Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe.

Dell Dimension 9200 - Vista 32-bit Ultimate
Core 2 Quad Q6600 @2.4GHz - RAM 2 GB DDR2
nvidia 8800 GTX - Integrated Sigmatel Audio

 

Offline Flipside

  • əp!sd!l£
  • 212
Re: Suggestion for new feature: Auto equalize shields
Heh, well, it seems to me that if it does get implemented, then the best bet would be to assign it to ALT-Q, much as ALT T is auto target and ALT M is auto match speed :)