ARCADE FOREVER

cerrar juegos taito typeX X2 con closemul

« Older   Newer »
  Share  
view post Posted on 15/7/2021, 16:14     +1   -1
Avatar

V.I.P.

Group:
Usuarios AFFA
Posts:
215
Reputation:
+6

Status:


Sorry for the delay in replying, I'm on vacation.
Do you know the AHK scripts language? RocketLaucher was all made on it!
My script is very complicated, with many options that are not worth talking about as they are very personal for my arcade machine.
In summary, it is as follows:

Main script (very reduced)
CODICE
#SingleInstance, force
#NoTrayIcon

romname = %1%

IniRead, game, %A_ScriptDir%\launcherconfig.ini, GAMES, %romname%
IniRead, loadScreen, %A_ScriptDir%\launcherconfig.ini, CONFIG, loadScreen
IniRead, logoXPos, %A_ScriptDir%\launcherconfig.ini, CONFIG, logoXPos
IniRead, logoYPos, %A_ScriptDir%\launcherconfig.ini, CONFIG, logoYPos


xpos := logoXPos
ypos := logoYPos
gametorun := game
if (loadScreen = 1)
{
       ;show black screen

       AnimPicFile := A_ScriptDir "\logo.gif" ; replace with full path to your gif
       Gui +LastFound -Caption +AlwaysOnTop
       guiID := WinExist()
       Gui, Color, Black
       AGif := AddAnimatedGIF(AnimPicFile, xpos, ypos)
       ;GuiControl, Move, %AGif%, w%logoXPos% h%A_ScreenHeight%
       Gui, Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%
}

;run game
run, steam://rungameid/%game%, , , emuPID
Sleep, 2000
Gui, Destroy

joy10 & 2joy25:: Process, Close, %emuPID%

Process, WaitClose, %emuPID%
ExitApp
return


;########### FUNCTION TO INSERT ANIMATED GIF! DON´T TOUCH#########################
; ****  AddAnimatedGIF function by boiler  ****
; imagefullpath: must be the full path to the animated GIF image file
; x, y: optional strings containing position info that would normally follow x and y options, such as 10, "p+3", "m"
; w, h: optional width and height values that would normally follow w and h options; blank for full size image
; guiname:  optional name of the gui to add the image to if not the main one
;
; function returns the name of the control that was added so that you can modify it (move, hide) with GuiControl
; can add up to animated GIF images.  to increase the limit, add AG11,AG12,... to the global statement
;

AddAnimatedGIF(imagefullpath , x="", y="", w="", h="", guiname = "1")
{
       global AG1,AG2,AG3,AG4,AG5,AG6,AG7,AG8,AG9,AG10
       static AGcount:=0, pic
       AGcount++
       html := "<html><body style='background-color: transparent' style='overflow:hidden' leftmargin='0' topmargin='0'><img src='" imagefullpath "' width=" w " height=" h " border=0 padding=0></body></html>"
       Gui, AnimGifxx:Add, Picture, vpic, %imagefullpath%
       GuiControlGet, pic, AnimGifxx:Pos
       Gui, AnimGifxx:Destroy
       Gui, %guiname%:Add, ActiveX, % (x = "" ? " " : " x" x ) . (y = "" ? " " : " y" y ) . (w = "" ? " w" picW : " w" w ) . (h = "" ? " h" picH : " h" h ) " vAG" AGcount, Shell.Explorer
       AG%AGcount%.navigate("about:blank")
       AG%AGcount%.document.write(html)
       return "AG" AGcount
}


And this is launcherconfig.ini file its read:

CODICE
[CONFIG]
# Load screen config
# Show Loadscreen - 1 yes, 0 no
loadScreen = 1

# Logo image position
# *XPos = horizontal position
# *YPos = vertical position
logoXPos = 800
logoYPos = 100


[GAMES]
# STEAM ID
# DRAGON BALL FIGHTERZ
DBZF = 992176

#THE KING OF FIGHTERS 2002 UNLIMITED MATCH
KoF2002UM = 222440

#Street Fighter X Tekken
SFXTEK = 209120


How it works?
First, I have fake roms for my pc games, which are all from STEAM. This is for easy setup in AdvanceManu and it's just empty txt files renamed to zip.
Dragon Ball FighterZ => dbfz.txt => dbfz.zip
My script, after compiled, has the name of "pcgames.exe", which when executing it will receive the rom name without the extension (dbfz), will look for the steam ID in the file "laucherconfig.ini" and after will load the game.
In the script, the line "joy10 & 2joy25:: Process, Close, %emuPID%" is a hotkey for the start buttons for players 1 and 2, which when pressed closes the game.
joy10 = 1º joystick, button 10
2joy25 = 2º joystick, button 25
 
Top
view post Posted on 16/7/2021, 15:56     +1   -1
Avatar

NOVEL

Group:
Member
Posts:
67
Reputation:
+1

Status:


desconozco el lenguaje AHK scripts. (soy muy novato en esto)

este trabajo es en RocketLaucher?

Agradezco por toda tu ayuda....pense que no responderias!

habra otro metodo mas sencillo?
 
Top
icon4  view post Posted on 19/7/2021, 19:09     +1   -1
Avatar

V.I.P.

Group:
Usuarios AFFA
Posts:
215
Reputation:
+6

Status:


Closemul is the isimplest and easiest method.
AutoHotKey too :lol:
What games do you have and how do you run them? A bat file? Click shortcut?
Do you use joystick with these games or keyboard?
Let's try to build something that works on your arcade/pc.

Edited by jeus - 19/7/2021, 20:33
 
Top
view post Posted on 20/7/2021, 18:29     +1   -1
Avatar

NOVEL

Group:
Member
Posts:
67
Reputation:
+1

Status:


Agradezco toda tu ayuda *_*

uso el teclado para después configurar el control arcade con joytokey, aunque me gustaría lanzar los juegos de pc con configuraciones de botones/teclas diferentes(cosa que tampoco se hacer) dependiendo del juego
 
Top
view post Posted on 20/7/2021, 19:42     +1   -1
Avatar

V.I.P.

Group:
Usuarios AFFA
Posts:
215
Reputation:
+6

Status:


What games do you have installed?
 
Top
view post Posted on 20/7/2021, 19:51     +1   -1
Avatar

V.I.P.

Group:
Usuarios AFFA
Posts:
4,464
Reputation:
+299
Location:
Barcelona

Status:


QUOTE (Jeser Cortazar @ 20/7/2021, 19:29) 
Agradezco toda tu ayuda *_*

uso el teclado para después configurar el control arcade con joytokey, aunque me gustaría lanzar los juegos de pc con configuraciones de botones/teclas diferentes(cosa que tampoco se hacer) dependiendo del juego

Mirate este video, puede que te ayude:

 
Top
view post Posted on 20/7/2021, 20:05     +1   -1
Avatar

V.I.P.

Group:
Usuarios AFFA
Posts:
215
Reputation:
+6

Status:


JoytoKey is so easy....
Just open it, create a profile and assign keys.
After this, open game and load joytokey.exe+profile;
You are using HyperSpin or AdvMenu?
If you are using HyperSpin, the video above is ok.
However, if you are using AdvMenu or other frontend, the video is unnecessary and wast of time.

Edited by jeus - 20/7/2021, 21:24
 
Top
view post Posted on 21/7/2021, 15:38     +1   -1
Avatar

NOVEL

Group:
Member
Posts:
67
Reputation:
+1

Status:


QUOTE (jeus @ 20/7/2021, 21:05) 
JoytoKey is so easy....
Just open it, create a profile and assign keys.
After this, open game and load joytokey.exe+profile;
You are using HyperSpin or AdvMenu?

