Main > Main Forum

Tron, in game 8way to 4way - WORKING! 100%

Pages: << < (6/12) > >>

nitz:

PNGs converted to BMPs won't work. The image must match what's on the screen EXACTLY, and png is a compressed format and thus does not quite match.

Now you could try the variation parameter, that is putting *n in imagesearch's options, where n is a number between 0 and 255 which represents the allowed shades of variation in intensity for each pixel's color. This tends to work well if the image is brighter/dimmer or slightly "off", like if you messed with some of the color settings in mame. It may or may not work for a compressed format. However, even if it does work, I don't recommend that option except in cases where it's absolutely necessary, because of the chance of getting false positives.

Your best option is to load up Tron and take a screenshot of the image you need by pressing the print screen key when it shows up. Then open MS Paint (or photoshop or whatever) and paste the image in, then cut out the portion you need, and save it as a bmp. This should match exactly and you should be good to go. :cheers:

Le Chuck:

I'll give that a shot now, I had been using MAME screenshots but I just noticed that they are reduced size from the actual so that's a no-go so I tried resizing to the correct resolution and of course that didn't work either.  Off to press print screen and try to get this off the ground. 

yotsuya:

Nitz-

 :notworthy:

Le Chuck:

Have my values now. 

Nitz - I'm going to start a quasi religion with you as a deity.

That said, I'm still Forrest Gumping my way through this and need some help.  Again.  Because I'm dumb.


This is the error that I am getting.  Is it syntax?  Because the file is right there.

Here's the script:


--- Code: ---Loop
{

run c:\arcade\tronswitch\ 8way.bat

Loop
{
ImageSearch,,, 223, 94, 252, 130, c:\arcade\tronswitch\startlightbike.bmp
If (ErrorLevel = 0)
{
break
}
}

run c:\arcade\tronswitch\ 4way.bat

Loop
{
ImageSearch,,, 304, 107, 350, 150, 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 ---

If it would be easier to just insert the contents of my batch file that's fine too, and is as follows:


--- Code: ---
usccmd --servo 0,4000
sleep 1
usccmd --servo 0,0

--- End code ---

Thanks for all your help thus far, I'm sure I'll be back at your feet a few more times. 





nitz:

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. :)

Pages: << < (6/12) > >>

Go to full version