DarioSamo / libgens-sonicglvl

Level Editor for the PC version of Sonic Generations
http://forums.sonicretro.org/index.php?showtopic=27333
Other
55 stars 25 forks source link

Cannot load levels if System32 is not the first entry in Path #4

Open Radfordhound opened 8 years ago

Radfordhound commented 8 years ago

Title basically says it all. If the path to the standard Windows system32 folder is not the first entry in the system Path environment variable, this happens when trying to load stages (video is of Glvl 5.7 but this happens with Glvl 9.0 as well).

Radfordhound commented 7 years ago

(Credit to @thesupersonic16 for discovering this today)

Turns out the problem lies from us having DevkitPro installed, which adds itself as an entry to the Path environment variable above system32 and includes, guess what, an executable called "expand.exe" - the same name as the executable Glvl is attempting to run from the system32 directory for expanding MCSF-compressed archives.

thesupersonic16 commented 7 years ago

I think you only need to change the definition of SONICGLVL_LEVEL_CAB_PACKED_COMMAND to "C:\Windows\System32\expand". Can't tell because I can't seem to compile this project.

EDIT: Or even "%WINDIR%\System32\expand"

thesupersonic16 commented 7 years ago

https://github.com/DarioSamo/libgens-sonicglvl/pull/10

thesupersonic16 commented 7 years ago

Been over a month and still no response.

DarioSamo commented 7 years ago

Sorry, I just forgot about it.

I think the better fix on the long run would be to get our own CAB implementation working tho. This is something I got fairly advanced in but I was just missing the decompression part.

I could probably commit whatever code I wrote for that if anyone's interested.