Open JulianVolodia opened 9 years ago
Did you download city_cfg.dat and put it in the correct location so it gets loaded?
Now I not remember, I try to do it again in free time (in 2 weeks) and check it.
Got the same issue. It's not the fault of city_cfg.dat but the location of city_map.dat. In game_state_editor.cpp line 239: this->city = City("city", this->game->tileSize, this->game->tileAtlas);
where "city"
becomes "city_map.dat" before been read by Map::load() which does not check the status of inputFile.open
. I would recommend to add line 18 of map.cpp if (inputFile.fail()) { std::cerr << "Failed loading " << filename << std::endl; return; }
This bug depends on how you build. If you made
mkdir build
cd build
cmake ..
make
The binary citybuilder will be created in build/ directory so move it to ../ to be located near .dat files.
PS: Beware sudo make install
from build/ is not correct. It will install resources directly in /usr/local/media/ and /usr/local/ without creating the citybuilder/ directory.
Versions: Windows 7 (all libs static linked) x86_64 SFML 2.3 (downloaded today) - GCC 4.9.2 MinGW (SEH) - 64-bit MinGW x86_64-4.9.2-win32-seh-rt_v4-rev3 from netinstall CMake 3.1.0-rc3
and double right click cause app crash.
Any sugesstions?