Gerdofal / foundryvtt-cyberpunkred

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

Upgrading to 0.42 presents interface undefined error on new character actors #97

Closed SeriousSemantics closed 3 years ago

SeriousSemantics commented 3 years ago

Hi,

When upgrading to the Cyberpunk Red module to 0.42, existing character actor sheets are not able to be loaded. Attempting to create a new character prompts for data migration, but console returns this error when the migration field goes green: TypeError: Cannot read property 'interface' of undefined at cyberpunkredActor._prepareCharacterData (actor.js:401) at cyberpunkredActor.prepareData (actor.js:58) at cyberpunkredActor.prepareData (dae.js:525) at cyberpunkredActor._onUpdate (foundry.js:30938) at foundry.js:29535 at Array.map () at Function._handleUpdate (foundry.js:29528) at Function.update (foundry.js:29509) at async cyberpunkredActorSheet._onSubmit (foundry.js:5245)

Gerdofal commented 3 years ago

I can't duplicate this with new characters at all, but it is possible the character causing the problem is actually not the new one. Can you upload the actors.do in your world folder please?

In which version were the old characters made?

SeriousSemantics commented 3 years ago

Sure, I believe I was on 0.40 when they were made.

actors.zip

SeriousSemantics commented 3 years ago

I've found that clearing my browser cache seems to have fixed this, all works OK now. Not sure what happened!