Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - gamesmame

Pages: [1] 2
Emulators / Help with MAME CD+floppy i dont find in anywere... please...
« on: August 20, 2023, 04:09:28 AM »
i use this: mame fmtmarty -cdrom 38man -skip_gameinfo

LOAD GAME OK, but in game the game needs the disk/floppy inserted (boot disk/floppy) and i dont know how i put this in code for LOAD CD and the boot disk togetter

With this .bat:

mame fmnew7 -skip_gameinfo -autoboot_command "load\n" -autoboot_delay 4 backgamm -uimodekey F2

I open the game XXXX after that I click on F2 and it (MAME) autoloads(PLAY) the cassette(tape) then just hold the insert for a few seconds and it accelerates the tape(PLAY) until the end and after that the game was loaded then I need to type RUN and press ENTER on the keyboard.. only then the game opens and is ready to be played!!!  ;D

Manually after opening the .bat, I need to MANUALLY click on F2 and then click and HOLD the Insert key and after finishing the reading type RUN and press enter MANUALLY...

Question is... how do I automate this in .bat? Because I get it in .bat I will transfer the modifying code to use in attractmode. or can you automate these commands directly in attractmode  :-\?

How i make the sumatra read all formats with no need change options!!! have this way?!!! have this way?


Code: [Select]
// Attract-Mode Frontend - SumatraPDF  WIP plugin (By Machiminax)
// For use with the SumatraPDF Reader

// The UserConfig class identifies plugin settings that can be configured
// from Attract-Mode's configuration menu
class UserConfig </ help="Read your Manuals with SumatraPDF" /> {

    </ label="Command", help="SumatraPDF launcher", order=1 />
    </ label="Extension", help="File extension to use", options=".pdf, .chm, .djvu, .djv, .epub, .fb2,, .mobi, .prc, .oxps, .xps, .cb7, .cbr, .cbt, .cbz", order = 2 />
    </ label="Path", help="Path to manuals - can include [Name], [Emulator], [Year], [Manufacturer], [System], [DisplayName]", order = 3 />
    path="Game Manuals/[Emulator]";
    </ label="View Key", help="Key to use to view", options="custom1,custom2,custom3,custom4,custom5,custom6", order = 4 />
    </ label="Missing Image", help="Path to 'missing' image - can include [Name], [Emulator], [Year], [Manufacturer], [System], [DisplayName]", order = 5 />

local config=fe.get_config(); // get user config settings corresponding to the UserConfig class above

// Copy the configured values from uconfig so we can use them
// whenever the transition callback function gets called

class PDFManualReader

        fe.add_signal_handler( this, "on_signal" )

    function on_signal( signal )
            if ( signal == config["key"] )
                local path = get_magic_token_path(config["path"]);
                local game_name = fe.game_info(Info.Name);
                local filename = "\"" + path + game_name + config["extension"] + "\"";
                local missing_path = get_magic_token_path(config["missing"]);
                local missing = "\"" + missing_path.slice(0, missing_path.len() - 1) + "\"";
                local exe = FeConfigDirectory  + "/plugins/SumatraPDF/" + config["command"];
                print("Launching SumatraPDF:\n");
                print(" " + exe + " " + filename + " " + missing + "\n");
                fe.plugin_command_bg( exe, filename + " " + missing );
                return true;
            return false;
    //replace specified magic tokens in path
    function get_magic_token_path(path) {
        local tokens = {
            "Name": fe.game_info(Info.Name),
            "Emulator": fe.game_info(Info.Emulator),
            "Year": fe.game_info(Info.Year),
            "Manufacturer": fe.game_info(Info.Manufacturer),
            "Category": fe.game_info(Info.Category),
            "System": fe.game_info(Info.System),
        foreach( key, val in tokens)
            path = replace(path, "[" + key + "]", val);
        //replace slashes with backslashes
        path = replace(path, "\\", "/");
        //ensure trailing slash
        local trailing = path.slice(path.len() - 1, path.len());
        if ( trailing != "/") path += "/";
        return path;
    //replace all instances of 'find' in 'str' with 'repl'
    function replace(str, find, repl) {
        local start = str.find(find);
        if ( start != null ) {
            local end = start + find.len();
            local before = str.slice(0, start);
            local after = str.slice(end, str.len());
            str = before + repl + after;
            str = replace(str, find, repl);
        return str;


General / Help this code works? i try but not sucess!!
« on: March 27, 2023, 01:20:44 PM »
I tried to create a simple and elegant layout to experiment with. This layout displays a background image and a list of available games on the main screen. When selecting a game, a menu should appear with the options "Play", "Manual" and "Video".

But do I think something is missing, or is the code completely wrong?

Code: [Select]
// Configurações
local bg = fe.add_artwork("backdrop", fe.add_image(bg_image)) // nome da imagem de fundo
local font_name = "Roboto Regular" // nome da fonte
local font_size = 20 // tamanho da fonte
local title_offset_y = 80 // distância do título em relação ao topo
local item_height = 40 // altura de cada item da lista
local item_spacing = 10 // espaçamento entre os itens da lista
local menu_options = [    ["Jogar", "emulator", "[name]"],
    ["Manual", "exec", "[rompath]/manual.pdf"],
    ["Vídeo", "exec", "[rompath]/video.mp4"]

// Imagem de fundo
local bg = fe.add_artwork("backdrop", bg_image)
bg.preserve_aspect_ratio = true
bg.trigger = Transition.EndNavigation
bg.post_trigger = Transition.ToNewVideo

// Título
local title = fe.add_text("[Title]", 0, title_offset_y, fe.layout.width, font_size*2, font_name, font_size*2, 0xffffffff, Effect.Fade)
title.word_wrap = true
title.align = Align.Center
title.trigger = Transition.EndNavigation
title.post_trigger = Transition.ToNewVideo

// Lista de jogos
local list = fe.add_list("romlist", 0, title_offset_y + title.height + item_spacing, fe.layout.width, fe.layout.height - (title_offset_y + title.height + item_spacing), font_name, font_size, 0xffffffff, Effect.Fade)
list.spacing = item_spacing
list.trigger = Transition.EndNavigation
list.post_trigger = Transition.ToNewVideo

// Ações
list.on_change = function( selected_item ) {
    title.set_text( selected_item.parent.get_name( selected_item ) )

list.on_select = function( selected_item ) {
    local sel = fe.do_menu(menu_options, "Menu")
    if (sel == -1) fe.exit()

Scripting / Dobout with Sumatra
« on: April 21, 2022, 01:22:45 PM »
I Have many manuals in PDF and CBR!!! example: abadox.PDF and batletoads.CBR I have in same folder 100pdf and 100 cbr mixed one game in pdf other in cbr!!
Have a way i use(plugin look) 2 extension sametime? For example: .PDF and .CBR? How i make this works?

How i change this in code?

Other dobout... how i make the "sumatra/code/plugin,etc.." delete the sumatrapdfcache when i exit from game manual? sumatra creates one cache and this with the time pass its a BIG GB's trash space lost!!

This work yet???


i put this code in my nut(NES) and dont appears a manual.png  :-\

Emulators / How ad this emulator PC6001VX????
« on: March 24, 2022, 10:29:13 AM »

Emulator:  v3.8.2

I think this is wrong:

Code: [Select]
# Generated by Attract-Mode v2.6.2
executable           M:\Emulators\NEC PC-6001/PC6001VX.exe
args                 "[romfilename]" "[Rating]"
rompath              M:\Emulators\NEC PC-6001\roms
romext               .p6;.cas
system               NEC PC-6001
exit_hotkey          Escape

Emulators open but dont read rom!!!

Please my friends I need help...

The module that I have been parcial working, it finds the game in the Rlauncher menu, extracts it to play but when finishing extraction from my .zip it gives this error::


General / Help with submenus!!!
« on: February 18, 2022, 06:00:35 PM »
I try make this but dont work propely  :-[

In fact it works more or less, the submenus are created and  access the submenus ok they work and read the files ok, the problem is the AM having is that not reading the artworks of the "Magazines" wheels or boxart or snap or anything, before read ok but now was and out of nowhere the arts of this system stopped appearing Magazines... Where is the error?

Magazines.txt (roms)
Code: [Select]
ACAO GAMES;ACAO GAMES;@;;;;;;;;;;;;;;;;;;
Super Game Power;Super Game Power;@;;;;;;;;;;;;;;;;;;
Blip (US);Blip (US);Magazines;;;;;;;;;;;;;;;;;;

Code: [Select]
# Generated by Attract-Mode v2.6.1
executable           M:\ARCADE\Ultilites\CDisplayEx\CDisplayEx.exe
args                 "[romfilename]"
system               Magazines
artwork    boxart          M:\Media\Magazines\Images\Artwork4
artwork    cartart         M:\Media\Magazines\Images\Artwork3
artwork    snap            M:\Media\Magazines\Video
artwork    wheel           M:\Media\Magazines\Images\Wheel

Code: [Select]
display ACAO GAMES
layout               ACAO GAMES
romlist              ACAO GAMES
in_cycle             yes
in_menu              no
filter               All
filter               Favourites
rule                 Favourite equals 1

display Super Game Power
layout               Super Game Power
romlist              Super Game Power
in_cycle             yes
in_menu              no
filter               All
filter               Favourites
rule                 Favourite equals 1

display Magazines
layout               Magazines
romlist              Magazines
in_cycle             yes
in_menu              yes
filter               All
filter               Favourites
rule                 Favourite equals 1

General / I wanted to know why this game (otomedius)does not open in AM
« on: February 16, 2022, 02:51:53 PM »
Please friends, I wanted to know why this game (otomedius)does not open in AM... I already put the correct args (I think they are correct) and nothing! If someone can test and tell me where the error is please...

i use this args:

Code: [Select]
# Generated by Attract-Mode v2.6.1
executable           cmd
args                 /c "[romfilename]"
rompath              M:\Emulators\E-Amusement\Otomedius\
romext               .bat
system               Konami eAmusement

and change for .EXE

Code: [Select]
# Generated by Attract-Mode v2.6.1
executable           cmd
args                 /c "[romfilename]"
rompath              M:\Emulators\E-Amusement\Otomedius\
romext               .exe
system               Konami eAmusement


Inside the file there are 2 game launchers:
Both work perfectly outside of AM!

The launchers have 2 commands inside:
Open e-amuemu.exe and then after 1 second open Game Loader All RH.exe

Can anyone help please?

General / Please Help How i load Apple1 games in MAME? how s the argument?
« on: February 07, 2022, 12:23:51 PM »
How i load Apple1 games in MAME? how s the argument? Please Help!!

General / Please mod delete this tread hermine helps me
« on: December 29, 2021, 01:25:59 PM »
Please mod delete this tread hermine helps me

How play "megaduck in attractmode" using retroarch? How CORE work?

I need help with folders and "txt" please help... Help Please ^^ ...

I need to put files from hundreds of folders into txt files BUT each folder named with its corresponding .txt from each folder.

And I need it to be in this format inside the .txt (if that's case I can also format after it inside the .txt later in this format I need):

In this case, it looks like this:


Please help, I found information about .bat on the internet to do this but I got a little confused.

Pages: [1] 2