Pinball Nirvana Home Page

Go Back   Pinball Nirvana Forums > VP/VPM Help and Support > VP/VPM General Information and First Aid Station

VP/VPM General Information and First Aid Station Request Help about Visual Pinball or Visual PinMAME.

Reply
 
Thread Tools Search this Thread
  #1  
Old 10-19-2019, 06:14 PM
fastdraw fastdraw is offline
Inserted Coin
 

Join Date: Dec 2015
Posts: 15
Credits: 750.88
Thanks: 7
Thanked 3 Times in 3 Posts
Rep Power: 0
fastdraw is on a distinguished road
Question bad initialization of the starter table

at the very beginning of the starter loading

it starts like a game (ball ejected) except that the flippers are stopped.
I would like, that there are at the beginning NO BALLSs and flippers at the stop.


attached my starter below


Quote:
Option Explicit Randomize Dim Ball Dim Balls Dim Score Dim ScoreToAdd Dim InProgress: Inprogress=False Dim Credits: Credits=1 Dim light ball=0 balls=3 '**********KEYS DOWN********** Sub Table1_KeyDown(ByVal keycode) If InProgress = True Then If keycode = LeftFlipperKey Then LeftFlipper.RotateToEnd PlaySound "flipperup" End If End If If InProgress = True Then If keycode = RightFlipperKey Then RightFlipper.RotateToEnd PlaySound "flipperup" End If End If If keycode = PlungerKey Then Plunger.PullBack End If If keycode = LeftTiltKey Then Nudge 90, 2 End If If keycode = RightTiltKey Then Nudge 270, 2 End If If keycode = CenterTiltKey Then Nudge 0, 2 End If If keycode = AddCreditKey Then Credits=credits + 1 CreditBox.Text=Credits If InProgress= False Then ScoreBox.Text = "Press Start" PlaySound "coin" End If If InProgress = False Then If Keycode = StartGameKey And Credits>0 Then Credits=Credits-1 CreditBox.Text=Credits NewGame InProgress=True End If End If End Sub '**********KEYS UP********** Sub Table1_KeyUp(ByVal keycode) If keycode = PlungerKey Then Plunger.Fire PlaySound "plunger" End If If InProgress = True Then If keycode = LeftFlipperKey Then LeftFlipper.RotateToStart PlaySound "flipperdown" End If If keycode = RightFlipperKey Then RightFlipper.RotateToStart PlaySound "flipperdown" End If End If End Sub '**********NEW GAME********** Sub NewGame InProgress=True DrainTimer.Interval=4000 DrainTimer.Enabled = True ScoreBox.Text="" Score=0 Ball=0 BallBox.Text=Ball ScoreBox.Text=Score TextBox2.Text = "BALL" End Sub '**********SCORE********** Sub AddScore(ScoreToAdd) Score=Score+ScoreToAdd ScoreBox.Text=Score End Sub '**********TABLE INIT********** Sub Table1_Init() TextBox2.Text = "" BallBox.Text = "" Ball=0 Balls=3 ScoreBox.Text = "Insert Coin" End Sub '**********DRAIN********** Sub Drain_Hit() Drain.DestroyBall If Ball < Balls Then ' Is ball played less than total Balls or is the Game Over DrainTimer.Interval=3000 DrainTimer.Enabled = True ' If not, then let's play another ball, but let's set the timer for a delay Else ' Sorry, but the game is now over GameOver ' Go to game over to finish up End If End Sub Sub DrainTimer_Timer() DrainTimer.Enabled = False ' When timer runs out we will do the stuff below Kicker1.CreateBall Kicker1.Kick 90,10 PlaySound "ballrel" Ball = Ball + 1 BallBox.Text=Ball End Sub '**********GAME OVER********** Sub GameOver TextBox2.Text = "" BallBox.Text = "" InProgress=False ScoreBox.Text="Game Over" End Sub
Attached Files
File Type: rar TEMPLATE.rar (10.02 MB, 7 views)

Last edited by fastdraw; 10-20-2019 at 05:52 AM.
Reply With Quote
  #2  
Old 10-19-2019, 09:40 PM
Ike Savage's Avatar
Ike Savage Ike Savage is offline
Pinball Porcupine
 

Join Date: Jun 2003
Posts: 3,451
Credits: 347,905.09
Thanks: 1,165
Thanked 701 Times in 549 Posts
Rep Power: 58
Ike Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to behold
Default

Testing with VPX, both the blank table and the demo table flippers are working for me.

You can change their key setting from the "Preferences" menu.

There's no way you should be getting a bad initialisation from either of the starter tables, though. I would certainly delete and re-create it.

Last edited by Ike Savage; 10-19-2019 at 11:03 PM.
Reply With Quote
  #3  
Old 10-20-2019, 05:06 AM
fastdraw fastdraw is offline
Inserted Coin
 

Join Date: Dec 2015
Posts: 15
Credits: 750.88
Thanks: 7
Thanked 3 Times in 3 Posts
Rep Power: 0
fastdraw is on a distinguished road
Default

??
You're in luck.
this must be my vpx installation that must be messy.
when we modify the script and we restart the table, the old launch is killed, or there are residues in memory.
at each script modification must we leave vpx and restart it?
vpx 10.6 final, behaving strangely
sometimes the table works well, and sometimes it bug
that comes from the script or from vpx?
how to clean the pc of vpx, overlay of beta .... installed successively ?


could you make me a starter for vpx?

Last edited by fastdraw; 10-20-2019 at 05:11 AM.
Reply With Quote
  #4  
Old 10-20-2019, 05:17 AM
fastdraw fastdraw is offline
Inserted Coin
 

Join Date: Dec 2015
Posts: 15
Credits: 750.88
Thanks: 7
Thanked 3 Times in 3 Posts
Rep Power: 0
fastdraw is on a distinguished road
Default

but without shiva engine.
a simple starter (simple and basic initialization), because my table rules are more rudimentary and basic.(simple incrementation of variable that make up the score, and sometimes some fantasies , because my tables are more based on the orbits.
I mainly use the conditions.....if then)
the 2 big problems are the multiball and the balls captured. I have problems with ball counting. the drain and ball release is causing me problems.


balls are the number of balls at the start of the game
and ball the ball numbers during the game.?
when a ball is lost, it's ball = ball-1 or balls = balls-1

Last edited by fastdraw; 10-20-2019 at 05:38 AM.
Reply With Quote
  #5  
Old 10-20-2019, 08:33 AM
Ike Savage's Avatar
Ike Savage Ike Savage is offline
Pinball Porcupine
 

Join Date: Jun 2003
Posts: 3,451
Credits: 347,905.09
Thanks: 1,165
Thanked 701 Times in 549 Posts
Rep Power: 58
Ike Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to behold
Default

Quote:
Originally Posted by fastdraw View Post
??
You're in luck.
this must be my vpx installation that must be messy.
when we modify the script and we restart the table, the old launch is killed, or there are residues in memory.
at each script modification must we leave vpx and restart it?
vpx 10.6 final, behaving strangely
sometimes the table works well, and sometimes it bug
that comes from the script or from vpx?
how to clean the pc of vpx, overlay of beta .... installed successively ?


could you make me a starter for vpx?
No, you shouldn't have to be restarting VPX between changes, or do anything special like that. There shouldn't be any memory residue issues or leaks.

You could try going back to running 10.5 for the time being, and post your 10.6 problems at the official release site, which is VPF.

VPX 10.5 was running stably for years before this new 10.6 release. If you're still having weird problems with 10.5, then something outside of VPX is probably the issue.

You might also try deleting everything VP-related (outside of tables, ROMs and the VPX 10.5 executable), and reinstall using Toxie's all-in-one installer. Also make sure to add scripts for VPMAME and whatever else the installer doesn't include.

Last edited by Ike Savage; 10-20-2019 at 08:40 AM.
Reply With Quote
  #6  
Old 10-20-2019, 08:37 AM
Ike Savage's Avatar
Ike Savage Ike Savage is offline
Pinball Porcupine
 

Join Date: Jun 2003
Posts: 3,451
Credits: 347,905.09
Thanks: 1,165
Thanked 701 Times in 549 Posts
Rep Power: 58
Ike Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to behold
Default

Quote:
Originally Posted by fastdraw View Post
but without shiva engine.
a simple starter (simple and basic initialization), because my table rules are more rudimentary and basic.(simple incrementation of variable that make up the score, and sometimes some fantasies , because my tables are more based on the orbits.
I mainly use the conditions.....if then)
the 2 big problems are the multiball and the balls captured. I have problems with ball counting. the drain and ball release is causing me problems.


