foundryvtt / foundryvtt

Public issue tracking and documentation for Foundry Virtual Tabletop - software connecting RPG gamers in a shared multiplayer environment with an intuitive interface and powerful API.
https://foundryvtt.com/
192 stars 10 forks source link

Creating a world with unset packfolder colors errors on startup #10802

Closed CarlosFdez closed 2 weeks ago

CarlosFdez commented 2 weeks ago

What happened?

If you create a world for a system that have packfolders but without setting colors in system.json, the world does not start.

What ways of accessing Foundry can you encounter this issue in?

Reproduction Steps

In PF2e during development, the world initially didn't start (server version 12.319). I added color props to all pack folders and nested folders (after digging through bug reports in the discord) and that allowed us to start. I tested removing them and creating a new world (not an existing world) and the errors is still there.

From the user side, this is all you see: image

What core version are you reporting this for?

12.310

Relevant log output

The server side (I'm running with the NodeJS version for v12) has a more interesting error message.

FoundryVTT | 2024-04-30 05:26:09 | [error] Cannot read properties of null (reading 'css')
TypeError: Cannot read properties of null (reading 'css')
    at n (file:///E:/FoundryVTT-12.320/resources/app/dist/packages/world.mjs:1:6549)
    at #i (file:///E:/FoundryVTT-12.320/resources/app/dist/packages/world.mjs:1:6930)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async #s (file:///E:/FoundryVTT-12.320/resources/app/dist/packages/world.mjs:1:5920)
    at async World.updateActivePacks (file:///E:/FoundryVTT-12.320/resources/app/dist/packages/world.mjs:1:5459)
    at async World.setup (file:///E:/FoundryVTT-12.320/resources/app/dist/packages/world.mjs:1:9773)

Bug Checklist

aaclayton commented 2 weeks ago

Closing as duplicate of https://github.com/foundryvtt/foundryvtt/issues/10545

CarlosFdez commented 2 weeks ago

Whoops, I checked, but I couldn't find it. Turns out its a bit old, muhbad.