Closed Sakitoshi closed 5 years ago
but having a single prboom.cfg per iwad is still an issue.
a way to solve it would be to revert the change that moves the prboom.cfg file to the save folder and only keep the saves there, it would be almost like treating the prboom.cfg file as a cue file.
another way would be to create a cue-like file that specifies the iwad, pwads, deh/bex and music to use and leave the prboom.cfg file either in the save or system folder.
but I think that either way the saves will collide as the way they behave now they all would be created in the same save folder and have the same names.
One thing to note: the prboom.cfg files have to be stored in a directory with write access. That's the main reason why I moved them to the save directory (#45). If the config files are kept with the game data, you can't (for example) place your game data on an external sdcard under Android. I think that's rather important.
One thing to note: the prboom.cfg files have to be stored in a directory with write access. That's the main reason why I moved them to the save directory (#45). If the config files are kept with the game data, you can't (for example) place your game data on an external sdcard under Android. I think that's rather important.
I don't use my phone to play, so I didn't knew. but AFAIK apps can write to the external sdcard on android, the app has to request the write access and then you are asked to select the sdcard folder to authorize, at least in marchmellow (android 6), maybe they changed that again (thanks android?) but I can't test for myself as mm is as far as my xperia z3 compact can go (officially at least).
but that's kinda besides the point. it makes sense to place the cfg file in the save folder, most games do just that and keeps the content folder clean, but prboom is a special case for how pwad, deh/bex and music loading works. all things considered looks like the best option would be to move pwad, deh/bex and music from the cfg file to a cue-like file and name the save folder after said file to avoid save file collision.
It would be good to be able to open the prboom.cfg directly as content.
But in case you didn't know, you don't really have to create prboom.cfg files. DEH files with the same name as the pwad are automatically detected by the core when loading that pwad. In the example you wrote, just make sure you have the same casing (if you filesystem is case sensitive) and just open the MasterLevels.wad, if you have MasterLevels.deh and Doom2.wad in the same directory (or parent) it should load fine without the need of creating an additional prboom.cfg file for each pwad. See #32.
I don't know about loading the prboom.cfg as content, that file contains configurations and as such belongs in the save folder. the thing is that also contains what files to load which isn't right in this case since pwad, deh/bex and music differ, that's why I suggested a new file (.dom?) that would act the same as a cue file explicitly telling the core which iwad, pwad, deh/bex and music to load. this will also eliminate any problem with retroarch trying to find files, since they all will be specified (well, except prboom.wad, since that file should be in the system folder).
I know having to create a new file is not very user friendly but gives it the flexibility that needs since some pwad use doom 2, others ultimate doom and others registered doom non-ultimate (and those last 2 share the same filename) and the wad finder defaults to doom 2, not really its fault since there is no way to tell which iwad should use.
I don't know about loading the prboom.cfg as content, that file contains configurations and as such belongs in the save folder.
I was thinking about it being loaded as an override, so you could have whatever you want inside, if you want configuration then so be it, if you don't want the full configuration then just place the lines corresponding to the wad/dex and only the wad/dex will be changed.
I know having to create a new file is not very user friendly but gives it the flexibility that needs since some pwad use doom 2
At the moment you can have that flexibility already, but you need to differentiate doom1, udoom and doom2 inside different folders. It might not be user friendly but it does give that flexibility and I believe it's good to have them organized anyway.
not really its fault since there is no way to tell which iwad should use.
In theory if the pwad includes maps we could make it so it tries to detect if it's made to use doom2/doom1 by checking the lump name of the map, sort of how it already does when loading Doom2 iwad. Then just based on that change the order of the iwad search so it prefers to find first the iwads that match the map name convention.
But this method wouldn't cover the 100% of cases, and it's still better to have each iwad in its own directory tree together with the pwads that correspond to it.
currently the prboom core isn't finding additional pwad and deh files.
prboom.cfg
log file
on top of that, having the prboom.cfg file in the save folder is creating a problem of his own while trying to load mods. having a single config file for official wad doesn't allow to have different independent pwad/deh and music ready to run since you need to go and edit the prboom.cfg file to load different sets of pwad/deh and music. the way it was before allowed to have multiple copies of the prboom.cfg file and thus having multiple sets of mods ready to be used.