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: Tron, in game 8way to 4way - WORKING! 100%  (Read 23340 times)

0 Members and 1 Guest are viewing this topic.

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:June 14, 2025, 06:26:06 pm
  • <insert personal text here>
Re: Tron, in game 8way to 4way - WORKING! 100%
« Reply #40 on: February 03, 2012, 10:47:19 pm »
Couldn't you have used DaOldMan's Mrotate for this?

No, that application, along with DaOldMan's joychoose and controller choose send their commands on execution and closure of the target programs.  This application is for switching mid game and selects only on the light cycle stages... or whatever visual cue you set up.  I'm currently running Joychoose and this script together.  Joychoose sets the 8way for the game and the script does the rest.   

darthpaul

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 449
  • Last login:July 08, 2025, 08:50:10 pm
  • Join, It's your duty
Re: Tron, in game 8way to 4way - WORKING! 100%
« Reply #41 on: February 03, 2012, 10:56:09 pm »
I seriously have to think about trying this, great job guys.
"You don't know the power of the Dark Side"
Automated Cabinet
Nintendo Pi
PiCubed

tony.silveira

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 697
  • Last login:September 27, 2024, 03:04:35 pm
    • my baby
Re: Tron, in game 8way to 4way - WORKING! 100%
« Reply #42 on: June 19, 2012, 10:24:25 pm »
sweet christmas!  i'm just now trying to wrap my head around an auto 4/8 and now this.  what work, great job guys!

Gray_Area

  • -Banned-
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3363
  • Last login:June 23, 2013, 06:52:30 pm
  • -Banned-
Re: Tron, in game 8way to 4way - WORKING! 100%
« Reply #43 on: June 20, 2012, 08:07:48 pm »
Couldn't you have used DaOldMan's Mrotate for this?

No, that application, along with DaOldMan's joychoose and controller choose send their commands on execution and closure of the target programs.  This application is for switching mid game and selects only on the light cycle stages...   

Oh. Right.
-Banned-

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:June 14, 2025, 06:26:06 pm
  • <insert personal text here>
Re: Tron, in game 8way to 4way - WORKING! 100%
« Reply #44 on: June 21, 2012, 02:08:53 am »
sweet christmas!  i'm just now trying to wrap my head around an auto 4/8 and now this.  what work, great job guys!

All praise goes to Nitz for his awesome script work.  This is something that I showed to guests every now and then and they were never impressed.  Now I just let them play TRON and listen to them talk about how perfect the gameplay is.


DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Re: Tron, in game 8way to 4way - WORKING! 100%
« Reply #45 on: June 21, 2012, 10:08:13 pm »
Good work guys!
Some pretty neat stuff here!

tony.silveira

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 697
  • Last login:September 27, 2024, 03:04:35 pm
    • my baby
Re: Tron, in game 8way to 4way - WORKING! 100%
« Reply #46 on: June 21, 2012, 10:30:17 pm »
hey le chuck,

since you are up and running with this 100%, would you mind sharing your final ahk scripts that you and nitz figured out?  i know there were a few edits and what not.  can't wait to try this myself!

T

SLCFoxy

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:December 10, 2012, 12:38:32 am
Re: Tron, in game 8way to 4way - WORKING! 100%
« Reply #47 on: July 10, 2012, 12:40:14 am »
Le Chuck and all other contributors,
    I just registered so I could ask you this  ;)  Have you got these scripts shared somewhere.  This must make it to every arcade machine out there.  It's amazing!

EightBySix

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 523
  • Last login:April 25, 2021, 01:50:16 pm
Re: Tron, in game 8way to 4way - WORKING! 100%
« Reply #48 on: July 10, 2012, 02:10:12 am »
The same concept would allow us to detect when a game is in attract mode... I've been wondering if there would be a way to do that. We'll be able to have different led patterns, messages etc.

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:June 14, 2025, 06:26:06 pm
  • <insert personal text here>
Re: Tron, in game 8way to 4way - WORKING! 100%
« Reply #49 on: July 10, 2012, 03:34:53 pm »
8x6 - I think it would be easier to key the setting off how long since there was an input from the CP.  Kinda like a sleep mode, after 3 minutes have the LED go into attract mode.  That's a perfect AHK application.  I don't know if this has already been done but it seems to ring a bell.  I think it would be easier than recognizing the switch into attract-mode by screen change unless it is always the same first screen.  

