MADH95 / JSONLoader

Plugin to add cards to Inscryption using JSON files
13 stars 12 forks source link

Use built-in decals #28

Open vladdeSV opened 2 years ago

vladdeSV commented 2 years ago

The property decals takes an array of filenames to be used as decals. However, there is no way to specify built-in decals, such as Goobert's paint, Myco's fungus and stitches, Snelk, Leshy, Hungry Child, etc.

Currently, the workaround is to copy assets from the base game and reference those. However, this is cumbersome.

It would be great if one could specify these assets directly. Possibly allowing some hard coded strings to represent in-game assets. For instance:

{
  // example of a myco'd card that has been painted
  // ...
  "appearanceBehaviour": ["AlternatingBloodDecal"],
  "decals": [
    "fungus",
    "stitches",
    "paint"
  ]
}

One issue I can think of is how Goobert's alternating paint would be handled. It would be wonderful if referencing the paint decal would have the same behaviour as in the base game, i.e. it is alternating, and not the same each time. Same behaviour as the AlternatingBloodDecal.

I lack deeper understanding of how decals are handled, but this is one possible solution which would solve my problems.

Finally, this idea could be applied for all textures (portrait, pixel portrait, title graphic, emission texture, alt texture), but this issue is specifically about decals.

MADH95 commented 2 years ago

Changing behaviour of the decal is beyond the scope of jsonloader, but providing the ability to use ingame decals would fit well, i'll look into it.

vladdeSV commented 2 years ago

Awesome, thanks!

SaxbyMod commented 1 year ago

P sure this can easily be done by using https://inscryption.thunderstore.io/package/SpecialAPI/Configurable_Emissions_and_Backgrounds/ or just have them as saved decals that come with the json.

SaxbyMod commented 11 months ago

Hey is this Closable? Seems like this has been resolved

vladdeSV commented 11 months ago

(AFAIK) I still need to images of in-game assets to support decals. This also means I can't have a random blood paint decal – only the static one I have can be used.

Unless anything else changed, I think this should be open until it gets implemented or decided to not be implemented.

SaxbyMod commented 2 months ago

@JamesVeug Curious, have you added this in or no?

JamesVeug commented 2 months ago

@SaxbyMod never really tried decals but ideally it should support custom and vanilla decals. just needs the correct name - someone would have to try it

SaxbyMod commented 2 months ago

@JamesVeug Got it was just wondering If you handled this one with the Base64 One ^^