Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Using custom configs for each packaged game #53

Open
Shaneus2k2 opened this issue Apr 9, 2024 · 7 comments
Open

Suggestion: Using custom configs for each packaged game #53

Shaneus2k2 opened this issue Apr 9, 2024 · 7 comments

Comments

@Shaneus2k2
Copy link

Shaneus2k2 commented Apr 9, 2024

As mentioned in #19 (comment), 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
Copy link
Contributor

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

@Shaneus2k2
Copy link
Author

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
Copy link
Contributor

I thought same_dir wasn't in main yet

@P67F
Copy link

P67F commented Apr 10, 2024

"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
Copy link

italiangrandma commented Apr 17, 2024

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
Copy link

"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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants