Jump to content



Photo
- - - - -

Reconstructing an SS Pinball Machine for FP


  • Please log in to reply
63 replies to this topic

#21 MeatBundle

MeatBundle

    Enthusiast

  • Members
  • PipPipPip
  • 71 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 17 March 2010 - 04:26 AM

I've almost finished building the entire playfield. The major thing left is the mechanism for splitting the California-Nevada "Fault Line". Other than that, I have to create the billboards in front of the ramps, I have to create the Earthquake Institute, and I have to complete the plastics around the flippers.

As you can see from the current WIP pic on Post #1, there are a few anomalies between the playfield image and where I've got things placed, but overall everything is lining up well. I'm using pictures of an actual machine as the final say in things, so things right now are looking pretty solid. I might tweak things a mm here and there, but overall I'm feeling good about the layout. All the shots are reproducable, and that's what I'm primarily concerned with.

The major things that I'm worried about is 1.) Making the ramps look accurate, and 2.) Replicating the shaker motors in the cabinet.

1.) The ramps are clear plastic with a sticker running down the middle of them. I'm fairly certain I can do a good job of recreating the sticker, but getting the look of clear plastic on FP might be more of an issue. Right now I've just got them drawn as transparent, but I don't feel that it looks quite right. Maybe if the rest of the plastics were colored it would be different, but right now it just looks weird. I'm going to revisit this a little bit later to see what I can accomplish.

2.) The shaker motors I believe are impossible to code in this version of FP. There is no way to access the "Nudge" functions from within the script that I can see, which limits nudging to just a button press. I also can't "fake" a button press, because the nudge buttons are hardcoded into the software to run the nudge script. There are no calls anywhere in the accessible script to monkey around with it. I fear that unfortunately that's a feature I won't be able to include. I'd be glad to be proven wrong, so if anyone knows a way around this, please let me know.

I've placed most of the required switches, only missing out on one at the opening to each of the two ramps. I'm not sure if it is an opto-sensor or a wire trigger. I can't track it down online, so I'm left to guessing. As none of the pictures shows any sort of mechanical switch on the ramp, I'm going to try using opto-triggers to replicate the functionality. The beam will go right through any other object, and I can choose to not render the model so it won't affect the visuals.

The other big project as far as table construction are the lights. I've already placed all of the flashers, now I just have to work on the light inserts. I don't anticipate that taking too long. The layout seems clear and many of the lights are the same size. I should be able to create-copy-paste in most areas.

However, I'm a bit worn out from table construction, so I'm going to do some simple table graphics to give myself a break. First up: the drop targets.



#22 MeatBundle

MeatBundle

    Enthusiast

  • Members
  • PipPipPip
  • 71 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 17 March 2010 - 06:21 AM

I'm going to be using Paint.NET for most of my graphics, simply because I have the most experience with it. Another great freeware picture editor is The GIMP. I also own Photoshop, so I will probably break that out for you at some point.

Also, I must warn you that I'm not a professional graphic designer, and some of the methods that I use can probably be done an easier way. I feel that my methods produce a decent product, but they are by no means the only way, or even the best way, to do things.

With that out of the way, here's how I started. First of all I exported the texture from FP that I wanted to redraw. The drop target I am using is DropTarget1, and there is a built-in texture for that. To export, simply go to Table -> Texture Manager, then select the texture you'd like to export and click the correct button. Here is the dialog box to illustrate this:



Once it's done exporting, load it into your image editor, and we are ready to work.

The first thing I did was crop the drop target I wanted (I am doing the "Visit" target first) and pasted it to the right side of the texture. This is going to be my template, and I can refer to it constantly as I work. Then I colored in the front of the target (the grey area that says "drop target" on it) to the correct shade of blue. To get the shade of blue I wanted, I used the eyedropper tool on the blue portion of the picture. Next, I copied the picture onto the blue background that I just made. Here is the setup:



It is important to note that the photo I am using is not perfectly square. I realize this, and draw my lines straight, basically fixing the picture. You could also try to rotate the picture to make it square, but I didn't want to distort the image any more than it already was.

