ArcadeHustle / X3_Multi_Eye_for_an_Eye

After the sickening Darkdawg Arcade team refusal to participate in the Eye for an Eye Match, an X3 Multi will be released.
11 stars 19 forks source link

JVS with ringedge game #14

Open Weskers13 opened 3 years ago

Weskers13 commented 3 years ago

hello, i am trying to get ringedge games to work with the jvs. I manage to launch the games but problem I can not have the control in jvs. Can someone explain to me how to run it's games via the jvs? thank you.

DaNightSlasher commented 3 years ago

Hello,

I think x360kb + cjvs or jvsDLL.dll launched with dllinject may work. I don't know if a good JVS to keyboard has been done.

DaNightSlasher commented 3 years ago

Ok, you have to recompile cjvs with the inputs you want.

jaycaesar commented 3 years ago

Tried one game (virtua tennis 4) and it seems to work.

  1. You first need to create an emulator "ringedge" in attract.
  2. Create a folder ringedge in the games section
  3. Update the nesicaxlive romlist with the respective entry for the game

Once you've got it showing in the menu, you need to get it to load the game.

This is what I did:

  1. Downloaded a dump from emuline.
  2. Found the jconfig files required as per this site (https://jconfig-universe.fandom.com/wiki/Virtua_Tennis_4)
  3. Configured jconfig to use mame default keys with esc being the test button
  4. Made sure I was able to launch the game by running vt4_ring_r.exe
  5. Once I was able to launch on the pc, I tested on the ttx3. Naturally, the game launched but controls weren't working.
  6. I used the previously provided scripts as a template and created an ah3 script to load the cjvs.exe prior to loading the game
Global $FE = ProcessExists("attract.exe")
Global $JVS = ProcessExists("jvsexe.exe")
run ("@echo off")
If $JVS Then ProcessClose("jvsexe.exe")
If $FE Then ProcessClose("attract.exe")
Sleep(500)
run ("cjvs.exe", "", @SW_HIDE)
Sleep(500)
run ("VT4_RING_r.exe")
Sleep(500)
ProcessWaitClose ("VT4_RING_r.exe")
Sleep(500)
If $FE Then
   FileChangeDir ("E:\NESiCAxLive\AM")
   Run("E:\NESiCAxLive\AM\Multi.exe")
EndIf
Exit
  1. I then compiled this script to turn into a launch.exe
  2. I created a bat file like the others to launch the game
@echo off
set "GAMELAUNCHER=Launch.exe"
set "GAMENAME=Virtua Tennis 4\Game"
set HOME="%~dp0"
set "GAMEROOT=%~dp0\%GAMENAME%\"
cd %GAMEROOT%
start "" /WAIT "%GAMEROOT%%GAMELAUNCHER%"
exit

So each game will need its own launch.exe by the look of it as the game exe is not all the same file name (whether or not it can be changed, I'm not sure - I haven't tested it)

And logically, the theory should be, if it works with jconfig and keyboard entries then we should be able to launch the game using either cjvs or fast2kb for keyboard mapping.

I'll muck around with it a little more when I'm back on a pc

Weskers13 commented 3 years ago

thanx !!! its work on virtua tennis 4, but i dont return the AM and the commande of attrack mode is not fonctional after return this attrack mode. You have a solution?

jaycaesar commented 3 years ago

its work on virtua tennis 4

Now rinse and repeat the same logic for the rest of the games :)

but i dont return the AM and the commande of attrack mode is not fonctional after return this attrack mode.

It'd be whatever F2 is mapped to. For me, my F2 is my Service button normally.

image

The moment VT4_RING_r.exe is closed off, attract mode should start up.

Try it with a keyboard. Exit the game with F2 and it should close it and bring it back to attract mode.

If attract mode is not accepting inputs, you've probably haven't started the "multi.exe" job.

Weskers13 commented 3 years ago

thank you for the indication, I tried with your config I can actually exit but I still have this control problem under attract mode which removes the control of the BCD button from me.

Weskers13 commented 3 years ago

its work on virtua tennis 4

Now rinse and repeat the same logic for the rest of the games :)

but i dont return the AM and the commande of attrack mode is not fonctional after return this attrack mode.

It'd be whatever F2 is mapped to. For me, my F2 is my Service button normally.

image

The moment VT4_RING_r.exe is closed off, attract mode should start up.

Try it with a keyboard. Exit the game with F2 and it should close it and bring it back to attract mode.

If attract mode is not accepting inputs, you've probably haven't started the "multi.exe" job.

after trying several things its not working. Could you jaecaser tell me where to put the cjvs.exe file, I put it in the file where the dump is located. Thanx for advance.

jaycaesar commented 3 years ago

after trying several things its not working. Could you jaecaser tell me where to put the cjvs.exe file, I put it in the file where the dump is located. Thanx for advance.

Looks like I wasn't killing the cjvs.exe on exit.

Update the ah3 script so it kills off the process cjvs.exe on exit.

Global $FE = ProcessExists("attract.exe")
Global $JVS = ProcessExists("jvsexe.exe")
run ("@echo off")
If $JVS Then ProcessClose("jvsexe.exe")
If $FE Then ProcessClose("attract.exe")
Sleep(500)
run ("cjvs.exe", "", @SW_HIDE)
Sleep(500)
run ("VT4_RING_r.exe")
Sleep(500)
ProcessWaitClose ("VT4_RING_r.exe")
Sleep(500)
ProcessClose("cjvs.exe")
Sleep(100)
If $FE Then
   FileChangeDir ("E:\NESiCAxLive\AM")
   Run("E:\NESiCAxLive\AM\Multi.exe")
EndIf
Exit

Also, the cjvs.exe is inside each directory

Try that and see how you go.

Weskers13 commented 3 years ago

I have already tried but it's the same: '(. jaycaesar do you have a Facebook, Messenger ?

jaycaesar commented 3 years ago

Not sure what's going on then. I just tried it and it works.

Is your winlogon in the registry c:\tdegboot.exe or c:\windows\explorer.exe?

I don't use messenger mate

Weskers13 commented 3 years ago

ok, i try in direct boot AM but also on explore it.