Author Topic: [(p) fixed] Default tilesets/settings are not used anymore ( git head )  (Read 670 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
git ( d2f321a2df841f05d4527ca428caaa85cfe3dcdc )

if you open a custom game now a random tileset is used instead of "autumn" .
Same problem if you go to "internet game" and open a server form there. Default should be desert2 not anything else.

For both cases were used 2 default files which were in MG base dir. Somehow they are no longer used.  I think because of the new way we use data in the development  environment. I only tried it with starting in mk/linux yet.

update: the two related files are :

data/defaultGameSetup.mgg
data/defaultNetworkGameSetup.mgg

Those are no longer used ( I bet not found anymore )
« Last Edit: 7 February 2014, 00:26:05 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Default tilesets/settings are not used anymore ( git head )
« Reply #1 on: 8 February 2014, 00:24:55 »
The code for this was wrong, basically fully hard coded. That means for debian and ubuntu packages these files were also never found. All file access for data needs to use code that manages data paths, never hard code.

 

anything