What this thread is NOT for;Users with an error caused by a mod in their game.
Please note that if you are a mod user and have an error caused by a specific mod then please report that error on the specific mod thread. You can use the handy search function of the forum (Top right eye glass) or the Official Mod list; http://forum.greenheartgames.com/t/the-official-community-mod-list/12466
What this thread IS for; Mod Authors with Code errors.
This is the place for the rest of the community to get help with their code errors.
Please use the following format to allow our advanced modders the best opportunity of helping you!
Intended Objective:
Paste bin of the code:
Error Thrown: (UL Recently implements copy and pastable error code to make this a lot easier too)
If anyone has any feedback or ideas to make this thread more āMod Author Friendlyā then please let me know via PM. Any off topic chat in this thread will be deleted.
Credits and Thanks to @SirEverard who helped me put this thread together.
I Keep getting this error it says
Error
Could No Parse package.json: C:\Program Files
(x86)\Steam\steamapps\common\Game Dev Tycoon/mods/KrataxxModsInstuff/package.json:SyntaxError:
{
"id":"f895e51f-4e5b-4b61-8c25-e212a78cb284",
"name":"KrataxxModsInstuff",
"version":"1.0.2a",
"author":"KrataxxGamer",
"url":"http://www.youtube.com/KingOfRoblox1",
"description":"UltimateModEditor for GameDevTycoon generated Expansion Module. Powered by UltimateLib
This Modpack Adds a New Platform.
UpComing Features-
5 New Platforms
15 New Researchs
10 New Topics
Hey i need a Artist to make Console Art
PM Me if your intrested
ALL GRAPHICS ARE NOT FINAL",
"main":"./main.js",
"dependencies":{
"gdt-modAPI":"0.1.x",
"UltimateLib":"1.3.x"
}
}
Iām getting this error when I load my mod up. Iām using the UME and UltimateLib API. I know the source of it and whatās causing it (The new RnD research) but I want know the solution on how to fix it. Hereās the error:
UltimateLib.Research.addRndResearch({
id: āc2afdc3f-25da-49d5-8fd1-23c6d730558dā,
name: āProcedural Codingā,
pointsCost: 5000,
iconUri: ā./mods/GDTReloaded/images/researches/lab/Procedural.pngā,
description: āProcedural Coding. Unlock new doors for games that could have infinite worlds, and items!ā,
canResearch: function () {
var res = true;
res &= GameManager.company.flags.rndLabUnlocked;
return res;
},
repeatable: false,
targetZone: 2,
complete: function () {
var research = Research.getAllItems().filter(function
(f) { return f.id === āc2afdc3f-25da-49d5-8fd1-23c6d730558dā; });
if(research){
GameManager.company.researchCompleted.push(research);
// Notification
var notification = new Notification({
header: āProcedural Coding Research Completeā,
text: āYouāve complete research for procedural coding!ā,
image: ā./mods/GDTReloaded/images/notifications/Procedural.pngā,
buttonText: āOKā,
weeksUntilFired: 0
});
If you have problems / errors with projects created using the UME, please PM me by providing a link to a downloadable version of the .UME file, so that I can eventually take a look at it.
Please use as a PM subject the following:
[UME] Error in NAME_OF_YOUR_MOD
@apljee - @Jediwolf Itās not UME thatās causing it. I looked at the code, and as @tmch
said itās an error caused on line 1661 of codeNw.js. Itās a GDT error, I
suppose. Although ULTRAENGINERESEARCH might be clashing with some code
into the main game, causing this little conflict. Thatās my only guess. NEXT LINE @apljee - It doesnāt necessarily mean that - Iām just guessing that it might
be your mod, because gdt-modAPI is developed by GHG and obviously
wouldnāt cause errors now, all the sudden. UltimateLib might have bugs
but it still wouldnāt cause a game crash. And @LineLiar no, it doesnāt - it just adds engine researches.
I think thats it. Comment below if you just wanna help me debug this bug or itās a UME Bug.
@Jediwolf Itās not UME thatās causing it. I looked at the code, and as @tmch said itās an error caused on line 1661 of codeNw.js. Itās a GDT error, I suppose. Although ULTRAENGINERESEARCH might be clashing with some code into the main game, causing this little conflict. Thatās my only guess.
It doesnāt necessarily mean that - Iām just guessing that it might be your mod, because gdt-modAPI is developed by GHG and obviously wouldnāt cause errors now, all the sudden. UltimateLib might have bugs but it still wouldnāt cause a game crash. And @LineLiar no, it doesnāt - it just adds engine researches.