Jump to content



Photo
* * * * * 6 votes

FlexDMD, an UltraDMD alternative

UltraDMD DMD

  • Please log in to reply
835 replies to this topic

#41 balilolo

balilolo

    Hobbyist

  • Members
  • PipPip
  • 10 posts

  • Flag: ---------

  • Favorite Pinball: amazon

Posted 02 February 2020 - 09:05 AM

 

EDIT : can't unregister FlexDMD to be used instead of UltraDMD

 

because champions league (season18) table crash  , i wanted to leave this one without FlexDMD

FlexDMD comes in 2 parts ; FlexDMD itself, and an UltraDMD replacement. If you register the UltraDMD replacement (third pane of the install app), then it replace UltraDMD for all the tables. If you want to move back to UltraDMD, you just have to register again UltraDMD. This will be for all the tables.

 

Regarding champions league (season18), how does it crash ? Does it gives a message ? Any hint to debug it ?

 

ok thanks , back to ultradmd, champions league table is not crashing anymore. no hint why … and the table code isn't a "regular" one : can't find Set UltraDMD = CreateObject("UltraDMD.DMDObject") to replace it



#42 Gwenydd

Gwenydd

    Hobbyist

  • Members
  • PipPip
  • 37 posts
  • Location:Ferndale, WA

  • Flag: United States of America

  • Favorite Pinball: Twilight Zone, AFM, Tron Legacy, Star Trek

Posted 02 February 2020 - 09:05 AM

OK I just tried this out.  All I did was copy the three install files to my vpinmame folder and run the flexdmd install tool.  I had to run it a couple times to get both flexdmd and ultradmd to register but both ended up registering fine for me.

 

I then tried running the Diablo pinball table, which I have never been able to get to run properly due to table specific ultradmd issues with it.  Lo and behold... Diablo runs just fine using FlexDMD. 

 

I did get a crash while testing with Champions League season 18, but other UltraDMD tables ran just fine with the exception of the fact that the DMD is always red.  I can't seem to get full color working yet.

 

Congratulations on a very promising start Vincent.  Keep up the great work!

 

Gwen


Edited by Gwenydd, 02 February 2020 - 09:20 AM.


#43 balilolo

balilolo

    Hobbyist

  • Members
  • PipPip
  • 10 posts

  • Flag: ---------

  • Favorite Pinball: amazon

Posted 02 February 2020 - 09:40 AM

for me on Diablo table when i push start button it tilt the table, the next balls are ok

if i remove the vbs script, no tilt when i push the start button ……



#44 Gwenydd

Gwenydd

    Hobbyist

  • Members
  • PipPip
  • 37 posts
  • Location:Ferndale, WA

  • Flag: United States of America

  • Favorite Pinball: Twilight Zone, AFM, Tron Legacy, Star Trek

Posted 02 February 2020 - 10:39 AM

I didn't install any .vbs scripts



#45 Oldschool4

Oldschool4

    Enthusiast

  • Members
  • PipPipPip
  • 65 posts

  • Flag: Australia

  • Favorite Pinball: Metallica

Posted 02 February 2020 - 11:56 AM

 

I use a Pin 2 DMD
I tried this one seemed to work/look OK -- Ghostbuster Slimer

Will this image be distorted because of this -- (128x36)

 

On American most haunted  I have the color working (For me this is a big accomplishment because I know Very little about coding)

Here is the script if you could take a look and tell me how close I am to having it the way it's supposed to be

Thank you for the nice plug in

   Thanks

attachicon.gif amh 062718a - Color.txt

You're script is perfect, congratulations ! It will render the DMD with full color but I think America's Most Haunted is supposed to have a monochrome DMD according to videos like this one : https://www.youtube....h?v=80ci47Xsfqo (I never had a chance to play it on a real machine, since it is very difficult to find one, here in France). In my point of view, moving the configuration of the color apart from the table was one of the problem with UltraDMD. I have updated the available script on GitHub for AMH with a guessed color that looks good to me (perhaps too blue, and not enough green). If someone with access to the real machine can propose the right color, this would be nice.
 

I replaced the GB Slimer script, at line 1793 says 128x36, i changed to 128x30, seems alot clearer for my eyes.

The images are designed to be rendered on a 128x36 screen, so I set the output to 128x36. This should be the most clear for virtual or LCD DMD (with a higher internal resolution). For real DMD, the best rendering should be obtained by setting the output to the device real resolution (likely to be 128x32).

 

I Adjusted 128x30 to 128x32 as per you recommendation,thankyou,

Champions League 17 & 18 crash when the first ball drains, created a FlexDMD error log but nothing shows,dmd animations are working but in the Default red. Both games were fine prior.



#46 vbousquet

vbousquet

    Enthusiast

  • Members
  • PipPipPip
  • 108 posts

  • Flag: France

  • Favorite Pinball: Cue Ball Wizard, Tron Legacy, Terminator 2

Posted 02 February 2020 - 12:06 PM

