Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Johnny 5 beta 2.0 released!  (Read 17985 times)

0 Members and 1 Guest are viewing this topic.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 12:48:45 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Johnny 5 beta 2.0 released!
« on: September 26, 2005, 12:43:43 am »
The new version is out.  A features list diectly from the readme:

Beta 2.0
What's New
========

Fixed Various bugs. 

Added Command.dat support.

Added fixes that are required by the new mame core, Johnny will still work with older versions of mame.

The auto hot key script has now progressed enough to be considered a true feature.  By using this seperate download package,
along with some help from your favorite fe, you can now view j5 and all it's supported dats while in mame!
(2000/Xp users only)

Added -ahk tag, which helps with the script.

Added -driver allowing the user to manually set the driver.

The viewer can now automatically retrieve the driver and clone, all that is required is the rom name, making it easier to use
j5 with your favorite fe.
===================================================

(The ahk script will be posted shortly.)

Barring anymore mame changes or any major bugs found, this will probably be the last version for a while, so enjoy!

Go get it at the lazarus homepage as usual. 

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 12:48:45 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 beta 2.0 released!
« Reply #1 on: September 26, 2005, 12:59:18 am »
the new test script is online

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 12:48:45 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 beta 2.0 released!
« Reply #2 on: September 26, 2005, 01:40:56 pm »
Version 2.1 is up due to a major bug being found.

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8187
  • Last login:Today at 10:10:19 am
  • The Bears Still Suck!
Re: Johnny 5 beta 2.0 released!
« Reply #3 on: September 26, 2005, 02:31:05 pm »
FYI, if this is new news to you, visit http://www.oscarcontrols.com/lazarus and http://fe.donkeyfly.com

mahuti

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2757
  • Last login:September 18, 2024, 01:16:22 pm
  • I dare anything! I am Skeletor!
Re: Johnny 5 beta 2.0 released!
« Reply #4 on: September 26, 2005, 03:08:54 pm »
And there are a few recent threads here in the software board as well... with especially great links on how to optimally setup Johnny5.

http://forum.arcadecontrols.com/index.php?topic=43276.0
Raspberry Pi, AttractMode, and Skeletor enthusiast.

jcrouse

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1027
  • Last login:January 09, 2010, 05:53:51 pm
    • CPViewer
Re: Johnny 5 beta 2.0 released!
« Reply #5 on: September 27, 2005, 03:32:39 pm »
Howard,
     Should we have questions, concerns or comments, where do you prefer we post them?

John

mahuti

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2757
  • Last login:September 18, 2024, 01:16:22 pm
  • I dare anything! I am Skeletor!
Re: Johnny 5 beta 2.0 released!
« Reply #6 on: September 27, 2005, 04:52:51 pm »
Tigerheli made a good setup tutorial here
Raspberry Pi, AttractMode, and Skeletor enthusiast.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 12:48:45 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 beta 2.0 released!
« Reply #7 on: September 27, 2005, 08:04:41 pm »

snekse

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:December 15, 2010, 06:06:17 pm
  • I'm not wearing any pants!!!
Re: Johnny 5 beta 2.0 released!
« Reply #8 on: September 27, 2005, 09:26:12 pm »
What exactly IS Johnny 5?  Never saw anything on your site that actually explained what it does....
-sneksE

mahuti

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2757
  • Last login:September 18, 2024, 01:16:22 pm
  • I dare anything! I am Skeletor!
Re: Johnny 5 beta 2.0 released!
« Reply #9 on: September 27, 2005, 11:43:10 pm »
Dynamically displays your controls based on a combination of your control configuration and game information from the controls.dat project and mame.

Pretty dang handy.
Raspberry Pi, AttractMode, and Skeletor enthusiast.

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Johnny 5 beta 2.0 released!
« Reply #10 on: September 28, 2005, 08:10:24 am »
Dynamically displays your controls based on a combination of your control configuration and game information from the controls.dat project and mame.

Pretty dang handy.
Right - Basically you feed it a gamename and it shows a picture of YOUR panel and tells you that "In Game Y, you have 2 player mode, they alternate, it uses an 8-way joystick and when you press the Yellow button, the plane will loop."