uso advmenu

QUOTE (jeus @ 20/7/2021, 21:05) 
JoytoKey is so easy....
Just open it, create a profile and assign keys.
After this, open game and load joytokey.exe+profile;
You are using HyperSpin or AdvMenu?

como lanzo el juego+joytokey+profile en una sola vez y luego cerrar el juego con 1=49+5=53(esta es la combinacion general para cerrar los juegos/emuladores)
 
Top
view post Posted on 21/7/2021, 16:17     +1   -1
Avatar

V.I.P.

Group:
Usuarios AFFA
Posts:
215
Reputation:
+6

Status:


First, tell me how you run the game.
You use a bat file? Closemul?
If it's with a bat, what is the content of your bat?
 
Top
view post Posted on 21/7/2021, 17:05     +1   -1
Avatar

NOVEL

Group:
Member
Posts:
67
Reputation:
+1

Status:


QUOTE (jeus @ 21/7/2021, 17:17) 
First, tell me how you run the game.
You use a bat file? Closemul?
If it's with a bat, what is the content of your bat?

mi base es esta
www.youtube.com/watch?v=C6FMQHCgH0o
 
Top
view post Posted on 21/7/2021, 17:57     +1   -1
Avatar

V.I.P.

Group:
Usuarios AFFA
Posts:
215
Reputation:
+6

Status:


Nice, but very confused.
He added pc games like "emulators", it's okay, but I don't think it's the best way.

CITAZIONE
como lanzo el juego+joytokey+profile en una sola vez y luego cerrar el juego con 1=49+5=53(esta es la combinacion general para cerrar los juegos/emuladores)

The command line for joytokey to load an profile is:
joyToKey.exe -r profilename

In a bat file:
@echo off
start "" "path_to_your_game\your_game.exe"
start "" "path_to_joy2key\joy2key.exe -r profilename"
 
Top
view post Posted on 21/7/2021, 18:56     +1   -1
Avatar

NOVEL

Group:
Member
Posts:
67
Reputation:
+1

Status:


QUOTE (jeus @ 21/7/2021, 18:57) 
Nice, but very confused.
He added pc games like "emulators", it's okay, but I don't think it's the best way.

buscando he encotrado esto,
run, .\gta.exe

esc::

process, close, gta.exe

exitapp

compilas el script, lo tienes que poner donde se encuentra el ejcutable del juego que quieras lanzar o en su defecto poner la ruta completa en el comando run

este script lo que hace es lanzar el gta san andreas y el script queda ejecutandonse, al detectar que la tecla escape es pulsada, mata el proceso del gta y cierra el juego

compilas el script y obtienes un exe, puedes crear un acceso directo del exe

QUOTE (jeus @ 21/7/2021, 18:57) 
Nice, but very confused.
He added pc games like "emulators", it's okay, but I don't think it's the best way.

y este otro

es muy importante colocar el archivo compilado de autohotkey dentro de la carpeta del juego, en el ejemplo utilizo la dirección c:tx2 dentro de esta coloco los juegos, roms, snaps y el programa que cierra los procesos

@echo off

if %1 == koft goto kof13----------> koft es el nombre la rom, al ser cargada manda al submenu kof13

goto error --------> En dado caso que el juego no este listado se genera un error

:kof13
start c:tx2cerarLc.exe --------> Mata Procesos, en esta seccion pueden poner el mata procesos que gusten, en este caso utilizo uno propio
echo Cargando KOF13 -----------> Mensaje que muestra al cargar el juego
c: -------------------------------------> Cambia el directorio
cdtx2KOFXIIIPLUS ---------------> Cambia el directorio donde esta el juego
kofxiiimp.exe ----------------------> Exe generado con el codigo que mas adelante pondre
goto fin

:error
@echo El juego no fue encontrado
exit

:fin
exit

