Edit Game Genres, Topics and Researches?

Hi!

I’m working on an overhaul mod for Game Dev Tycoon and, to do it. I need to edit existing genres, topics and researches (names and weightings).

The question is simple: is that possible or not?

I’ve seen that page that explain you can edit game code behavior: https://github.com/greenheartgames/gdt-modAPI/wiki/Advanced-Modding

But I don’t know if it’s accurate with what I want to do…

Thank you for responding! :wink:

Edit: @PatrickKlug When It’s finished, I would like to share the mod with the GDT community, so I cannot just simply modify the game source code itself because it’s illegal to share it. So I’m asking here for a possibility to edit this things by patching the game source code, like any other mod do.

I think you can edit the topics itself of the game

Located in: C:\Program Files\Steam\steamapps\common\Game Dev Tycoon\compressed\CodeNw
The start rule is 430, i can’t show you anymore of the code because my screen resolution is 1280x1024 :stuck_out_tongue:

I hope this helped you :wink:

1 Like

Thank you! :wink:

I’ve yet tried to edit things this way and it’s working properly. But the problem is that I want to release the mod for everyone when it’s finished, so I have to patch the game source code but I don’t know if it is possible to edit this kind of things by this way…

I think you need to ask @Charlie about that question, OR you can make you mod with the same topics as in the game and edit them. For example: ‘Sports’ is a topic, you could code a new topic with the name ‘Sports’ in your mod. I think it should read the game code before your mod.

////offtopic
1258×293
then you tell me my resolution is random
////offtopic
@AlmostModder you can edit the game code if you can understand it :wink:
or you could learn how to edit the code without making a backup

I was only copy/pasting the code, not the whole screen :triumph:

show me your screen

So you think that’s possible to edit he existings genres, topics, etc. by patching the game source code? :stuck_out_tongue:

Because if I want to release it for everyone, I cannot just edit the game code…

I mean you just code a new topic with the name: Sports, and you edit it to your wants. GDT will read the game code before your mod so the topic Sports get’s ‘refreshed’ and your edited ‘Sports’ topic is done!

<img src="/uploads/default/original/2X/e/ec56f89063c7c57a23d842b6bb0e8598df40b500.PNG" width=“1280” height=1024">

Good enough?

1 Like

I’ve tried to simply add topics with the same IDs as in the original game code, but with different names, but the names in game are still the sames as the original ones. Then I’ve tried to do the contrary (different IDs and same names) and it didn’t work too.
But thank you! I will ask @Charlie! :wink:

1 Like

Ok, succes with the mod :wink:

1 Like

Thanks! :wink:

find whatever the global is for the topics is, remove it and replace it

Yes, you can. You could just find the Topic you want to change via

var topic = Topics.topics.first(function(topic){return topic.id=="target-topic-id";})

and then you can adjust the value of the topic as usual

topic.genreWeightings=[];

code here is not tested, just quickly wrote the general gist of the method for demonstration purposes.
Good luck.

1 Like

Thank you very much for this quick answer! :wink:

One last question and then I let you work:

  • Is there a similar way to edit researches and genres (RPG, Action, etc.)?

Thank you again!

absolutely. You can do this with any JS object in the game.

You can access all research items via

Research.getAllItems();

Genres are a bit of an outlier in that they are implictly defined via the genreWeightings and missionWeightings but you can also get a list of them via the GameGenre.X methods. It’s not easy to add a genre though.

Thank you! Thank you! Thank you! :slight_smile: