View Full Version : U64Emu Module
Hi,
I am still learning my way with scripting but is it possible to use the old hyperlaunch script from chillinwater to use for hl 2.0?
Or can anyone help me with creating this module?
and yes i know it runs in mame but with my older proc it runs better with this emu
thx in advance
chillinwater
09-08-2011, 09:12 AM
Puttin on the way back hat....
This should work identically for HL 1.0 and 2.0
There are two scripts, one for each game (below).
Compile each script independantly, for "ki" and "ki2", into an "exe" and create a shortcut to them.
(place in your shortcuts\roms folder)
Then in HS launch them as "pc gaming" system or any system you use to launch shortcuts (lnks).
You can then launch them in the mame or other system wheels by adding game sections for "ki" and "ki2" in the database of the wheel you end up choosing
and by adding this line for each game:
<exe>PC Gaming</exe>
<game name="ki1" index="" image="">
<description>Killer Instinct</description>
<cloneof></cloneof>
<crc></crc>
<manufacturer>Rare</manufacturer>
<year>1994</year>
<genre>Fighter</genre>
<rating>AAMA - Yellow (Animated Violence Mild)rating>
<enabled>Yes</enabled>
<exe>PC Gaming</exe>
</game>
<game name="ki2" index="" image="">
<description>Killer Instinct 2</description>
<cloneof></cloneof>
<crc></crc>
<manufacturer>Rare</manufacturer>
<year>1995</year>
<genre>Fighter</genre>
<rating>AAMA - Yellow (Animated Violence Mild)rating>
<enabled>Yes</enabled>
<exe>PC Gaming</exe>
</game>
There are probably better more modern ways to do it now but I havent had a chance recently to mess with it.
-Compile each script independantly and place in the "u64emu.exe" directory
-create a shortcut to each
-place in your shortcuts\roms folder for the sytem you have launching shortcuts.
These scripts are old but slightly cleaned up.
(could use some lovin)
[KI1.ahk]
#SingleInstance force
Gui +AlwaysOnTop -Caption +ToolWindow
Gui, color, 0
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%,
Run, u64emu.exe
Sleep, 500
Send, {ALTDOWN}{ALTUP}{RIGHT}{ENTER}{DOWN 5}{ENTER}
sleep, 500
Send, {UP 2}{ENTER}
Send, {ALTDOWN}{ALTUP}{RIGHT}{ENTER 2}
sleep, 1000
Gui Destroy
;add your controls here if needed i.e.
;to::from
;x::y
;lctrl::j
process, waitclose, roms\ki\u98-l15d
exitapp
[KI2.ahk]
#SingleInstance force
Gui +AlwaysOnTop -Caption +ToolWindow
Gui, color, 0
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%,
Run, u64emu.exe
sleep, 500
Send, {ALTDOWN}{ALTUP}{RIGHT}{ENTER}{DOWN 5}{ENTER}
sleep, 500
Send, {SHIFTDOWN}{TAB}{SHIFTUP}{UP}{DOWN}{ENTER}
Send, {ALTDOWN}{ALTUP}{RIGHT}{ENTER 2}
sleep, 1000
Gui Destroy
;add your controls here if needed i.e.
;to::from
;x::y
;lctrl::j
process, waitclose, roms\ki2\ki2-l11.u98
exitapp
chillinwater
09-08-2011, 10:46 AM
Didnt want to do this for 2 games but oh well...
U64 HL 2.0 module
;----------------------------------------------------------------------------
; u64 -"Killer Instinct", "Killer Instinct 2"
; u64emu.exe
; by chillinwater
; 1.0
; notes
; make (2) txt files (roms) "ki1.txt", "ki2.txt", place in the "u64emu.exe root directory"
; in the u64 settings for HS, emupath and rompath should be the same.
; romextension=txt
;----------------------------------------------------------------------------
Gui +AlwaysOnTop -Caption +ToolWindow
Gui, color, 0
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%,
Run, %executable%, %emupath%
Sleep, 500
Send, {ALTDOWN}{ALTUP}{RIGHT}{ENTER}{DOWN 5}{ENTER}
if ( romname = "ki1" )
{
sleep, 500
Send, {UP 2}{ENTER}
}
else if ( romname = "ki2" )
{
sleep, 500
Send, {UP}{DOWN}{ENTER}
}
Send, {ALTDOWN}{ALTUP}{RIGHT}{ENTER 2}
;sleep, 1000
Gui Destroy
;add your controls here i.e.
;to::from
;x::y
;lctrl::j
process, waitclose, %executable%
exitapp
closeprocess:
process, close, %executable%
wow thanks for your work
really appriciate it !!!
I have a much fresher method (doesn't use all the "send" lines), working out the feature bugs now.
Here you go:
http://www.hyperspin-fe.com/forum/showthread.php?p=138464#post138464
Thanks djvj and chillinwater
your both lifesavers :)
BadBoyBill
09-08-2011, 02:07 PM
Didnt want to do this for 2 games but oh well...
But for a game that has taken more money out of my pocket than all other games combined, it's probably worthed, hehe.
chillinwater
09-08-2011, 07:28 PM
But for a game that has taken more money out of my pocket than all other games combined, it's probably worthed, hehe.:D LOL
I havent checked lately but I think mame plays them just as well now too.
:D LOL
I havent checked lately but I think mame plays them just as well now too.
I think you might be right or they even might play them better. I had iffy results with sound and random crashing with this emu.
It sure does maybe but my little atom can't handle it... and this emu it should
there is a issue with the script or with autohotkey
it gives me an error when just playing the game that many hotkeys have been pressed do you want to continue see #maxkeyintervals in help file
where do i add this interval?
Also you must change the rom name to ki instead of kinst and ki2 instead of kinst2 as is in the mame.xml otherwise it will not work
Stick to one thread please. I answered in the HL 2.0 thread.