balls are the number of balls at the start of the game
and ball the ball numbers during the game.?
when a ball is lost, it's ball = ball-1 or balls = balls-1
Unfortunately, I've forgotten most of what I knew about VP-style Visual Basic. Last time I coded was over ten years ago, on VP7 or VP8.

If Shiva is still around, he might be able to help. Otherwise I would try one of the other VP sites to ask about specific coding problems.
Reply With Quote
  #7  
Old 10-20-2019, 11:19 AM
fastdraw fastdraw is offline
Inserted Coin
 

Join Date: Dec 2015
Posts: 15
Credits: 750.88
Thanks: 7
Thanked 3 Times in 3 Posts
Rep Power: 0
fastdraw is on a distinguished road
Default

that's what I did, I had as an answer from JP salas:


Quote:
I think before you learn to run you must learn to walk and before you can walk you need to learn to stand up



Many people when they start making tables spend a lot of time looking how other people have done their scripts, that's what I did. The easiest way to do that is to use one of the older templates, and for me one of the best templates to start learning and making your own table is the shivaengine1 written by Shiva 17 years ago.



So I recommend you to go to Pinball Nirvana and download it: http://shiva.pinball...all/shivaEngine



Download the the version 1. Study the script, it is very well written and includes all the routines needed for a pinball table.
with that I am well advanced


If not how to transpose the FP starter on vpx.
I was used to it and it is very tutorial

Last edited by fastdraw; 10-20-2019 at 11:26 AM.
Reply With Quote
The Following User Says Thank You to fastdraw For This Useful Post:
Ike Savage (10-20-2019)
  #8  
Old 10-20-2019, 03:51 PM
shiva's Avatar
shiva shiva is offline
Pinball Wizard
 

Join Date: Oct 2004
Location: Abbotsford
Posts: 704
Credits: 78,684.49
Thanks: 2
Thanked 153 Times in 87 Posts
Rep Power: 24
shiva has a spectacular aura aboutshiva has a spectacular aura about
Default

Don't see any thing wrong with that code, but it's been years since I even touched vp. Could be something real stupid, like as Ike said, keys are set wrong, or your table may be tilted and forgot to turn it off (I've done that one)
Have no idea about vpx and all these plugins etc. shivaengine 1 was about as simple as you can get, but there should be other templates available as well for vpx, maybe give one of them a shot.
__________________

FaceBook Page for all my Rants,raves and projects
https://www.facebook.com/paul.sanderson.3745496
Next project: fpxEngine.
Reply With Quote
  #9  
Old 10-20-2019, 04:23 PM
fastdraw fastdraw is offline
Inserted Coin
 

Join Date: Dec 2015
Posts: 15
Credits: 750.88
Thanks: 7
Thanked 3 Times in 3 Posts
Rep Power: 0
fastdraw is on a distinguished road
Default

shiva



where to find shivaengine 1 ? sorry it's ok the link work


thx at all
Reply With Quote
  #10  
Old 10-20-2019, 06:36 PM
Ike Savage's Avatar
Ike Savage Ike Savage is offline
Pinball Porcupine
 

Join Date: Jun 2003
Posts: 3,451
Credits: 347,905.09
Thanks: 1,165
Thanked 701 Times in 549 Posts
Rep Power: 58
Ike Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to behold
Default

Quote:
Originally Posted by fastdraw View Post
If not how to transpose the FP starter on vpx.


Wow, I would definitely keep your FP stuff separate from VPX stuff at this point.

"Learn how to stand first," mais non?
Reply With Quote
  #11  
Old 10-20-2019, 09:28 PM
Ike Savage's Avatar
Ike Savage Ike Savage is offline
Pinball Porcupine
 

Join Date: Jun 2003
Posts: 3,451
Credits: 347,905.09
Thanks: 1,165
Thanked 701 Times in 549 Posts
Rep Power: 58
Ike Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to beholdIke Savage is a splendid one to behold
Default

Quote:
Originally Posted by fastdraw View Post
shiva



where to find shivaengine 1 ? sorry it's ok the link work


thx at all
You can find his archived stuff at his section of this site. Here's the specific page with older ShivaEngines:

http://shiva.pinballnirvana.com/file...%2FshivaEngine
Reply With Quote
The Following User Says Thank You to Ike Savage For This Useful Post:
fastdraw (10-23-2019)
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 09:17 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Template-Modifications by TMS
Credits System provided by vBCredits II Deluxe (Lite) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
Shoutbox provided by vBShout v6.2.15 (Lite) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.