#TGCE Restyler troubleshooting

1 messages · Page 1 of 1 (latest)

hybrid nexus
#

@fluid galleon adding for visibility

#

TCGE Restyler troubleshooting

#

TGCE Restyler troubleshooting

junior kernel
fluid galleon
#

aye, ta

#

Okay so, i put it in and it gave me this

#

Uncaught TypeError: Cannot read properties of null (reading 'includes') at <anonymous>:1:53 at Array.find (<anonymous>) at <anonymous>:1:34

#

Not sure waht that means, this goes beyond my knowledge now

junior kernel
#

ok. now try just..

document.styleSheets

and paste a screenshot of the output

fluid galleon
#

sorry ill pop out the console

junior kernel
#

can you pop out the dev tools or drag it wider. Looking to see all the names of the stylesheets

#

looking for this

fluid galleon
#

yeh got u

hybrid nexus
#

Array.from(document.styleSheets).find((e) => e.href?.includes("tgce-restyler-5e3-nav.css"));

#

corrected, it was being tripped up by null href attribute styles

#

(though, i think the evidence you were looking for is there, just fyi)

junior kernel
#

yeah, the new version has that '?' in many new places i was tripping myself up on.

#

so @fluid galleon , for now, try this...

document.styleSheets[7].disabled = true;
fluid galleon
#

that fixed it

junior kernel
#

ok, thats a temp fix. You'll have to do that everytime you refresh the browser/reload the app

fluid galleon
#

i can manage that

junior kernel
#

new version has this handled a lot better. I'm close to release, possibly this weekend, but I want to make sure its really tight so am not rushing it.

#

your players will need to do it too if they want the buttons moved back.

fluid galleon
#

no worries, i dont have a game till thursday anyway and I can just fire that into the console it will take me seconds, nae hassle

#

thanks for your help

#

appreciate it greatly

junior kernel
#

you are quite welcome.

#

feel free to ping me in this thread at anytime.

fluid galleon
#

will do, thanks!

#

keep up the good work xD

junior kernel
#

also, if you enable any other mods that add stylesheets, you may need to run the document.styleSheets command again to get the proper number of the sheet.

fluid galleon
#

i only have your one enabled but that is good to know

junior kernel
#

aditional stylesheet adds could change the ordering and the tgce-restyler-5e3-nav.css position in the list

fluid galleon
#

got it

#

i shouldnt be going near it anytime soon anyway

hybrid nexus
#

Array.from(document.styleSheets).find((e) => e.href?.includes("tgce-restyler-5e3-nav.css")).disabled = true;

#

i think that will disable it regardless of position

junior kernel
#

true, that would do it

#

should be able to macro that too

plucky vessel
#

Hello ! first of all, a big thanks for all your work, we having a great time with my players customizing their character sheets !!

I have a question, since the last update, the icons (inventory, spells etc.) are moved back to the right, I can't find a way to put them back up, even though I selected the option in the parameters. I tried unchecking every other modules one by one.
Is this feature not there anymore, or am I missing something ?

It just a detail, I ll have a lot of fun with your module as it is anyway !

junior kernel
#

@plucky vessel Are you talking about the navigaion tabs that hang on the right side of the character sheet?

#

If you mean these, and I think you do, then yes. That has been removed from the module.

#

The CSS to move those tabs and the CSS to alter many of the header elements tend to step on each other as the mod has gotten more complex. I have been able to get it to 'work', but its not as clean or reliable as I want it to be to include it in current releases.

#

Will likely be back in a future update. I am still toying with it in my dev environment.

plucky vessel
#

exactly the navigation tab 🙂
ok great to know I thought I was missing it somewhere !
Ho I totally understand, you were right to do so
thanks again