I created a new layer above my template layer, and started drawing. First I built the frame of the "billboard" using the line tool with antialiasing off. Here is a picture to help illustrate:



Next, I drew in the words and the cracks on the sign:



Finally, I colored in the yellow (again using the eyedropper on the original picture to get the correct color) and added a few touches of my own. In the original picture you see a shadow where the billboard is casting a shadow over the post that is holding it up. I drew that, then decided to put a vertical gradient on the post itself to heighten the illusion that it is round.

Once I had redrawn the target completely, I deleted my underlying template layer and colored in the rest of the picture the correct shade of blue. I try to make the entire target one color. This will reduce the file size, and help the target to have seamless edges once it is in game.

The final result:



And the texture used in-game:



If I glossed over some points, and you just don't understand, please let me know and I'll clarify. These drawing posts are meant to just be a quick overview of technique, not a tutorial on how to use the paint program. But I will elaborate if it is needed.







#23 MeatBundle

MeatBundle

    Enthusiast

  • Members
  • PipPipPip
  • 71 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 18 March 2010 - 06:40 AM

Back to table construction. Put in all the lights, which went very quickly. Basically only had to make 4 types of lights (square, round, arrow, and...other arrow) then just copy ->paste -> rotate -> scale as needed. Took about an hour to do them all. All lights when created have a default lens texture added on to them. I'm going to overwrite that by creating the lens texture myself, integrating it into the playfield texture, and then using the "Cookie Cut from Global Texture" option for each light. This way I can add all of the text over the lights without having to import a different texture for a decal to cover the lens of each different light. You could also create the light decals/lenses on their own texture, but it decreases the final size of your table to put them into the playfield art.

Here's the table with the lights as it stands so far:



Click Here for Larger Size

Edited by MeatBundle, 18 March 2010 - 06:42 AM.


#24 MeatBundle

MeatBundle

    Enthusiast

  • Members
  • PipPipPip
  • 71 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 20 March 2010 - 12:50 PM

Been going back and forth between graphics and table construction. Added in a bunch of details, like the wire guide that screws into the slingshot to hold the habitrail in place, a few more metal structural pieces, and the beginnings of the road signs above each of the ramps. It really is the details that brings the table to life and gives it that realistic feel. I didn't realize before starting this project how important that all was.

I have a feeling that getting the textures for the road signs to line up correctly is going to be a pain.

Some work has been done (in a test table) on getting the Earthquake Institute building built and lit correctly. Very close to something that looks and behaves like the real thing. Hopefully in my next update it will be ready to place in the table.

As for the spiral skill shot ramp, again tried to replicate it, and failed. The ball in FP looses way to much speed going around corners, and I just couldn't get the ball to the top of the ramp. Will probably just rework that corner of the table so that you can still hit a certain spot on the ramp for points, it just won't spiral around. Not the solution I wanted, but the only thing that seems to work at this point.

Started on redrawing the playfield, meaning I'm doing the lights right now. Got all the text and all of the easier borders for the lights completed. I'll post later on how I did it, but it's a pretty simple process.

Still have to add in all the GI lighting, which won't take long, just have to find the right color for the lights.


Click Here for Larger Picture

#25 MeatBundle

MeatBundle

    Enthusiast

  • Members
  • PipPipPip
  • 71 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 22 March 2010 - 08:13 AM

Finished the graphics for the road signs. It actually was pretty painless, except for the fact that at first they showed up backwards. Textures in FP will go from point 1 to 2 and so on. I had my guides for the signs built as 2----1, so the texture was reversed. Simply flipped it around to look like 1---2, and it looked great. Took a few liberties with the signs, making them look like actual roadsigns instead of just green with white text. I think they look pretty authentic, and hopefully add to the atmosphere of the table.

Working on redrawing the playfield. It's slow, tedious work for me. Not sure if that's how it is for everyone, or just me because I'm not a good graphics guy, but it is turning out well at least. Got most of the area around the flippers completed so far, you can see it in the picture below. I'm doing the playfield in a similar fashion to the drop targets. I cut out the part I'm going to redraw from the playfield that I have, then I try to size it to the correct size the best I can. After that it's just a matter of tracing over the lines with either the pencil tool, the brush tool, or the line tool. I have to make sure to correct the distortions of both the original picture, and the distortions created when I size the area I want to the size I need. So far so good, and I think things will pick up once I finish up the detailed parts. The lower half of the playfield is what will take the longest.

