Jump to content



Photo
* * * * * 3 votes

UltraDMD WIP


  • Please log in to reply
585 replies to this topic

#81 BlackPredator72

BlackPredator72

    I ❤ Pinball

  • Members
  • PipPipPip
  • 372 posts
  • Location:Haarlem, The Netherlands

  • Flag: Netherlands

  • Favorite Pinball: Demolition Man

  • PS3 Gamer Tag: BlackPredator72
  • 360 Gamer Tag: BlackPredator72

Posted 29 June 2014 - 07:34 PM

Ok got it working now too.

But can I display only the real DMD? Is there an option to not show the virtual DMD?

And how do I quit the real DMD screen? Once it's started I can't kill it.

Somebody got a HyperPin intro made with this (in FPLaunch.ahk) ?


Edited by BlackPredator72, 30 June 2014 - 09:00 AM.

43327.png?1581090420

 


#82 UltraPeepi

UltraPeepi

    Enthusiast

  • Platinum Supporter
  • 216 posts
  • Location:Redmond, WA

  • Flag: United States of America

  • Favorite Pinball: Mary Shelly's Frankenstein

Posted 30 June 2014 - 04:00 AM

I will add an option to hide the virtual DMD.


ultradmd_splash.png


#83 Dozer316

Dozer316

    Dozer

  • VIP
  • 669 posts

  • Flag: Australia

  • Favorite Pinball: Cirqus Voltaire

Posted 30 June 2014 - 08:05 AM

This would be very cool as I have two versions of the game I'm working on.

 

One with a 7 segment backglass and one with the DMD version.

 

Thanks for your efforts.

 

Dozer.

 

 

I will add an option to hide the virtual DMD.



#84 hourglass

hourglass

    Hobbyist

  • Members
  • PipPip
  • 34 posts

  • Flag: United States of America

  • Favorite Pinball: Addams Family

Posted 16 October 2014 - 05:12 PM

First off - Thanks for all the work you've put into UltraDMD.

 

I started creating an original table with the thought that I'd have to fudge something to make scenarios work without a DMD.

 

Lo and behold - UltraDMD came to the rescue with flying colors.

 

I've started implementing it in my table, but I'm getting some crashes.

 

Notably - it crashes on any time it checks of UltraDMD.IsRendering when a lot of stuff is happening all at once - such as with bumper hits.

 

Here's one of the relevant sections of code, but it will sometimes bomb in the Timer1 sub, or the OnScoreBoardChanged sub.

 

As you can see in the code, I'm getting around the errors by enclosing the IsRendering statements inside of On Error Resume Next code.

 

Am I doing something wrong to cause these crashes, or is the UltraDMD object simply getting overloaded?

 

Thanks!

Ryan

Sub Bumper1_Hit() ' Process for ALL bumpers
Dim num
	If HeavyWaterTry = True Then
		Timer1.Enabled = False
		PlaySound "Bumper"
		AddScore(5000)
		numBumpers = (numBumpers + 1) MOD 100
		num = "    " & CStr(30-numBumpers)
		On Error Resume Next
		If Not UltraDMD.IsRendering Then
			UltraDMD.DisplayScene00ExWithId "bumper", FALSE, "worms_00.png", num, 14, 2, "", -1, -1, UltraDMD_Animation_ScrollOnUp, 500, UltraDMD_Animation_None
		End If
		On Error Goto 0
			'UltraDMD.CancelRenderingWithID "bumper"
			'UltraDMD.DisplayScene00ExWithId "bumper", FALSE, "worms_00.png", num, 14, 2, "", -1, -1, UltraDMD_Animation_None, 500, UltraDMD_Animation_None
		UltraDMD.ModifyScene00Ex "bumper", num, "", 500
		If numBumpers = 30 Then
			UltraDMD.CancelRenderingWithId "bumper"
			BaronessSuccess = True
			DMD_DisplaySceneEx "BaronessCartoon1.jpg", ".", -1, 1, "", -1, -1, 2, 10, 3
			DMD_DisplayScene "", " Baroness ", 15, "", -1, 2, 800, 9
			DMD_DisplayScene "", "SUCCESS!!", 15, "WORMS DEFEATED", 15, 2, 800, 9
			DMD_DisplayScene "", "YOU GOT THE", 15, "HEAVY WATER", 15, 2, 800, 9
			HeavyWaterLight.State = 1
			HeavyWaterTry = False
			numBumperStorage = numBumpers
			Timer1.Enabled = True
		End If
	Else
		PlaySound "Bumper"
		intScore = 1000 * intTankBonus
		AddScore(intScore)
		numBumpers = (numBumpers + 1) MOD 100
		num = "    " & CStr(100-numBumpers)
		On Error Resume Next
		If Not UltraDMD.IsRendering Then
			'UltraDMD.DisplayScene00ExWithId "bumper", FALSE, spaceship, num, 14, 2, "", -1, -1, UltraDMD_Animation_ScrollOnUp, 500, UltraDMD_Animation_None
			'DMD_DisplayScene "HISS.jpg",  "TANKS TO 1 MILLION", 15, "          " & num, 15, 2, 800, 9
			UltraDMD.DisplayScene00ExWithId "HISS", FALSE,  "HISS.jpg", "      HISS TANKS", 15, 6, "      " & num, 15, 7, 2, 600, 9
			Timer1.Enabled = True
		End If
		UltraDMD.ModifyScene00Ex "HISS", "      HISS TANKS", "      " & num, 500
		On Error GoTo 0
	End If
	'MsgBox numBumpers
	If numBumpers = 0 Then
		intTankBonus = intTankBonus + 1
		UltraDMD.CancelRendering
		UltraDMD.DisplayScene00ExWithId "HissBonus", FALSE,  "HISS.jpg", "      TANK BONUS", 15, 6, "     " & intTankBonus & " MILLION", 15, 7, 2, 600, 9
		intScore = 1000000 * intTankBonus
		AddScore(intScore)
	End If
