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

Character Importer Not Working #49

Open
mkniller opened this issue Nov 19, 2024 · 4 comments
Open

Character Importer Not Working #49

mkniller opened this issue Nov 19, 2024 · 4 comments

Comments

@mkniller
Copy link

Foundry: v12.331
MoSh: 0.5.24
Companion App: 3.1.7

I am running the latest version of MoSh and the updated version of the Mothership Companion app on iOS. I exported a character from the app to JSON and when I try to import the character using the import JSON button I get the following errors in my console:

image

Here is my exported character JSON:

{
    "id": "09eeac1c-2a09-45cd-bc26-390c45b0ecf2",
    "characterClass": "scientist",
    "name": "ELFIE LUDLOW",
    "pronouns": "HE / HIM",
    "thumbnailPath": "images/characters/Mothership Chars 06.png",
    "strength": 39,
    "speed": 35,
    "intellect": 47,
    "combat": 30,
    "sanity": 51,
    "fear": 19,
    "body": 25,
    "stress": 3,
    "minStress": 2,
    "maxWounds": 2,
    "wounds": 0,
    "maxHealth": 12,
    "health": 12,
    "credits": 60,
    "trinket": "Hooded Parka, Fleece-Lined",
    "patch": "“Be Sure: Doubletap”",
    "traumaResponse": "Whenever you fail a Sanity Save, all Close friendly players gain 1 Stress.",
    "highScore": 0,
    "bonusStat": "intellect",
    "skillTrainingYearsRemaining": 0,
    "skillTrainingMonthsRemaining": 0,
    "skills": [
        "computers",
        "hacking",
        "ai",
        "mathematics"
    ],
    "equipment": [
        {
            "id": "6a910cf7-b709-4f85-b3f1-ddfca760e063",
            "name": "Sample Collection Kit",
            "description": "Used to research xenoflora and xenofauna in the field. Can take vital signs, DNA samples, and collect other data on foreign material. Results may not be instaneous and may require a lab for complete analysis.",
            "equipped": true,
            "quantity": 1,
            "cost": 50,
            "baseType": "sampleKit"
        },
        {
            "id": "91a18986-eb03-4bf0-9627-21d8ba34b1e8",
            "name": "Flashlight",
            "description": "Handheld or shoulder mounted. Illuminates 10m ahead of the user.",
            "equipped": true,
            "quantity": 1,
            "cost": 30,
            "baseType": "flashlight"
        }
    ],
    "armor": [
        {
            "armorType": "vaccsuit",
            "id": "8d6672b5-f5ff-40ad-b8e9-a48b22259c1c",
            "name": "Vaccsuit",
            "equipped": true,
            "armorPoints": 3,
            "cost": 10000,
            "oxygenSupply": 12,
            "notes": "Includes short-range comms, headlamp, and radiation shielding. Decompression within 1d5 rounds if punctured.",
            "armorSpeed": "disadvantage",
            "broken": false
        }
    ],
    "weapons": [
        {
            "id": "15db4b35-e305-450b-835c-2312890789ab",
            "name": "HAN-290",
            "equipped": true,
            "cost": 350,
            "weaponRange": "close",
            "damageString": "1d10 DMG + 2d10 DMG when removed.",
            "shots": 1,
            "magazineSize": 1,
            "critical": "Bleeding [+]",
            "special": "100m micro-filament. Body Save or become entangled.",
            "weaponType": "Rigging Gun",
            "magazines": 0,
            "damage": [
                {
                    "damageType": "xd10",
                    "amount": 1
                },
                {
                    "damageType": "xd10",
                    "amount": 2
                }
            ],
            "baseType": "riggingGun"
        }
    ],
    "items": [
        {
            "title": "Lab Rat",
            "id": "81def0b9-3417-465e-a2d5-8d3be987c4e1",
            "cost": 0,
            "quantity": 1
        }
    ],
    "conditions": [],
    "creationComplete": true,
    "woundEffects": [],
    "contractors": [],
    "notes": ""
}
@Melon-PieldeSapo
Copy link
Collaborator

Im not sure the companion app json-export is compatible with foundry one.
As this ever worked on any version?
I'll look into this.

@mkniller
Copy link
Author

I don't know if it ever worked. I just found the app this week but have been using Foundry for a ling time. I saw the import JSON button and saw that the app exports JSON, so made the assumption that the they were compatible... my apologies if was incorrect.

@Melon-PieldeSapo
Copy link
Collaborator

no worrys, i had no idea this existed xD as i said, i will look into it to see if it can work.
regardless of that, this could be a nice feature to move character from foundry to the app. and the other way.

@hollowphoton
Copy link
Collaborator

This worked but the app made some fundamental changes to the structure of the results earlier this year. Updating the app ingestion is in the design phase on our wiki - we were holding for the app to solidify as many big updates were coming. They just put out another big update adding vtt features last week - and it should be relatively consistent now. I recommend we tackle this after we redesign classes and skills, so that we don't need to do duplicative work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants