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: