Register    Login    Forum    FAQ    PinSimDB.org

Board index » Resources » Tutorials, how-to's, bug report and docs




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Simple DMD Highscore Illustrated
 Post Posted: Sat Nov 29, 2014 11:55 am 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2851
Location: Ontario, Canada
I hope you are not getting Tutorialled to death, but I thought I'd offer just one more and then crawl back under my rock.

Simple HighScore DMD's for all comers.

Heres a youtube video demonstrating this tutorial:
https://youtu.be/yMDt7ktYYlk


This procedure should work in existing table DMD's or in newly created DMD's in conjuntion with my previous tutorials (Simple DMD's, Simple FutureDMD's, Simple Animated FutureDMD's). To accomplish this you will need to check for the name of the DMD where you wish the DMD Highscore to be displayed. For use with the Animated FutureDMD's an apostrophe needs to be removed from 5 places to ShutbackgroundsOff() while highscore is being displayed. This will be described at the end of the tutorial.

This should be straight forward as we're merely copy 'n pasting Francisco666's routine from Apollo13. I changed a few names to English and that's it.
I used this procedure for the recent ZED 1.1 Gilligan's Island release and it seems to work well. So good luck and remember to credit Francisco666 if you use this in a submitted table. These are highly confidential trade secrets, so be quiet about it :)

Procedure :
1.Table Prep Import 2 Fonts and Create 2 Timers
2. Disable Hud HighScore
3. Enable DMD HighScore (Copy 'N Paste)
4.Set Left and Right Flippers for changing between letters (Copy 'N Paste)
5.Set Plunger for Selecting Letter (Copy 'N Paste)
6.Scripting to make it all work (Copy 'N Paste)

1. Table Prep
A. Import 2 Fonts from Apollo13 (or from other tables if you want different look)


You do not have the required permissions to view the files attached to this post.


Last edited by Gimli on Wed Apr 26, 2017 3:01 pm, edited 9 times in total.

Top 
 Profile  
 
 Post subject: Re: Simple DMD Highscore Illustrated for all comers
 Post Posted: Sat Nov 29, 2014 11:56 am 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2851
Location: Ontario, Canada
Select fonts
jm_9.dmdf
dmd06x07p.dmdf (most tables already have this by default)

Here's a link for these fonts:
https://www.dropbox.com/sh/ruz65jz5hmav ... Oigoa?dl=0


You do not have the required permissions to view the files attached to this post.


Last edited by Gimli on Sat Nov 29, 2014 12:20 pm, edited 2 times in total.

Top 
 Profile  
 
 Post subject: Re: Simple DMD Highscore Illustrated for all comers
 Post Posted: Sat Nov 29, 2014 11:57 am 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2851
Location: Ontario, Canada
Click ok


You do not have the required permissions to view the files attached to this post.


Top 
 Profile  
 
 Post subject: Re: Simple DMD Highscore Illustrated for all comers
 Post Posted: Sat Nov 29, 2014 11:57 am 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2851
Location: Ontario, Canada
B. Create 2 Timers
Go to Translite under Table Editor and create these 2 timers:

TIMEDmoveletters
afterhseob


You do not have the required permissions to view the files attached to this post.


Top 
 Profile  
 
 Post subject: Re: Simple DMD Highscore Illustrated for all comers
 Post Posted: Sat Nov 29, 2014 11:58 am 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2851
Location: Ontario, Canada
go to next page


Last edited by Gimli on Sat Nov 29, 2014 12:22 pm, edited 1 time in total.

Top 
 Profile  
 
 Post subject: Re: Simple DMD Highscore Illustrated for all comers
 Post Posted: Sat Nov 29, 2014 11:58 am 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2851
Location: Ontario, Canada
C. Check the DMD name to enter in script below (described at the end)


You do not have the required permissions to view the files attached to this post.


Last edited by Gimli on Sat Nov 29, 2014 12:23 pm, edited 1 time in total.

Top 
 Profile  
 
 Post subject: Re: Simple DMD Highscore Illustrated for all comers
 Post Posted: Sat Nov 29, 2014 11:59 am 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2851
Location: Ontario, Canada
2.Disable Hud HighScore

Under "Sub EndOfBallTimer_Expired()" Just put an apostrophe ' in front of two statements to inactivate them as follows:

'bEnteringAHighScore = TRUE
'EnterHighScore(CurrentPlayer)


You do not have the required permissions to view the files attached to this post.


Last edited by Gimli on Sat Nov 29, 2014 1:58 pm, edited 1 time in total.

Top 
 Profile  
 
 Post subject: Re: Simple DMD Highscore Illustrated for all comers
 Post Posted: Sat Nov 29, 2014 12:00 pm 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2851
Location: Ontario, Canada
3.Enable DMD Highscore

Just below the last statements you just changed under If (BallsRemaining(CurrentPlayer) <= 0) Then

Copy 'N Paste :
Code:
If nvScore(CurrentPlayer)<nvHighScore(10)then
               EndOfBallComplete()
                  exit sub
               End if
               if nvScore(CurrentPlayer)>nvHighScore(10)then
                  'ShutBackgroundsOff()
                  SelectLetter=1
                  letter1=64
                  letter2=32
                  letter3=32
                  letter4=32
                  benterhighscoremode=true
                  highscoremoveright=true
                  TIMEDmoveletters.set true,500
                  moveletterhs
                  exit sub
  End if


You do not have the required permissions to view the files attached to this post.


Last edited by Gimli on Sat Nov 29, 2014 1:06 pm, edited 4 times in total.

Top 
 Profile  
 
 Post subject: Re: Simple DMD Highscore Illustrated for all comers
 Post Posted: Sat Nov 29, 2014 12:01 pm 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2851
Location: Ontario, Canada
4. Set Left and Right Flippers for changing between letters

under "If (KeyCode = GetKeyCode(LeftFlipperKey)) Then"
Copy 'N Paste:

Code:
if benterhighscoremode=true then
               'ShutBackgroundsOff()
               PlaySound "Flipper"
               highscoremoveright=false
               moveletterhs
               exit sub
            end if



and under "If (KeyCode = GetKeyCode(RightFlipperKey)) Then"
Copy 'N Paste:
Code:
 if benterhighscoremode=true then
            'ShutBackgroundsOff()
            PlaySound "Flipper"
            highscoremoveright=true
            moveletterhs
               exit sub
            end if


You do not have the required permissions to view the files attached to this post.


Last edited by Gimli on Sat Nov 29, 2014 12:35 pm, edited 1 time in total.

Top 
 Profile  
 
 Post subject: Re: Simple DMD Highscore Illustrated for all comers
 Post Posted: Sat Nov 29, 2014 12:02 pm 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2851
Location: Ontario, Canada
Set Plunger for Selecting Letter (Copy 'N Paste)

under "If (KeyCode = GetKeyCode(PlungerKey)) Then"
Copy 'N Paste:

Code:
if benterhighscoremode=true then
         'ShutBackgroundsOff()
         PlaySound "plungerrelease"
         if ChangeLetter=63 then'End the entername
               endselection
               exit sub
            end if
            if ChangeLetter=62 then'Backspace
               if SelectLetter=1 then
                  exit sub
               end if
                     if SelectLetter=2 then
                        letter2=64
                     end if
                     if SelectLetter=3 then
                        letter3=64
                     end if
                  SelectLetter=SelectLetter-1
                  highscoremoveright=true
                  moveletterhs
                  highscoremoveright=false
                  moveletterhs   
               exit sub   
            end if
               SelectLetter=SelectLetter+1
                  if SelectLetter=>4 then
                     SelectLetter=4
                     ChangeLetter=63
                  end if
               highscoremoveright=true
               moveletterhs
               highscoremoveright=false
               moveletterhs
            exit sub
         end if


You do not have the required permissions to view the files attached to this post.


Last edited by Gimli on Sat Nov 29, 2014 12:36 pm, edited 1 time in total.

Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

Board index » Resources » Tutorials, how-to's, bug report and docs


Who is online

Users browsing this forum: No registered users and 4 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to: