pk2
pk2 copied to clipboard
Guix Port
Hi,
I'm porting the game to GNU Guix. The game builds but then segfaults probably due to missing files.
Could you please help me with locating them in the source code? I'll then change their location in the package definition.
$ /gnu/store/n6b9fia22n7060xm8mgdvrz6bqwqxlca-pekka-kana-2-1.4.2/bin/pekka-kana-2/pekka-kana-2
[DEBUG] PFile - Find ./data/redirect.txt
[INFO] PFile - ./data/redirect.txt not found, trying different cAsE
[WARN] PFile - Couldn't scan on "./data"
[INFO] PFile - ./data/redirect.txt not found
[ERR] PFile - Can't get RW from file "./data/log.txt"
[DEBUG] PK2 - Pekka Kana 2 started!
[DEBUG] PK2 - Game version: Pekka Kana 2 Definitive Edition 1.4.2 (Linux) (no-zip) (portable)
[DEBUG] PK2 - Number: 0x402
[DEBUG] PK2 - Data path - ./data/
[ERR] PFile - Can't get RW from file "./data/settings.ini"
Segmentation fault
@danilolc any tips how to fix the error?
I don't know how GNU Guix works. Maybe it's a problem with the cwd. It sets the working directory here: https://github.com/danilolc/pk2/blob/c8ea766eabdcc7e72696f5902dad789943a65e60/src/main.cpp#L239-L240
You can change it in command line, just start with ./pk2 path [directory]
.