[QUE] Trying to code up a mod with the API

I am trying to code up a mod for Game Dev Tycoon, and I am confused on how to use the Modding API.

Do you have any specific questions?

Have you read through the modding wiki?

Yes, I have. I am confused about adding new platforms. I get the code after the var icon line in the example you gave us, but I don’t know what file location, I am supposed to use to access the image for the platform that I am adding.

it’s best if you put your mod in its own folder under ./mods

So, if you have .mods/myMod/images/myPlatform.png then this is the url.

The reason why it is var icon = './mods/gdt-modAPI/examples/img/greenheartOne.png'; in the example is that the example is part of the gdt-modAPI.

Hope this makes sense.

You can actually try the examples live by opening ./mods/gdt-modAPI/modAPI.js and uncommenting the calls to the Examples methods.

Hey @Venomous I would be interested to know what kind of mod you are working on. :slight_smile:

My mod is in the Alpha Stage. I started coding it today. The current version number is 0.1.0. The version number will change while the mod is progressing in development.

My mod will consist of:

  1. New Events
  2. New Platforms
  3. New Topics

Could you give a link to the alpha version? I would love to help playtest your mod. :slight_smile:

Sure, you can follow the progress of my mod at this link, https://github.com/Turntablelover/Game-Dev-Tycoon-Mod

Can you give a little description for what you made in this mod at the moment? And how can I install it into my game? Maybe something to put in the readme too… :wink:

Sure, that will be in the next update that I will push.

Nice! Looking forward to the next update :wink: