OctarineSourcerer / cyberpunk2020

A FoundryVTT system for Cyberpunk 2020. It's playable now! There's a lot of hole, because there's a LOT of system to cover, but it should be mostly usable <3
23 stars 21 forks source link

Update to 0.8.6: basic skill not appearing in character sheet. #81

Open vicsufer opened 3 years ago

vicsufer commented 3 years ago

Hi guys, great job you're doign here. I've updated the core system and then cyberpunk2020 system:

Migrations seems to fail for basic skills and the character sheet appears empty, image

I'm getting the following logs:


FoundryVTT | 2021-06-18 20:25:07 | [error] ENOENT: no such file or directory, rename '/data/Data/systems/cyberpunk2020/packs/default-skills.db~' -> '/data/Data/systems/cyberpunk2020/packs/default-skills.db'

Error: ENOENT: no such file or directory, rename '/data/Data/systems/cyberpunk2020/packs/default-skills.db~' -> '/data/Data/systems/cyberpunk2020/packs/default-skills.db'

# More and more attemps with the same output (Up to 10 or so)

Also when reloading the browser I get the following logs:

FoundryVTT | 2021-06-18 20:38:45 | [error] The cyberpunk2020.default-skills Datastore is not yet connected!
Error: The cyberpunk2020.default-skills Datastore is not yet connected!
    at Function.get db [as db] (file:///home/foundry/resources/app/dist/database/backend/server-document.mjs:1:625)
    at ServerDatabaseBackend._getDocuments (file:///home/foundry/resources/app/dist/database/backend/server-backend.mjs:1:975)
    at ServerDatabaseBackend.get (file:///home/foundry/resources/app/common/abstract/backend.mjs:27:22)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

I have a backup of my old data, however is there any quickfix or workaround?

OctarineSourcerer commented 3 years ago

Huuuh. It looks like the default-skills compendium isn't being found for some reason. A couple questions:

In the meantime, try hitting F12, open the console tab, and run game.cyberpunk.migrateWorld(), and see what that does :)

vicsufer commented 3 years ago

So a few updates on this:

The cyberpunk2020/packs folder does contain default-skills.db file, and as new characters are created their skills are on the sheet, so the error may no relate to missing files. (Maybe migration runned before packs directory receive new files? )

After running `game.cyberpunk.migrateWorld()``some characters recovered its skills partially while some others are still blank. 🤷 (No errors executing the migrateWorld function)

For now I will create new character sheets as it is not very painful (I'm still in campaign prep) but I will preserve old sheets in case you want to perform further test/debugging. I can also provide a compressed version of the pre-migrated world folder if desired.

OctarineSourcerer commented 3 years ago

Those details will help a lot, thank you! I'm almost certain that the problem is to do with migration. Really hoped I'd gotten the last of the bugs in that one, but apparently not. It's been a wild ride trying to get all skills that had points previously to migrate successfully. Is the version you're using with the spanish translation you made? There are a couple places where my code might be a bit brittle about that.

A compressed version of the pre-migrated world would be amazing, thank you! I'm glad this didn't happen to you mid-game, that would have been a panic for sure.

OctarineSourcerer commented 3 years ago

@vicsufer Still got that zip around? Don't think I'll be able to reproduce without as it stands

vicsufer commented 3 years ago

Sorry for the late response, I had a busy week. The migration was made with your version not the one with the spanish translation. Here's a link to my premigrated world, hope it is useful. https://mega.nz/file/9JNxQYyA#EISg4laaNr6uKNH8vbT_BFjBkwxGdZQQ9LsxhiVAfWs