Can I use Godot to make a wargame engine where all the resource files are not part of a package?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By zircher

Does Godot support the ability to essentially make all the graphical elements external to the main program? For example, I want the basic war game engine to implement the rules of the game, but allow the user to completely customize the labels/language, UI graphics, sound effects, and 3d models used.

I imagining something like a main XML file that can be tweaked if the user wants to make a total conversion to a different theme. The war game engine part would read in scenario and campaign files that indicate which maps and units to include. Unit files would indicate how the unit moves, it’s combat capabilities, which 3d model(s) to use, player colors, etc.

Not sure if this will answer your question. You can access user data directories and even system directories using OS.get_system_dir(1). You can perhaps create a global dict of properties for each type of unit from a file read from user dir/system dir up on loading. Then you can load the unit scene files from user dir and set their mesh/texture as described in the global dict of properties. Hope this makes some sense. I am doing something along those lines - I get the description of world and players from a server, use that data to use local models and modify their appearance etc and insert them to the root.

sxkod | 2019-01-08 16:51

Coolness, that sounds very close to what I want to do as well. Is your project going to be open or closed source? Even if it closed, knowing that it is possible is half the battle. I still have a long way to go for Godot mastery. :slight_smile:

zircher | 2019-01-08 17:10

Not sure about the license and all that. At the moment I am enjoying the coding part :slight_smile:

I am not a master either, small things stump me blind! However godot seems to have all the facilities we need pretty much. If I need something, that seem to be already there in some form. May need to look for usage and documentation a bit.

Good luck with your project.

sxkod | 2019-01-08 22:13