clipmove / NotBlood

Gameplay Mod For NBlood
https://github.com/clipmove/NotBlood/releases
59 stars 3 forks source link

Allow Absolute Paths with -game_dir #77

Closed lsri2 closed 8 months ago

lsri2 commented 8 months ago

Hi. Is there any way you could allow absolute paths with -game_dir? It's useful for certain mods that may not be in the path of the game. For instance,

notblood -game_dir "C:\Blood\Mods\Trauma Therapy"

It seems to work ok in voidsw, eduke32, netduke32, etc. But, in notblood, it only likes a relative path like

notblood -game_dir "Mods\Trauma Therapy"

where Mods is a directory in say C:\Blood.

tmyqlfpir commented 8 months ago

I'm able to load mods via game_dir that are in different directories/drives, and I am unable to recreate this bug in order to fix it. Have you tried using the same command with NBlood?

lsri2 commented 8 months ago

Hi, yes the issue is in NBlood also. For instance, the Death Wish mod:

This won't work:

cd C:\Blood notblood.exe -game_dir "C:\Blood\Mods\Death Wish" -nosetup -noautoload

This will:

cd C:\Blood notblood.exe -game_dir "Mods\Death Wish" -nosetup -noautoload

tmyqlfpir commented 8 months ago

In that case, this should be reported upstream so the fix can be merged afterwards, as I am unable to debug and source the issue you are experiencing. Sorry!

lsri2 commented 8 months ago

Hi, no problem, I was able to find a workaround in the meantime. The issue seems to be for MODs that use files that conflict with files in the main blood directory like the tiles 1 to 17 or voxel.dat. For instance, there is a MOD called Trauma Therapy that uses a modified voxel.dat and some modified art files in the 1 to 17 range. If you call the mod like this:

notblood -game_dir "c:\blood\trauma therapy" -ini tt.ini -rff tt_r.rff -snd tt_s.rff -nosetup

the mod will load, but certain art and voxels won't get shown. For instance, the start screen won't show the right background. But, if you call the mod like this from c:\blood:

notblood -game_dir "trauma therapy" -ini tt.ini -rff tt_r.rff -snd tt_s.rff -nosetup

the mod will work fine. Anyway, if you are bored and want to test for yourself, here is a link to the MOD: https://file.io/7Et3EHOaFUM0

The workaround for now is just to ensure someone's mod directory is relative to their notblood directory.

tmyqlfpir commented 8 months ago

This is likely related to https://github.com/nukeykt/NBlood/issues/771 and should be reported still, but thanks for the information!