Unexpected token

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"
    },
}

T_T

3 Likes

Just to note, apparently this line is causing the problem:

"id":"nerdexpansion_nerd73";

because : is unexpected.

Full code now:

{

    "id": "nerdexpansion_nerd73";
    "name": "nerdexpansion";
    "version": "0.0.1";
    "author": "nerd73";
    "url": "";
    "description": "some new platforms and a new topic";
    "main": "./main.js";
    "dependencies":{
        "gdt-modAPI":"0.1.x";
            "UltimateLib":"1.x.x"
        }
    
}

Edit: Problem solved by moving back to commas.

I wouldn’t use UltimateLib if I were you. I believe it’s outdated.

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 })(),

um
so
just remove it.

I have tried that, caused an unexpected end.

try posting your code here

http://www.javascriptlint.com/online_lint.php

Question, are you coding with a mod maker or mod editor, of some sort or just your own coding yourself?

I believe that you made a mistake here:

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
    });
    });
})();

And then that part should look like that

I’m currently looking for ways to remove the UltimateLib dependencies.
I never got that last part to time with the unlocked research correctly.