sm00thslp / hedgewars

Automatically exported from code.google.com/p/hedgewars
GNU General Public License v2.0
0 stars 0 forks source link

Split scheme.ini and weapons.ini into multiple files, one per scheme #699

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, Hedgewars stores all custom schemes in two files. This makes it a 
bit cumbersome to share schemes, as one has always to copy chunks of text into 
a file, which is annoying and clunky.
Therefore I suggest to reorganize this.
Briefly I want to get every single scheme stored into a seperate file.

Specifically I suggest:
- Split scheme.ini into multiple files, one per game scheme
- The format of a single game scheme file shall be similar to the current 
format of scheme.ini (as defined on 
<http://code.google.com/p/hedgewars/wiki/ConfigurationFiles#Schemes.ini:>, with 
the following changes:
  - the line “size” shall get removed
  - the “index number” shall get removed along with the backslash that follows after it
  - the section “[schemes]” shall be renamed to “[scheme]”
- Split weapons.ini into multiple files, one per weapon scheme.
  - these files shall be syntactically identical to the old weapons.ini
  - but contain only one value (for exactly one weapon scheme) instead.
- The file naming convention shall be “<identifier>.ini”, where 
“<identifier>” can be anything; if possible, it should be the same name of 
the scheme but does not need to be neccessarily. The actual scheme name which 
is shown in the game still resides inside the file.
- The folder structure shall change.
  - all weapon scheme files shall move into a new folder called “/WeaponSchemes”.
  - all game scheme files shall move into a new folder called “/GameSchemes”.
- After doing all these changes, remove scheme.ini and weapons.ini

Please give comments. :-)

Original issue reported on code.google.com by almikes@aol.com on 31 Aug 2013 at 12:13

GoogleCodeExporter commented 9 years ago
I like the idea, but I would like a patch even more :)

Original comment by vittorio...@gmail.com on 14 Oct 2013 at 8:32

GoogleCodeExporter commented 9 years ago
Alternative solution: maybe URLSs?

Like e.g. hwscheme://[...] and hwweapons://[...]  that would ask the user if he 
wants to add the scheme/weaponset with name xyz (with the settings specified in 
the url) to his hedgewars.

Could then link those things on DLC/Forums/gameserver-chat(!) without any need 
to download anything at all.

Original comment by sheepyluva on 2 Dec 2014 at 8:44