Jump to content

HP Bar / Colored Icons / Alive Players


Recommended Posts

Posted

I think he is talking about teamHPpool score, it should be 15:15 instead of 0:0 right?
That's TeamHP issue not correlation bar?

Instead of {{py:sp.allyFrags}} and {{py:sp.enemyFrags}} should be {{py:sp.allyAlive}} and {{py:sp.enemyAlive}}.

Posted

This combination (with PMOD) works

 

image.png.4d9f7ea49b6a75cf5c15173c1f9240e9.png

 

image.png.b16af193c8dedd68bdb393ffbbe97def.png

 

image.png.5e4b0bf8be40e161b3d64a38b8417af5.png

 

So i think i have to decide with option is more important for me.
A nice HP-Bar or a  "correct" way of counting ;-)

  • Administrator
Posted
17 minutes ago, Ress said:

I think he is talking about teamHPpool score, it should be 15:15 instead of 0:0 right?
That's TeamHP issue not correlation bar?

Instead of {{py:sp.allyFrags}} and {{py:sp.enemyFrags}} should be {{py:sp.allyAlive}} and {{py:sp.enemyAlive}}.

 

I will try that trick.

Posted

@Aslain it will work since right now it's showing frags inside config #4 Straight.

	// фраги союзников
	"totalHP_frags_ally": { 
	  "enabled": true,
      "updateEvent": "PY(ON_UPDATE_HP)",
      "x": -20,
      "y": 0,
	  "width": 30,
      "height": 30,
      "screenHAlign": "center",
	  "shadow": { "distance": 1, "angle": 90, "alpha": 80, "blur": 5, "strength": 1.5 },
      "textFormat": { "font": "$TitleFont", "size": 20, "align": "center" },
	  "format": "{{py:sp.allyFrags}}"
	},
	// фраги противников
	"totalHP_frags_enemy": { 
	  "$ref": { "path":"def.totalHP_frags_ally" },
      "x": 20,
      "format": "{{py:sp.enemyFrags}}"
	},

But you will probably have todo same for each HPpool config
with {{py:sp.allyFrags}}>{{py:sp.allyAlive}} and {{py:sp.allyFrags}}>{{py:sp.enemyAlive}} options.
12 options in total for each config frags or allive, yikes. :fearful:

Posted

Sadly default state is 0:0 and "allive not frags" is "special case", you will have to deal with this delay until someone deals dmg (hp updates). :confused:
Since this macro updates on hp change PY(ON_UPDATE_HP), don't think much can be done about it without extra py macros.

Using constant refresh like PY(ON_EVERY_FRAME) or PY(ON_EVERY_SECOND) can reduce performance.
Maybe by adding PY(ON_BATTLE_STATE_CHANGED) to the mix might work, but need to be tested.

Posted
Am 15.7.2019 um 00:28 schrieb Ress:

you will have to deal with this delay until someone deals dmg (hp updates).

BTW:
The counter changes after the first oponent tank is "scouted". So it is only a few seconds and further no problem ;-)

  • Administrator
Posted

"updateEvent": "PY(ON_UPDATE_FRAG_COR_BAR), PY(ON_BATTLE_STATE_CHANGED)" does the trick and will be included in next modpack update (prolly tomorrow)

Posted
30 minutes ago, Aslain said:

"updateEvent": "PY(ON_UPDATE_FRAG_COR_BAR), PY(ON_BATTLE_STATE_CHANGED)" does the trick and will be included in next modpack update (prolly tomorrow)

Sidenote PY(ON_UPDATE_FRAG_COR_BAR) is from extra py_macro.
So fragCorrelationBar.py would need to be installed with HP bar (even if colored icons are not selected/installed). :wink1:

  • Administrator
Posted

Correction, it works only if colored markers are installed but doesn't with Team HP bars only. This is what I noticed at least.

  • 2 weeks later...
Posted (edited)

I am having a problem, I am using the same settings with the custom XVM Health bar, but it is overlapped with the standard bar.

 

How do I disable the standard bar?

 

Edited by IWillDestroyU
  • Administrator
Posted
6 hours ago, IWillDestroyU said:

I am having a problem, I am using the same settings with the custom XVM Health bar, but it is overlapped with the standard bar.

 

How do I disable the standard bar?

Attach your logs.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.