I'm new to modding, and I don't understand this

Hey guys, I’m new to modding. :smiley: We all know this. Anyways, I’m working on a mod, but it doesn’t seem to work.

Here is all of my code: https://github.com/SlasherCrasher1/GDTMods/tree/master
(Please no take, as I don’t understand copyright either. :()

Now I get 2 new errors:

Both on startup:

1:

==
Error
Uncaught error. Please report this to
support@greenheartgames.com:
Uncaught SyntaxError: Unexpected token:
(then it cuts the rest off)

2:

==
Error
Uncaught error. Please report this to
support@greenheartgames.com:
Uncaught ReferenceError: FutureMod is not defined
(then it cuts the rest off)

Please help?

I don’t know if this is with my code or not. :frowning: But may some perhaps glance over it and guide me if i’m astray?

Thanks. :slight_smile:

You running any other mods else than yours and the official API?

@Zayo

I fixed those two errors:

Now getting:

Can’t load one or more of the scripts
and points out every api script. :frowning:

@JayCheetah

Where? As so far, everything lines up… :frowning:
What do I know though, i’m new. :frowning:

Line #'s?

I see a lot of ] and [ in the source code.

which should be } or {

offtopic:
@JayCheetah Must be the keyboard :stuck_out_tongue:

2 Likes

@alphabit

Could you possibly help?

http://puu.sh/6cIj6.png
http://puu.sh/6cIo5.png

The second error happens because of the first.

Missing commas after id, name and company:
http://puu.sh/6cIsu.png

If the method is called: addPlatformVoidOne you can’t call it otherwise :wink:
http://puu.sh/6cIuA.png

Btw. I highly recommend you to use the built-in console while developing mods. Please consult all related information about modding at Official Modding F.A.Q

Cheers

1 Like

Thank you so much, you are amazing. :smiley:

1 Like