Frontend Tech + >> Emu Loader
Previous thread Previous  View all threads Index   Threaded Mode Threaded  

Pages: 1

CiroConsentinoModerator
Frontend freak!
Reged: 09/21/03
Posts: 6211
Loc: Alien from Terra Prime... and Brazil
Send PM


New feature: MAME Custom Parameters
#391572 - 08/07/21 02:29 PM


What ? So you can attach devices and modules to MAME machines (mostly for computer machines and software lists)... stuff like that. Emu Loader doesn't have this feature and this is easiest way.
No more .bat files sorcery!

... update August 12, 2021...

As it turns out, there's no need for a "game" tag. It's still supported for extremely rare cases, but it should not be used.

For MAME machines with no softlists, the game name is always added after mame.exe, and then the custom parameter is added after it (this order is hard-coded into the frontend).

For software list games, it does not matter where the "-cart gamename" (media + game name) is located.

For software list games you will be able to enter the MAME machine before the parameters. This way, it will overwrite ide the selected machine for that softlist game...

The machine name must be the first argument (software lists only), then "required device parameter" next (a cassette player device, a floppy drive, etc... depending on the machine you're using). Then you can have a plethora of parameters. And at the very end, the media+gamename parameter.
I will add a reminder/info text in there, to avoid mistakes.

I did a bunch of tests with different games of different software lists, and they all worked, even with tons of other parameters before -media+gamename parameter.

The media param is not required. If omitted, it will will be added at the end by the frontend of the string along with the game name.

... update August 12, 2021...

Here are some examples:

Code:

    TI-99/4A cartridge game (ti99_cart.xml software list) with the arguments
to "attach" the speech synthesizer'
-ioport peb -ioport:peb:slot3 speech -cart1

Same as above, but without the -cart1 media parameter
-ioport peb -ioport:peb:slot3 speech

Intellivision cartridge game (intv.xml software list) with the arguments to
"attach" the Intellivoice Voice Synthesis Module
-cart1 voice -cart2

Any MSX 1 cart game (msx1_cart.xml software list) with a specific MSX machine,
overriding the selected MAME machine for this soflist game.
fxaiwx

Same as above, but loading the cartridge in "slot2"
fxaiwx -cart2


Note the last example, only a custom MAME machine was entered. The media parameter -cart1 was omitted, only a custom machine name is set. Emu Loader will add the media param and the game name automatically when running the game.

Edited by CiroConsentino (08/12/21 02:31 PM)



Emu Loader
Ciro Alfredo Consentino
home: http://emuloader.mameworld.info
e-mail: [email protected]



CiroConsentinoModerator
Frontend freak!
Reged: 09/21/03
Posts: 6211
Loc: Alien from Terra Prime... and Brazil
Send PM


Re: New feature: MAME Custom Parameters new [Re: CiroConsentino]
#391576 - 08/07/21 09:34 PM Attachment: el-custom-param-not-needed.png 29 KB (0 downloads)


One thing. Some software lists like "a2600_cass.xml" have a "requirement" tag with the scharger cartridge. Emu Loader can already read that tag and attach the media in the command line.
The custom command line for "a2600_cass.xml" games is not needed. I assume other software lists have this too but are not updated with this requirement tag. They will be updated eventually, i hope ? (msx1_flop, msx1_cass, etc...)

Here's a a2600 cassette game command line. Custom command line is not needed here.

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment



Emu Loader
Ciro Alfredo Consentino
home: http://emuloader.mameworld.info
e-mail: [email protected]



CiroConsentinoModerator
Frontend freak!
Reged: 09/21/03
Posts: 6211
Loc: Alien from Terra Prime... and Brazil
Send PM


WIP 1... "almost" final interface new [Re: CiroConsentino]
#391598 - 08/09/21 12:57 AM


Night mode, direct and simple tips below the parameters edit box and some examples at the bottom, which can be expanded without limits (it's a RichEdit control with scroll bar).
Any help on expanding the examples list at the bottom is highly appreciated...

You can create custom parameters for:
- game set (software list or MAME machine)
- parent game set, in case the game is a clone (software list or MAME machine)
- software list (msx1_cart.xml; n64.xml; psx.xml; etc) (all games in software list will use this custom param)
- last machine selected by user to run softlist game

more...
- files will be in plain .txt format (ANSI only, no Unicode/UTF support)
- both MAME machines are software list games are supported
- for MAME only, other systems are not supported
- files will be stored in a new "frontend_path\arcade\custom_params\mame\softwarelist\" folder
- you can enter a "machine name" before the parameters to use a custom machine for that particular game (software list game only); this will overwrite the selected machine for the software list that game belongs to

- filenames are:
-> gamename.txt
-> parentgame_name.txt
-> software_name.txt
-> machine_name.txt

- search order is as follows:
1. gamename.txt
2. if above not found, search parentgame_name.txt (if game is a clone)
3. if above not found, search software_name.txt
4. if above not found, search machine_name.txt
5. if none of the above are found, run without custom params

- so, you can create a custom param for the parent set and it will be used for all its clone sets

- if needed, you can use a < gamename> tag in the parameters string, it will be replaced by the actual game name
- if you omit the < gamename> tag, both media (-cart, -cass, flop1) and the game name will be automatically added at the end of the string (when running games only, not in the custom params string

- custom pamars will be used automatically if you double-click / ENTER key a game in the games list, there is no on/off switch for this feature... what's the point !?



Emu Loader
Ciro Alfredo Consentino
home: http://emuloader.mameworld.info
e-mail: [email protected]



CiroConsentinoModerator
Frontend freak!
Reged: 09/21/03
Posts: 6211
Loc: Alien from Terra Prime... and Brazil
Send PM


WIP2 - final interface and colors, in glorious 4K new [Re: CiroConsentino]
#391600 - 08/09/21 03:04 AM


I think this interface is good enough. Clear, simple and easy to navigate.



Emu Loader
Ciro Alfredo Consentino
home: http://emuloader.mameworld.info
e-mail: [email protected]



CiroConsentinoModerator
Frontend freak!
Reged: 09/21/03
Posts: 6211
Loc: Alien from Terra Prime... and Brazil
Send PM


WIP 3 - the games popup menu options new [Re: CiroConsentino]
#391609 - 08/09/21 11:53 PM Attachment: el-custom-param-wip2-games-popup-submenu.png 280 KB (0 downloads)


Just finished the menu options to edit/delete custom param files. I spent hours adapting existing code to show the parent/clone icons correctly. One more tweak to the source code (it can be used in other places)

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment



Emu Loader
Ciro Alfredo Consentino
home: http://emuloader.mameworld.info
e-mail: [email protected]



CiroConsentinoModerator
Frontend freak!
Reged: 09/21/03
Posts: 6211
Loc: Alien from Terra Prime... and Brazil
Send PM


Holy moly! new [Re: CiroConsentino]
#391617 - 08/11/21 04:01 AM Attachment: el-custom-param-c64_flop_misc-game-with-autoboot-commands.png 299 KB (0 downloads)


I'm almost finished with the code.
Exciting news. I just tried to run a Commodore 64 floppy that require commands to load and run the game, using MAME's -autoboot_command feature and you what...? It worked!

Created a custom parameter for this cool C64 floppy software game "Little Knight Arthur" ("arttu" name, c64_flop_misc.xml software list). Look at that screenshot!

I wonder if there's a way to run multiple commands without using the " \n " trick.

Now we can run softlist games and make them load/run floppy (and maybe cassette?) games without typing the commands. I know that the fun stuff is to type commands like we used to do with real hardware but...

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment



Emu Loader
Ciro Alfredo Consentino
home: http://emuloader.mameworld.info
e-mail: [email protected]


Pages: 1

Frontend Tech + >> Emu Loader
Previous thread Previous  View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  CiroConsentino 
0 registered and 1 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 682