Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. Thank you for your support. Tom Speirs

Patreon

Run Multiple Instances of VBA for Link Play?


murve33

Recommended Posts

I'll use Puyo Pop as my rom example for simplicity's sake.

So I have an emulator setup for GBA games using the Visual Boy Advance Emulator, and it works fine.

Now I'd like to make another emulator setup for 2-Player Game Boy Advance Games. To make this easier I'd like GameEx to open two instances of VBA and have each load the rom necessary. Is this possible?

All I've been able to do is open VBA running Puyo Pop and another instance of VBA w/o loading Puyo Pop (Advanced Emulator Setup > Also Launch "VBA.exe").

Bonus Insane Question: Is it possible to also have the first instance start a LAN server and the second instance connect to said server? For example.

1. VisualBoyAdvance.exe "[ROMPATH]\[ROMFILE]" [startServer LocalHost]

2. VisualBoyAdvance.exe "[ROMPATH]\[ROMFILE]" [Connect LocalHost]

Link to comment
Share on other sites

How comfortable are you with the command line interface and/or batch (.bat) scripting? I'm not familiar with the intimate details of how VBA handles this, but I think it would be achievable via a fairly simple wrapper (assuming it can all be launched from the command line at any rate - your bonus question seems to indicate that it's possible). Mainly I think you'd just need to pass your "[ROMPATH]\[ROMFILE]" into the a batch script as a parameter, and have the script handle running any subsequent commands.

I don't think it could be accomplished through GameEx without the help of a wrapper though.

Edit:

This post describes how you can pass a file path as a parameter into a batch file. If you can figure out the commands to run and the order in which to run them, I could probably put it all together into a wrapper script (assuming that passing parameters into the script was proving to be difficult)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...