Hey,
I try to make my own mod but when I start Game Dev Tycoon i get this error:
Uncaught Syntax Error: Unexpected Token (
I dont know what I can do now. Lineliar fixed one bug that I had to but now I don’t have any idea.
var ModConfig = {};
(function () {
ModConfig.enabledMods = [
{ script: 'gdt-modAPI/modAPI.js' },
{ script: 'fighter-modAPI/datscript.js' }
];
})();
This script here is right I think.
I use scripts from the Expansion Pack for Game Dev Tycoon. Without them I have more bugs.
var FighterExp = {};
(function () {
/* Platforms */
figherAPI.ExpPack.addPlatform = function () {
var icon = './mods/fighter-modAPI/examples/img/greenheartOne.png';
GDT.addPlatform(
{
id: 'Greenie',
name: 'Greenie Power',
company: 'Greenheart Games',
startAmount: 0.358,
unitsSold: 0.842,
marketKeyPoints: [{date: "2/3/2",amount: 0.215}, {date: "5/7/4",amount: 0.478}, {date: "11/9/3",amount: 0.738}], //Not needed atm
licencePrize: 40000,
published: '1/6/2',
platformRetireDate: '3/1/4',
developmentCosts: 50000,
genreWeightings: [1, 0.7, 0.7, 0.8, 1, 0.7],
audienceWeightings: [0.6, 0.8, 1],
techLevel: 1,
iconUri: icon,
events: [
{
id: '49846-24223-667711-94449874-49846-24223-667711-94449874-554422222486',
date: '1/5/1',
getNotification: function (company) {
return new Notification({
header: "Industry News".localize(),
text: "Greenheart Games announced a brand new computer called the Greenie. The Greenie comes with a new advanced operating system called GreenOS. It saves a lot of power!".localize().format(General.getETADescription('1/5/1', '1/7/4')),
image: icon
});
}
}
]
});
/* */
}
};
That is my code where I try to make a computer.
Any ideas :D?