OnlineCop / kq-fork

Fork of KQ r910. Just for fun.
GNU General Public License v2.0
15 stars 9 forks source link

Game crashes after i step on the village icon at the beginning at the first island #166

Open chriszaro opened 4 months ago

chriszaro commented 4 months ago

Game crashes after i step on the village icon on the beginning and the messages on cmd are the following

DEBUG: Invalid glyph index: 0
DEBUG: Could not parse script C:/Users/Battlestation/kq-fork\scripts\town1.lua!
DEBUG: Script error

Any help?

The installation process i followed:

I installed Visual Studio with all the components listed here so I could run the following commands on git bash

git clone https://github.com/microsoft/vcpkg .\vcpkg\bootstrap-vcpkg.bat .\vcpkg\vcpkg install --triplet=x64-windows libpng lua sdl2 sdl2-mixer tinyxml2 zlib .\vcpkg\vcpkg integrate install

After everything were installed

I cloned the kq-fork repo I installed cmake

but when i tried cmake -S . -B build/ -DKQ_DATADIR="$PWD" i got messages that it couldnt find the libraries i installed. So after a lot of troubleshooting i used include("C:/Users/Battlestation/kq-fork/vcpkg/scripts/buildsystems/vcpkg.cmake") in CMakeList.txt

and finally run cmake -S . -B build/ -DKQ_DATADIR="." and cmake --build build/

I run the .exe

chriszaro commented 4 months ago

If I use $PWD instead of . dot , i get image which i don't understand because i don't understand the difference between $PWD and dot .