BernhardPosselt / pf2e-kingmaker-tools

A collection of utilities to run the most popular PFRPG 2e sandbox adventure in FoundryVTT
GNU Affero General Public License v3.0
16 stars 9 forks source link

Broke the module with a custom camp action ? #25

Closed Steelskinz closed 1 year ago

Steelskinz commented 1 year ago

I don't really know how i've achieved that but it seems that I created a custom entry Named : (Kyouma) Marmiton Mystérieux and it broke the module, now i'm only stuck with that error :/ image

BernhardPosselt commented 1 year ago

Can you right click, "Export Data" on the camping actor and post it here?

Steelskinz commented 1 year ago

Good idea. I actually deleted the new entry and it started working again, here's the file that made it crash : (Might be because I wrote Artisanat and not Crafting)

{
  "prototypeToken": {
    "displayName": 30,
    "displayBars": 20,
    "sight": {
      "color": null,
      "enabled": false,
      "range": 0,
      "angle": 360,
      "visionMode": "basic",
      "attenuation": 0.1,
      "brightness": 0,
      "saturation": 0,
      "contrast": 0
    },
    "flags": {
      "monks-tokenbar": {
        "include": "default"
      },
      "tagger": {
        "tags": ""
      },
      "wall-height": {
        "tokenHeight": 0
      },
      "healthEstimate": {
        "dontMarkDead": false,
        "hideHealthEstimate": false,
        "hideName": false
      },
      "pf2e": {
        "linkToActorSize": true,
        "autoscale": true
      }
    },
    "detectionModes": [
      {
        "id": "basicSight",
        "range": 0,
        "enabled": true
      }
    ],
    "height": 1,
    "width": 1,
    "name": "Camping Sheet",
    "actorLink": false,
    "appendNumber": false,
    "prependAdjective": false,
    "texture": {
      "src": "systems/pf2e/icons/default-icons/npc.svg",
      "scaleX": 1,
      "scaleY": 1,
      "offsetX": 0,
      "offsetY": 0,
      "rotation": 0
    },
    "lockRotation": false,
    "rotation": 0,
    "alpha": 1,
    "disposition": -1,
    "bar1": {
      "attribute": "attributes.hp"
    },
    "bar2": {
      "attribute": null
    },
    "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
      }
    },
    "randomImg": false
  },
  "name": "Camping Sheet",
  "type": "npc",
  "effects": [],
  "system": {
    "attributes": {
      "hp": {
        "value": 10,
        "temp": 0,
        "max": 10,
        "details": ""
      },
      "initiative": {
        "statistic": "perception"
      },
      "speed": {
        "value": 25,
        "otherSpeeds": [],
        "details": ""
      },
      "ac": {
        "value": 10,
        "details": ""
      },
      "perception": {
        "value": 0
      },
      "allSaves": {
        "value": ""
      }
    },
    "details": {
      "alignment": {
        "value": "N"
      },
      "level": {
        "value": 1
      },
      "source": {
        "value": "",
        "author": ""
      },
      "creatureType": "",
      "blurb": "",
      "publicNotes": "",
      "privateNotes": ""
    },
    "traits": {
      "value": [],
      "senses": {
        "value": ""
      },
      "languages": {
        "value": [],
        "selected": [],
        "custom": ""
      },
      "rarity": "common",
      "size": {
        "value": "med"
      }
    },
    "resources": {},
    "schema": {
      "version": 0.845,
      "lastMigration": {
        "version": {
          "schema": 0.844,
          "foundry": "11.304",
          "system": "5.1.0"
        }
      }
    },
    "abilities": {
      "str": {
        "mod": 0
      },
      "dex": {
        "mod": 0
      },
      "con": {
        "mod": 0
      },
      "int": {
        "mod": 0
      },
      "wis": {
        "mod": 0
      },
      "cha": {
        "mod": 0
      }
    },
    "saves": {
      "fortitude": {
        "value": 0,
        "saveDetail": ""
      },
      "reflex": {
        "value": 0,
        "saveDetail": ""
      },
      "will": {
        "value": 0,
        "saveDetail": ""
      }
    }
  },
  "img": "icons/magic/fire/flame-burning-campfire-orange.webp",
  "items": [],
  "folder": "MqDkSm7Me1T2edNH",
  "flags": {
    "core": {},
    "scene-packer": {
      "hash": "8f3600d89a5174493500e10f1ab4d5230fedd03e",
      "sourceId": "Actor.Fg6CEdCTV0wEih2P",
      "defaultPermission": 3
    },
    "pf2e-kingmaker-tools": {
      "camping-sheet": {
        "actorUuids": [
          "Actor.qVnqMOIPaqzUPtRs",
          "Actor.xj558CasM9yHhdjX",
          "Actor.ROPPL4qgChUBFehM",
          "Actor.x0b78jSsex5i7YMn",
          "Actor.lnTi5rBqPJWCwxza",
          "Actor.JOd09TKNGPlpyDCh"
        ],
        "campingActivities": [
          {
            "activity": "Camouflage Campsite",
            "selectedSkill": "stealth",
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Cook Meal",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Discover Special Meal",
            "selectedSkill": "cooking",
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Hunt and Gather",
            "selectedSkill": "survival",
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Learn from a Companion",
            "selectedSkill": "perception",
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Organize Watch",
            "selectedSkill": "perception",
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Tell Campfire Story",
            "selectedSkill": "performance",
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Influence Amiri",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Discover Amiri",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Influence Ekundayo",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Discover Ekundayo",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Influence Jubilost",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Discover Jubilost",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Influence Linzi",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Discover Linzi",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Influence Nok-Nok",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Discover Nok-Nok",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Influence Tristian",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Discover Tristian",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Influence Valerie",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Discover Valerie",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Influence Harrim",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Discover Harrim",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Influence Jaethal",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Discover Jaethal",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Influence Kalikke",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Discover Kalikke",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Influence Kanerah",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Discover Kanerah",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Influence Octavia",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Discover Octavia",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Influence Regongar",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Discover Regongar",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Blend Into The Night",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Bolster Confidence",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Camp Management",
            "selectedSkill": "survival",
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Dawnflower's Blessing",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Enhance Campfire",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Enhance Weapons",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Intimidating Posture",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Maintain Armor",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Set Alarms",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Set Traps",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Undead Guardians",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Water Hazards",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Wilderness Survival",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "Prepare Campsite",
            "selectedSkill": "survival",
            "result": "success",
            "actorUuid": null
          },
          {
            "activity": "Unknown Activity",
            "selectedSkill": null,
            "result": null,
            "actorUuid": null
          },
          {
            "activity": "(Eir) Bricolage de Bivouac",
            "selectedSkill": "survival",
            "result": "success",
            "actorUuid": null
          },
          {
            "activity": "(Brynja) Imsomnolence Militaire",
            "actorUuid": null,
            "result": null,
            "selectedSkill": null
          }
        ],
        "cooking": {
          "chosenMeal": "Basic Meal",
          "actorMeals": [
            {
              "actorUuid": "Actor.qVnqMOIPaqzUPtRs",
              "favoriteMeal": null,
              "chosenMeal": "nothing"
            },
            {
              "actorUuid": "Actor.xj558CasM9yHhdjX",
              "favoriteMeal": null,
              "chosenMeal": "meal"
            },
            {
              "actorUuid": "Actor.ROPPL4qgChUBFehM",
              "favoriteMeal": null,
              "chosenMeal": "meal"
            },
            {
              "actorUuid": "Actor.x0b78jSsex5i7YMn",
              "favoriteMeal": null,
              "chosenMeal": "meal"
            },
            {
              "actorUuid": "Actor.lnTi5rBqPJWCwxza",
              "favoriteMeal": null,
              "chosenMeal": "meal"
            },
            {
              "actorUuid": "Actor.JOd09TKNGPlpyDCh",
              "favoriteMeal": null,
              "chosenMeal": "meal"
            }
          ],
          "magicalSubsistenceAmount": 0,
          "subsistenceAmount": 0,
          "knownRecipes": [
            "Basic Meal",
            "Hearty Meal",
            "Jeweled Rice",
            "Fish-On-A-Stick",
            "Haggis",
            "Rice-N-Nut Pudding"
          ],
          "homebrewMeals": [],
          "cookingSkill": "survival",
          "degreeOfSuccess": null
        },
        "restRollMode": "one",
        "currentRegion": "Brevoy",
        "dailyPrepsAtTime": -60470568692,
        "homebrewCampingActivities": [
          {
            "name": "Unknown Activity",
            "journalUuid": "",
            "skills": [],
            "skillRequirements": [],
            "modifyRandomEncounterDc": {
              "day": 0,
              "night": 0
            },
            "isSecret": false,
            "isLocked": false,
            "isHomebrew": true
          },
          {
            "name": "(Eir) Bricolage de Bivouac",
            "journalUuid": "JournalEntry.imrSSjAsdfrFFrRm.JournalEntryPage.j8MEF1PWQqJOIERH",
            "skills": [
              "survival"
            ],
            "skillRequirements": [],
            "modifyRandomEncounterDc": {
              "day": 0,
              "night": 0
            },
            "isSecret": false,
            "isLocked": false,
            "dc": "zone",
            "isHomebrew": true
          },
          {
            "name": "(Brynja) Imsomnolence Militaire",
            "journalUuid": "JournalEntry.imrSSjAsdfrFFrRm.JournalEntryPage.e7MRaPX7UyI9Jz5P",
            "skills": [
              "perception"
            ],
            "skillRequirements": [],
            "modifyRandomEncounterDc": {
              "day": 0,
              "night": 0
            },
            "isSecret": false,
            "isLocked": false,
            "dc": 20,
            "isHomebrew": true
          },
          {
            "name": "(Kyouma) Marmiton Mystérieux ",
            "journalUuid": "JournalEntry.imrSSjAsdfrFFrRm.JournalEntryPage.X6iF9ziQ0DpBTEXX",
            "skills": [
              "artisanat"
            ],
            "skillRequirements": [],
            "modifyRandomEncounterDc": {
              "day": 0,
              "night": 0
            },
            "isSecret": false,
            "isLocked": false,
            "dc": 20,
            "isHomebrew": true
          }
        ],
        "encounterModifier": 2,
        "gunsToClean": 0,
        "watchSecondsRemaining": 0,
        "actorUuidsNotKeepingWatch": [
          "Actor.E7wvrH9yyLz6gFX0"
        ],
        "increaseWatchActorNumber": 0,
        "lockedActivities": [
          "Camouflage Campsite",
          "Cook Meal",
          "Discover Special Meal",
          "Hunt and Gather",
          "Learn from a Companion",
          "Organize Watch",
          "Tell Campfire Story",
          "Influence Amiri",
          "Discover Amiri",
          "Influence Ekundayo",
          "Discover Ekundayo",
          "Influence Jubilost",
          "Discover Jubilost",
          "Influence Linzi",
          "Discover Linzi",
          "Influence Nok-Nok",
          "Discover Nok-Nok",
          "Influence Tristian",
          "Discover Tristian",
          "Influence Valerie",
          "Discover Valerie",
          "Influence Harrim",
          "Discover Harrim",
          "Influence Jaethal",
          "Discover Jaethal",
          "Influence Kalikke",
          "Discover Kalikke",
          "Influence Kanerah",
          "Discover Kanerah",
          "Influence Octavia",
          "Discover Octavia",
          "Influence Regongar",
          "Discover Regongar",
          "Blend Into The Night",
          "Bolster Confidence",
          "Camp Management",
          "Dawnflower's Blessing",
          "Enhance Campfire",
          "Enhance Weapons",
          "Intimidating Posture",
          "Maintain Armor",
          "Set Alarms",
          "Set Traps",
          "Undead Guardians",
          "Water Hazards",
          "Wilderness Survival",
          "Prepare Campsite",
          "Unknown Activity"
        ],
        "ignoreSkillRequirements": false,
        "huntAndGatherTargetActorUuid": null
      }
    },
    "exportSource": {
      "world": "echo",
      "system": "pf2e",
      "coreVersion": "11.305",
      "systemVersion": "5.1.2"
    }
  },
  "_stats": {
    "systemId": "pf2e",
    "systemVersion": "5.1.2",
    "coreVersion": "11.305",
    "createdTime": 1687463605303,
    "modifiedTime": 1689099025210,
    "lastModifiedBy": "DFoMOcOQ6thp8ygR"
  }
}
BernhardPosselt commented 1 year ago

"(Kyouma) Marmiton Mystérieux " had a trailing space. Fixed it for now, but in order for that activity to work correctly, you need to delete and recreate it on 0.2.18