HeroCreationLab / hero-creation-tool

Step-by-step module tool for creating 5e characters in FoundryVTT
MIT License
29 stars 15 forks source link

Classes, Races and Backgrounds are not selectable #130

Open RonaldoBrum opened 1 year ago

RonaldoBrum commented 1 year ago

Hi, I recently updated my foundry to version 10.288, using version 2.0.3 of dnd 5e. When I go to character building, the class, race and backgrounds are not selectable, just like in the attribute scrolling part, it doesn't show the button title (although if I click on that empty space it scrolls just right). When consulting the log to see if the problem was discovered, I saw that error too (present in the prints) Screenshot_1 Screenshot_2 Screenshot_3 Screenshot_4 Screenshot_5

ccjmk commented 1 year ago

Hi! I will be looking at this as soon as possible. Right now im in the middle of moving so after I can get settled I will try to see what's wrong here.

RonaldoBrum commented 1 year ago

It's ok! I hope everything goes well with your move ^^

ccjmk commented 1 year ago

Hi! sorry for the long delay! I just did a quick smoke test with foundry v10.291, 5e 2.0.3 and module 1.9,0 and it seems to work. I was honestly too busy before to give proper attention to the screenshot you sent me, but that seems to indicate you have something that should be a spell that has no level. Do you have imported stuff from DDBImporter by chance? I recall a folk that had a similar issue that got resolved by re-importing stuff. Could you try that please?

RonaldoBrum commented 1 year ago

No friend, I've been studying the problem and it seems to be the same as other issues posted here recently. It's like the creation tool can't read the compendiums which I have the classes, subs, races etc...

RonaldoBrum commented 1 year ago

I saw someone talk somewhere about something in the foundry having changed in current versions about what was previously read as an entity now being read as a "type", but I'm not sure if that could be the issue here. the magic thing there was just because it was a mistake that happened together, but that's not the heart of the problem and yes he wasn't reading the compendiums of race, subrace, class and subclass.

RonaldoBrum commented 1 year ago

I don't use ddb importer, everything in the compendiums that are not being read were created by me in foundry and in previous versions they were read. In updating my foundry they stopped being read. I've already tried to run the hero creation tool alone and the problem continues.

ccjmk commented 1 year ago

by any chance, do you have multiple types of stuff in the same compendium? like a single compendium with "my custom stuff" that has spells, classes, races, etc? those should go separately, because it sounds like this might be another possible reason!

RonaldoBrum commented 1 year ago

no, i'm extremely boring with my organizations, the races and classes i use were all created by me from scratch to be read by hero creation. Because I translate the tool to pt br. And as I said, it's a problem that arose in the update. Something changed in the code or the way compendiums are read Screenshot_1 Screenshot_2 Screenshot_3 Screenshot_4 Screenshot_5 Screenshot_6 Screenshot_7 Screenshot_8

RonaldoBrum commented 1 year ago

As you can see in the prints, it stops loading because it has a problem rendering the race part in the tool. the background part seems to be working normally. The class part doesn't show the skills, maybe because they now have an advancement tab that the tool still doesn't read.

ccjmk commented 1 year ago

Ooooh I think I have a clue! but... it's not good if I land on the issue hahah if you have this compendia from a long time ago, they might be structured on the old way. For example, before, the value requirements was under... item.data.data.requirements iirc, now its item.system.requirements or something like that. Let me see if I can find / make some code to check and update the compendiums

RonaldoBrum commented 1 year ago

yes I've had them for a long time, I thought it was something structural, because when dragging to the description of some skill it generated a link @name.world.data (or something like that) and now it generates a UUCC.name.world. date then I realized that there were structural changes by the new att

ccjmk commented 1 year ago

Could you send me the files of your compendiums? I think sadly there's no easy workaround for this, but I can try to make some migration code for it. No promises though, I need to find time for this sadly :(

Ancyker commented 1 year ago

This happens when the system field is missing. It also happens when the level field is missing from spells.

Ancyker commented 1 year ago

Could you send me the files of your compendiums? I think sadly there's no easy workaround for this, but I can try to make some migration code for it. No promises though, I need to find time for this sadly :(

This project currently has this issue: https://github.com/btbias/5e-complete

Note: I've put a bug report in with them to fix it. I feel it's really a bug in the compendium as this info should be present, but it's probably also worth handling the missing fields in the module.

d34d-p1x3l commented 1 year ago

Any word with how this bug is going? I have the same issue. I guess it's only applicable to custom compendia. I spent a couple months putting all the info from PHB-DMG-Xanathar's-Tasha's-SwordCoast and others into compendia so my players would have all the same options in game as they would when we played in person. The compendia were originally just copies of the Foundry SRDs so I didn't think the formatting would be different. In response to Ancyker's comments, where are the system and level fields supposed to be in the compendia? They can be edited in notepad.

cyn-louwho commented 1 year ago

Hi! I am also having this issue with Foundry v11. I understand I am responding to a really old thread, but hopefully I can get some assistance. I am trying to input an Artificer class. It works fine until I start adding my features into the level up section. I followed the youtube tutorial, but as soon as I try to do anything with the features it causes all of the usual selections on the left to disappear. Thank you!

image image image image image image

ccjmk commented 1 year ago

@cyn-louwho this seems like a different problem but could be related to v11, I haven't tested the module on v11 yet and I can't confirm it works. You can ping me in discord (look for me on the official foundry or the League's discord servers) and we can look at it whenever we are both available.

ccjmk commented 1 year ago

Sorry for the long delay @d34d-p1x3l , it seems I missed your comment. If you have the compendia made a long time ago, they problably don't have the latest structure. Are they working on your classes if you add them manually (without my module)? I imagine we could get some help in the dnd5e channels to make a small script that would update those for you.