Thanks for the plug, Mahuti -
http://www.mameworld.net/tigerheli/johnny/ (covers ways to use it), and
http://www.mameworld.net/tigerheli/johnny/setup.htm (covers how to get it working).

I'll probably revise the first page to specify what it acutally does. . .

Update:  Added a "Background and History" section to the main page.
« Last Edit: September 28, 2005, 08:51:06 am by Tiger-Heli »
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re: Johnny 5 beta 2.0 released!
« Reply #11 on: October 03, 2005, 11:18:22 am »
Is there a way to make it exit on any key rather than a specific one?
I think cpviewer or cpvw has an option like that where you set the exit keycode to 0 to mean "any".

If I launch johnny before launching the game, I want to make it as easy as possible to dismiss it and start playing, by moving the joystick in any direction for example.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 12:48:45 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 beta 2.0 released!
« Reply #12 on: October 03, 2005, 03:42:58 pm »
Nope, and it's not going to happen. You see cpviewer only displays the image and that's it.  It doesn't need input.  J5 does a lot of other things and input is requried.  (Toggle key, navigation in command.dat, ect)

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re: Johnny 5 beta 2.0 released!
« Reply #13 on: October 03, 2005, 05:21:54 pm »
J5 does a lot of other things and input is requried.  (Toggle key, navigation in command.dat, ect)

is this documented anywhere? I saw you can enter a toggle key but I'm not sure what it does, I tried it and got some error (can't remember what off hand).

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Johnny 5 beta 2.0 released!
« Reply #14 on: October 10, 2005, 07:57:17 am »
Nope, and it's not going to happen. You see cpviewer only displays the image and that's it.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re: Johnny 5 beta 2.0 released!
« Reply #15 on: October 10, 2005, 03:33:19 pm »
The AHK script, as is, assumes that the user uses a standard setup with "P" for the MAME pause key and "Esc" to exit Johnny5.
If your keys are different, you will need to modify the script or it won't work properly.