End Sub



#85 UltraPeepi

UltraPeepi

    Enthusiast

  • Platinum Supporter
  • 216 posts
  • Location:Redmond, WA

  • Flag: United States of America

  • Favorite Pinball: Mary Shelly's Frankenstein

Posted 16 October 2014 - 07:34 PM

Thanks for the info.  I need to get back to this; but the only real way to know if this tool is going to meet the needs of original table developers, is to have some real tables implemented with it.  I am glad to see you taking the plunge.  I hope I am able to get the issue fixed so it meets your needs.


ultradmd_splash.png


#86 freneticamnesic

freneticamnesic

    A Faint Ghost Through the Raindrops

  • VIP
  • 3,369 posts
  • Location:Portland, OR

  • Flag: United States of America

  • Favorite Pinball: Star Trek, Black Hole, AFM, Fast Draw, Tron, AMH

  • 360 Gamer Tag: sixgunsounddd

Posted 16 October 2014 - 08:13 PM

If only I could script original tables. This is so cool. I would love to see this get picked up by authors, unfortunately there's not many oiriginals authors left..........



#87 freneticamnesic

freneticamnesic

    A Faint Ghost Through the Raindrops

  • VIP
  • 3,369 posts
  • Location:Portland, OR

  • Flag: United States of America

  • Favorite Pinball: Star Trek, Black Hole, AFM, Fast Draw, Tron, AMH

  • 360 Gamer Tag: sixgunsounddd

Posted 17 October 2014 - 01:07 AM

I get an UltraDMD.exe stopped working when I try to run it on Windows 7 x64



#88 hourglass

hourglass

    Hobbyist

  • Members
  • PipPip
  • 34 posts

  • Flag: United States of America

  • Favorite Pinball: Addams Family

Posted 17 October 2014 - 01:16 AM

You need to make sure it's in the right folder.

 

I had the same thing last night when I started messing around with it.

 

Unregister the DLL where you have it now (go to the folder and type "UltraDMD.exe /u")

 

Then copy UltraDMD.exe into the following folder:

 

C:\XDMD\XDMD Demo\bin\Release

 

Inside that folder, run UltraDMD.exe /i to register it again.

 

This assumes that you extracted the XDMD files directly to your C:\ drive.

 

Ryan



#89 freneticamnesic

freneticamnesic

    A Faint Ghost Through the Raindrops

  • VIP
  • 3,369 posts
  • Location:Portland, OR

  • Flag: United States of America

  • Favorite Pinball: Star Trek, Black Hole, AFM, Fast Draw, Tron, AMH

  • 360 Gamer Tag: sixgunsounddd

Posted 17 October 2014 - 01:30 AM

oh I need XDMD that's my issue :)



#90 hourglass

hourglass

    Hobbyist

  • Members
  • PipPip
  • 34 posts

  • Flag: United States of America

  • Favorite Pinball: Addams Family

Posted 17 October 2014 - 11:15 PM

Thanks for the info.  I need to get back to this; but the only real way to know if this tool is going to meet the needs of original table developers, is to have some real tables implemented with it.  I am glad to see you taking the plunge.  I hope I am able to get the issue fixed so it meets your needs.

 

I posted the WIP table as a download here for whenver you get a chance to take a look:

 

http://www.vpforums....&showfile=10198

 

Ryan



#91 UltraPeepi

UltraPeepi

    Enthusiast

  • Platinum Supporter
  • 216 posts
  • Location:Redmond, WA

  • Flag: United States of America

  • Favorite Pinball: Mary Shelly's Frankenstein

Posted 19 October 2014 - 05:12 PM

 

 

http://www.vpforums....&showfile=10198

 

I am out of town still; but I have network access now.  I get an error when I click this link.


ultradmd_splash.png


#92 hourglass

hourglass

    Hobbyist

  • Members
  • PipPip
  • 34 posts

  • Flag: United States of America

  • Favorite Pinball: Addams Family

