WookieeMatt / Essence20

Other
11 stars 4 forks source link

Transformers Orgins Compendium does not transfer over #445

Closed SDHshadow closed 1 year ago

SDHshadow commented 1 year ago

Every time I try to put an origin from the compendium onto a character sheet it gives me the following error.

Uncaught (in promise) TypeError: undefined. Cannot read properties of undefined (reading 'essences') [Detected 1 package: system:essence20] at Essence20ActorSheet._showOriginEssenceDialog (actor-sheet.mjs:894:72) at async Essence20ActorSheet._onDropItem (actor-sheet.mjs:739:7)

It won't put its data into the sheet no matter what I do.

phildominguez commented 1 year ago

Restarting your Foundry server should fix that, but let us know if not!

SDHshadow commented 1 year ago

It does not.

phildominguez commented 1 year ago

Gotcha, we're looking into this.

phildominguez commented 1 year ago

Hoping to release this fix tomorrow. Sit tight!

phildominguez commented 1 year ago

Let us know how you fare with the new update/fix (https://github.com/WookieeMatt/Essence20/releases/tag/v3.2.1)

SDHshadow commented 1 year ago

Tried again, and it still gives the same error. I made sure that it was updated to 3.2.1

SDHshadow commented 1 year ago

After doing some small tests, I can confirm that it's caused by the Transformer's Sheet itself, rather than the origins. Tested with other sheets and the Transformer Origins work with them and do not give an Error. I also tested other Origins with the Transformers Sheet and it gave the same error as well.

phildominguez commented 1 year ago

Just to confirm, does this error happen for newly created Transformers, or only ones that already existed before updating?

SDHshadow commented 1 year ago

Just confirmed, it's only the ones that were made beforehand.

phildominguez commented 1 year ago

Gotcha. The best way we could help at this point would be to get the contents of the actor object. Could you run game.actors in the console, expand Entries, expand a troublesome actor, then right click value and copy/paste the object here? image

SDHshadow commented 1 year ago

{ "name": "Sideways", "type": "transformer", "_id": "mcvRAgvLdr7AmWLb", "img": "icons/svg/mystery-man.svg", "system": { "altModeName": "", "altModeSize": "", "canMorph": false, "canTransform": true, "color": "#e04815", "conditioning": 0, "description": "", "essenceShifts": { "any": { "shiftUp": 0, "shiftDown": 0 }, "smarts": { "shiftUp": 0, "shiftDown": 0 }, "social": { "shiftUp": 0, "shiftDown": 0 }, "speed": { "shiftUp": 0, "shiftDown": 0 }, "strength": { "shiftUp": 0, "shiftDown": 0 } }, "health": { "max": 2, "min": 0, "value": 2 }, "initiative": { "edge": false, "formula": "2d20kl + 0", "modifier": 0, "snag": false, "shift": "d20", "shiftDown": 0, "shiftUp": 0 }, "isMorphed": false, "isTransformed": false, "movement": { "aerial": { "altMode": 0, "base": 0, "bonus": 0, "morphed": 0, "total": 0 }, "ground": { "altMode": 0, "base": 0, "bonus": 0, "morphed": 0, "total": 0 }, "swim": { "altMode": 0, "base": 0, "bonus": 0, "morphed": 0, "total": 0 } }, "size": "common", "skills": { "acrobatics": { "essences": { "smarts": false, "social": false, "speed": true, "strength": false }, "edge": false, "isSpecialized": false, "modifier": 0, "shift": "d2", "shiftDown": 0, "shiftUp": 0, "snag": false }, "alertness": { "essences": { "smarts": true, "social": false, "speed": false, "strength": false }, "edge": false, "isSpecialized": false, "modifier": 0, "shift": "d8", "shiftDown": 0, "shiftUp": 0, "snag": false }, "animalHandling": { "essences": { "smarts": false, "social": true, "speed": false, "strength": false }, "edge": false, "isSpecialized": false, "modifier": 0, "shift": "d20", "shiftDown": 0, "shiftUp": 0, "snag": false }, "athletics": { "essences": { "smarts": false, "social": false, "speed": false, "strength": true }, "edge": false, "isSpecialized": false, "modifier": 0, "shift": "d20", "shiftDown": 0, "shiftUp": 0, "snag": false }, "brawn": { "essences": { "smarts": false, "social": false, "speed": false, "strength": true }, "edge": false, "isSpecialized": false, "modifier": 0, "shift": "d2", "shiftDown": 0, "shiftUp": 0, "snag": false }, "culture": { "essences": { "smarts": true, "social": false, "speed": false, "strength": false }, "edge": false, "isSpecialized": false, "modifier": 0, "shift": "d20", "shiftDown": 0, "shiftUp": 0, "snag": false }, "deception": { "essences": { "smarts": false, "social": true, "speed": false, "strength": false }, "edge": false, "isSpecialized": false, "modifier": 0, "shift": "d12", "shiftDown": 0, "shiftUp": 0, "snag": false }, "driving": { "essences": { "smarts": false, "social": false, "speed": true, "strength": false }, "edge": false, "isSpecialized": false, "modifier": 0, "shift": "d6", "shiftDown": 0, "shiftUp": 0, "snag": false }, "finesse": { "essences": { "smarts": false, "social": false, "speed": true, "strength": false }, "edge": false, "isSpecialized": false, "modifier": 0, "shift": "d20", "shiftDown": 0, "shiftUp": 0, "snag": false }, "infiltration": { "essences": { "smarts": false, "social": false, "speed": true, "strength": false }, "edge": false, "isSpecialized": false, "modifier": 0, "shift": "d6", "shiftDown": 0, "shiftUp": 0, "snag": false }, "intimidation": { "essences": { "smarts": false, "social": false, "speed": false, "strength": true }, "edge": false, "isSpecialized": false, "modifier": 0, "shift": "d2", "shiftDown": 0, "shiftUp": 0, "snag": false }, "might": { "essences": { "smarts": false, "social": false, "speed": false, "strength": true }, "edge": false, "isSpecialized": false, "modifier": 0, "shift": "d4", "shiftDown": 0, "shiftUp": 0, "snag": false }, "performance": { "essences": { "smarts": false, "social": true, "speed": false, "strength": false }, "edge": false, "isSpecialized": false, "modifier": 0, "shift": "d4", "shiftDown": 0, "shiftUp": 0, "snag": false }, "persuasion": { "essences": { "smarts": false, "social": true, "speed": false, "strength": false }, "edge": false, "isSpecialized": false, "modifier": 0, "shift": "d4", "shiftDown": 0, "shiftUp": 0, "snag": false }, "science": { "essences": { "smarts": true, "social": false, "speed": false, "strength": false }, "edge": false, "isSpecialized": false, "modifier": 0, "shift": "d4", "shiftDown": 0, "shiftUp": 0, "snag": false }, "spellcasting": { "essences": { "smarts": true, "social": true, "speed": true, "strength": true }, "edge": false, "isSpecialized": false, "modifier": 0, "shift": "d20", "shiftDown": 0, "shiftUp": 0, "snag": false }, "streetwise": { "essences": { "smarts": false, "social": true, "speed": false, "strength": false }, "edge": false, "isSpecialized": false, "modifier": 0, "shift": "d4", "shiftDown": 0, "shiftUp": 0, "snag": false }, "survival": { "essences": { "smarts": true, "social": false, "speed": false, "strength": false }, "edge": false, "isSpecialized": false, "modifier": 0, "shift": "d20", "shiftDown": 0, "shiftUp": 0, "snag": false }, "targeting": { "essences": { "smarts": false, "social": false, "speed": true, "strength": false }, "edge": false, "isSpecialized": false, "modifier": 0, "shift": "d4", "shiftDown": 0, "shiftUp": 0, "snag": false }, "technology": { "essences": { "smarts": true, "social": false, "speed": false, "strength": false }, "edge": false, "isSpecialized": false, "modifier": 0, "shift": "d6", "shiftDown": 0, "shiftUp": 0, "snag": false } }, "stun": { "max": 4, "min": 0, "value": 0 }, "languages": "", "background": { "pronouns": "", "role": "" }, "defenses": { "toughness": { "armor": 0, "base": 10, "bonus": 0, "essence": "strength", "morphed": 0, "name": "toughness" }, "evasion": { "armor": 0, "base": 10, "bonus": 0, "essence": "speed", "morphed": 0, "name": "evasion" }, "willpower": { "armor": 0, "base": 10, "bonus": 0, "essence": "smarts", "morphed": 0, "name": "willpower" }, "cleverness": { "armor": 0, "base": 10, "bonus": 2, "essence": "social", "morphed": 0, "name": "cleverness" } }, "essences": { "strength": 6, "speed": 8, "smarts": 8, "social": 10 }, "influenceIds": [], "level": 17, "notes": "", "energon": 0, "externalHardpoints": 2, "internalHarpoints": 2, "transformerFaction": "autobots", "pronouns": "He/Him", "role": "", "focus": "", "altModeId": "" }, "prototypeToken": { "name": "New Actor", "displayName": 0, "actorLink": false, "appendNumber": false, "prependAdjective": false, "texture": { "src": "icons/svg/mystery-man.svg", "scaleX": 1, "scaleY": 1, "offsetX": 0, "offsetY": 0, "rotation": 0 }, "width": 1, "height": 1, "lockRotation": false, "rotation": 0, "alpha": 1, "disposition": -1, "displayBars": 0, "bar1": { "attribute": "health" }, "bar2": { "attribute": "stun" }, "light": { "alpha": 0.5, "angle": 360, "bright": 0, "coloration": 1, "dim": 0, "attenuation": 0.5, "luminosity": 0.5, "saturation": 0, "contrast": 0, "shadows": 0, "animation": { "type": null, "speed": 5, "intensity": 5, "reverse": false }, "darkness": { "min": 0, "max": 1 } }, "sight": { "enabled": false, "range": 0, "angle": 360, "visionMode": "basic", "attenuation": 0.1, "brightness": 0, "saturation": 0, "contrast": 0 }, "detectionModes": [], "flags": {}, "randomImg": false }, "items": [ { "name": "Energon", "type": "classFeature", "system": { "description": "", "source": { "book": "", "page": null }, "uses": { "max": 0, "value": 0 } }, "_id": "s0Y4WYSZUlbVik2H", "img": "icons/svg/item-bag.svg", "effects": [], "folder": null, "sort": 0, "ownership": { "default": 0, "hLyQDdnLzT5mMpdB": 3 }, "flags": { "scene-packer": { "hash": "84df191f2b7a0c747112e9a4f378ea7c8563a503" } }, "_stats": { "systemId": "essence20", "systemVersion": "3.2.0", "coreVersion": "11.301", "createdTime": 1686424913840, "modifiedTime": 1686424913840, "lastModifiedBy": "hLyQDdnLzT5mMpdB" } }, { "name": "Former Senator", "type": "influence", "img": "systems/essence20/assets/icons/influence.svg", "system": { "description": "", "source": { "book": "Transformers Core Rulebook", "page": 33 }, "bond": "", "hangUpIds": [ "79jifb9w1OlopUUY", "DMzShKiIJk3doOpA", "SgofEgBVvg4josSR" ], "perkIds": [ "VT5kHEUWO439MmFM" ], "skills": [] }, "effects": [], "flags": { "core": { "sourceId": "Compendium.essence20.tf_crb_influences.Item.Slrso9jMespO5Hnj" }, "scene-packer": { "hash": "d81d6464ece2e9004e22b29f86657497c7ee95a6" } }, "_stats": { "systemId": "essence20", "systemVersion": "3.2.0", "coreVersion": "11.301", "createdTime": 1686279389638, "modifiedTime": 1686425243149, "lastModifiedBy": "hLyQDdnLzT5mMpdB" }, "_id": "oR819Csgw2wlJG2Y", "folder": null, "sort": 0, "ownership": { "default": 0, "uV0SeiWheup9xTBc": 3, "hLyQDdnLzT5mMpdB": 3 } }, { "name": "Former Senator", "type": "perk", "img": "systems/essence20/assets/icons/perk.svg", "_id": "VT5kHEUWO439MmFM", "folder": null, "sort": 0, "system": { "description": "", "source": { "book": "", "page": null }, "prerequisite": null, "type": "general" }, "effects": [], "ownership": { "default": 0, "hLyQDdnLzT5mMpdB": 3 }, "flags": { "scene-packer": { "hash": "9b8e1a1f1b476a3090260601238c71866c7d0682" } }, "_stats": { "systemId": "essence20", "systemVersion": "3.2.0", "coreVersion": "11.301", "createdTime": 1686425243111, "modifiedTime": 1686425243111, "lastModifiedBy": "hLyQDdnLzT5mMpdB" } }, { "name": "Scavenger", "type": "influence", "img": "systems/essence20/assets/icons/influence.svg", "system": { "description": "", "source": { "book": "Transformers Core Rulebook", "page": 39 }, "bond": "", "hangUpIds": [ "L2oBtS3KAwncY2xY", "KwvsyHeuUqRbto9u", "XLDVNcC9B4hnSppZ" ], "perkIds": [ "qXwwUhRGMaLZxW4z" ], "skills": [] }, "effects": [], "flags": { "core": { "sourceId": "Compendium.essence20.tf_crb_influences.Item.jlLx6d09AAVp60gC" }, "scene-packer": { "hash": "d71e4d540c8c62e9f6e734f17ac7495717ad2ff8" } }, "_stats": { "systemId": "essence20", "systemVersion": "3.2.0", "coreVersion": "11.301", "createdTime": 1686279769093, "modifiedTime": 1686425246060, "lastModifiedBy": "hLyQDdnLzT5mMpdB" }, "_id": "91eEvvKlVlYs5KMz", "folder": null, "sort": 0, "ownership": { "default": 0, "uV0SeiWheup9xTBc": 3, "hLyQDdnLzT5mMpdB": 3 } }, { "name": "Scavenger", "type": "perk", "img": "systems/essence20/assets/icons/perk.svg", "_id": "qXwwUhRGMaLZxW4z", "folder": null, "sort": 0, "system": { "description": "", "source": { "book": "", "page": null }, "prerequisite": null, "type": "general" }, "effects": [], "ownership": { "default": 0, "hLyQDdnLzT5mMpdB": 3 }, "flags": { "scene-packer": { "hash": "674277f9937160bafb4a01eeef94edca7ace7c6b" } }, "_stats": { "systemId": "essence20", "systemVersion": "3.2.0", "coreVersion": "11.301", "createdTime": 1686425246028, "modifiedTime": 1686425246028, "lastModifiedBy": "hLyQDdnLzT5mMpdB" } }, { "name": "Lookout", "type": "altMode", "img": "systems/essence20/assets/icons/altmode.svg", "system": { "description": "", "source": { "book": "Transformers Core Rulebook", "page": 50 }, "crew": 0, "firepoints": 0, "movement": { "aerial": 0, "aquatic": 0, "ground": 0 }, "size": "common", "altModeMovement": { "aerial": 20, "aquatic": 0, "ground": 45 }, "altModesize": "common", "altModeCrew": 1, "altModeFirepoints": 1 }, "effects": [], "flags": { "core": { "sourceId": "Compendium.essence20.tf_crb_altmodes.Item.ZS3kX8oKogmsH6OK" }, "scene-packer": { "hash": "03c4b9d7b87635990e14716ec6cfde812574201a" } }, "_stats": { "systemId": "essence20", "systemVersion": "3.2.0", "coreVersion": "11.301", "createdTime": 1681742157429, "modifiedTime": 1686425467392, "lastModifiedBy": "hLyQDdnLzT5mMpdB" }, "_id": "alt9lK61ryby1uZw", "folder": null, "sort": 0, "ownership": { "default": 0, "7053GIZajoVMkVTP": 3, "hLyQDdnLzT5mMpdB": 3 } }, { "name": "Look Out!", "type": "perk", "img": "systems/essence20/assets/icons/perk.svg", "system": { "description": "", "source": { "book": "Transformers Core Rulebook", "page": 50 }, "prerequisite": "", "type": "origin" }, "effects": [ { "icon": "icons/svg/aura.svg", "origin": "Item.FDRxSxEYSzPlvtgx", "duration": { "startTime": null, "seconds": null, "combat": null, "rounds": null, "turns": null, "startRound": null, "startTurn": null }, "disabled": false, "_id": "glJ8S557Fs65lKiM", "changes": [ { "key": "system.bonuses.evasion", "mode": 2, "value": "2", "priority": null } ], "tint": null, "transfer": true, "flags": {}, "name": "Look Out!", "description": "", "statuses": [] } ], "flags": { "core": { "sourceId": "Compendium.essence20.tf_crb_perks.FDRxSxEYSzPlvtgx" }, "scene-packer": { "hash": "cec6e493157f34fa2b1bfd0affbdefdacfbeb2b4" } }, "_stats": { "systemId": "essence20", "systemVersion": "3.2.0", "coreVersion": "11.301", "createdTime": 1681740594635, "modifiedTime": 1686426329936, "lastModifiedBy": "hLyQDdnLzT5mMpdB" }, "_id": "qpBYeoN4wc7p8qyi", "folder": null, "sort": 0, "ownership": { "default": 0, "TM06J6E3IH7IW4N3": 3, "hLyQDdnLzT5mMpdB": 3 } }, { "name": "For The Allspark!", "type": "perk", "img": "systems/essence20/assets/icons/perk.svg", "system": { "description": "", "source": { "book": "Transformers Core Rulebook", "page": 56 }, "prerequisite": "", "type": "faction" }, "effects": [], "flags": { "core": { "sourceId": "Compendium.essence20.tf_crb_perks.Item.UMlH70vmM3kJzWvS" }, "scene-packer": { "hash": "c3729ea51e0baa40a1fafa66a852396a251bcec7" } }, "_stats": { "systemId": "essence20", "systemVersion": "3.2.0", "coreVersion": "11.301", "createdTime": 1686316891853, "modifiedTime": 1686426770893, "lastModifiedBy": "hLyQDdnLzT5mMpdB" }, "_id": "w9tWY6yJw6sgzVvk", "folder": null, "sort": 0, "ownership": { "default": 0, "uV0SeiWheup9xTBc": 3, "hLyQDdnLzT5mMpdB": 3 } }, { "name": "Disguise", "type": "specialization", "system": { "isSpecialized": true, "shift": "d6", "skill": "deception" }, "_id": "lOkCBpXaqBMyPnWW", "img": "icons/svg/item-bag.svg", "effects": [], "folder": null, "sort": 0, "ownership": { "default": 0, "hLyQDdnLzT5mMpdB": 3 }, "flags": { "scene-packer": { "hash": "9ebfe259912a313d53ada432a1ab12f248169335" } }, "_stats": { "systemId": "essence20", "systemVersion": "3.2.0", "coreVersion": "11.301", "createdTime": 1686427037571, "modifiedTime": 1686427045912, "lastModifiedBy": "hLyQDdnLzT5mMpdB" } }, { "name": "Additional Alt Mode", "type": "perk", "img": "systems/essence20/assets/icons/perk.svg", "system": { "description": "", "source": { "book": "Transformers Core Rulebook", "page": 107 }, "prerequisite": "Level 2", "type": "general" }, "effects": [], "flags": { "core": { "sourceId": "Compendium.essence20.tf_crb_perks.Item.M5QL4PBD0XoinRKA" }, "scene-packer": { "hash": "94c9494ef147d60f24ad42bd80dbbe5145074cbc" } }, "_stats": { "systemId": "essence20", "systemVersion": "3.2.0", "coreVersion": "11.301", "createdTime": 1686274219205, "modifiedTime": 1686428837449, "lastModifiedBy": "hLyQDdnLzT5mMpdB" }, "_id": "U4v4OgMOZvtPaALK", "folder": null, "sort": 0, "ownership": { "default": 0, "uV0SeiWheup9xTBc": 3, "hLyQDdnLzT5mMpdB": 3 } }, { "name": "Acute Sense", "type": "perk", "img": "systems/essence20/assets/icons/perk.svg", "system": { "description": "", "source": { "book": "Transformers Core Rulebook", "page": 107 }, "prerequisite": "", "type": "general" }, "effects": [], "flags": { "core": { "sourceId": "Compendium.essence20.tf_crb_perks.Item.rl8hs6ezb6VSDahM" }, "scene-packer": { "hash": "56855ac2b51a936f6d4cdad8b6a6ab896b3b0d50" } }, "_stats": { "systemId": "essence20", "systemVersion": "3.2.1", "coreVersion": "11.301", "createdTime": 1686274133848, "modifiedTime": 1686600991352, "lastModifiedBy": "hLyQDdnLzT5mMpdB" }, "_id": "dbykJFXmzZmxw6zA", "folder": null, "sort": 0, "ownership": { "default": 0, "uV0SeiWheup9xTBc": 3, "hLyQDdnLzT5mMpdB": 3 } }, { "name": "Seeker", "type": "altMode", "img": "systems/essence20/assets/icons/altmode.svg", "system": { "description": "", "source": { "book": "Transformers Core Rulebook", "page": 53 }, "crew": 0, "firepoints": 0, "movement": { "aerial": 0, "aquatic": 0, "ground": 0 }, "size": "common", "altModeMovement": { "aerial": 60, "aquatic": 0, "ground": 0 }, "altModesize": "long", "altModeCrew": 2, "altModeFirepoints": 0 }, "effects": [], "flags": { "core": { "sourceId": "Compendium.essence20.tf_crb_altmodes.Item.RXTZuPJnnAlkgHX2" }, "scene-packer": { "hash": "617c723da0727355aa9c9181a439a773a2603acd" } }, "_stats": { "systemId": "essence20", "systemVersion": "3.2.1", "coreVersion": "11.301", "createdTime": 1681742425610, "modifiedTime": 1686601026777, "lastModifiedBy": "hLyQDdnLzT5mMpdB" }, "_id": "w4Ku16lZJZ52Xo3i", "folder": null, "sort": 0, "ownership": { "default": 0, "7053GIZajoVMkVTP": 3, "hLyQDdnLzT5mMpdB": 3 } } ], "effects": [ { "icon": "icons/svg/aura.svg", "origin": "Actor.mcvRAgvLdr7AmWLb.Item.qpBYeoN4wc7p8qyi", "duration": { "startTime": 0, "seconds": null, "combat": null, "rounds": null, "turns": null, "startRound": null, "startTurn": null }, "disabled": false, "_id": "i7DhbhjHlzJwXjC1", "changes": [ { "key": "system.bonuses.evasion", "mode": 2, "value": "2", "priority": null } ], "tint": null, "transfer": false, "flags": {}, "name": "Look Out!", "description": "", "statuses": [] } ], "folder": null, "sort": 0, "ownership": { "default": 0, "hLyQDdnLzT5mMpdB": 3 }, "flags": { "scene-packer": { "hash": "23cd771b297c7196c89c08e8df937d8f62079e2f" } }, "_stats": { "systemId": "essence20", "systemVersion": "3.2.1", "coreVersion": "11.301", "createdTime": 1686424913798, "modifiedTime": 1686601026777, "lastModifiedBy": "hLyQDdnLzT5mMpdB" } }

phildominguez commented 1 year ago

Thanks for sending those, they check out fine. The good news is I'm able to replicate the issue. It seems to happen on sheets where there is an Influence on the actor that doesn't have exactly 1 skill set. I can even get it on sheets for new actors. I'll be looking into this today.

phildominguez commented 1 year ago

Try updating now (3.2.3) and let us know if it resolves your issue

SDHshadow commented 1 year ago

Can confirm that it works now! Glad to get that fixed.