Skateside / pocket-grimoire

A mobile version of the Blood on the Clocktower grimoire
https://www.pocketgrimoire.co.uk
GNU General Public License v3.0
34 stars 14 forks source link

Custom Script "invalid data" error #46

Closed Kethuel closed 1 year ago

Kethuel commented 1 year ago

Attempting to load a custom script .json file gives an "invalid data" error if that script has a meta object (ie containing author name, script title, image, etc.). Many scripts on the https://botc-scripts.azurewebsites.net/ have this data so I reckon it'd be handy I didn't have to edit it out.

Skateside commented 1 year ago

@Kethuel I thought I'd already worked around that but it seems like it isn't working. Do you have an example script that you can share that throws the error? I'll take a look at it

Kethuel commented 1 year ago

Hiya,

Here's an example of a script that fails.

Regards, Fletcher

On Sat, 25 Feb 2023, 11:57 James Long, @.***> wrote:

@Kethuel https://github.com/Kethuel I thought I'd already worked around that but it seems like it isn't working. Do you have an example script that you can share that throws the error? I'll take a look at it

— Reply to this email directly, view it on GitHub https://github.com/Skateside/pocket-grimoire/issues/46#issuecomment-1445065069, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASOFORWY4NVTCP6TWQPCY53WZHXR7ANCNFSM6AAAAAAVDDBNUI . You are receiving this because you were mentioned.Message ID: @.***>

Skateside commented 1 year ago

Hi @Kethuel

I've managed to figure out what was causing this. You should be able to upload scripts again now.

Cheers Skateside

Kethuel commented 1 year ago

Awesome! :)