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

JVS with ringedge game #14

Open
Weskers13 opened this issue Dec 16, 2020 · 11 comments
Open

JVS with ringedge game #14

Weskers13 opened this issue Dec 16, 2020 · 11 comments

Comments

@Weskers13
Copy link

@Weskers13 Weskers13 commented Dec 16, 2020

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

@DaNightSlasher DaNightSlasher commented Dec 17, 2020

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

@DaNightSlasher DaNightSlasher commented Dec 18, 2020

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

@jaycaesar
Copy link

@jaycaesar jaycaesar commented Dec 22, 2020

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

@Weskers13 Weskers13 commented Dec 23, 2020

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

@jaycaesar jaycaesar commented Dec 23, 2020

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

@Weskers13 Weskers13 commented Dec 23, 2020

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

@Weskers13 Weskers13 commented Dec 24, 2020

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

@jaycaesar jaycaesar commented Dec 27, 2020

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

@Weskers13 Weskers13 commented Dec 27, 2020

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

@jaycaesar
Copy link

@jaycaesar jaycaesar commented Dec 27, 2020

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

@Weskers13 Weskers13 commented Dec 27, 2020

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

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

Successfully merging a pull request may close this issue.

None yet
3 participants