Champions League use the shared UltraDMD_Options.vbs which I did not test that much. I will have to investigate but I do not have the table and VPUniverse is down since yesterday. If I can download the table this week-end I will try to solve this or I will look next week-end when VPUniverse will be back. Sorry for the wait (or if someone can point me to a place where I can download them ?)



#47 vbousquet

vbousquet

    Enthusiast

  • Members
  • PipPipPip
  • 108 posts

  • Flag: France

  • Favorite Pinball: Cue Ball Wizard, Tron Legacy, Terminator 2

Posted 02 February 2020 - 02:25 PM

I was provided with the Champion's League table and was able to identify the bug. Update to the lastest (0.1.2) release to fix this ! Thanks all ! As always, please provide feedback to help me fix any incoming bug



#48 Thalamus

Thalamus

    Pinball Wizard

  • Platinum Supporter
  • 4,952 posts

  • Flag: Norway

  • Favorite Pinball: GOT, Alien Star, LOTR, TOM

Posted 02 February 2020 - 04:40 PM

That is great news @vbousquet : Thanks again for you work. I've actually started playing a few of these UltraDMD tables all over again. All because of you I should add.

 

And update : Yes, Champions League tables work flawlessly here ! :)


Edited by Thalamus, 02 February 2020 - 05:00 PM.

From now on. I won't help anyone here at VPF. Please ask Noah why that is.


#49 NailBuster

NailBuster

    Enthusiast

  • Members
  • PipPipPip
  • 300 posts

  • Flag: Canada

  • Favorite Pinball: YES

Posted 02 February 2020 - 06:25 PM

Quick Question:  does flexdmd emulation of UltraDMD avoid the 2^32 score bug?  don't know if you tested it but scores above 2 billion would cause Diablo to crash.  I assume it was an ultradmd bug and not a table script bug...I wouldn't know as i never get high scores like that :)

 

Also, an option to support comma #'s in scores so that 433748374 turns to 443,748,374.

 

great to see its working this well so far!



#50 vbousquet

vbousquet

    Enthusiast

  • Members
  • PipPipPip
  • 108 posts

  • Flag: France

  • Favorite Pinball: Cue Ball Wizard, Tron Legacy, Terminator 2

Posted 02 February 2020 - 07:06 PM

Never thought of testing score that big. Just made a quick test ; the current release (0.1.2) will be ok up to 2,147,483,647 (signed int 32). I have just made a change in order that next release (0.1.3) will be 64bits, letting you perform incredible scores !

 

In FlexDMD, the default rendering for the scoreboard is with commas, even when used as an UltraDMD replacement. I think UltraDMD did not use commas because it did not support variable width fonts. Since FlexDMD only use variable font, there were no point not putting commas in scores.



#51 Oldschool4

Oldschool4

    Enthusiast

  • Members
  • PipPipPip
  • 65 posts

  • Flag: Australia

  • Favorite Pinball: Metallica

Posted 02 February 2020 - 09:34 PM

Just test CL 17 & 18,no issues, touch wood,  :dblthumb:  thankyou   

vbousquet


Edited by Oldschool4, 02 February 2020 - 09:36 PM.


#52 Gwenydd

Gwenydd

    Hobbyist

  • Members
  • PipPip
  • 37 posts
  • Location:Ferndale, WA

  • Flag: United States of America

  • Favorite Pinball: Twilight Zone, AFM, Tron Legacy, Star Trek

Posted 02 February 2020 - 10:30 PM

OK I tested Miraculous and Pokemon on my Pin2-DMD and both work beautifully.  Full color working now for the tables that need it.  I have officially stopped using UltraDMD now =).


Edited by Gwenydd, 02 February 2020 - 10:31 PM.


#53 Gwenydd

Gwenydd

    Hobbyist

  • Members
  • PipPip
  • 37 posts
  • Location:Ferndale, WA

  • Flag: United States of America

  • Favorite Pinball: Twilight Zone, AFM, Tron Legacy, Star Trek

Posted 02 February 2020 - 11:54 PM

I'm finding it ridiculously easy to fix all my UltraDMD tables by adding the following code on the line above "UltraDMD.init":

 

'===============================FlexDMD===============Insert immediately above "UltraDMD.Init"=================

Dim FlexDMD

    Set FlexDMD = CreateObject("FlexDMD.FlexDMD")

    If FlexDMD is Nothing Then

  MsgBox "No UltraDMD found.  This table MAY run without it."

        Exit Sub

    End If

    FlexDMD.GameName = cGameName

Set UltraDMD = FlexDMD.NewUltraDMD()

FlexDMD.RenderMode = 2     'Uncomment to use full colorDMD

'   FlexDMD.Color = &hFFFF00    'Uncomment and set color for monochrome DMD

'==============================================================================================================



#54 xantari

xantari

    Enthusiast

  • Platinum Supporter
  • 154 posts

  • Flag: United States of America

  • Favorite Pinball: Star Trek TNG

Posted 03 February 2020 - 01:31 AM

This is awesome! And in C# and open source to boot! Thanks for your contributions to the community!


Edited by xantari, 03 February 2020 - 01:31 AM.


#55 Oldschool4

Oldschool4

    Enthusiast

  • Members
  • PipPipPip
  • 65 posts

  • Flag: Australia

  • Favorite Pinball: Metallica

Posted 03 February 2020 - 06:46 AM

Question: Has anyone got there Champions League dmds in colour, been playing around with the script for ages,cant get colour,only monochrome.If so how please? Cheers.


Edited by Oldschool4, 03 February 2020 - 07:56 AM.


#56 Gwenydd

Gwenydd

    Hobbyist

  • Members
  • PipPip
  • 37 posts
  • Location:Ferndale, WA

  • Flag: United States of America

  • Favorite Pinball: Twilight Zone, AFM, Tron Legacy, Star Trek

Posted 03 February 2020 - 08:04 AM

Question: Has anyone got there Champions League dmds in colour, been playing around with the script for ages,cant get colour,only monochrome.If so how please? Cheers.

 

I have not been able to get it to run in full color yet either.



#57 vbousquet

vbousquet

    Enthusiast

  • Members
  • PipPipPip
  • 108 posts

  • Flag: France

  • Favorite Pinball: Cue Ball Wizard, Tron Legacy, Terminator 2

Posted 03 February 2020 - 12:48 PM

Champions League use UltraDMD_Options.vbs which makes the thing a bit more difficult. I think the easiest way is to not use its Init/Exit functions;

 

> Replace InitUltraDMD cAssetsFolder,cGameName by:

 Dim FlexDMD
 Set FlexDMD = CreateObject("FlexDMD.FlexDMD")
 If FlexDMD is Nothing Then
        MsgBox "No UltraDMD found.  This table MAY run without it."
        Exit Sub
 End If
 FlexDMD.GameName = cGameName
 FlexDMD.RenderMode = 2   ' Uncomment to use full colorDMD
 '   FlexDMD.Color = &hFFFF00    ' Uncomment and set color for monochrome DMD
 Set UltraDMD = FlexDMD.NewUltraDMD()
 Dim fso,curDir
 Set fso = CreateObject("Scripting.FileSystemObject")
 curDir = fso.GetAbsolutePathName(".")
 UltraDMD.SetProjectFolder curDir & "\"& cAssetsFolder &".UltraDMD"

> Replace ExitUltraDMD by:

   If Not UltraDMD is Nothing Then 
        If UltraDMD.IsRendering Then
            UltraDMD.CancelRendering
        End If
        UltraDMD.Uninit
        UltraDMD = NULL
    End If

I did not test it but it should work.


Edited by vbousquet, 03 February 2020 - 01:03 PM.


#58 Thalamus

Thalamus

    Pinball Wizard

  • Platinum Supporter
  • 4,952 posts

  • Flag: Norway

  • Favorite Pinball: GOT, Alien Star, LOTR, TOM

Posted 03 February 2020 - 08:22 PM

Maybe - for the long run it would be a better idea if we added a FlexDMD_Options.vbs to VP ?!


From now on. I won't help anyone here at VPF. Please ask Noah why that is.


#59 NailBuster

NailBuster

    Enthusiast

  • Members
  • PipPipPip
  • 300 posts

  • Flag: Canada

  • Favorite Pinball: YES

Posted 03 February 2020 - 08:35 PM

i tried installing flexdmd and it wouldn't register with the button "register" on flexdmdui.  pressed it and UAC came up and pressed yes then nothing, stayed unregistered.

 

the get it to work/register.  I had to select the file location again in flexUI (i noticed the location had removed the trailing '\' from the location).   so it was either the trailing '\' in location or having to select the location again (on startup of UI it did have correct location but with a training '\'). 



#60 vbousquet

vbousquet

    Enthusiast

  • Members
  • PipPipPip
  • 108 posts

  • Flag: France

  • Favorite Pinball: Cue Ball Wizard, Tron Legacy, Terminator 2

Posted 03 February 2020 - 09:30 PM

I have just made a new beta release that fixes all the reported problems ;

  • For Champion's League, the UltraDMD replacement now reads the UltraDMD settings from the registry, just like UltraDMD. So it should fully work as a drop-in replacement now (no need to touch the script),
  • For Diablo, scores are 64bits now, avoiding crashes for very high scores (I tested it with 4,000,000,000 and it's ok !),
  • The little instal bug (trailing '/' causing problems) is now fixed.

So, again, please update to the latest (0.1.3) release and report any bug.

 

For the proposition to have a FlexDMD_Options.vbs, I would prefer avoiding it and have to clean mode ; either a drop-in replacement of UltraDMD (without needing anything) or table designed to use FlexDMD not needing an additional script. The FlexDMD API is still not used that much and I think it's far too early to think for a common script.

 

Regards,

 

      Vincent


Edited by vbousquet, 03 February 2020 - 09:33 PM.






Also tagged with one or more of these keywords: UltraDMD, DMD