Posted 20 October 2014 - 01:41 AM

That's odd.  It works when I click it.

Ryan



#93 hourglass

hourglass

    Hobbyist

  • Members
  • PipPip
  • 34 posts

  • Flag: United States of America

  • Favorite Pinball: Addams Family

Posted 20 October 2014 - 02:09 AM

Either way, I put it up on Dropbox here:

 

https://www.dropbox..../GIJoe.zip?dl=0

 

Ryan



#94 UltraPeepi

UltraPeepi

    Enthusiast

  • Platinum Supporter
  • 216 posts
  • Location:Redmond, WA

  • Flag: United States of America

  • Favorite Pinball: Mary Shelly's Frankenstein

Posted 20 October 2014 - 03:04 AM

Great.  I downloaded and I am playing it now.  It looks good, and has some good ramps and loops.

 

I can't seem to reproduce the crash.  Maybe I'm not good enough to make lots of DMD activity.  I am getting lots of DMD sequences, but I've only been able to queue up several at once on rare occasion.

 

Maybe you can help me force the condition.  Is there something I can do in debug mode?


ultradmd_splash.png


#95 hourglass

hourglass

    Hobbyist

  • Members
  • PipPip
  • 34 posts

  • Flag: United States of America

  • Favorite Pinball: Addams Family

Posted 20 October 2014 - 03:08 AM

The problem comes up in any scenario when the bumpers get a lot of action.  This can be when it's counting down HISS tanks or when it's counting down in the Baroness mission.  To trigger that mission, hit the middle trigger on the left side near the kicker hole.

 

I don't know exactly how to guarantee a crash, but if you drop a bunch of balls in debug mode into the bumpers that'll probably do it.

 

Ryan



#96 hourglass

hourglass

    Hobbyist

  • Members
  • PipPip
  • 34 posts

  • Flag: United States of America

  • Favorite Pinball: Addams Family

Posted 20 October 2014 - 10:02 PM

Here's a screenshot where it just happened to me.

This is the same file as on the DB - in fact, I transferred it to this computer via the same DB link as i posted above...

 

I added a slingshot wall both above and below the bumpers - you'll see it in the picture.

I dropped one ball into the bumper area, then waited.  The error came up 122 bumper hits into the game.

 

If the ball gets stuck just give it a nudge.

 

2014-10-20_17-59-22_zps4eb22759.png



#97 UltraPeepi

UltraPeepi

    Enthusiast

  • Platinum Supporter
  • 216 posts
  • Location:Redmond, WA

  • Flag: United States of America

  • Favorite Pinball: Mary Shelly's Frankenstein

Posted 22 October 2014 - 10:02 PM

OK.  I am back home today.

 

I added a wall to force the ball to remain in the bumpers.  I am able reproduce the issue.  Unfortunately, the issue isn't in UltraDMD.  It is in XDMD.  I will debug it and get in touch with Tom on my recommendations for a fix.  If I can work around the issue I will.

 

Thanks.


ultradmd_splash.png


#98 UltraPeepi

UltraPeepi

    Enthusiast

  • Platinum Supporter
  • 216 posts
  • Location:Redmond, WA

  • Flag: United States of America

  • Favorite Pinball: Mary Shelly's Frankenstein

Posted 22 October 2014 - 11:32 PM

This is a bug in XDMD.  But I believe it was a change I made.  I reviewed the code and couldn't identify a path where I needed a SyncLock around the animation collection; but obviously a SyncLock is required.  It seems to fix the issue in my testing.  I can provide you with a private build of XDMD for testing purposes so you can verify the fix.

 

I'll PM you with a dropbox link a bit later.


ultradmd_splash.png


#99 UltraPeepi

UltraPeepi

    Enthusiast

  • Platinum Supporter
  • 216 posts
  • Location:Redmond, WA

  • Flag: United States of America

  • Favorite Pinball: Mary Shelly's Frankenstein

Posted 24 October 2014 - 05:43 PM

UltraDMD v1.0.141023

http://ultradmd.word...s.com/download/

 

I fixed a couple of issues based on G.I.Joe feedback (thanks HG).


ultradmd_splash.png


#100 Sindbad

Sindbad

    Pinball Freak

  • VIP
  • 364 posts
  • Location:Erbach, Germany

  • Flag: Germany

  • Favorite Pinball: Terminator



Posted 29 October 2014 - 09:21 PM

Okay, I got it working ... But I had an issue while installing:

 

First, I copied all files from the "XDMD\bin\Release" folder into a separate folder. Then I copied UltraDMD.exe into that folder and registered UltraDMD.exe. When calling UltraDMD, I got errors (UltraDMD is not working blahblahblah, I don't remember the exact phrase). So I cleaned everything and copied all files from "XDMD Demo\bin\Release" into the separate folder and continued as above. That worked fine. So it seems, that there are necessary file(s) in the demo folder?