pk2 icon indicating copy to clipboard operation
pk2 copied to clipboard

Guix Port

Open phodina opened this issue 2 years ago • 2 comments

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

phodina avatar Jan 11 '22 01:01 phodina

@danilolc any tips how to fix the error?

phodina avatar Dec 01 '22 23:12 phodina

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].

danilolc avatar Dec 02 '22 13:12 danilolc