Author Topic: Shield Status Monitor *Updated*  (Read 3586 times)

Offline Rob Archer

  • Posts: 163
  • Cookies: 545
  • New Frontier MKVI
Shield Status Monitor *Updated*
« on: March 10, 2007, 08:33:03 PM »
This Mod basicaly Adds a menu to the Tactical Menu giving the Current Shield Percentage for each vector

Shield Status
>>>>> Port 60%
>>>>> Star 60%
>>>>> Dorsal 60%
>>>>> Ventral 60%
>>>>> Fore 60%
>>>>> Aft 60%

********** SHIELD STATUS MONTIOR [Updated V0.9.1] *********
This is an update to the Shields status monitor which fixes a bug where the display did not reset when the ship was destroyed.


shieldoutput.zip - 0.61MB

Edit* If someone could post this to BC files Id be most Greatfull: (I dont trust the E-mail system.)

Offline Darkthunder

  • Vice Administrator
  • Posts: 2321
  • Cookies: 1527
Re: Shield Status Monitor *Complete Beta*
« Reply #1 on: March 10, 2007, 09:12:54 PM »
Looks like a great addition. Is that "Boost Shields" part of the mod as well? If not, it would be great having something like it included, whereby you boost one vector by a certain amount, it would then lower the other 5 vectors by the amount divided by 5 (20%, i.e 5% lowered on each vector), so simulate reinforcing a certain shield vector :D
Official BCC Discord ยท https://discord.gg/nJAx4HNQ2G
Ad Astra Per Aspera

Offline Rob Archer

  • Posts: 163
  • Cookies: 545
  • New Frontier MKVI
Re: Shield Status Monitor *Complete Beta*
« Reply #2 on: March 10, 2007, 10:06:05 PM »
the boost shields mod is not related to my mod im sure it was done by BCS TNG scripters.....

Ill get round to doing some more modifications to the engineering systems over time, This was just something i did in 2 hours while i ws board, I was acctually working on a distress call modification but i got sid tracked and ended up writing this one instead.  :roll:

Offline Nighthawk

  • |______[o]_|
  • Posts: 750
  • Cookies: 18
Re: Shield Status Monitor *Complete Beta*
« Reply #3 on: March 10, 2007, 11:24:02 PM »
I would go further and try to make it as a little window so you don't have to see Felix's menu.
but his could do while we wait for the nex version. DL'ed and installed. :D

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Shield Status Monitor *Complete Beta*
« Reply #4 on: March 11, 2007, 06:43:36 AM »
I would suggest that you listen to the shield changer event (see BP Core), that way you also get notified when the strength goes up.

And replace the buttons with TGParagraphs (text). They can be put in a menu as well.

I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline Rob Archer

  • Posts: 163
  • Cookies: 545
  • New Frontier MKVI
Re: Shield Status Monitor *Complete Beta*
« Reply #5 on: March 11, 2007, 10:00:00 AM »
Thanks Mleo ill try that latter

Offline Nighthawk

  • |______[o]_|
  • Posts: 750
  • Cookies: 18
Re: Shield Status Monitor *Complete Beta*
« Reply #6 on: March 12, 2007, 08:42:38 AM »
If i'm not wrong, after a quick read to the code, you are using GetEngineeringNextEventType() to detect the shield hit. that will check for shield hits in your events, and also in the AI's events, what in large battles can be a bit laggy.
go for what MLeo said, or use ET_WEAPON_HIT. you can filter the shield rating from both events
(I think MLeo is talking about ET_TACTICAL_SHIELD_LEVEL_CHANGE, this one has also listeners for each shield vector:
ET_TACTICAL_SHIELD_0_LEVEL_CHANGE, _SHIELD_1, _SHIELD_2, and so on. so, instead of a single listener broadcasting the whole game for events, you have six but restricted to the events you want to hear.)

Offline JimmyB76

  • Posts: 6423
  • Cookies: 421
Re: Shield Status Monitor *Complete Beta*
« Reply #7 on: March 12, 2007, 08:49:31 AM »
Rob - if you're gonna make some final adjustments, i'd rather wait until you're completely done and happy with this mod  - then i can put it up for ya on BCFiles immediately at that point :)

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Shield Status Monitor *Complete Beta*
« Reply #8 on: March 12, 2007, 12:08:25 PM »
Nighthawk has it partly.

This more is what I meant (warning, pseudo code):
Code: [Select]
pPlayer = App.Game_GetCurrentPlayer()# Or MissionLib.GetPlayer()
pPlayer.AddPythonFuncHandlerForInstance(App.ET_TACTICAL_SHIELD_0_LEVEL_CHANGE, __name__ + ".....
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline Nighthawk

  • |______[o]_|
  • Posts: 750
  • Cookies: 18
Re: Shield Status Monitor *Complete Beta*
« Reply #9 on: March 12, 2007, 04:03:43 PM »
Nighthawk has it partly.

heh, I sharpened my skillz  :)

Offline Rob Archer

  • Posts: 163
  • Cookies: 545
  • New Frontier MKVI
Re: Shield Status Monitor *Complete Beta*
« Reply #10 on: March 12, 2007, 08:15:49 PM »
Rob - if you're gonna make some final adjustments, i'd rather wait until you're completely done and happy with this mod  - then i can put it up for ya on BCFiles immediately at that point :)

can you Post it up anyway JB, Alot of people who use BC are colour blind (Such as CK on BCS) who may find this mod useful regardless, that and if it dosnt get put up now it'll prbably never get put up....

When people start offering sugestions or commenting on the way i do things, i tend to get put off a mod, Same thing happened with RDS 0.9....

Offline JimmyB76

  • Posts: 6423
  • Cookies: 421
Re: Shield Status Monitor *Complete Beta*
« Reply #11 on: March 12, 2007, 09:04:16 PM »
all set :)
http://bridgecommander.filefront.com/file/Shield_Status_Monitor;76699
i'll make sure to mention that any technically-related issues be posted here in this thread...

Offline Rob Archer

  • Posts: 163
  • Cookies: 545
  • New Frontier MKVI
Re: Shield Status Monitor *Complete Beta*
« Reply #12 on: March 13, 2007, 12:14:01 AM »
Thanks Loads jimmy

Offline Mario

  • Senior Software Developer
  • Administrator
  • Posts: 2187
  • Cookies: 1706
  • Life is life
Re: Shield Status Monitor *Complete Beta*
« Reply #13 on: March 13, 2007, 06:21:55 AM »
Nice work.
Acta, non verba.
aka USS Sovereign

Offline El

  • Master Hardpointer
  • Retired Administrator
  • Posts: 653
  • Cookies: 123
  • Former Vice Admin
Re: Shield Status Monitor *Complete Beta*
« Reply #14 on: March 16, 2007, 08:33:34 AM »
Thread split, the tech discussions are over in Scripiting.

Gdluque

  • Guest
Re: Shield Status Monitor *Complete Beta*
« Reply #15 on: March 19, 2007, 08:32:28 AM »
Very interesting mod... Good job...