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: Mame Hooker help!... Please:)  (Read 5065 times)

0 Members and 1 Guest are viewing this topic.

retromax

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 24
  • Last login:March 24, 2024, 04:14:45 pm
Mame Hooker help!... Please:)
« on: November 19, 2009, 08:52:01 am »
Hi, i've just discovered Mame Hooker and built a circuit for my lpt port to control the Patrol Lights in Chase HQ, got everything set up and working but discovered one small problem so I thought i'd google for a bit of help only to then realize that the app is no longer supported :'(. Anyway hopefully someone can help me as it's only a software issue and surely can't be that bad but I just can't figure it out, i've got 2 led's wired up correctley to the lpt port which act as lpt 1 1 and lpt 1 2 everything seems fine though until I run mame and chase hq. When mame starts one of the led's turns on and stays on until the point of the game where both should flash altenatley and then the both flash.... but when they go into the non-flashing mode again..... one switches back on (not flashing.... just on). There is a ChaseHQ.ini file in the ini file folder for mame hooker which is where I set up the lamp outputs for ChaseHQ which are led's 1&2 on the lpt port, i've tried changing the "StateChange" line to the led's being in the off position "0" but then they don't function at all.
Can anyone help :)
Thanks

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Hooker help!... Please:)
« Reply #1 on: November 19, 2009, 09:24:07 am »
Your best off contacting Howard Casto somehow.

retromax

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 24
  • Last login:March 24, 2024, 04:14:45 pm
Re: Mame Hooker help!... Please:)
« Reply #2 on: November 19, 2009, 04:14:47 pm »
Your best off contacting Howard Casto somehow.
Thanks!... he seems to have dissapeared off the face of the earth :(
My issue is defanatley software based though as now i've been able to stop the light being always on but ChaseHQ outputs two lamps that alternate and now my problem is they are flashing together not alternating as if it's either just outputting one lamp data to both pins on the lpt port or doing both at once but i'm not sure which it's doing. There is no list of commands for the lpt port in the readme file currently i've got my chaseHQ.ini file looking like this:-

[General]
MameStart=
MameStop=
StateChange=

[Output]



lamp0=lpt 1 107
lamp1=lpt 1 104
It's those commands on the lamps that I don't understand I just need to know how they work, Originally I had lamp0= lpt 1 1 and lamp1= lpt 1 2 as I thought it meant lpt port 1 led 1 and lpt port 1 led 2.... but I doesn't look that simple!
Oh the mind boggles!

retromax

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 24
  • Last login:March 24, 2024, 04:14:45 pm
Re: Mame Hooker help!... Please:)
« Reply #3 on: November 21, 2009, 07:57:37 pm »
mmm... I'm wondering if it's a script that needs to be done to do what I want??.
Does anybody use mamehooker and know how to write a basic script for what i'm doing?, or could even point me in the right direction?.
It seems like such a great thing to use which is so easy to build a little interface, if anyones's don anything similar i'd love to know how you went about it ;D

retromax

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 24
  • Last login:March 24, 2024, 04:14:45 pm
Re: Mame Hooker help!... Please:)
« Reply #4 on: November 23, 2009, 07:56:52 am »
Eventually I figured out how to use mamehooker properly by piecing together bits of the readme file so I thought i'd better document it here incase anyone uses this simple to make interface in the future.

Basically I needed to write scripts for both states of each lamp (on or off) and then point to the scripts via the ini file for the game.

Here's what the ini file looks like in mamehooker for my Chase HQ



Now what that bit i've nicely drawn around tells mamehooker is:-

For lamp 0 State 0 (off) "Read From Script" 'chasehq'

For lamp 0 State 1 (on) "Read From Script" 'chasehq2'

For lamp 1 State 0 (off) "Read From Script" 'chasehq3'

For lamp 1 State 1 (on) "Read From Script" 'chasehq3'

So basically each script i've written has the command for the led on my lpt port, I have led's wired to pins 2&3 on the port (which are led's 1&2)and grounded to any pins from 18-25 on the port.

So if I wrote lpe 1 1 1 in the script it is giving you the location,led number and state. port 1, led 1, state 1 (on).







Sorted!!!.... Works like a charm!

Wish I could say it's all been fun but it hasn't..... it's been a combination of reading, guessing and just plain luck!!

Obviousley if anyone else decides to build a simple interface for using mamehooker I hope this gives to the general idea of how to get it working!

retromax

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 24
  • Last login:March 24, 2024, 04:14:45 pm
Re: Mame Hooker help!... Please:)
« Reply #5 on: November 23, 2009, 11:07:34 am »
Ok i've just added this video to the wrong post!, I meant to put it here, it's a short clip of my lights in action now they are working as they should!

gstav

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 212
  • Last login:Today at 01:40:48 pm
    • forum.arcadecontrols.com/index.php/topic,157861.0.html
Re: Mame Hooker help!... Please:)
« Reply #6 on: August 06, 2013, 07:11:59 am »
hey man! :D

Tried to use mamehooker as you do. i have 2 LEDWiz boards which i want to trigger the buttons to via
your scripting method but I cant get it to work. The TEST phase via mamehooker works perfect to turn lamps on and of.

this is how my CHASEHQ.ini looks like:

[General]
MameStart=
MameStop=
StateChange=
OnRotate=
OnPause=
[KeyStates]
RefreshTime=
[Output]
lamp0=rfs chasehq 0 %s%|rfs chasehq1 0 %s%
lamp1=rfs chasehq2 0 %s%|rfs chasehq3 0 %s%


and this is how the script look like. (I've saved the as txt's as ini didn't work :( )

chasehq.txt

lwc 1 01 0 0 0 0

chasehq1.txt (ID1 LED 1 on RED)

lwc 1 01 48 0 0 0

chasehq3.txt

lwc 2 01 0 0 0 0

chasehq4.txt

lwc 2 01 0 0 0 48

What am I doing wrong here as I know the commands works :(
Any help appreciated! :D

Cheers!
"One coin to rule em' all"

Drnick

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1641
  • Last login:May 06, 2023, 01:19:48 pm
  • Plodding Through Life
Re: Mame Hooker help!... Please:)
« Reply #7 on: August 06, 2013, 02:13:49 pm »
hey man! :D

and this is how the script look like. (I've saved the as txt's as ini didn't work :( )

What am I doing wrong here as I know the commands works :(
Any help appreciated! :D

Cheers!

When you say saved as txt as ini didn't work what do you mean by that?  You couldn't save as ini or that it made no difference if the file was an ini or a txt file?

If you couldnt save as an ini file you need to do the following open chasehq.txt file in notepad, then hit file, save as, change "save as type" to "all files" and then save file name as chasehq.ini

gstav

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 212
  • Last login:Today at 01:40:48 pm
    • forum.arcadecontrols.com/index.php/topic,157861.0.html
Re: Mame Hooker help!... Please:)
« Reply #8 on: August 07, 2013, 11:56:53 am »
When you say saved as txt as ini didn't work what do you mean by that?  You couldn't save as ini or that it made no difference if the file was an ini or a txt file?

If you couldnt save as an ini file you need to do the following open chasehq.txt file in notepad, then hit file, save as, change "save as type" to "all files" and then save file name as chasehq.ini


hi! Sorry! No I ment that i could not save the script files right, but now I saved them as they should be named:

chasehq.ini

chasehq.msh
chasehq2.msh
chasehq3.msh
chasehq4.msh


Still no action on my ledwiz though!  :hissy:
"One coin to rule em' all"

gwood1234

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 5
  • Last login:November 22, 2022, 12:29:56 pm
Re: Mame Hooker help!... Please:)
« Reply #9 on: November 22, 2022, 06:30:39 am »
Digging this up again in the hope I can get mine working! I've got a Pac Drive and trying to use it with MameHooker... not having much joy so far. Can I ask how you're connecting your lamps? You mention making a circuit for the LPT port? Pac Drive should work with this but it's not showing up.