#Initial Module Setup

1 messages · Page 1 of 1 (latest)

tribal escarp
#

@stone swift @limber cipher just to grab the couple i see very active ❤️

stone swift
#

Can I get the module.json text copied & pasted here? You can do
```json
the code
```
and it'll format nicely

maiden smelt
#
  "id": "tweaks",
  "title": "tweaks",
  "version": "1.0.0",
  "compatibility": {
    "minimum": "12",
    "verified": "12"
  }
},
"esmodules": ["tweaks.mjs"],
"languages": [
  {
    "lang": "en",
    "name": "English",
    "path": "lang/en.json"
  }
]```
stone swift
#

And what's the name of the folder it's in?

maiden smelt
#

tweaks

maiden folio
#

Those brackets don't line up

#

Is this an excerpt?

maiden smelt
maiden folio
#

Yeah see the red squirliy

#

VScode even tells you its messed up

maiden smelt
#

yes

stone swift
#

Nah you're right. Take that red guy and move it alll the way down

#

(and put a comma where it gives you the next red squiggle)

maiden smelt
maiden folio
#

Also always take the setup errors into account, they'd yell about this among other things

stone swift
#

Comma after the } before esmodules

maiden smelt
#

ok, was working around a cat

stone swift
#

And } at the very end

limber cipher
#

you need to remove the } before the esmodules that's a duplicate

maiden smelt
#

what

stone swift
#

Hang on

maiden smelt
#

it conected to the firsty

stone swift
#
{
  "id": "tweaks",
  "title": "tweaks",
  "version": "1.0.0",
  "compatibility": {
    "minimum": "12",
    "verified": "12"
  },
  "esmodules": ["tweaks.mjs"],
  "languages": [
    {
      "lang": "en",
      "name": "English",
      "path": "lang/en.json"
    }
  ]
}
#

(Basically, in a JSON file, everything that doesn't "start" or "end" a block of info requires a comma at the end)

limber cipher
#

if you still see red anywhere please send the whole file again here

#

its very particular

maiden smelt
#

i see where

#

still not there

stone swift
#

Did you restart foundry again?

maiden smelt
#

yes

#

{
"DND5E.AbilityHonAbbr": "will",
"DND5E.AbilitySanAbbr": "soul",
}

stone swift
#

Ah so

maiden smelt
#

copping for reference

maiden folio
#

You shouldn't need to restart in the first place as you should only be editing the module while Foundry is shutdown.

stone swift
#

For that one, remove the , on the second line

serene wagon
#

I'd recommend using editor that has json linting, like vscode

stone swift
#

And you'll probably wanna keep the original ones too

maiden folio
limber cipher
#

and not to pile on but from this: #module-development message there seems to be a change in ID, not sure if that affects foundry loading that thing

maiden smelt
stone swift
#

Something like

{
    "DND5E.AbilityHon": "Will",
    "DND5E.AbilityHonAbbr": "wil",
    "DND5E.AbilitySan": "Soul",
    "DND5E.AbilitySanAbbr": "sol"
}
maiden smelt
#

need both

stone swift
stone swift
#

It'll say "Will ability check" or some such

maiden smelt
stone swift
#

Did you copy the text block I sent directly?

maiden folio
#

Also in case it got missed: You should only be editing the files while Foundry is shut down

#

As it'll revert otherwise

maiden smelt
#

ahhhhh, so make new module

#

again

maiden folio
#

What? No

#

Just shut down foundry

maiden smelt
#

closed now

maiden folio
#

Now adjust the files like Michael indicated and do not forget to save

stone swift
#

(en.json)

maiden smelt
stone swift
#

Looking good

maiden smelt
stone swift
#

Ensure you've saved em both

maiden smelt
#

is saved

stone swift
#

And that the folder containing them is called tweaks exactly

#

And if so, boot foundry up again and take a look

limber cipher
#

can you send screenshots of the folders?

maiden smelt
#

this error

Metadata validation failed for module "tweaks": The file "tweaks.mjs" included by module tweaks does not exist

stone swift
#

Ah

#

Close foundry

#

Then create an empty tweaks.mjs file next to the module.json

maiden smelt
#

ahh

stone swift
#

(This part isn't necessary for just replacing the names, but will future-proof it so that in the future when you want to make more complex changes the file is already there and part of the module)

maiden smelt
stone swift
#

Now the final test, open your world, enable your module, and check the sheet

stone swift
#

sidebarsettings , manage modules

#

(Top right for the first button)

maiden smelt
#

found it

serene wagon
stone swift
maiden smelt
#

how not corner

maiden folio
maiden smelt
#

lets gooooo

serene wagon
#

Works fine for me 🤷 Just need to remember to restart for the changes to show

stone swift
maiden smelt
#

first modual

serene wagon
limber cipher
#

this game was a clear Micheal carry

maiden smelt
#

@stone swift@serene wagon@limber cipher thanks all of you

limber cipher
#

dropping a triple double

maiden smelt
#

So I'm a long way from having an entire transformation feature

stone swift
#

Probably - but what do you mean by transformation feature?

maiden smelt
#

press buttons on sheet that have otherthings happen

stone swift
#

Ah. Yeah that'll be some code

maiden smelt
#

for example gain temporary hit points equal to your total level plus Constitution Modifier.

stone swift
#

Oh, that's easy. You can do that just via a heal activity (assuming you're on the latest version of 5e). But that's a convo for #dnd5e