#config file for Torch and SWPF on the
1 messages Β· Page 1 of 1 (latest)
What"s this Torch feature?
Looks ergonomic and simple.
Is it a dedicated module? Or part of SPWF? Or part of SWIM or so?
-
install https://github.com/League-of-Foundry-Developers/torch
-
you need to set a json file with the lights you want, the swpfE have this file and auto loads it
-
the actor must have the item
Excellent. Thank you!
It's based on the name you mean?
Yes, The item must match
{
"swade": {
"system": "swade",
"topology": "standard",
"quantity" : "quantity",
"aliases": {
"Candle (1 hr, 2\" radius)": "Candle",
"Torch (1 hour, 4\" radius)": "Torch",
"Lantern, bullseye (10\" cone)": "Lantern, bullseye",
"Lantern, hooded (6\" radius)": "Lantern, hooded"
},
"sources": {
"Candle (1 hr, 2\" radius)": {
"states": 2,
"light": [
{
"bright": 0.5, "dim": 2, "angle": 360, "color": "#e68805", "alpha": 0.15,
"animation": { "type": "torch", "speed": 2, "intensity": 4, "reverse": false }
}
]
},
"Everburning Torch": {
"states": 2,
"light": [
{
"bright": 0.5, "dim": 4, "angle": 360, "color": "#e68805", "alpha": 0.15,
"animation": { "type": "torch", "speed": 2, "intensity": 4, "reverse": false }
}
]
},
It has the official modules names
As ugly "Candle (1 hr, 2" radius)" can be
Oh π¦ sad. i18n goes away π
What do you mean?
I suppose I can't create such a JSON en upload it in my game.
I suppose this json is part of the module.
no
oh!!!
Ok, perfect. I should be able to manage that π
Just for the completeness of the list, the simple lamp is missing.
In case you wanna Integrale that as well, itβs called;
Lamp, small (3β radius)
Oh. Ok
tks
OK, created a file called torch_swade.json. In Configure Settings, point the Additional Light Sources to this new file. Have a PC with light sources. When I click the flame icon, it turns the players Lantern on and off. I don't get a list of the other light sources that are on the character. What gives?
And the doc from the git to get ids, gives an error. game.actors.getName("Tarvon").items.getName("Sunrod")
VM4127:1 Uncaught TypeError: Cannot read properties of undefined (reading 'items')
When the light is off, right click the torch icon again to get the list off all available light sources.
Ah, duh. Thanks.
Oh wow, well, um I'm having an issue with Torch too
A friend has been trying to help me with creating an additional light source (basically just an item that we are going to use to represent our artificer making her bracelet light up) but when I put in the .json file it seems to mess up the whole module (no more torch icon in the HUD)
this is the current json file we've tried
I am currently using the torch_swade file as a template and redoing everything.