Todo ello debe ir dentro de pc.bat, para agregar mas juegos unicamente coloquen esta linea "if %1 == (nombre del rom) goto (submenu donde trabajan el juego), no tiene limite de juegos y tendran la ventaja de poder cargar perfiles de xpadder entre cada juego.

El codigo que va en el script ahk es el que publico el amigo halion1

#notrayicon ------------------------------> No muestra icono en la barra de tareas
run, typex_loader game.exe -------> carga el juego con el loader, aqui pueden poner cualquier juego
WinWait, kofxiii -------------------------> Espera a que cargue la ventana con el nombre kofxiii en caso de poner otro juego deben averiguar el nombre de la venta
WinWaitClose-----------------------------> Espero a que la ventana kofxiii se cierre
filedelete, d:bblog*.dat--------------> Borra el archivo de la ruta mencionada
exitapp ------------------------------------> Sale del script

Para compilar este codigo se usa autohotkey les recomiendo usar versiones anteriores no la L, ahora pasemos a la configuracion de Advmenu enseguida el codigo que deben agregar a advmenu.rc

emulator "pc" generic "c:tx2pc.bat" "%s" ---------> Direccion donde ubicamos el archivo pc.bat
emulator_roms "pc" "c:tx2roms" ---------------------> Carpeta con roms para el ejemplo usamos koft.zip, para generar la rom crean un archico de texto y lo comprimen con el nombre la rom este paso solo es necesario la primera vez despues el mismo archivo lo pueden usar para los juegos que deseen unicamente copiando y cambiando el nombre del mismo
emulator_roms_filter "pc" "*.zip" ----------------------> filtro de la rom con extension zip
emulator_altss "pc" "c:tx2snap" ----------------------> Carpeta con los Snaps

ademas de agregar el codigo para que advmenu agregue el emulador

emulator_include "pc"

Por ultimo en la carpeta donde tengamos Advmenu creamos un archivo de texto con el nombre pc y la etension lst

pc.lst

dentro de este archivo colocamos los nombres del rom con su respectiva descripcion

game(
name koft
description " KOF 13"
)

Con todo esto tendremos funcionando los juegos de taito en advmenu


QUOTE (jeus @ 21/7/2021, 18:57) 
The command line for joytokey to load an profile is:
joyToKey.exe -r profilename

In a bat file:
@echo off
start "" "path_to_your_game\your_game.exe"
start "" "path_to_joy2key\joy2key.exe -r profilename"

y como cierro con combinacin de teclas?
 
Top
view post Posted on 12/8/2021, 18:53     +1   -1
Avatar

NOVEL

Group:
Member
Posts:
67
Reputation:
+1

Status:


QUOTE (jeus @ 12/8/2021, 17:59) 
Off topic

Waiting for your reply in this thread where I asked which pc games you have to try to help you make a custom AHK launcher

LOS JUEGOS SERIA:
*Ultimate Marvel vs Capcom 3
*Killer Instinc
*Dragon Ball Fighters
*KOF XIV
*Kof 2002 UM(pc version)
*Kof 98 UM(pc version)

....solo por mencionar algunos, tampoco quiero abusivo!
 
Top
view post Posted on 6/10/2022, 21:19     +1   -1
Avatar

V.I.P.

Group:
Usuarios AFFA
Posts:
215
Reputation:
+6

Status:


Hello!
Could you put the contents of your advmenu.rc file here?
So I have an idea of how things work in your AdvanceMenu
 
Top
view post Posted on 10/10/2022, 14:36     +1   -1
Avatar

NOVEL

Group:
Member
Posts:
67
Reputation:
+1

Status:


QUOTE (jeus @ 6/10/2022, 22:19) 
Hello!
Could you put the contents of your advmenu.rc file here?
So I have an idea of how things work in your AdvanceMenu