And the Earthquake Institute makes it's first appearance. The lights inside look a little funny, but that's because of the perspective of FP. I tried to tweak them to look spot on, and they don't look too bad, just a little bleed through when the lights are on.


Click Here for Larger View

As a side note, it seems like some of my pictures aren't showing up in this thread. I don't know if that's just on my end or something dealing with Picasa. I'll try to get it figured out.

#26 Rawd

Rawd

    Pinball Wizard

  • VIP
  • 4,313 posts
  • Location:Edmonton, Canada

  • Flag: Canada

  • Favorite Pinball: Triple Strike



Posted 22 March 2010 - 03:10 PM

This is looking just great man! The pictures are showing up fine here....



 


#27 rehab

rehab

    Enthusiast

  • Members
  • PipPipPip
  • 381 posts
  • Location:Amsterdam

  • Flag: Netherlands

  • Favorite Pinball: funhouse,AFM,MM

Posted 22 March 2010 - 03:25 PM

What an amazing read! Thanks a lot for doing this!

Cant wait for the final result.

#28 unclewilly

unclewilly

    sofa king.....

  • VIP
  • 5,207 posts
  • Location:Baltimore, Maryland

  • Flag: United States of America

  • Favorite Pinball: tz, tom, big hurt, who dunnit



Posted 22 March 2010 - 05:01 PM

when it comes down to coding the table, how do you plan on doing it? from scratch? I might suggest you check out the propst scripting engine.
if you're interested, i can send it to you

"it will all be ok in the end, if it's not ok, it's not the end"
 
Monster Bash VP10 WIP https://dl.dropboxus... (vpx)WIP15.vpx

uw2.gif


#29 MeatBundle

MeatBundle

    Enthusiast

  • Members
  • PipPipPip
  • 71 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 22 March 2010 - 07:16 PM

QUOTE (unclewilly @ Mar 22 2010, 08:01 PM) <{POST_SNAPBACK}>
when it comes down to coding the table, how do you plan on doing it? from scratch? I might suggest you check out the propst scripting engine.
if you're interested, i can send it to you


Actually you already gave me the Propst files in another post about a week ago, but thanks for thinking of it again. I've read through the documentation and it seems fairly straightforward, and I'm definitely planning on using it.

The modes in Earthshaker are also rather simple. There's usually not a whole lot going on at one time, and the game mainly revolves around the multiballs, so I don't anticipate it being that difficult to do. That being said, I haven't fully digested all of the things that are going on during the game, so there might be more there that I'm not seeing.

The hardest part for me is not the scoring but getting all of the display messages and lights to act appropriately. I've waded through the rom and am currently figuring out what switch lights which light, and what messages are playing at what times. It's not really hard, just time consuming, and I want to be as thorough as I can be.

Have really only given a cursory thought towards scripting. I enjoy scripting for the most part, but I prefer to wait until almost everything else is done so that I can debug my code as I work. Helps me to squash bugs faster (I think).

Edited by MeatBundle, 22 March 2010 - 07:20 PM.


#30 unclewilly

unclewilly

    sofa king.....

  • VIP
  • 5,207 posts
  • Location:Baltimore, Maryland

  • Flag: United States of America

  • Favorite Pinball: tz, tom, big hurt, who dunnit



Posted 22 March 2010 - 07:22 PM

i see earthshaker is a system 11 table. It may save you some time to just take the script from my bad cats table and modify it to your needs. the only reason i suggest it is because of the display driver used in system 11 tables. the engine used in bad cats has been modified for the system 11 tables. It also allows you to add the adjustments menu and audit/bookeeping menus. Also check out the script for the machine bop, jc also used the propst engine and is a system 11 table. The difficult part for me was extracting the sounds from the rom, and figuring out the attract light show and the gi light control. good luck with it. My bad cats script is huge. biggrin.gif

