Jump to content
Korean Random

Recommended Posts

I have enabled total team hp in battleLablesTemplates.xc however I still cannot see the team HP bar in the game, while this worked perfectly a few versions back I cannot get it working now, here is the config:

 

    "totalHP": {
      "enabled": true,
      "updateEvent": "PY(ON_UPDATE_HP)",
      "x": 0,
      "y": 30,
      "screenHAlign": "center",
      "align": "center",
      "shadow": { "distance": 1, "angle": 90, "alpha": 80, "blur": 5, "strength": 1.5 },
      "textFormat": { "font": "mono", "size": 18, "align": "center" },
      "format": "{{py:xvm.total_hp.text}}"
    },

Thanks for help.

Share this post


Link to post

Short link
Share on other sites

@Dakado24 , check if there is a link to this block in the file:

  • battleLables.xc
{
  "labels": {
    "formats": [
      ...
      ${"battleLabelsTemplates.xc":"def.totalHP"},
      ...
    ]
  }
}

Share this post


Link to post

Short link
Share on other sites
24 minutes ago, night_dragon_on said:

@Dakado24 , check if there is a link to this block in the file:

  • battleLables.xc

{
  "labels": {
    "formats": [
      ...
      ${"battleLabelsTemplates.xc":"def.totalHP"},
      ...
    ]
  }
}

Yes, there is a link.

Share this post


Link to post

Short link
Share on other sites
15 минут назад, Dakado24 сказал:

here it it

 

You have outdated scripts in the folder "py_macro"

res_mods/configs/xvm/py_macro

Delete its contents and unpack new files from the archive with XVM

 

You also need to update all sections in the file: battleLabelsTemplates.xc

The current version of the record, see the default config.

Share this post


Link to post

Short link
Share on other sites
2 hours ago, night_dragon_on said:

 

You have outdated scripts in the folder "py_macro"


res_mods/configs/xvm/py_macro

Delete its contents and unpack new files from the archive with XVM

 

You also need to update all sections in the file: battleLabelsTemplates.xc

The current version of the record, see the default config.

Works now. Thanks. I was keeping my old configs folder cause I have many custom configurations in the XVM and didnt want to lose is all with every update.

Share this post


Link to post

Short link
Share on other sites
2 минуты назад, Dakado24 сказал:

I was keeping my old configs folder

 

The "py_macro" folder is recommended to be updated when a new version of XVM is released,

since various changes and improvements are quite often made in the scripts in it.

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...