| Main > Main Forum |
| Tron, in game 8way to 4way - WORKING! 100% |
| << < (7/12) > >> |
| Le Chuck:
--- Quote from: nitz on January 30, 2012, 01:01:29 am ---I have a feeling you need to change this --- Quote ---run c:\arcade\tronswitch\ 8way.bat --- End quote --- to this --- Quote ---run c:\arcade\tronswitch\8way.bat --- End quote --- and probably do the same with c:\arcade\tronswitch\ 4way.bat as well. :) --- End quote --- Either you're a genius or <and> I'm retarded. Thanks man that did the trick! So I have the script running, start up a game of Tron, find the lightbike stage and within a fraction of a second the servo trips and I'm in 4 way... but at the same time MAME loses focus when the script runs. I will go fiddle with trying to get my batch file to run minimized or in the background as I'm pretty sure its the batch that's stealing focus and not the AHK script calling it... but what do I know, this thread has clearly demonstrated my ineptitude a few times already ;D Either way, Nitz - you've dragged me 100% of the way on this experiment and I will be singing your praises from here on out. You rock man! Do you think it would be easier to just make a second AHK script for vertical orientation or can it be built into this current script? What I mean to say is if left to my own devices I'd just go through the same steps and make a second one but if there is a way to neatly do both in one without bogging anything down that'd be cool. |
| Le Chuck:
Okay, went and pulled a simple script off google and now everything is running beyond awesome. Go into lightbikes and presto 4 way, die and whammo 8 way, reenter lightbikes and zowie 4 way, die again and game over bam 8 way. It all works, flawlessly with no flicker or weird slow down or anything. So what did we change? Wrote this script to run the servo batch invisibly: (read wrote as copy and pasted changing the parameters to suit my batch) --- Code: ---Set WshShell = CreateObject("WScript.Shell") WshShell.Run chr(34) & "C:\arcade\tronswitch\4way.bat" & Chr(34), 0 Set WshShell = Nothing --- End code --- and modified the AHK script to call those rather than the bats. Here's the script: --- Code: ---Loop { run c:\arcade\tronswitch\8way.vbs Loop { ImageSearch,,, 223, 94, 252, 130, c:\arcade\tronswitch\startlightbike.bmp If (ErrorLevel = 0) { break } } run c:\arcade\tronswitch\4way.vbs Loop { ImageSearch,,, 304, 107, 360, 165, c:\arcade\tronswitch\endlightbike.bmp If (ErrorLevel = 0) { break } ImageSearch,,, 334, 142, 510, 175, c:\arcade\tronswitch\gameover.bmp If (ErrorLevel = 0) { break } } } $esc:: send {esc} exitapp --- End code --- This is a super awesome mod for Darkade. This was my trigger to get fresh pics and a video made so I'll get to that this week. I'll also distill this thread and get it as a tutorial on my build thread. Thank you NITZ! :notworthy: |
| SammyWI:
:applaud: Look forward to the vids.l |
| DaveMMR:
I avoid Tron for precisely these reasons (you want a spinner AND a trigger stick?! and it has to be 8 AND 4 way restricted?!) but man, reading this thread has gotten me jazzed up about the versatility of the automatic servo you have there. It's quite amazing. I hope you, Nitz and darthpaul (he wrote this tutorial) can document this on the wiki or something, because you've got me itching to do this on my still-being-planned bartop (particularly since I'm having trouble fitting a dedicated 4-way in the small panel.) Simply awesome! :applaud: You're all :burgerking:! (P.S. - I still think Tron is a great game - don't hurt me.) |
| Le Chuck:
Dave, this is totally the way to go, combine this mod with my wireless hotswap trigger stick and nobody will ever suspect you're rocking a frankenpanel in your bartop. Nitz - One other niggling issue, I notice that the script for mapping the coords to the images only provides the top left XY and not the bottom right XY. I tried flipping the values but I'm not doing something right as it started tossing errors. Anyway to get that script to spit out all four values? Not a huge issue, I got around it by noting the approximate position when I was cropping in MS Paint but would like to tie off all the loose threads so to speak. |
| Navigation |
| Message Index |
| Next page |
| Previous page |