[QUE] Need Help With Modding

I want to make a mod for GTD but i cant figure out how to use the Game Dev Tycoon files in my code, do i have to import a certain file into eclipse or do i have to open the eclipse workbench in a certain location, i know java and i have made a minecraft mod before i just cant figure out this one thing

Try to open example.js from the modding api folder in the mods folder.This will give you parts that you need in order to write your own stuff.

i have opened the file but the code doesn’t seem to work, i think eclipse needs the code for the actual game (not just the example file) to run, if this is the case i have no idea where to open eclipse

For me I only have to open Example.js in Eclipse. It works fine then.

i must be doing something wrong then, what do you do after you open eclipse

to make things a little clear this is my class

package main;

public class main {
(function () {
Examples.addTopic = function () {
GDT.addTopics([
{
id: “Assassin”,
name: “Assassin”.localize(“game topic”),
genreWeightings: [1, 1, 1, .6, .6, .6],
audienceWeightings: [0.6, 0.8, 1]
}
]);
};
}

OK. So here you have the code for adding a new topic with your mod. This is an example, just experiment with somethings. For example, change the name or the Genre values. The same applies for platforms and events, just read them and soon enough you’ll understand the basic code for a mod.

yeah i managed to figure it all out but i cant seem to get game dev tycoon to find the mod, when i open the game it gives me an error message with some blabber about uncaught errors and script errors HELP!

Looks to me as if you’re trying to write Java code. Game Dev Tycoon is written in JavaScript, not Java.

JavaScript doesn’t have a class keyword so your public class main is invalid as far as JS is concerned. Same with package main;.

It’s also not possible to run GDT in Eclipse. If you want to debug the game follow the instructions on the wiki: