I am trying to make my own small mod, but when I start the game it says that the package.json for the mod has an unexpected token. I also ran it through a javascript parser, but when I look at it, it looks fine. Any ideas, what to fix?
Oh, and here is the code for my package.json:
{
"id": "nerdexp",
"name": "nerdexpansion",
"version": "0.0.1",
"author": "nerd73",
"description": "Some new platforms and a new topic"
"url": "",
"main": "./main.js",
"dependencies": {
"gdt-modAPI": "0.1.x",
"UltimateLib": "1.x.x"
},
}
Well, the problem is unrelated.
Now, I have another problem:
text: "With the release of new 3D Accelerators like 3DGFX's Voovoo or 3S's Verge, Gaming companies are adding 3D Acceleration support to their Game engines.",
buttonText: "OK",
weeksUntilFired: 0
});}
});
})();
Apparently at the last line ) was unexpected. If I remove it and (), it says it’s expected. WTF?
Also, every other mod I have seen ends with })(),
text: "With the release of new 3D Accelerators like 3DGFX's Voovoo or 3S's Verge, Gaming companies are adding 3D Acceleration support to their Game engines.",
buttonText: "OK",
weeksUntilFired: 0
});} <<<<<<
});
})();
That would be fixed by removing the } over the ;
text: "With the release of new 3D Accelerators like 3DGFX's Voovoo or 3S's Verge, Gaming companies are adding 3D Acceleration support to their Game engines.",
buttonText: "OK",
weeksUntilFired: 0
});
});
})();