Folder Structure

Folder Structure

Clint Bellanger's picture

I'm trying to think of a good folder structure for the future of Flare.

What I'd like to have:

1. Easy translation support

Most likely: all english text is in an "en" folder, french text is in a "fr" folder, etc. Then the user can choose the displayed language via a simple config setting (default would be language=en). These should be separate from other game values. For example there should be one central items.txt with all the item stats, but a separate item_names.txt for each language.

2. Easy mod support

If a user wants to modify the core game, they can put files in a mods folder. The mods folder should probably mimic the file infrastructure of the core game data. When a mod is enabled, the engine should look for data files in the mod folder first, and in the core files second. So the mod folder can optionally override any game data, or easily add new game data. Some data can be additive, e.g. combine the core powers/items with the powers/items from a mod. If a mod uses the same item or power ID as a previous mod or core file, the last-defined item/power is used.

I'm not sure the best way to have multiple mods that don't conflict; maybe a mods.txt file that lists mods in preferred order?

So what I'm thinking for a basic structure (example): http://pastebin.com/y2JP2PLW

Thoughts?