Code modding manifest

Please post here for questions and discussion about data, event, art and sound modding and the game editor for Distant Worlds.

Moderator: MOD_DW2

Post Reply
Alvek
Posts: 198
Joined: Fri Mar 24, 2023 9:47 pm
Location: Kyiv

Code modding manifest

Post by Alvek »

I am the author of the Expansion mod for DW:U and currently working on DW2 code mod for additional options on notification filtering.
The most I struggle with is GUI controls, looks like I need to write my own controls to allow user editing new filter settings.
Second most is the absence of any code modding API or documentation.

So I wrote list of things I think DW2 need to implement to allow easier code mods development:
  1. Allow game GUI controls to be used in mods and avoid designing them with code only. There should be controls that allow various types of input like text, numbers, combobox list, etc
  2. Modding API: public classes or interfaces for things like ships, components, AI behaviors, GUI, fields, properties.
  3. Inbuilt Mod loader to resolve dependencies across mods (to avoid dll hell), checks for mod target version range vs. game version.
  4. Something to track mod updates. Ideal case would be a game or launcher updating selected mods. (Inspired by Factorio)
  5. Stages for the mod loading process to allow mods to change data in other mods or adapt to their presence. To allow one mod to share assets, code or adapt to changes that other mods do.
  6. Something to allow saved games to load with missing mods, so the player don't have to restart the game due to change of active mod list. After loading a saved game all disabled mod stuff is removed from the current game/
  7. Something to allow mods to change things during loading a saved game so that newer version of the mods can launch update routine instead of requiring mod's code that work with all old versions.
  8. Protect users from dangerous code mods using some kind of sandboxing. Mods probably still need access to assets from other mods?
I can't share information on how you can create code mods as I am not sure what is public, beta or developer only knowledge, so ask developers if you interested.
User avatar
iancmtaylor
Posts: 181
Joined: Wed May 09, 2012 6:38 pm

Re: Code modding manifest

Post by iancmtaylor »

The dev Q/ Tyler holds a modding Q and A on Fridays on the DW2 discord, he can help you with all of this.
I am /u/SharkMolester, moderator of /r/DistantWorlds and BFHKitteh, admin of https://dw2.fandom.com/wiki/Distant_Worlds_2_Wiki.
User avatar
TylerIN
Posts: 100
Joined: Mon Mar 14, 2022 3:54 pm

Re: Code modding manifest

Post by TylerIN »

Yeah, I'm collaborating with him on the GUI controls amongst other things.
Reach out to me on the official DW2 Discord #mods channel.
Post Reply

Return to “Design and Modding”