Main > Software Forum

LED control from Mame--in over my head again?

<< < (16/24) > >>

Howard_Casto:
I don't see why not.... any scripting even tcan have an infinate number of commands... that's what the commas are for

Howard_Casto:
Well I've started on the mame source again....

I honestly don't know how I'm gonna figure this out.  Terminator 2 strobes the data I need so quickly, even with logging it to txt it just turns out to be a incoheriant mess.

1UP:
I thought the hacked driver already had the memory addresses needed.  Are you just trying to add the other outputs now?

Ah, just saw that you posted the new release.  Gonna do some playing now. :)

Howard_Casto:

--- Quote from: 1UP on March 21, 2010, 05:22:40 pm ---I thought the hacked driver already had the memory addresses needed.  Are you just trying to add the other outputs now?

Ah, just saw that you posted the new release.  Gonna do some playing now. :)

--- End quote ---

The hacked driver isn't quite accurate as I found out.... doesn't get the exact data needed... had to try it before I discoverd that.   Besides that the addresses have changed since the driver got re-worked.   On top of that knowing that address XXXX is the output data and parting those two bytes into 16 bits and then deciferign said bits are two different things.  I'm currently working on the ladder.

I have made progress though!  You are the t2 expert so I'll ask you to confirm....  T2 had strobe lamps inside the machine and when a terminator got close and fired at you they flashed right?  Because I have those hooked up!  It seems that their status, the sound file status, and the status of the guns are all strobed into the same 16 bits.  There is a rather complicated bit sequence fired for each one prior to setting the bits, to make this possible.  Basically the data gets changed once to say "here comes this type of data" and then it's send again with the actual data. 

The strobe lamps were the easiest as all you have to do is read the data when bit 11 (2 to the 11th or 2048) is off.  This bit is on for all other data reads, so I get to cheat a little on that one.  They fire in the proper order in the driver board test in the dip menu and when I played a game I let a terminator fire away at me on the right side and the right strobe values flashed like crazy, so I'm guessing I have those completely figured out. 

Now the guns will be more difficult.  There seems to be two chunks of data that come with them, and I'm not sure what to do with it.  I'm also having trouble sorting it out from the sound data as yes, even the sound is sent through this same 16 bits.  Once I can find the magic bit setting to say "this is gun data" then I shouldn't have any problems finishing the hookup. 

Howard_Casto:
Lol this must be frustrating for you.....

I think I just figured out the gun leds (not recoil, just leds) as well.  The problem is I don't know what they do.  They seem to flash in the correct order in the driver test menu, but in-game I occasionally get the green led to flash, and that's about it. 

Still not any close to figuring out the actual recoil though....

I think it's break time.....

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version