So, I am making a mod myself, and upon testing… I keep getting “uncaught syntax error” I have over the mod over and over, and cannot see anything off. Am I just blind, or is something bugged in my copy of GDT?
Here is the code:
//Platforms Grapple
var icon = ‘./mods/MOAR_Computers/source/img/delicious.png’;
GDT.addPlatform({
id : ‘CSHG1’,
name : ‘Grapple Delicious’,
company : ‘Grapple’,
startAmount : 0.3,
unitsSold : 0.5,
licencePrize : 100000,
published : ‘1/1/1’,
platformRetireDate : ‘18/6/3’,
developmentCosts : 35000,
genreWeightings : [0.7, 0.8, 1, 1, 1, 0.9],
audienceWeightings : [0.5, 0.8, 1],
techLevel : 3,
iconUri : icon,
});
var icon = ‘./mods/MOAR_Computers/source/img/deliciousosv.png’;
GDT.addPlatform({
id : ‘CSHG2’,
name : ‘Delicious OSV’,
company : ‘Grapple’,
startAmount : 0.5,
unitsSold : 0.75,
licencePrize : 300000,
published : ‘17/6/2’,
platformRetireDate : ‘26/6/2’,
developmentCosts : 50000,
genreWeightings : [0.7, 0.8, 1, 1, 1, 0.9],
audienceWeightings : [0.5, 0.8, 1],
techLevel : 6,
iconUri : icon,
events : [{
id : ‘SG1’,
date : ‘17/1/1’,
getNotification : function (company) {
return new Notification({
header : “Industry News”.localize(),
text : “Along with it’s fifth os, dubbed OSV, Grapple has released a new generation of hardware. Sadly, much as the original, it is still much harder to develop for than the PC, However, it sports a very powerful processor, and crashes much less. We will see how it fares against the PC. It will be released later this year.” localize().format(General.getETADescription(‘17/1/1’, ‘17/1/1’)),
image : icon
});
}
}
]
});
var icon = ‘./mods/MOAR_Computers/source/img/deliciousosx.png’;
GDT.addPlatform({
id : ‘CSHG3’,
name : ‘Delicious OSX’,
company : ‘Grapple’,
startAmount : 0.4,
unitsSold : 0.6,
licencePrize : 500000,
published : ‘25/6/2’,
platformRetireDate : ‘99999999/6/2’,
developmentCosts : 75000,
genreWeightings : [0.7, 0.8, 1, 1, 1, 0.9],
audienceWeightings : [0.5, 0.8, 1],
techLevel : 9,
iconUri : icon,
events : [{
id : ‘SG2’,
date : ‘25/1/1’,
getNotification : function (company) {
return new Notification({
header : “Industry News”.localize(),
text : “Along with it’s tenth os, dubbed OSX, Grapple has released a new generation of hardware. Sadly, much as the original and osv, it is still much harder to develop for than the PC, However, it sports a very powerful processor, and crashes much less. We will see how it fares against the PC. It will be released later this year.”.localize().format(General.getETADescription(‘25/1/1’, ‘25/1/1’)),
image : icon
});
}
}
]
});
//Platforms PC
var icon = ‘./mods/MOAR_Computers/source/img/gamingpc.png’;
GDT.addPlatform({
id : ‘CSHG4’,
name : ‘Gaming PC’,
company : ‘Various Hardware Makers’,
startAmount : 0.2,
unitsSold : 0.4,
licencePrize : 1000000,
published : ‘20/12/2’,
platformRetireDate : ‘99999999/6/2’,
developmentCosts : 20000,
genreWeightings : [1, 1, 1, 1, 1, 0.1],
audienceWeightings : [0.1, 1, 1],
techLevel : 12,
iconUri : icon,
events : [{
id : ‘SG3’,
date : ‘20/6/1’,
getNotification : function (company) {
return new Notification({
header : “Industry News”.localize(),
text : “It looks like there is a new breed of PCs on the horizon. Made specifically for gaming, these are the most powerful (And Expensive) Platforms on the market. I wonder how they will fare against the Delicious and Standerd PCs? They will be released later this year at Christmastime.”.localize().format(General.getETADescription(‘20/6/1’, ‘20/6/1’)),
image : icon
});
}
}
]
});
var icon = ‘./mods/MOAR_Computers/source/img/budgetpc.png’;
GDT.addPlatform({
id : ‘CSHG5’,
name : ‘Bargain PC’,
company : ‘Various Hardware Makers’,
startAmount : 0.5,
unitsSold : 0.8,
licencePrize : 10000,
published : ‘20/12/3’,
platformRetireDate : ‘99999999/6/2’,
developmentCosts : 1000,
genreWeightings : [0.3, 0.8, 0.8, 0.3, 0.3, 1],
audienceWeightings : [1, 1, 0.5],
techLevel : 4,
iconUri : icon,
events : [{
id : ‘SG4’,
date : ‘20/6/2’,
getNotification : function (company) {
return new Notification({
header : “Industry News”.localize(),
text : “It seems that a bunch of cheap PCs have a very similar launch window to gaming PCs. These are very underpowered, but are extremely cheap, and on top of that, being laptops, portable.”.localize().format(General.getETADescription(‘20/6/2’, ‘20/6/2’)),
image : icon
});
}
}
]
});
(Sorry if it is something obvious, I am new to this whole coding thing.)