Hi,
I installed vcmi using ubuntu’s ppa
vcmi plays properly
I am trying to use the editor
I cloned vcmi/vcmi_editor, using master(41eeeeb64e7)
I installed the deps from .travis, make and make test ok
when launching ./bin/vcmieditor I first had
filesystem.json not found.
I then copied https://github.com/vcmi/vcmi_old_mirror/blob/master/config/filesystem.json and updated it via my configuration:
{
// Complete filesystem available after initialization
// All paths and names here are case-insensitive
// If same filename is found twice entry from latest source will be used
// NOTES:
// - this file must be available as "config/filesystem.json"
// - some locations are hardcoded (user config directory, cache/tmp directory, saved games location)
"filesystem":
{
"DATA/" :
[
{"type" : "lod", "path" : "/home/$USER/.local/share/vcmi/Data/H3ab_bmp.lod"},
{"type" : "lod", "path" : "/home/$USER/.local/share/vcmi/Data/H3bitmap.lod"},
{"type" : "dir", "path" : "/home/$USER/.local/share/vcmi/Data"}
],
"SPRITES/":
[
{"type" : "lod", "path" : "/home/$USER/.local/share/vcmi/Data/H3ab_spr.lod"},
{"type" : "lod", "path" : "/home/$USER/.local/share/vcmi/Data/H3sprite.lod"},
{"type" : "dir", "path" : "/home/$USER/.local/share/vcmi/Sprites"}
],
"SOUNDS/":
[
{"type" : "snd", "path" : "/home/$USER/.local/share/vcmi/Data/H3ab_ahd.snd"},
{"type" : "snd", "path" : "/home/$USER/.local/share/vcmi/Data/Heroes3-cd2.snd"},
{"type" : "snd", "path" : "/home/$USER/.local/share/vcmi/Data/Heroes3.snd"},
//WoG have overriden sounds with .82m extension in Data
{"type" : "dir", "path" : "/home/$USER/.local/share/vcmi/Data", "depth": 0}
],
"MUSIC/":
[
{"type" : "dir", "path" : "/home/$USER/.local/share/vcmi/Mp3"}
],
"VIDEO/":
[
{"type" : "vid", "path" : "/home/$USER/.local/share/vcmi/Data/H3ab_ahd.vid"},
{"type" : "vid", "path" : "/home/$USER/.local/share/vcmi/Data/Heroes3.vid"},
{"type" : "vid", "path" : "/home/$USER/.local/share/vcmi/Data/video.vid"}
],
"CONFIG/":
[
{"type" : "dir", "path" : "/home/$USER/.local/share/vcmi/"}
],
"MAPS/":
[
{"type" : "dir", "path" : "/home/$USER/.local/share/vcmi/Maps"}
],
"MODS/":
[
{"type" : "dir", "path" : "/home/$USER/.local/share/vcmi/Mods", "depth": 1}
]
}
}
(paths do resolve in shell, i would replace $USER later on)
now error is:
Resource not found: config/gameConfig
I tried to look for “gameConfig” in repo, and in /home/$USER/.local/ but could not find it
So I tried to instead link vcmi/config to the the cloned vcmi_editor:
vcmi_editor$ ln -s …/vcmi/config .
make
./bin/vcmieditor
but then I still get the same error.
If I try to manually hardcode
GAME_CONFIG = '/home/xxdl/vcmi_editor/config'+DirectorySeparator+'gameConfig.json';
(the path does exist) I still get the same error from filesystem.pas
What am I doing wrong?