EddieDover / fvtt-party-sheet

A module for FoundryVTT providing a system-agnostic JSON-templated party sheet.
MIT License
2 stars 3 forks source link

[Bug]: {s0} breaks the file #3

Closed brunocalado closed 4 months ago

brunocalado commented 4 months ago

Contact Details

No response

What happened?

If I add to the code bellow Case 1: "text": "system.wounds.value{s0} / system.wounds.max" == this will show system.wounds.value/ 3, but it should show 0/ 3

Case 2: "text": "system.wounds.value {s0} / system.wounds.max" == the file stop to work image

Original and working code

      {
        "name": "Wounds",
        "type": "direct",
        "align": "center",
        "header": "show",
        "minwidth": 60,
        "text": "system.wounds.value / system.wounds.max"
      },

What type of foundry hosting were you using?

No response

Relevant console log output

No response

EddieDover commented 4 months ago

Can you paste the error shown in your console log?

{
        "name": "Wounds",
        "type": "direct",
        "align": "center",
        "header": "show",
        "minwidth": 60,
        "text": "system.wounds.value {s0} / {s0} system.wounds.max"
 }

results in

image

So there may be something else going on.

brunocalado commented 4 months ago

ay be something else

{s0}

There is no error in the console. After my code like yours I just got: image

brunocalado commented 4 months ago

It worked now. I think I need to wait a little more to click the button. If I just click the button after the world load this happens. It need a little more time to load the file.

EddieDover commented 4 months ago

It worked now. I think I need to wait a little more to click the button. If I just click the button after the world load this happens. It need a little more time to load the file.

I'll investigate this. I may need to hide the button until the templates have finished loading. May I ask how you're hosting foundry? It could just be a low-system resource issue.

brunocalado commented 4 months ago

It worked now. I think I need to wait a little more to click the button. If I just click the button after the world load this happens. It need a little more time to load the file.

I'll investigate this. I may need to hide the button until the templates have finished loading. May I ask how you're hosting foundry? It could just be a low-system resource issue.

It's self hosted in a very slow computer.

Thank you, worked nice. image