Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"undefined reading strength" when you have a container actor #322

Open
scooper4711 opened this issue Oct 22, 2021 · 4 comments
Open

"undefined reading strength" when you have a container actor #322

scooper4711 opened this issue Oct 22, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@scooper4711
Copy link
Collaborator

I upgraded to the latest version of the code and am getting the following error in the console. I haven't tested if it's having a negative impact. I need to figure out which actors are impacted. This is output multiple times.

TypeError: Failed initial data preparation for Actor [Lqq6hnvfcE3vHbij]: Cannot read properties of undefined (reading 'strength')
    at HarnMasterActor.prepareDerivedData (actor.js:315)
    at HarnMasterActor.prepareData (foundry.js:9414)
    at HarnMasterActor._initialize (foundry.js:9226)
    at new Document (document.mjs:51)
    at new BaseActor (documents.mjs:61)
    at new <anonymous> (foundry.js:9199)
    at new Actor (foundry.js:12113)
    at new HarnMasterActor (actor.js:10)
    at Map._initialize (foundry.js:10161)
    at new WorldCollection (foundry.js:10147)
    at new Actors (foundry.js:10351)
    at Game.initializeEntities (foundry.js:4421)
    at Game.setupGame (foundry.js:4379)
    at async Game._initializeGameView (foundry.js:5213)
@toastygm
Copy link
Owner

I haven't seen this myself, and I can't reproduce it. Please provide a set of steps to reproduce the issue.

@jpmcdonald
Copy link

jpmcdonald commented Oct 22, 2021 via email

@scooper4711
Copy link
Collaborator Author

Still an issue in v9 and system 1.3.0.

Posting stack track from v9.

TypeError: Cannot read properties of undefined (reading 'strength')
[Detected 1 package: system:hm3]
    at HarnMasterActor.prepareDerivedData (actor.js:315:24)
    at HarnMasterActor.prepareData (foundry.js:10729:10)
    at HarnMasterActor._initialize (foundry.js:10526:12)
    at new Document (document.mjs:52:10)
    at new BaseActor (documents.mjs:62:1)
    at new <anonymous> (foundry.js:10499:5)
    at new Actor (foundry.js:13348:5)
    at new HarnMasterActor (actor.js:10:8)
    at Actors._initialize (foundry.js:11409:15)
    at new WorldCollection (foundry.js:11395:10)
    at new Actors (foundry.js:11598:1)
    at Game.initializeDocuments (foundry.js:5584:30)
    at Game.setupGame (foundry.js:5532:10)
    at async Game._initializeGameView (foundry.js:6498:5)

@scooper4711
Copy link
Collaborator Author

I found it. It appears if you have a container actor.

@scooper4711 scooper4711 changed the title undefined reading strength "undefined reading strength" when you have a container actor Jan 30, 2022
@scooper4711 scooper4711 added the bug Something isn't working label Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants