NBlood icon indicating copy to clipboard operation
NBlood copied to clipboard

Blood: Custom map selector on Linux shows root folder

Open CommonLoon102 opened this issue 3 years ago • 3 comments

On Linux, the map selector (and possibly the .sf2 selector as well) is initially showing the / folder (absolute root) of the system instead of the game directory.

CommonLoon102 avatar Oct 15 '20 22:10 CommonLoon102

It is confirmed that the .sf2 selector has the same issue. Based on the code it seems to be that the bug is in Build, somewhere in the file system functionalities.

CommonLoon102 avatar Oct 20 '20 21:10 CommonLoon102

those can be fixed by editing the cfg files

nblood.cfg rednukem.cfg SETUP.CFG - powerslave/exhumed

change the directory in: ModDir = "/" to point to your game folder/map folder

edit: actually just noticed nblood ignores this, but rednukem does not

as for the .sf2 selector it appears to be best to put the .sf2 in the same folder as the game directory its set by "settings.cfg" mus_sf2_bank "sc-55.sf2" although i tried other directories rednukem is the only one that didnt work correctly

arrowgent avatar Nov 20 '20 15:11 arrowgent

Will quote what I wrote in #694. Also referencing NotBlood#31.

It looks to me like a map (and possibly also an SF2 file) is mistakenly loaded from the wrong directory, while I believe it should otherwise be expected to be found in ~/.config/nblood and/or the cwd; Maybe in a subdir if selected by the user. Even -usecwd doesn't seem to help here.

What I found at the time was that while MAP or SF2 files were listed in Duke3D and Blood's menus, pathsearchmode was not set to the same value. Last I checked, Duke3D and Blood's startgtk.game.cpp set it to 1 and don't reset it. By chance, in Duke3D, CONFIG_ReadSetup sets it to 1 afterwards, and then to 0; While Blood doesn't. CDemo::LoadDemoInfo temporarily changes it from 1 to 0, and then reverts it to the preceding value (which was written to a local variable). startwin.game.cpp doesn't reference pathsearchmode at all.

NY00123 avatar Aug 09 '23 19:08 NY00123