So I’ve dedicated a little over 1…possibly 2 weeks to completely overhauling the coding for my mod that was originally made by UME before the code generated from that software became invalidated by updates to GDT. I’ve managed to fix quite a few script errors after getting it to the point where I can upload a private version of the recoded mod, but I just can’t seem to figure out how to fix this particular error:
Error Uncaught error. Please report this to support@greenheartgames.com: Uncaught SyntaxError: Unexpected string (file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Game%20Dev%20Tycoon/mods_ws/72428655_TEST_Bit_Of_Everything_RECODED/main/code.js:1020) Please restart the game.
This is part of the section the mod is referring to (Which is supposed to be a simple console-related notification) with the letters in bold being the line an error’s being reported on:
(function () {
GDT.addEvent = function (event)
{
id: “1b4c6311-c97c-4a40-aa62-a1b9109363b2”,
date: “8/5/2”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function (company) {
return new Notification({
header: “Dox Sales Analysis”.localize(),
text: “The first pair of consoles released under The Dox Line have managed to sell 5,000 units combined in the first month alone, and that number continues to rise as the weeks pass. While this may not be exceptional, it appears to be a solid start for the new company Cryptic Entertainment. It appears that the DoxBox is proving to be the more successful device, as many customers have come to think that the decrease in quality for the DoxSquare in comparison to the DoxBox isn’t worth its portability.”.localize().format(General.getETADescription (‘8/5/2’),
image: GDT.getRelativePath () + ‘/images/notifications/CustomPlatform1V1.png’;
buttonText: “OK”,
});
}
}
}
Now I’ve been trying my best to follow the API for reference, and so far it doesn’t seem to have let me down. I genuinely have no idea if I’m missing a character, might have put something in the wrong way or what, but I’d greatly appreciate some help knowing how to fix this kind of error. I do apologize if I’m coming across as an annoying newb, but in all honesty even though I’m not completely unfamiliar with coding I’m still very inexperienced at it and would just appreciate some help.