Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Sky instead of ground & crash #4

Open
JulianVolodia opened this issue Jun 20, 2015 · 3 comments
Open

Sky instead of ground & crash #4

JulianVolodia opened this issue Jun 20, 2015 · 3 comments

Comments

@JulianVolodia
Copy link

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

image
image

and double right click cause app crash.

Any sugesstions?

@riswords
Copy link

Did you download city_cfg.dat and put it in the correct location so it gets loaded?

@JulianVolodia
Copy link
Author

Now I not remember, I try to do it again in free time (in 2 weeks) and check it.

@Lecrapouille
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants