Uncaught TypeError: Object # has no method 'click'

Hey, I’m new to modding games and, when I test my first mod, this error appears:

Error Uncaught error. Please report this to support@greenheartgames.com: Uncaught TypeError: Object # has no method ‘click’ (file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Game%20Dev%20Tycoon/compressed/codeNw.js:153) Please restart the game.

Enabled Mods: [“gdt-modAPI”,“UltimateLib”,“CheatMod-kristof1104”,“38ab27c7-8a04-4aef-8788-44b8ef21b493”]

I already have the problem with the metod “experience”, but I solved… I don’t know what I need to do to resolve this problem…

The code.js of this mod is:

var Sound = {};
(function(){
UltimateLib.Research.addEngineResearch({
id: “861d8b44-c802-433b-af88-132818fd9b7b”,
name: “Simple Effects”,
canResearch: function () {
var res = true;
res = LevelCalculator.getMissionLevel(‘Sound’) >= 4;

					return res;
			},
category: "Sound",
categoryDisplayName: "Sound",
v: 4
});

UltimateLib.Research.addEngineResearch({
id: “9643c571-015f-435e-8508-5de63de5a2d4”,
name: “Advanced Effects”,
canResearch: function () {
var res = true;
res = LevelCalculator.getMissionLevel(‘Sound’) >= 6;

					return res;
			},
category: "Sound",
categoryDisplayName: "Sound",
v: 8
});

UltimateLib.Research.addEngineResearch({
id: “a0ea420b-9328-4e34-8e9e-a09307a45701”,
name: “Hiper-Realistic Effects”,
canResearch: function () {
var res = true;
res = LevelCalculator.getMissionLevel(‘Sound’) >= 8;

					return res;
			},
category: "Sound",
categoryDisplayName: "Sound",
v: 12
});

UltimateLib.Research.addEngineResearch({
id: “e47f8159-153c-4a83-8009-be4a391f6146”,
name: “Suspense Effects”,
canResearch: function () {
var res = true;
res = LevelCalculator.getMissionLevel(‘Sound’) >= 5;

					return res;
			},
category: "Sound",
categoryDisplayName: "Sound",
v: 6
});

UltimateLib.Research.addEngineResearch({
id: “7467b311-e342-4c3f-ac0d-4d37c3c05eb0”,
name: “Surround Sound 7.1”,
canResearch: function () {
var res = true;
res = LevelCalculator.getFeatureLevel(GameManager.company, ‘Surround sound’) >= 1;
res &= LevelCalculator.getMissionLevel(‘Sound’) >= 7;

					return res;
			},
category: "Sound",
categoryDisplayName: "Sound",
v: 8
});

UltimateLib.Research.addEngineResearch({
id: “2e5bbe40-e81e-4d6c-a10b-d65b98e89189”,
name: “Celebrity Soundtrack”,
canResearch: function () {
var res = true;
res = LevelCalculator.getMissionLevel(‘Sound’) >= 9;

					return res;
			},
category: "Sound",
categoryDisplayName: "Sound",
v: 10
});

UltimateLib.Research.addEngineResearch({
id: “ebfbd0c7-2b4b-4840-8fd7-0fa03a154c2f”,
name: “Computer Produced Dubbing”,
canResearch: function () {
var res = true;
res = LevelCalculator.getMissionLevel(‘Sound’) >= 5;

					return res;
			},
category: "Sound",
categoryDisplayName: "Sound",
v: 10
});

UltimateLib.Research.addEngineResearch({
id: “4617f429-b6cf-471c-b9e2-d63c64af0e86”,
name: “Sound Designer”,
canResearch: function () {
var res = true;
res = LevelCalculator.getMissionLevel(‘Sound’) >= 5;

					return res;
			},
category: "Sound",
categoryDisplayName: "Sound",
v: 8
});

})();

Please use this thread to post about errors
http://forum.greenheartgames.com/t/official-mod-code-error-thread-for-mod-authors/11886

1 Like