Mod doesn't work!

Hi.

I’m really new to javascript and everything, but I have used c++. (I can create simple programs) But my code to add the grPod just doesn’t work! I have added a messagebox, so that when theres no errors it tells me “grpod loaded” (In the first file)

   var grpod-mod = {};
(function () {

    Examples.addPlatform = function () {
		var icon = './mods/grPod/img/grPod1.png';
		GDT.addPlatform(
			{
				id: 'grPod1',
				name: 'grPod',
				company: 'Grapple',
				startAmount: 0.96,
				unitsSold: 10.358,
				licencePrize: 5000,
				published: '1/2/3',
				platformRetireDate: '3/4/5',
				developmentCosts: 500,
				genreWeightings: [0.6, 0.7, 0.8, 0.7, 0.9, 0.1],
				audienceWeightings: [1, 0.9, 0.7],
				techLevel: 4,
				iconUri: icon,
				events: [
					{
						id: '10537DA1-58F1-4F23-8854-F1E2621933BF',
						date: '1/2/2',
						getNotification: function (company) {
							return new Notification({
								header: "Industry News".localize(),
								text: "Grapple have announced that they are going to release a new device called the grPod. This is a music player with a touch interface and the ability to play software/games.".localize().format(General.getETADescription('1/2/1', '1/3/4')),
								image: icon
							});
						}
					}
				]
			});
	};

})();

NO GO!

3 Likes

should be enough to point to the prob

2 Likes

Might want to check this as well ^^

2 Likes

var grpod-mod = {};

I dont think, it is correct…

And, yeah You will retire it at
Y 3 M 4 and… week 5

Oops, sorry I dont saw @alphabit`s post.

2 Likes

HAHA! Thanks for all the feedback. I suck at JS

1 Like