"it will all be ok in the end, if it's not ok, it's not the end"
 
Monster Bash VP10 WIP https://dl.dropboxus... (vpx)WIP15.vpx

uw2.gif


#31 MeatBundle

MeatBundle

    Enthusiast

  • Members
  • PipPipPip
  • 71 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 22 March 2010 - 07:27 PM

QUOTE (unclewilly @ Mar 22 2010, 10:22 PM) <{POST_SNAPBACK}>
i see earthshaker is a system 11 table. It may save you some time to just take the script from my bad cats table and modify it to your needs. the only reason i suggest it is because of the display driver used in system 11 tables. the engine used in bad cats has been modified for the system 11 tables. It also allows you to add the adjustments menu and audit/bookeeping menus. Also check out the script for the machine bop, jc also used the propst engine and is a system 11 table. The difficult part for me was extracting the sounds from the rom, and figuring out the attract light show and the gi light control. good luck with it. My bad cats script is huge. biggrin.gif


I've actually played your table quite a bit since starting this project, but have never looked at the script. Will try to do that later today if possible. If the adjustments/audit/bookkeeping menus could just be used with minor adjustments to the code, I'll definitely try to do a copy/paste of that. I wasn't aware there was a bop table, so I'll go download it and see what other useful info I can get. Also playing the Cyclone table. Just anything I can do to further understand Earthshaker.

I've read about extracting the sounds from the rom, but haven't started that yet. Sounds like a chore.

#32 Steve Paradis

Steve Paradis

    Pinball Fan

  • Members
  • PipPipPipPip
  • 555 posts
  • Location:Montreal,Qc Canada

  • Flag: Canada

  • Favorite Pinball: RFM



Posted 22 March 2010 - 08:53 PM

I follow that thread like a real Soap opera smile.gif
thnx a lot for doing this!

Steve
I like poutine...Not the russian guy but the fries and gravy and cheese curds stuff.

#33 MeatBundle

MeatBundle

    Enthusiast

  • Members
  • PipPipPip
  • 71 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 22 March 2010 - 09:38 PM

QUOTE (Steve Paradis @ Mar 22 2010, 11:53 PM) <{POST_SNAPBACK}>
I follow that thread like a real Soap opera smile.gif
thnx a lot for doing this!

Steve


Well Steve, can't let you get all the glory biggrin.gif

#34 MeatBundle

MeatBundle

    Enthusiast

  • Members
  • PipPipPip
  • 71 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 28 March 2010 - 04:56 PM

Been out of the loop as far as internet access goes, and will probably not have regular access for a week or so. Still working on the table of course, but no way to report on status. Hopefully will have a big update in a week of all the things I've completed.

#35 humid

humid

    Pinball Fan

  • VIP
  • 743 posts
  • Location:London Ontario

  • Flag: Canada

  • Favorite Pinball: Black Knight



Posted 29 March 2010 - 02:45 AM

Between the written details of your progress and the WIP pics this looks like it's going to be a sweet success. I look forward to playing when finished.

And BOP is one of my faves for FP, hope it offers up some scripting help so this Williams classic can shake us all soon.
I tawt I gawt a weepway

#36 MeatBundle

MeatBundle

    Enthusiast

  • Members
  • PipPipPip
  • 71 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 25 April 2010 - 08:17 PM

Real Life finally stopped interfering with my hobby, so I've been able to get some more work done. Most of the playfield art has been redone. Just need to draw in the car and some trees here and there. Some of the areas I've done (most notably those around the "zone" lights) don't quite look right. It's probably my fault, so I'll need to tweak it a bit. However, I'm going to take a break from that and start on scripting. It's really going to be a chore, and I'm not sure how much help I'm going to be able to give others, but we'll see when I get started. Hopefully I can get more time than I have been getting to work on the table more.

Click Here for larger version



#37 MeatBundle

MeatBundle

    Enthusiast

  • Members
  • PipPipPip
  • 71 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 25 April 2010 - 08:53 PM

Before I start scripting, a disclaimer: I've had exactly one programming class my entire life, and that was C++. All of the VBScript I have learned has come from other author's tables, the Scripting Tutorial at this site, and from the developer documentation on MSDN. No matter how I do something, there is probably a better way to do it. So why give any advice? Because the way I do it will at least work.