SLCFoxy & Tony - I need to go in and get the settings off Darkade and get them uploaded here for the final solution to do both 4:3 and 3:4 orientations.  I should be able to get that done in the next few days.  For now the solution for a single orientation (doesn't matter which) is below and should satisfy the needs of most out there.


Following script allows you to call the servo batch file without stealing focus (necessary for in-game use).  Saves as .vbs.

Code: [Select]
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "C:\arcade\tronswitch\4way.bat" & Chr(34), 0
Set WshShell = Nothing

and modified the AHK script to call the .vbs files rather than the bats.  
Here's the script:

Code: [Select]
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

Just get the screens mentioned earlier in this thread and trim them down to small unique chunks.  Before you trim them note their parameters (doable in paint fairly easily) so you can tell the script where to look.  I will try and put together a more coherent set of instructions in a bit as this is getting some renewed interest.

If anybody else has tackled this feel free to chime in. 


« Last Edit: July 10, 2012, 03:42:49 pm by Le Chuck »

nitz

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 507
  • Last login:November 24, 2015, 07:57:29 pm
Re: Tron, in game 8way to 4way - WORKING! 100%
« Reply #50 on: July 11, 2012, 12:42:31 am »
The same concept would allow us to detect when a game is in attract mode... I've been wondering if there would be a way to do that. We'll be able to have different led patterns, messages etc.

That would work as long as the attract mode has some image that does not appear in the actual game - otherwise you would get false positives. Another hurdle is the fact that this would be a lot of work if you wanted to do it for a large number of games.

8x6 - I think it would be easier to key the setting off how long since there was an input from the CP.  Kinda like a sleep mode, after 3 minutes have the LED go into attract mode.  That's a perfect AHK application.  I don't know if this has already been done but it seems to ring a bell.  I think it would be easier than recognizing the switch into attract-mode by screen change unless it is always the same first screen.   

Yep, that would be pretty easy. AHK has a built in variable that keeps track of idle time.

joe35car

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 79
  • Last login:July 17, 2025, 11:43:10 pm
Re: Tron, in game 8way to 4way - WORKING! 100%
« Reply #51 on: August 05, 2012, 01:30:02 pm »
Where can I get this script? Like to use it with the new stick from ultimarc.

http://www.ultimarc.com/servostik.html

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:June 14, 2025, 06:26:06 pm
  • <insert personal text here>
Re: Tron, in game 8way to 4way - WORKING! 100%
« Reply #52 on: August 05, 2012, 03:20:29 pm »
Where can I get this script? Like to use it with the new stick from ultimarc.

http://www.ultimarc.com/servostik.html

Please refer to this earlier post: http://forum.arcadecontrols.com/index.php/topic,117395.msg1287582.html#msg1287582

That should be everything you need.  I don't know what Andy's software looks like to do the switch but if it can be a .bat or .exe then you just need to write a .vbs script around it and point the AHK script at that. 

SLCFoxy

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:December 10, 2012, 12:38:32 am
Re: Tron, in game 8way to 4way - WORKING! 100%
« Reply #53 on: December 09, 2012, 11:49:33 pm »
Is there a step by step instruction guide on how to make this work?

leapinlew

  • Some questionable things going on in this room with cheetos
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7919
  • Last login:July 12, 2025, 10:33:20 pm
Re: Tron, in game 8way to 4way - WORKING! 100%
« Reply #54 on: December 10, 2012, 01:11:18 pm »
I just read through this thread and my original solution is still best. Don't play Tron.

If this post hasn't helped you at all, click Like
« Last Edit: December 10, 2012, 01:12:53 pm by leapinlew »

wp34

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4794
  • Last login:April 10, 2022, 09:48:19 pm
Re: Tron, in game 8way to 4way - WORKING! 100%
« Reply #55 on: December 10, 2012, 01:22:14 pm »
I just read through this thread and my original solution is still best. Don't play Tron.

If this post hasn't helped you at all, click Like

I would have agreed with you a few months ago but I fell back in love with Tron on a recent trip to Denver.  I played Tron on 3 different machines while there and am really looking forward to trying this solution once my cabinet is done.

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:June 14, 2025, 06:26:06 pm
  • <insert personal text here>
Re: Tron, in game 8way to 4way - WORKING! 100%
« Reply #56 on: December 10, 2012, 05:43:37 pm »
Is there a step by step instruction guide on how to make this work?

Nope.  There is a lot of information in this thread about how I went about it and the exact code I used.  I will eventually get around to making a step by step but first I need to test out calling the servo directly from the AHK script and see if that has a focus issue.  If that doesn't it will reduce everything by a step.  However, the current solution posted is completely viable and hasn't misfired yet.  If you want to cruise through the posts and put together some questions that aren't addressed I'd be happy to answer them and it could only help me out when I go to make a tutorial.  What's got you stumped Foxy?

rockyrocket

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 372
  • Last login:January 01, 2019, 02:13:03 pm
Re: Tron, in game 8way to 4way - WORKING! 100%
« Reply #57 on: November 15, 2013, 10:58:25 am »
I know this thread is(was) dead but it always stuck in my mind as a really cool bit of code and figure some of you would like my usage of it,
Anyway it was either bump this old thread or my own equally dead starwars one so its this one.
So my Implementation is to use this to start a targeting animation ingame in starwars on the second screen, basically it loops one vid then waits for the "T" in tower at the start of the tower sequence then sleeps for a bit then starts the trench run animation.
The timing is a bit hit and miss and its still being tweaked but largely works as wanted, and personally I am super pleased that it works.
I now realize that the revolving trench transition will be a much better trigger and would negate the need for the sleeps but I guess that's for V2 :) .
I did not create any of the animation its a montage of vids all pulled from youtube.
Anyway the code is fairly self explanatory and looks like this..
Code: [Select]
Loop
{

run C:\Program Files\VideoLAN\VLC\vlc.exe --repeat C:\trench\Radar.mp4

Loop
{
ImageSearch,,, 1204, 95, 1393, 138, c:\trench\T.bmp
If (ErrorLevel = 0)
{
break
}
}
sleep 42000
run C:\Program Files\VideoLAN\VLC\vlc.exe --play-and-stop C:\trench\Trench Run.wmv
sleep 40000

run C:\Program Files\VideoLAN\VLC\vlc.exe --repeat C:\trench\Radar.mp4

}


And a badly played game video to demo this is here..


Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:June 14, 2025, 06:26:06 pm
  • <insert personal text here>
Re: Tron, in game 8way to 4way - WORKING! 100%
« Reply #58 on: November 16, 2013, 08:58:52 pm »
This is a fantastic application of this script!  :applaud:  :applaud:

rockyrocket

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 372
  • Last login:January 01, 2019, 02:13:03 pm
Re: Tron, in game 8way to 4way - WORKING! 100%
« Reply #59 on: November 17, 2013, 06:48:17 am »
Thanks Le Chuck!
Not sure what youtube is upto with my vid though - it has repeated my 5m vid into a 10m one , I had the same thing happen before and it was magically corrected.
Just wish my gameplay was more like this...