config save_at_exit
device_color_bgr15 yes
device_color_bgr16 yes
device_color_bgr24 yes
device_color_bgr32 yes
device_color_bgr8 yes
device_color_palette8 yes
device_color_yuy2 yes
device_joystick auto
device_keyboard auto
device_lgrawinput_calibration auto
device_mouse none
device_sdl_samples 512
device_sound auto
device_svgawin_divideclock no
device_svgawin_skipboard 0
device_svgawin_stub fullscreen
device_video auto
device_video_cursor auto
device_video_doublescan yes
device_video_fastchange no
device_video_interlace yes
device_video_output fullscreen
device_video_overlaysize 2024
device_video_singlescan yes
difficulty none
display_brightness 1
display_gamma 1
display_orientation
display_restoreatexit no
display_restoreatgame no
display_size 1720
event_alpha yes
event_assign up up or h
event_assign down down or n
event_assign left left or b
event_assign right right or m
event_assign enter 1 or 1
event_assign esc esc
event_assign space space
event_assign home home
event_assign end end
event_assign pgup pgup
event_assign pgdn pgdn
event_assign del del
event_assign ins insert
event_assign shutdown lcontrol esc
event_assign mode tab
event_assign help f1
event_assign group f2
event_assign type f3
event_assign exclude f4
event_assign sort f5
event_assign setgroup f9
event_assign settype f10
event_assign runclone f12
event_assign command f8
event_assign rotate 0_pad
event_assign lock scrlock
event_assign preview space
event_assign mute period_pad
event_mode fast
event_repeat 100 10
icon_space 100
idle_screensaver 00 00
idle_screensaver_preview snap
idle_start 0 0
include
input_hotkey yes
lock no
menu_base 354
menu_rel 21
merge differential
misc_exit normal
misc_quiet no
mode full
mode_skip full_mixed list_mixed tile_big tile_enormous tile_giant text
mouse_delta 100
preview snap
preview_default none
preview_default_cabinet none
preview_default_flyer none
preview_default_icon none
preview_default_marquee none
preview_default_snap none
preview_default_title none
preview_expand 3
sort parent
sound_background_begin none
sound_background_end none
sound_background_loop none
sound_background_loop_dir mp3
sound_background_start none
sound_background_stop none
sound_buffer 0.1
sound_foreground_begin none
sound_foreground_end none
sound_foreground_key none
sound_foreground_start
sound_foreground_stop none
sound_latency 0.1
sound_samplerate 44100
sound_volume -3
ui_background fondomenu.png
ui_bottombar no
ui_clip multiloopall
ui_color help black black
ui_color help_tag black black
ui_color submenu_bar red black
ui_color submenu_item red black
ui_color submenu_item_select black 00FF00
ui_color menu_item red black
ui_color menu_hidden black black
ui_color menu_tag red black
ui_color menu_item_select black 00FF00
ui_color menu_hidden_select 00FF00 00FF00
ui_color menu_tag_select black 00FF00
ui_color bar black black
ui_color bar_tag black black
ui_color bar_hidden black black
ui_color grid black black
ui_color backdrop black black
ui_color icon white white
ui_command_error Error running the command
ui_command_menu Command...
ui_console no
ui_exit none
ui_font ARIALNB.ttf
ui_fontsize 41
ui_game flyers
ui_gamemsg "¡¡¡Que te diviertas!!! Multiuegos: Jeser Cortazar F."
ui_help none
ui_menukey yes
ui_skipbottom 127
ui_skipleft 809
ui_skipright 5
ui_skiptop 300
ui_startup 0
ui_topbar no
ui_translucency 0
emulator "Houbap" generic "C:\Multijuegos\MAME HOUBA\Houbap-vc2005-0.125 Final R14-i686.exe" "%f"
emulator_roms "Houbap" "C:\Multijuegos\MAME HOUBA\roms"
emulator_roms_filter "Houbap" "*.zip"
emulator_altss "Houbap" "C:\Multijuegos\video"
 
Top
29 replies since 18/6/2021, 18:52   715 views
  Share