OpenXcom Forum

OpenXcom => Suggestions => Topic started by: Tarvis on April 24, 2014, 12:58:36 am

Title: Dedicated "Mods" folder, each mod can get its own folder to act as "data"
Post by: Tarvis on April 24, 2014, 12:58:36 am
Currently, all mods and such are just dumped right into the "data" folder. This makes it somewhat of a pain to uninstall unwanted mods, or to deal with file conflicts.

I think a good system (following most mod conventions) would be to have a dedicated mods folder, and each mod would get its own folder in it. That folder acts as the mod's own "data" folder, and would be loaded as such on runtime, where it's loaded into memory with the regular game "data" folder. This is how Source games (most notably Garrysmod) handles addons, which makes them easy to install and uninstall without having to pick through the base data folders to delete their individual files.

So for example, for Luke's Extra UFOs mod, they could go into "OpenXcom/Mods/Luke's Extra UFOs/" and that folder would contain the mod's MAPS, ROUTES, Ruleset, and TERRAIN folders. And it can also contain some kind of metadata file as well at its root.


Another small tweak that could be done is the ability to change the order of mods in the Mods screen, this would help resolve conflicts and allow the user to set which ones take precedence (mods lower down the list would overwrite any conflicts of files/ruleset info in mods/base game higher in the list, etc.)
Title: Re: Dedicated "Mods" folder, each mod can get its own folder to act as "data"
Post by: SupSuper on April 24, 2014, 01:13:35 am
This is planned. :)
Title: Re: Dedicated "Mods" folder, each mod can get its own folder to act as "data"
Post by: Qpoter on April 29, 2014, 04:28:59 pm
The only thing I don't like about this is that I am going to have to do some massive uncluttering...
Title: Re: Dedicated "Mods" folder, each mod can get its own folder to act as "data"
Post by: Yankes on April 29, 2014, 08:04:07 pm
Another thing that can improve mods is add optional header for with mod description.
Using only file name isnt most elegant solution. Another bonus would be version number that could be remember by OpenXcom.
OX could require notation like https://semver.org/ to determine that new version of mod is compatible with older one.
Title: Re: Dedicated "Mods" folder, each mod can get its own folder to act as "data"
Post by: Tarvis on April 29, 2014, 08:43:42 pm
Yeah, Warboy already stated that that too is planned.

I think Name: and Description: will suffice, for now, at least for what's shown in-game
Title: Re: Dedicated "Mods" folder, each mod can get its own folder to act as "data"
Post by: winterheart on April 30, 2014, 07:07:23 am
There should be at least URL, author, version and date of publication.
Title: Re: Dedicated "Mods" folder, each mod can get its own folder to act as "data"
Post by: kkmic on April 30, 2014, 01:38:03 pm
And a minimum required OXC version too.