Jump to content
xmassam

Stern Sam - Pinmame Source Code

Recommended Posts

For RGB, take a look at STLE script and you will see that the RGB insert consists of 3 lights R, G and B.  Each RGB light instead of returning 0 or 1, it will return a value of 0 to 255

Share this post


Link to post
Share on other sites
1 hour ago, gtxjoe said:

For RGB, take a look at STLE script and you will see that the RGB insert consists of 3 lights R, G and B.  Each RGB light instead of returning 0 or 1, it will return a value of 0 to 255

Thanks very much!

Share this post


Link to post
Share on other sites

It is the same structure, but instead of just getting a 0 or 1 you get 0-255.    What the 0-255 represents depends on the table.   

Some lights will be a dimmable single-color at 0-255.    Other tables use R,G,B values that get mixed together (white will be 255,255,255).    

The indexes aren't at any specific location, VPinMame doesn't know what color one light is, it is the table's responsibility to mix them.  Load the Star Trek LE table and go to its script, you can find the mapping of light IDs to the specific color mixtures for lamps.   

Star Trek LE is the only one that really uses that method to a crazy extent.  Other tables have more single lamps with just a few mixed ones. 

 

Share this post


Link to post
Share on other sites

Ok, I've loaded and looked at the latest LE table script and see the different mappings for RGB. So now I understand how it works, but I'm still having a problem when trying to access this in visual basic 6. I use the latest SAM VPinMame.dll in my program, I'm modifying the existing VPinMAMETest.frm. I can get and find if the lamp is on or off when using the function Controller.Lamp(LampNum), but if I try and use the Controller.LampsState it errors out with 'function or interface marked as restricted' does anyone know how the get the RGB value of lamps using just visual basic 6?

I'm able to extract older B/W games and I've been able to use the data to drive my led display! I'm now stuck on getting this data for multicolor SAM inserts.

Here is TOTAN that I have completed. I'm making these to hang on a wall and using the original attract modes for each machine.

Thanks for your help!

Share this post


Link to post
Share on other sites

If you had to make any changes to the source, maybe you'd consider passing that back especially if you were communicating with original table hardware/lamp controllers, etc. There was some recent inclusions in the source to communicate to a Raspberry type minicomputer to replace aging MPU for some very early SS tables (UNIX-based build). Or it would not be out of place I think to have support in VPM for others to do what you are doing with home/office decor. 

What other playfields do you have?

Share this post


Link to post
Share on other sites

Gotcha. Nice work.

Have to ask on your playfield collection. Might be some people here who could use a nice flat hi-res image of bare playfields to do virtual recreations. That's essentially what this site is about. I was wondering how many projects you intended on doing.

Share this post


Link to post
Share on other sites

The next table I'm doing is ac/dc le, but I would also like to do star trek le. I'll post my progress. I used ws2813 leds and matched up the color for each insert via software, which resulted in much more vibrant display. This will also let me do attracts like star trek le. 

Sorry the video is sideways. 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×