Load game from command line?

54 views
Skip to first unread message

Martin Parrott

unread,
Dec 16, 2013, 5:40:58 PM12/16/13
to java...@googlegroups.com
Hi, I am building an arcade cab reproduction and would like to use Javatari to run 2600 games. In order to seamlessly integrate Javatari, I would like to pass the game to run from the command line. Is this possible?

Many thanks!

Paulo Peccin

unread,
Dec 16, 2013, 9:50:03 PM12/16/13
to java...@googlegroups.com
Yes, sure!

You can pass the ROM filename as the main argument to the emulator.
But remember, Javatari can load ROMs from anywhere including the web, so the format for the ROM filenames must always be a valid URL. In the case of a local file, you must include the protocol "file:/" in the filename.

For example, to run the latest version executable JAR and start a ROM in Windows:

> javaw -jar javatari40.jar file:/c:/roms/enduro.bin

or simply:

> start javatari40.jar file:/c:/roms/enduro.bin

It also supports drag and drop of files and URLs, even inside the browser when deployed as an Applet.
See this website for example, you can simply drag the game images on the right into the emulator screen:


How are you planning to offer/integrate Javatari in your project?

Regards,
Paulo



On Mon, Dec 16, 2013 at 8:40 PM, Martin Parrott <parr...@gmail.com> wrote:
Hi, I am building an arcade cab reproduction and would like to use Javatari to run 2600 games. In order to seamlessly integrate Javatari, I would like to pass the game to run from the command line. Is this possible?

Many thanks!

--
You received this message because you are subscribed to the Google Groups "javatari" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javatari+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Martin Parrott

unread,
Dec 16, 2013, 10:13:10 PM12/16/13
to java...@googlegroups.com
Perfect! The file prefix of file:/ was what I was missing. I skimmed the txt files on the Git page, but may have missed that. If so, I'm sorry for the post! :)

I plan on using HyperSpin as the front end for the emulators I will be using. Most people use Stella, but I feel the scanline options in Javatari give a better 'look' than Stella.

Thanks for the info!
Martin

Paulo Peccin

unread,
Dec 16, 2013, 10:18:05 PM12/16/13
to java...@googlegroups.com
You're welcome.
Yes, I have to improve project documentation, specially about the deployment options!

Regards,
Paulo



--
Reply all
Reply to author
Forward
0 new messages