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: HOTD3 and Mamewah UPDATE  (Read 2438 times)

0 Members and 1 Guest are viewing this topic.

reko19

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 218
  • Last login:July 16, 2025, 10:06:10 am
  • I want to build my own arcade controls!
HOTD3 and Mamewah UPDATE
« on: February 02, 2007, 10:18:43 am »
I almost got it to work last night.

Batch:
@ echo off
C:
cd C:\pc games\hotd3\the house of the dead3_eu\
hod3.ahk
Exit

AHK:
IfWinExist THE HOUSE OF THE DEAD 3
{
    WinActivate
}
else
{
    run hod3launch.exe
    WinWait THE HOUSE OF THE DEAD 3
    WinActivate
}

click 319,247

Escape::
Send {LAlt down}
Send {F4 down}
Send {LAlt up}
Send {F4 up}
ExitApp ; Assign a hotkey to terminate this script.
return

It loads HOTD3 launcher first, and then executes a click command on top of the "play" in the launcher. The only thing you'll need to do is to change coordinates under the click command to what it is in your system. To figure out the coordinates you need to use "window spy" which comes with the AHK, start launcher, place cursor on top of the "play" so it changes color, note "In Active Window:" coordinates in the window spy and replace coordinates in the AHK.  I didn't have any problems starting HOD3. It is still temperamental in a sense that sometime Mamewah window still remains active and instead of controlling a game you somehow controlling a Mamewah screen which is hidden underneath a gamescreen. In order to prevent this form happing WinActivate should be used but HOTD3 is full screen and I can't figure out the screen name to put it in the WinActivate command. So any input would be appreciated.
« Last Edit: February 09, 2007, 08:15:26 am by reko19 »

reko19

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 218
  • Last login:July 16, 2025, 10:06:10 am
  • I want to build my own arcade controls!
Re: HOTD3 and Mamewah almost working
« Reply #1 on: February 09, 2007, 08:15:01 am »
The ahk scrip below works 100%.  The problem now is with Mamewah. After exiting the HOTD3 and going back to Mamewah, it freezes. When it freezes I could see the Mamewah screen, but at a higher resolution so it only occupies 2/3 of the screen.  I have to reboot at this point, nothing else works. Log file for Mamewah is no help. Any thoughts?

here is the ahk:
IfWinExist THE HOUSE OF THE DEAD 3
{
    WinActivate
}
else
{
    run hod3launch.exe
    WinWait THE HOUSE OF THE DEAD 3
    WinActivate
}


;MsgBox, after winactivate

click 319,247

Send !{Esc}

Escape::
Send {LAlt down}
Send {F4 down}
Send {LAlt up}
Send {F4 up}
ExitApp ; Assign a hotkey to terminate this script.
return

rdowdy95

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 609
  • Last login:July 29, 2011, 11:48:50 am
  • This is my rifle.
Re: HOTD3 and Mamewah UPDATE
« Reply #2 on: February 09, 2007, 10:29:10 am »
That sounds pretty complex Reko.  Here is what I did.  First off I have a NO CD crack for the game.  Then this is what I did.  I came here and found a guy with the same problems I had.  He said he used this one guys ahk script.  I will break it down for you.  The first line of script is a registry script that writes to the registry saying you played the game once already.  This means you can start the game with the normal game exe file.  The second part of the script starts the game from the normal exe file not the launcher.  So if your location of this file is different make the change to the file location.  The last part exits the game via the ESC button.  You also won't need a key to terminate the script either.  I edited the script to look like this.  Don't mind all the spanish in the script it is all good.

**********

RegWrite, REG_DWORD, HKEY_LOCAL_MACHINE, SOFTWARE\SEGA\hod3\Settings,

Run, C:\Program Files\Sega\THE HOUSE OF THE DEAD3_EU\exe\HOD3PC.exe
Sleep, 4000
WinWaitClose, THE HOUSE OF THE DEAD 3
ExitApp



Escape::
;La Opción WinClose, THE HOUSE OF THE DEAD 3 -> cerrar a lo bruto daba en el juego (no en el menú).
PostMessage, 0x112, 0xF060,,, THE HOUSE OF THE DEAD 3 ; Manda un mensaje a la ventana igual a ALT+F4
Send {i down}         ; Es necesario poner primero down y luego up. Si pones sólo UP, no funciona.
Sleep, 10
Send {i up}
Send {n down}
Sleep, 10
Send {n up}
ExitApp          ; Termina esta script
return

**********

There ya go.  Save it as a .ahk.  Now what I did once I got this working I saved it as an exe.  I used autohotkey's little coversion program to make it an exe.

Now on to Mamewah.  The way I have my PC games is I use shortcuts as my rom files.  So everything is a .lnk.  These lnk files are shortcuts to my game exe files.  If you don't know what I am talking about I think there is info on this in the wiki.  I got mine from somewhere.  But I can give you my ini file to get pc games to run from mamewah.  See the you do game listing as rom_folder.  The executable is just PC just write PC on that part.  Put rom directory whereever all your shortcut files are.  Let me know and I will post the ini file tonight.  I don't have an NMS file setup yet because my Shortcuts are all named how I want the games to show in mamewah.  When I get around to doing snapshots of the game I may have to change my shortcut names and use an NMS file.  I just need to take screenshots of my game so they show up in my picture window.

When i tried to use ahk files as my roms I couldn't get it to work, but I did get all my exe files to run.

Let me know first if you get the ahk to work well.  Then create an exe file from that ahk.  Try it out witth your setup, but if you need my ini file for my PC games list in MAMEWAH let me know.

Also what version mamewah you use.  I am using the latest beta version.  Downloaded off of minwah's messageboard.

rdowdy95

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 609
  • Last login:July 29, 2011, 11:48:50 am
  • This is my rifle.
Re: HOTD3 and Mamewah UPDATE
« Reply #3 on: February 09, 2007, 10:30:14 am »
if this stuff doesn't help you it might be a problem with your computer.  Maybe redownload the mamewah system files.  Does the MAME games work in your mamewah fine?

reko19

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 218
  • Last login:July 16, 2025, 10:06:10 am
  • I want to build my own arcade controls!
Re: HOTD3 and Mamewah UPDATE
« Reply #4 on: February 09, 2007, 11:32:31 am »
thanks, I'll give it a try

rdowdy95

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 609
  • Last login:July 29, 2011, 11:48:50 am
  • This is my rifle.
Re: HOTD3 and Mamewah UPDATE
« Reply #5 on: February 09, 2007, 12:19:12 pm »
reko said, "I didn't have any problems starting HOD3. It is still temperamental in a sense that sometime Mamewah window still remains active and instead of controlling a game you somehow controlling a Mamewah screen which is hidden underneath a gamescreen."

I just read that reko.  That is the same crap that was happening to me originally.  Damn I was getting mad at that.  Don't worry man if you follow the instructions your stuff will work with the solution I provided.

reko19

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 218
  • Last login:July 16, 2025, 10:06:10 am
  • I want to build my own arcade controls!
Re: HOTD3 and Mamewah UPDATE
« Reply #6 on: February 09, 2007, 08:55:19 pm »
I still get "you could only start this game from the launcher" message