When starting scripting, there are two ways you can go about doing it. You can script using subroutines only, or you can add classes into the mix. Classes are a way of creating objects as concepts, and grouping all of their data (variables) and actions (methods) into one place. It doesn't add much extra functionality, it just makes things more organized. It also makes it a bit easier for me to debug code, and it's easier to change the way things work.

However, the setup for coding in classes is pretty hefty. You have to create the class, code all of the methods for the class, and then use the default FP _Hit() subroutines to call the proper methods at the correct times.

Thus, I decided to use classes for Earthshaker.

The reason is reusability. Earthshaker is a Williams system 11B pinball table. There are 14 other tables that use the same MPU (along with system 11, system 11A, and system 11C for a total of 31 tables), thus their programming is similar. Also, they are built with many of the same components. The main one that affects length of code are the gas segment displays, which are the same on the tables, and some of the hardest things to code. So if I create a complete class-based script for Earthshaker, it will translate well if I decide to remake Whirlwind, or Taxi, or High Speed, etc.

The other reason is that a lot of the work to implement the correct classes has already been done by other table authors (propst mainly I believe) and released as an "engine" of sorts. It does take a while to learn all the tricks of someone else's code, but it's a lot less time than writing all of that code yourself.

If you are just going to do one table, or maybe it's your own design and you don't think the next tables that you are going to design are going to be anything like it, you may wish to go the simpler route and not use classes. The choice is up to you.

To start, I had to find a good copy of a rulesheet (that I got from IPDB). Then I played the table in VP, using the debug mode to make sure that the game was actually doing what the rulesheet was telling me it was supposed to do. Once that was done, I like to organize my thoughts so that I don't forget anything.

As an example, I'll use the bumpers. They are one of the simplest pieces of the table (besides things like slingshots etc.), and yet there are a lot of rules that must be programmed for them. Different point values depending on which ones are flashing or lit need to be input for the scoring to come out correctly. Thus, I usually scribble out a simple flowchart on a piece of paper, just to make sure that I've got the flow of the game correct. I went ahead and did one in PowerPoint just to help visualize what I'm talking about:



The logic for the captive ball is much more complicated:



I'm going to attempt to do every object in PowerPoint, then post the document so that you can see why I'm coding things the way that I am. Here's the link to the rulesheet so that the above diagrams will make sense: Earthshaker Rulesheet from IPDB


#38 Rawd

Rawd

    Pinball Wizard

  • VIP
  • 4,313 posts
  • Location:Edmonton, Canada

  • Flag: Canada

  • Favorite Pinball: Triple Strike



Posted 25 April 2010 - 08:58 PM

This is really appreciated Meatbundle, and I will follow it closely. I have just finished building my first table, but the scripting in it is VERY basic. Just a bunch of on/off switches really. I am interesting in learning more complex scripting...




 


#39 Pinbotic

Pinbotic

    Enthusiast

  • VIP
  • 290 posts
  • Location:Canada

  • Flag: Canada

  • Favorite Pinball: Pin*Bot




  • Trophies:

Posted 25 April 2010 - 08:58 PM

Thank-you for explaining the logic for the programming. That is the only part of table creation that I greatly struggle at, but with this new mindset you have given me, hopefully I will be able to complete a table. You are doing an amazing job with this, and thanks for all the hard work.
Avatar courtesy of Grizz.

#40 MeatBundle

MeatBundle

    Enthusiast

  • Members
  • PipPipPip
  • 71 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 25 April 2010 - 09:09 PM

Well to see how these flow charts translate into actual code, here is a simple function for a bumper. No classes involved at first.

CODE
Sub RedBumper_Hit()
    If(redBumperFlashing = true) then
        If(blueBumperFlashing = true AND yellowBumperFlashing = true) then
            AddScore(5000)
        Else
            AddScore(3000)
        End If
    Else
        If(redBumperLit = true) then
            AddScore(2000)
        Else
                AddScore(1000)
        End If
    End If
End Sub


Next we'll do the same code using classes.