Register    Login    Forum    FAQ    PinSimDB.org

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




Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Simple DMDs Illustrated Tutoria
 Post Posted: Thu May 15, 2014 9:28 pm 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2855
Location: Ontario, Canada
DMD's for Dummies -How to create simple custom DMD's to add to existing games
in 5 minutes or less
Why do this?
1.Makes game play clearer with more DMDs ( continuous display of highscore, , current player, lives, credits etc..)
2.Makes multiplayer tracking better ( add notifications 'welcome player 2', "go player 4" "game over" , last player score)
3. One lonely hyperactive DMD is not a enough

This is in no way a criticism about the state of existing tables, but rather is just to provide individual users a way to optimize tables for their own systems and preference. I greatly appreciate all the existing amazing tables and the work done !


The following should provide a "cookie cutter" approach and take < 5 minutes to accomplish.
"Good luck Ethan, this tutorial will self destruct in 5 minutes" :)

1.Go to table editor and select "translite"

2.Select Displays at bottom and then either "DMD" or "Hud DMD"
(you can switch between the two later if you change your mind). Create 2 DMDs.

3.Name DMDs what you want . If you want "a cut and paste" solution
use the same as this tutorial .
"MyNewDMD" and "MyNewDMD2"


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


Top 
 Profile  
 
 Post subject: Re: DMDs for Dummies Illustrated Tutoria
 Post Posted: Thu May 15, 2014 9:36 pm 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2855
Location: Ontario, Canada
4.Click on "Table" button at top of screen and then "Font Manager" scroll through
Fonts to see which ones you may want to use. (you may need to have "load images into editor" selected under "preferences" "editor options" in order to see fonts)


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


Top 
 Profile  
 
 Post subject: Re: DMDs for Dummies Illustrated Tutoria
 Post Posted: Thu May 15, 2014 9:39 pm 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2855
Location: Ontario, Canada
5.Go to Script and at top of script find where Dmd's are associated with fonts
ie. MyDMD1.AddFont 1, "whatever name from font manager"
My DMD2.AddFont 1, "whatever name from font manager"
and add the same with your new DMDs
ie MyNewDMD.AddFont 1, "whatever name from font manager"
MyNewDMD2.AddFont 1, "whatever name from font manager"

the AddFont 1 will translate to" [f1]" in your "MyNewDMD.text " and "MyNewDMD2.text" that you create below.


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


Top 
 Profile  
 
 Post subject: Re: DMDs for Dummies Illustrated Tutoria
 Post Posted: Thu May 15, 2014 9:40 pm 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2855
Location: Ontario, Canada
6.Decide what stats you want and how you want them oriented on your DMD

"x" and "y" values will orient your DMD value on the DMD itself . Coordinate [x0][y0] is top left
and [xc][yc] is centre point.

Here are the ones I've used:

A. Current Player DMD

MyNewDMD.Text = "[f2][xc][y10]" & FormatNumber (nvscore(CurrentPlayer), 0, -1, 0, -1) & "[f1][x82][y2]LIVES: " & (BallsRemaining(CurrentPlayer)) & "[x2][y2]PLAYER: " & currentplayer & "[x2][y25]LAST PLAYER: " & FormatNumber(nvScore(LastPlayer), 0, -1, 0, -1)


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


Top 
 Profile  
 
 Post subject: Re: DMDs for Dummies Illustrated Tutoria
 Post Posted: Thu May 15, 2014 9:41 pm 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2855
Location: Ontario, Canada
B. Statistic DMD

MyNewDMD2.Text = "[na][f2][xc][y11]"& FormatNumber(nvHighScore1, 0, -1, 0, -1) & "[f1][x2][y25]CREDITS: "& nvCredits & "[x2][y2]HIGHSCORE: " &nvHighScore1Name & "[x78][y2]GAMES: " & nvTotalGamesPlayed &"[x78][y25]PLAYERS: " & PlayersPlayingGame


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


Top 
 Profile  
 
 Post subject: Re: DMDs for Dummies Illustrated Tutoria
 Post Posted: Thu May 15, 2014 9:42 pm 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2855
Location: Ontario, Canada
7.Now that you have your "MyNewDMD.Text" and MyNewDMD2.Text" statements, you just have to insert them in the appropriate positions in the script.

"MyNewDMD2.Text….." gets inserted in the following places
a) under EndofGame() which gets loaded when table loads
Image "EndofGame"


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


Top 
 Profile  
 
 Post subject: Re: DMDs for Dummies Illustrated Tutoria
 Post Posted: Thu May 15, 2014 9:44 pm 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2855
Location: Ontario, Canada
b) after any nvcredits + 1 statements


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


Top 
 Profile  
 
 Post subject: Re: DMDs for Dummies Illustrated Tutoria
 Post Posted: Thu May 15, 2014 9:45 pm 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2855
Location: Ontario, Canada
c)after any nvcredits - 1 statements


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


Top 
 Profile  
 
 Post subject: Re: DMDs for Dummies Illustrated Tutoria
 Post Posted: Thu May 15, 2014 9:53 pm 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2855
Location: Ontario, Canada
d)after any nvTotalGamesPlayed + 1 statements


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


Top 
 Profile  
 
 Post subject: Re: DMDs for Dummies Illustrated Tutoria
 Post Posted: Thu May 15, 2014 9:54 pm 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2855
Location: Ontario, Canada
8. "MyNewDMD.Text…." gets inserted in the following place
Sub AddScore(Points)

Update:
insert it a few lines further down under "nvScore(CurrentPlayer) = nvScore(CurrentPlayer) + points" and then it will update in sync with the original scoring.
Picture below will need update to reflect thie


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


Last edited by Gimli on Tue Dec 02, 2014 6:45 pm, edited 1 time in total.

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

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


Who is online

Users browsing this forum: No registered users and 7 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: