Gerdofal / foundryvtt-cyberpunkred

GNU General Public License v3.0
20 stars 18 forks source link

Characters cannot be updated in 0.42 #74

Closed hellogriffalo closed 3 years ago

hellogriffalo commented 3 years ago

Previously created characters cannot be updated in 0.42.

TypeError: Cannot read property '0' of null at actor.js:182 at Array.forEach () at cyberpunkredActor._prepareCharacterData (actor.js:181) at cyberpunkredActor.prepareData (actor.js:58) at cyberpunkredActor._onUpdate (foundry.js:30947) at foundry.js:29544 at Array.map () at Function._handleUpdate (foundry.js:29537) at Function.update (foundry.js:29518) at async cyberpunkredActorSheet._onSubmit (foundry.js:5255) actors - Copy.txt

Gerdofal commented 3 years ago

The humanityarray entries got corrupted, I had a bad default in for them. Sorry about that one.

Try this:

Manually edit actors.db for your world.

Replace all instances of this: "humanityarray": [0, "Start", null], With this: "humanityarray": [],

if that doesn't work, try this:

Replace all instances of this: "humanityarray": [null, null, null], With this: "humanityarray": [],

Let me know if that helps?

hellogriffalo commented 3 years ago

That fixes the problem, thank you.