So i have a problem now with a mod i created. errorcode: Expected Identifier File: Code.Js Line: 0
How do i solve this??
The script looks like this:
// ******************************************************************************************
// Mod Name: 3DSMOD
// Mod Id: 3DSMOD_ThomasSolberg
// Mod Version: 1.0.1
// Mod File: code.js
// ******************************************************************************************
// Author: Thomas Solberg
// Last modified: 21-Dec-14 2:10 PM
// ******************************************************************************************
// Notes: This file is loaded from main.js
// ******************************************************************************************
// Create the main mod object (our package)
var 3DSMOD = {};
(function(){
// ******************************************************************************************
// Platforms
// ******************************************************************************************
// Adding 3DSXL
// -----------------------------------------------------------
GDT.addPlatform({
id:“19ab1baf-71f3-4a21-af77-58a76cfff7eb”,
name:“3DSXL”,
company:“Ninvento”,
startAmount:7,
unitsSold:4E1,
licencePrize:2E5,
published:“20/12/4”,
platformRetireDate:“26/12/4”,
developmentCosts:1E5,
genreWeightings:[ 0.6, 1, 0.9, 0.9, 0.8, 1 ],
audienceWeightings:[ 1, 1, 0.6 ],
techLevel:5,
iconUri: 3DSMOD_ThomasSolberg.modPath + “/images/platforms/296272-nintendo-3ds-xl.png”,
events:[{
id: “24cac54d-a844-417a-9430-8a4f835844fc”,
date: “19/12/4”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “A new Console!”,
text: “Ninvento is planning to realese a new console called the 3DS.\nThe platform is Pretty similar to the DS but now has a new 3Dscreen. This might be the new revolution in platform and RPG gaming.”,
image: 3DSMOD_ThomasSolberg.modPath + “/images/notifications/296272-nintendo-3ds-xl.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
}
,{
id: “b0cf2c47-ed17-4d97-8d42-606e6f6ca754”,
date: “20/12/4”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “Realese”,
text: “Today the 3DSXL have been realesed.”,
image: 3DSMOD_ThomasSolberg.modPath + “/images/notifications/296272-nintendo-3ds-xl.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
}
]
});
// ******************************************************************************************
// Topics
// ******************************************************************************************
GDT.addTopics([
{
id: “cac63c60-0df6-4ad4-b7c1-799170294e35”,
name: “Painting”,
genreWeightings: [ 0.7, 0.8, 0.6, 0.7, 0.9, 1 ],
audienceWeightings: [ 0.9, 1, 0.7 ]
}
]);
// ******************************************************************************************
// Events
// ******************************************************************************************
GDT.addEvent({
id: “2b5e21ee-67c4-4a91-a6d4-7e849ac242b1”,
date: “20/12/4”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “Realese”,
text: “Today the 3DSXL have been realesed.”,
image: 3DSMOD_ThomasSolberg.modPath + “/images/notifications/296272-nintendo-3ds-xl.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
});
GDT.addEvent({
id: “b19a2487-1e8b-4843-b9b0-9b88806e8d70”,
date: “20/12/4”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “Realese”,
text: “Today the 3DSXL have been realesed.”,
image: 3DSMOD_ThomasSolberg.modPath + “/images/notifications/296272-nintendo-3ds-xl.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
});
})();