0mhz-net / 0mhz-collection

A curated collection of configurations for individually bootable DOS games for the ao486 core on MiSTer
64 stars 4 forks source link

Suggestion: Using custom configs for each packaged game #53

Open Shaneus2k2 opened 7 months ago

Shaneus2k2 commented 7 months ago

As mentioned in https://github.com/0mhz-net/0mhz-collection/issues/19#issuecomment-2025660853, custom configs can be used to save things like keyboard>joypad button mappings, refresh rates and other game-specific requirements.

Not sure if that variable has been rolled into the stable MiSTer main yet, but might be worth considering if it's not too much of a hassle.

emubastard commented 7 months ago

I'll need to know more about how this is suppose to work and when it's officially supported.

Shaneus2k2 commented 7 months ago

No worries. All that's needed is to add this to the mgl: <setname same_dir="1">NameOfYourGame</setname>

I've been using this for each of my custom games: <setname same_dir="1">0mhz_tempest2000</setname>

Still uses the folder structure of ao486, but dedicated config files for each game including keyboard to joypad mappings. Probably only needed for games that don't properly integrate joysticks properly.

emubastard commented 7 months ago

I thought same_dir wasn't in main yet

P67F commented 7 months ago

"I've been using the 0mhz-collection for about two weeks in my Mister FPGA and I'm satisfied. Regarding the setup for each game, I've been doing the following: I exit the game and end up in the prompt, then I call the .bat or .exe of the setup or install and configure the sound and the game as I want.

italiangrandma commented 7 months ago

No worries. All that's needed is to add this to the mgl: <setname same_dir="1">NameOfYourGame</setname>

I've been using this for each of my custom games: <setname same_dir="1">0mhz_tempest2000</setname>

Still uses the folder structure of ao486, but dedicated config files for each game including keyboard to joypad mappings. Probably only needed for games that don't properly integrate joysticks properly.

That hasn't been added to stable MiSTer main yet. I imagine when it is that it will get added. The thing I need to look at is what happens if you load a game that has a setname defined but you have no existing cfg file for it. I'm hoping it just uses ao486.cfg in that case, but I'm not sure at the moment. I guess 0MHz could just include a cfg in the package that is named the same as the setname if that were an issue.

italiangrandma commented 7 months ago

"I've been using the 0mhz-collection for about two weeks in my Mister FPGA and I'm satisfied. Regarding the setup for each game, I've been doing the following: I exit the game and end up in the prompt, then I call the .bat or .exe of the setup or install and configure the sound and the game as I want.

Using <setname> for different configs is different than what you've described. The biggest difference is that using setname would allow you to do specific keyboard>controller remaps per game and also use different bios files if needed (opensource/trident vga).

Shaneus2k2 commented 6 months ago

So same_dir is in main now. I guess it would be a pain to update all the existing games (at least, all the ones in 0mhz specifically) but maybe the ones that need/would benefit from it could be updated? Either for custom controls or custom machine configs like running a slower CPU or excluding L1 or L2 cache etc.