Jump to content



Photo
- - - - -

FP under Linux - How To


  • Please log in to reply
20 replies to this topic

#21 GeorgeH

GeorgeH

    Pinball Fan

  • Members
  • PipPipPipPip
  • 822 posts
  • Location:Arkansas, USA

  • Flag: United States of America

  • Favorite Pinball: Black Rose

Posted 21 July 2024 - 05:06 AM

It seems to be a scripting error. I have the same problem and figured hell, I'll just play nice with it and define all the variables that it's complaining about.

On Popotte's excellent 8 Ball, I added the following in the script window:
 

CODE
Dim Bulboff
Dim Bulbon
Dim InsertCoinKey
Dim ToggleHudKey
Dim PlungerKey
Dim Special1Key
Dim LeftFlipperKey
Dim RightFlipperKey
Dim StartGameKey


Since it only throws out one error at a time, this took a while wink.gif Couldn't save the script either (guessing it's locked or read-only?) as that would crash FP and corrupt the file.

From what I can tell, these global variables aren't being defined by FP under Linux for some reason. Oddly, the nudge buttons are and work perfectly.

Now the my dodgy code hack made the game playable, albeit barely. Everything got mapped to left flipper, consequently I ended up with a game that I could launch 5 balls onto the playfield at once, and reset the score with every left flipper press. I tried a different table, Aloha, added the above and a few more before it'd let me insert a coin, but then got stuck on a mismatch of PlayMusic (should be an integer and not a variable, or vise-versa).

It's very strange that this is a Linux only problem. Now I'm no expert, and anybody who scripts in FP will no doubt laugh at that 'code' above, but I'll post a thread over in scripting as they might be able to look at it and see straight away what's going on.

One encouraging thing, it runs amazingly fast!

I know nothing about Linux but I can tell you that none of the Dims you added should be required, at least when you play it on Windows.  All of the codes are defined in the manual.  ...But then I suppose you might have already known that.