Trilarion / hale

An RPG with turn based combat
https://sourceforge.net/p/hale/wiki/Home/
GNU General Public License v2.0
2 stars 0 forks source link

Task run fails to start: unable to find configuration file on Linux #13

Closed Trilarion closed 6 years ago

Trilarion commented 6 years ago

Game.java ln 318 "config = new Config(getConfigBaseDirectory() + "config.json") results in Exception "Unable to find file /home/xxx/.config/hale/config.json to parse."

Proposed solution: copy the default config to this place or use a different ConfigBaseDirectory, compare with Windows

Trilarion commented 6 years ago

Reason is that on line 566 in Config.Java (createConfigFile) the "docs/defaultConfig.json" is not existing.

Reason is that with the current gradle.build "docs/defaultConfig.json" is not copied to the distribution folder anymore. Needs to be changed.

Trilarion commented 6 years ago

Fixed in e8525d80bd64a56bce7381e697249a5737ea657c