if your mame pause key is not P (my keywiz encoder doesn't generate the P key by default, so I changed MAME to use Q), you will need to replace the "p" with whatever key in the following lines:
~P::
Send, {p down} {p up}

if you set up Johnny5 to exit on a different key than escape, you will need to change Esc in the script with the corresponding key.
Send, {Escape down}
Send, {escape up}
~Escape::



Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Johnny 5 beta 2.0 released!
« Reply #16 on: October 10, 2005, 03:55:30 pm »
Correct for the most part, but Escape in the script is actually the key to exit MAME. . .
if you set up Johnny5 to exit on a different key than escape, you will need to change Esc in the script with the corresponding key.
Send, {Escape down}
Send, {escape up}
~Escape::
All that REALLY has to be changed is the last line ~Escape:: if you use a different key to exit MAME.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re: Johnny 5 beta 2.0 released!
« Reply #17 on: October 10, 2005, 04:22:15 pm »
FYI, you can assign a block of code to multiple keys by listing them like labels:
~Z::
~X::
~LShift::
{
   do something here
}
return

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re: Johnny 5 beta 2.0 released!
« Reply #18 on: October 10, 2005, 07:17:27 pm »
Correct for the most part, but Escape in the script is actually the key to exit MAME. . .
All that REALLY has to be changed is the last line ~Escape:: if you use a different key to exit MAME.  The key to exit Johnny is optional.

yes, it gets actually complicated: with the default settings, if you press ESC when johnny was up, then johnny terminates and unpauses MAME, so the first part of the if statement applies to the johnny exit key. If you press the ESC key when MAME was up, then the AHK script exits, so if MAME and johnny don't use the same exit key, the script needs to be modified some more.

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Johnny 5 beta 2.0 released!
« Reply #19 on: October 11, 2005, 10:38:56 am »
FYI, you can assign a block of code to multiple keys by listing them like labels:
~Z::
~X::
~LShift::
{
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re: Johnny 5 beta 2.0 released!
« Reply #20 on: October 11, 2005, 05:14:12 pm »
haven't looked at it it great details but it sounds like the right idea.

I do have a mode important problem though: the "vanilla" AHK script from HC rarely unpauses MAME properly. It does dome of the time but not always. So then I have to press P again to get back in the viewer (which also unpauses MAME since it saw the P, so now the game playing in the background) and press P again to exit the viewer, and then most (some) of the time mame stays unpaused because it didn't see the P press from the script on exiting Johnny.


I played around with it and I'm stumped. I was trying it pacman because when the ROm firswt start up you see colored patterns going very fast on the screen. I added a 3 second delay after exiting johnny before sending the P key to MAME and I sometimes see the screen in MAME update for a fraction of a second. Just as if it had received the P key twice in a row really fast. Maybe that
s a hint as to what's wrong.

mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
Re: Johnny 5 beta 2.0 released!
« Reply #21 on: October 11, 2005, 06:28:22 pm »
Is there a way that once mame is paused, another key could be pressed to bring up johnny 5?  I wondered if mame could be paused, I could press P1B1 to bring up the viewer, then exit back out of it.  The timing is still off when unpausing mame, and I would like the option to view the controls when needed, as it takes some time to bring it up.
« Last Edit: October 11, 2005, 11:24:25 pm by mccoy178 »

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re: Johnny 5 beta 2.0 released!
« Reply #22 on: October 12, 2005, 01:03:57 am »
yes you can do something like that pretty easily.
I think that's what Tiger-Heli does, so he may have a script to share.

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Johnny 5 beta 2.0 released!
« Reply #23 on: October 12, 2005, 06:58:47 am »
haven't looked at it it great details but it sounds like the right idea.

I do have a mode important problem though: the "vanilla" AHK script from HC rarely unpauses MAME properly. It does dome of the time but not always. So then I have to press P again to get back in the viewer (which also unpauses MAME since it saw the P, so now the game playing in the background) and press P again to exit the viewer, and then most (some) of the time mame stays unpaused because it didn't see the P press from the script on exiting Johnny.


I played around with it and I'm stumped. I was trying it pacman because when the ROm firswt start up you see colored patterns going very fast on the screen. I added a 3 second delay after exiting johnny before sending the P key to MAME and I sometimes see the screen in MAME update for a fraction of a second. Just as if it had received the P key twice in a row really fast. Maybe that
s a hint as to what's wrong.
Yes that's been a big problem with the script all along.  (I think it's probably only a MAME problem, but that's 95% of what people are using it for). . .

See http://fe.donkeyfly.com/forum/index.php?topic=162.msg1015#msg1015 BTW, adjusting the "sleep" timings had little effect for me, I tried values from 250 to 25000 and still got the errors.  Worse - 1942 played fairly well, but 1943 never did, so I'm not sure you can use the same timings with all games.

BTW, that's exactly what the "sleep timers" and block input lines, and the whole ScreenState=-1 stuff is trying to overcome, but it doesn't look like it's there yet . . .

I did see something in the AHK help file on multithreading, and thought maybe disabling this would help, but haven't experimented with it, if you're feeling adventurous.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Johnny 5 beta 2.0 released!
« Reply #24 on: October 12, 2005, 07:06:09 am »
Is there a way that once mame is paused, another key could be pressed to bring up johnny 5?
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re: Johnny 5 beta 2.0 released!
« Reply #25 on: October 12, 2005, 01:21:39 pm »
one ofthe things you could do is maintain state information: if P was pressed once and MAME is the active window, then MAME is paused, if P is pressed again while MAME is the active window, then it's not paused anymore.
There is a (small?) danger of getting out of sync however, but if you can't have a dedicated button for whatever reason, this could be a workaround. Makes the script a little more complicated becasue now you have to check which window was active when P was pressed, so that you ignore it if the user presses P while the johnny display is up.

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Johnny 5 beta 2.0 released!
« Reply #26 on: October 12, 2005, 01:29:12 pm »
one ofthe things you could do is maintain state information: if P was pressed once and MAME is the active window, then MAME is paused, if P is pressed again while MAME is the active window, then it's not paused anymore.
There is a (small?) danger of getting out of sync however, but if you can't have a dedicated button for whatever reason, this could be a workaround. Makes the script a little more complicated becasue now you have to check which window was active when P was pressed, so that you ignore it if the user presses P while the johnny display is up.
Good thought.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re: Johnny 5 beta 2.0 released!
« Reply #27 on: October 12, 2005, 01:38:52 pm »
HC's script does not atttempt to check which window was active when the key was pressed to "filter" it. It maintains state information based on key presses only.
On the other hand I don't know that I have seen HC's script get out of sync, ever.
The problem with the script is that MAME is not seeing the "unpause" keypress for some reason, but I don't believe it's a flow in the state information logic, the script gets out of sync because MAME didn't do what it's supposed to.

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Johnny 5 beta 2.0 released!
« Reply #28 on: October 12, 2005, 01:42:18 pm »
On the other hand I don't know that I have seen HC's script get out of sync, ever.
You just said three posts above that it did . . . (no, I know what you mean, but if the script is okay but MAME isn't, the end result is the same . . .)
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

BuZz880

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 201
  • Last login:November 16, 2023, 02:16:43 pm
  • I'm a llama!
Re: Johnny 5 beta 2.0 released!
« Reply #29 on: October 13, 2005, 01:30:58 pm »
Ok,

I've worked all this out but the commandline I need as described below:

For speed reasons, the way I want to use Johnny5 is by pre-generating a bunch of png's using a batch process (thanks listgen) that I will setup and with the -justprint feature.

Once I do this, what is the command line to have Johnny5 display my png?  I do not see it in the readme or I wouldn't ask.  I will be naming all my png's after the parent rom for example sf2.png, mk2.png, you get it.  Johnny5 will be called via the AHK script (which I love by-the-way).

(oh and yes I know I could probably just modify the AHK script to call irfanview to show the PNG but I'm not so sure how and before I tackled it I thought it might be easier just to do this plus this leaves me the option of having Johnny 5 compile an image on the fly if one doesn't already exist for whatever reason.)

Thanks.
« Last Edit: October 13, 2005, 01:52:30 pm by BuZz880 »

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Johnny 5 beta 2.0 released!
« Reply #30 on: October 13, 2005, 02:11:46 pm »
Ok,

I've worked all this out but the commandline I need as described below:

For speed reasons, the way I want to use Johnny5 is by pre-generating a bunch of png's using a batch process (thanks listgen) that I will setup and with the -justprint feature.

Once I do this, what is the command line to have Johnny5 display my png?
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

papaschtroumpf

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 972
  • Last login:July 23, 2013, 11:41:10 pm
  • Have a Cow!
Re: Johnny 5 beta 2.0 released!
« Reply #31 on: October 13, 2005, 02:18:37 pm »
or you can call cpvw from JCrouse's page and use the -bg <picture name> command line option

BuZz880

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 201
  • Last login:November 16, 2023, 02:16:43 pm
  • I'm a llama!
Re: Johnny 5 beta 2.0 released!
« Reply #32 on: October 13, 2005, 04:56:04 pm »
I get it, thanks.. .I'll try all this later hopefully tonight otr tomorrow.

AllisterFiend

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 165
  • Last login:June 04, 2013, 05:04:16 am
  • Rush 2112
    • Check out my Dragon's Lair/MAME cabinet.
Re: Johnny 5 beta 2.0 released!
« Reply #33 on: October 16, 2005, 09:08:06 pm »
I get it, thanks.. .I'll try all this later hopefully tonight otr tomorrow.

Just wondering if you have tried this yet.

I have already created .png files with my control layout (I only have about 40 games that I run on my system) and I just want to be able to pause my game in mame and have ahk view my .png (which is named after the rom image) using ifranview. and then when I press pause again have it go back to mame and continue to play.

I will also try but since I just started reading about these viewer programs, I'm a little overwhelmed. 

Allister Fiend

P.S. I know I at least need Ifranview and AHK, but do I even need johnny 5 or any other controls program just to view a .png in fullscreen?
« Last Edit: October 16, 2005, 09:10:57 pm by AllisterFiend »

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 12:48:45 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 beta 2.0 released!
« Reply #34 on: October 17, 2005, 01:54:28 am »
In your case no.   J5 and other viewers are for people that have a cab that runs several games. 

I would like to point out, though that in the case of others in this thread, just displaying an image is a bad idea.  Every time, and I mean every time you update your controls.dat you'll need to regenerate those images, not just new ones, but all of them (because we constantly tweak entries).  For example, between this version and the next we are going on a spell-check spree, cleaning up misc details.  I'm guestimating at least 80 entries will change.  That and the fact that we'll add those games added in the recently released cp pack.  (Another 60 or so assuming they are all readable)

At first glance it may seem that just displaying images is easier, but in actuality it ends up being more work in the long run.  I only reccomend dislaying imges for those of you with a small games library and those who are forced to do so for various reasons.  It should be a last resort, not a first choice.

AllisterFiend

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 165
  • Last login:June 04, 2013, 05:04:16 am
  • Rush 2112
    • Check out my Dragon's Lair/MAME cabinet.
Re: Johnny 5 beta 2.0 released!
« Reply #35 on: October 18, 2005, 07:23:12 am »

You answered your own question . . .

You can't (AFAIK) display the image in Johnny5, you can modify the AHK script to call Irfanview.

First, copy Irfanview to your images directory.  Open Irfanview and select options> >properties>fullscreen and disable "show text" to keep Irfanview from showing the image name (change any other options here as need (scale image, etc.).

The command line would be /fs for fullscreen,

so the AHK script needs something like

J5=i_view32.exe %1%.png /fs
Run,%J5%, C:\images, max

I haven't verified this, so the %1%.png might need one less percent sign or sth, but I think it will work.  Let me know if it doesn't and you need to change something.

 Tiger-Heli,

 I have tried what you said and everything works fine except for the fact that for some reason I can only get it load my .png's from the root directory of C:. I am using the Method 5 complex script and just changed around what you mentioned in the other post. I have tried to change the script around in various ways to get it to recognize subdirectories but I have had no luck.  I even went to the AHK website and tried some examples that they had (not that it matters much, the last time I tried to do any type of programming was way back on my Commodore 64, BASIC RULES!!!! :D).

 I also had to name my .png to the rom name plus add in the .zip to the filename to get it to load the images..ex..galaga.zip.png (no big deal, just wanted to get it out there in case someone is having trouble loading their picture.)

 Okay, now I have a question that might seem pretty stupid but remember I have not done any programming since the days of compute! magazine (does typing them from the back of the magazine count as programming...hmmmm)

 It is my understanding that AHK can determine if mame is running but it cannot determine whether mame is running while paused.  Is there anyway for a program to tell if mame is paused or is this something that the mame devs have to add into the mame code.  The reason I ask is that I really like method 5 but being able to launch your control viewer while the game is still running is a downer, I just know in the heat of a game I will do this sooner or later and screw my game up.  In other words I was wondering if a check could be added into the AHK script that would not allow you to say press the 7 key (as set up in the script) if it does not detect mame in the paused state.

Hope I got my message across as I am late for work now :) and in a hurry to get out of here.

Thanks for any help you guys could give.

Allister Fiend

P.S. thanks for the info Howard, if I decide to go with more games I will definetly set up johnny5

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Johnny 5 beta 2.0 released!
« Reply #36 on: October 18, 2005, 08:15:12 am »
I have tried what you said and everything works fine except for the fact that for some reason I can only get it load my .png's from the root directory of C:.
I added details on this in my Method 2 and Method 5 pages at http://www.mameworld.net/tigerheli/johnny/.

Did you copy Irfanview to the images directory, like I suggested?
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

BuZz880

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 201
  • Last login:November 16, 2023, 02:16:43 pm
  • I'm a llama!
Re: Johnny 5 beta 2.0 released!
« Reply #37 on: October 18, 2005, 01:55:57 pm »
I get it, thanks.. .I'll try all this later hopefully tonight otr tomorrow.

Just wondering if you have tried this yet.

I have already created .png files with my control layout (I only have about 40 games that I run on my system) and I just want to be able to pause my game in mame and have ahk view my .png (which is named after the rom image) using ifranview. and then when I press pause again have it go back to mame and continue to play.

I will also try but since I just started reading about these viewer programs, I'm a little overwhelmed. 

Allister Fiend

P.S. I know I at least need Ifranview and AHK, but do I even need johnny 5 or any other controls program just to view a .png in fullscreen?


Ok, I've pretty much moved on from this but here is what I recall before I gave up:

I could get Johnny5 to work properly with AFK script but found the load time unworkable on my Athlon 2500XP.

I then generated static pngs for 2019 games which only took 40 minutes or so at 368x240 resoultion using a bat file process. 

With CPVW I could not figure out how to keep my PNG from loading in the background (ie behind MAMEWAH) I tried all variations of autodosbox, dosbox and nodosbox to no avail.  The /M command didn't work well with AHK scripts either.

Irfanview I think was a little better but ultimately I didn't like it since the "P" key kicks you out of the image and into the setup of the thing which is not acceptable for this purpose.

So, in a word, I quit.

But I did discover CPVW in this process which is capable of rendering a Control Panel quickly enough that you could dispense the static PNG idea if only you could figure out how to bring it to the front of the screen.

What bugs me is I worked out a nice BAt/AHK script combo to generate a new image if one doesn't already exist (or in the case of a clone being launched to check for the parent image and display that instead) and all that process worked fine but I was stumped by the viewers.  I guess with CPVW I don't need to do this anyway.

AllisterFiend

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 165
  • Last login:June 04, 2013, 05:04:16 am
  • Rush 2112
    • Check out my Dragon's Lair/MAME cabinet.
Re: Johnny 5 beta 2.0 released!
« Reply #38 on: October 18, 2005, 06:46:30 pm »
I have tried what you said and everything works fine except for the fact that for some reason I can only get it load my .png's from the root directory of C:.
I added details on this in my Method 2 and Method 5 pages at http://www.mameworld.net/tigerheli/johnny/.

Did you copy Irfanview to the images directory, like I suggested?  If so and it still doesn't work, you might have to use a batch file to do this.

In the images directory, create a file called irfanview.bat with the following:

echo off
cd\
cd images
i_view32.exe %1%.png /fs
exit

and mod the AHK script to read

J5=irfanview.bat %1%
Run,%J5%, C:\images, max
Quote
I also had to name my .png to the rom name plus add in the .zip to the filename to get it to load the images..ex..galaga.zip.png (no big deal, just wanted to get it out there in case someone is having trouble loading their picture.)
This sounds to me like your FE is passing galaga.zip to the script rather than just galaga. . .
Quote
It is my understanding that AHK can determine if mame is running but it cannot determine whether mame is running while paused.  Is there anyway for a program to tell if mame is paused or is this something that the mame devs have to add into the mame code. 
MameDev won't have to add anything.  That's what papaschtroumpf was getting at in his earlier reply about maintaining state implementation.  Basically, it's a matter of changing a variable when P is pressed with MAME active and not changing it when P is pressed otherwise.  I don't think it would be extremely difficult to set up, but I don't know how to do it either.

Ideally, I would like a solution for this as well.

Thank you Tiger-Heli,

I solved my first two problems (your suggestion that it was my frontend led me in the right direction), I'm using Dragon King 0.99 (eagerly awaiting the new release, hint, hint!),  I turned off a switch in my mame config file called send rom path and it took care of both problems.

As for my third problem, I do not think I have the programming ability to figure that out, (I will try though), hopefully  papaschtroumpf or someone else will come up with something (wink, wink, nudge, nudge).

Has anyone tried to post over on the AHK forum for a solution?

Thanks Again,

Allister Fiend
« Last Edit: October 18, 2005, 07:28:24 pm by AllisterFiend »

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Johnny 5 beta 2.0 released!
« Reply #39 on: October 19, 2005, 07:58:29 am »
I actually tested Method 5 and static images using IrfanView and it worked very well - much faster.

I know you got it working, but for others, rather than another batch file, I think you could just add the path to the images into the AHK Script.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.