Re: minisphere 4.4.0
Reply #1483 –
Yeah, Sphere Studio sets new projects to build in
dist/ by default (this is also where Cell builds if you don't tell it otherwise). As for your JSON file, there are a few issues with it actually. The first one I noticed was:
"main": "main.js",
SphereFS requires that path to be relative to game.json, or in other words it should be "scripts/main.js". That's not what caused the crash, though. The parse error you saw is caused by the trailing comma after the last property. For some stupid reason, JSON doesn't support trailing commas. Removing the last comma allows minisphere to load the game.
The last issue, which prevented the game from running, was that your manifest didn't specify v1. Without that minisphere tries to run the game in v2 mode (basically: the main script is a module), which causes most legacy code to break (e.g. "personlib is not defined"). Here's a fixed JSON file that allows the game to run:
{
"version": 1,
"name": "Unnamed Shump",
"author": "Eggbert",
"summary": "Follow Scott Starcross in his quest to stop the Primus.",
"resolution": "416x416",
"main": "scripts/main.js"
}
In any case I'll fix the segfault. It definitely shouldn't crash, no matter how many errors are in the descriptor file.