aliens

Author Topic: Splitting the rulesets  (Read 2242 times)

Offline kkmic

  • Commander
  • *****
  • Posts: 586
  • Undefined
    • View Profile
Splitting the rulesets
« on: March 28, 2012, 09:52:22 am »
How about splitting that huge (and growing) ruleset file into multiple files each containing a specific set of rules?

I cant give any examples of the op of my head now... it's just an idea.


Volutar

  • Guest
Re: Splitting the rulesets
« Reply #1 on: March 28, 2012, 10:04:31 am »
Having all rulesets in one file is a bad idea.
It definately should be splitted.

Offline d2uriel

  • Sergeant
  • **
  • Posts: 49
    • View Profile
Re: Splitting the rulesets
« Reply #2 on: March 28, 2012, 10:41:24 am »
There's one good thing about it - you open up that file with whichever text editor you prefer and you can find everything there. If you have multiple files... well, you have to look in each and every one of them. Besides, it's easier to mess around with only one file to load than a complete set of files.

How do you think the files should be split up?

Volutar

  • Guest
Re: Splitting the rulesets
« Reply #3 on: March 28, 2012, 12:37:06 pm »
Searching through all text files could help.

Config (yaml) files should be splitted by logical parts. At least - geography / basescape / battlescape
and later, each of it should be splitted by lesser parts.

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2161
    • View Profile
Re: Splitting the rulesets
« Reply #4 on: March 28, 2012, 01:02:26 pm »
This is planned for later. The problem is it's much faster to think up ideas than implement them, so by the time I finish implementing ideas I already got much better ones in mind, it's an ever-lasting struggle. In my mind we're already at OpenXcom 2.0 and I'm on vacation in Hawaii. ;)

To give you an idea, my future plan is something like this:
- data\
-- Xcom1DataSet\
--- Rules\
---- world.rul
---- crafts.rul
---- facilities.rul
---- ...
--- Resources\
---- surfaces.rul
---- music.rul
---- sound.rul
---- GEODATA
---- GEOGRAPH
---- ...
--- Languages\
---- english.lng
---- german.lng
---- ...
-- Xcom2DataSet\
--- Rules\
---- world.rul
---- crafts.rul
---- facilities.rul
---- ...
--- Resources\
---- surfaces.res
---- music.res
---- sound.res
---- GEODATA
---- GEOGRAPH
---- ...
--- Languages\
---- english.lng
---- german.lng
---- ...
-- HDGraphicsPack\
--- Resources\
---- surfaces.res
---- newgraphics.png
---- ...
-- NewCraftPack\
--- Rules\
---- crafts.rul
--- Resources\
---- surfaces.rul
---- newcraft1.pck
---- ...
--- Languages\
---- english.lng
-- TerrorMapSet\
--- Rules\
---- maps.rul
--- Resources\
---- surfacesets.res
---- terrorBlock1.map
---- ...
-- ...