Closed FabioLolix closed 9 months ago
I think the file where we cache the paths may not be created yet when this is called, so the append operation fails.
I can't reproduce this on my machine, even when using the same commands as you. Maybe you could do some additional checks:
make test
? This checks if file appending works correctly.assets/converted/assets_location.cache
exists? This is the file that the converter is trying to write to. If it's not there, maybe creating it manually has an effect?Thanks for your reply
I have enabled tests but they haven't been found
==> Avvio di check() in corso...
Internal ctest changing into directory: /home/fabio/Dev/Github/PKGBUILD/openage-git/src/build
Test project /home/fabio/Dev/Github/PKGBUILD/openage-git/src/build
No tests were found!!!
and manually
$ make test
Running tests...
Test project /home/fabio/Dev/Github/PKGBUILD/openage-git/src/build
No tests were found!!!
[fabio@archlinux build]$ LANG=C make tests
make: *** No rule to make target 'tests'. Stop.
exist assets/converted/assets_locations.cache
, creating asset_location.cache
change nothing
$ l
totale 4
-rw-r--r-- 1 fabio fabio 0 3 ott 23.52 asset_location.cache
-rw-r--r-- 1 fabio fabio 0 3 ott 23.52 asset_locations.cache
drwxr-xr-x 3 fabio fabio 4096 3 ott 23.52 hd_base
deleting all under assets/converted
change nothing
@FabioLolix thanks for checking!
exist assets/converted/assets_locations.cache, creating asset_location.cache change nothing
I was looking for asset_locations.cache
so I guess that filecould be created. Weird that it can't write to it then.
I think we could make the asset location cache optional as a temporary solution...
@FabioLolix Could you check if open("w")
fixes the error?
Conversion now works, I only get a warning:
INFO [py] asset conversion complete; asset version: 7
WARN [py] Cannot access asset location cache file [Union(Path(Directory(/home/fabio/.local/share/openage), (b'assets',)) @ (), WriteBlocker(Directory(/usr/share/openage).root).root @ ())]:converted/asset_locations.cache
INFO [py] Skipped saving asset location
Still can't launch that there are other problems
Hello, using the program build from the latest commit on Arch Linux I wasn't able to convert the assets from 3 steam editions
I had only Age2HD installed, after the first try I performed a file check from steam, then downloaded the other 2 games but didn't work
I'm missing something?