freezy / dmd-extensions

A toolbox for virtual pinball dot matrix displays.
GNU General Public License v2.0
132 stars 55 forks source link

v1.7.x and TMNT WIP crashes VPinMame #114

Closed coreduo0099 closed 6 years ago

coreduo0099 commented 6 years ago

per thread.. http://vpuniverse.com/forums/topic/3616-tmnt/

v1.7.x and TMNT WIP crashes VPinMame I have tons of altcolor modded tables so I thought I'd try this WIP out. It crashes VP when running on my vpin cabinet. the log shows a path I don't have or understand.

using 1.7.1.0 version of dmddevice.dll and tried 1.7.0 and it does the same. using dmdext from dmdext-v1.7.0-x86.zip in my VPinMame directory. setup test and VP9 both with same results.

 [9] 2018/06/30 12:40:45.574  INFO | Determined color path from assembly path: E:\Emulator\Pinball_emu\VPinMame\altcolor 
 [9] 2018/06/30 12:40:45.616  INFO | Starting VPinMAME API through VPinball99_PhysMod5_Updated.exe. 
 [9] 2018/06/30 12:40:45.622  INFO | [vpm] Open() 
 [9] 2018/06/30 12:40:45.622  INFO | [vpm] Set_4_Colors_Palette() 
 [9] 2018/06/30 12:40:45.622  INFO | Setting palette to 4 colors... 
 [9] 2018/06/30 12:40:45.622  INFO | [vpm] PM_GameSettings(1) 
 [9] 2018/06/30 12:40:45.641  INFO | Enabling game colorization 
 [9] 2018/06/30 12:40:45.641  INFO | Setting game name: tmnt_104 
 [9] 2018/06/30 12:40:45.641  INFO | Setting color: #FF00FF80 
 [9] 2018/06/30 12:40:45.665  INFO | Loading palette file at E:\Emulator\Pinball_emu\VPinMame\altcolor\tmnt_104\pin2dmd.pal... 
 [9] 2018/06/30 12:40:45.674 TRACE | PAL[1] Read version as 1 
 [9] 2018/06/30 12:40:45.674 TRACE | PAL[3] Read number of palettes as 22 
 [9] 2018/06/30 12:40:45.685 TRACE | PAL[1171] Read number of mappings as 23 
 [9] 2018/06/30 12:40:45.685 TRACE | PAL[1425] Read number of masks as 24 
 [9] 2018/06/30 12:40:45.685  INFO | Loading virtual animation file at E:\Emulator\Pinball_emu\VPinMame\altcolor\tmnt_104\pin2dmd.vni... 
 [9] 2018/06/30 12:40:45.704 TRACE | VNI[8] Skipping 84 bytes of animation indexes. 
 [9] 2018/06/30 12:40:45.704 DEBUG | VNI[92] Reading 21 animations from VPIN v4... 
 [9] 2018/06/30 12:40:45.704 DEBUG | VNI[129] Reading 1 frame for animation "BlueBelt"... 
 [9] 2018/06/30 12:40:45.720 DEBUG | VNI[2743] Reading 1 frame for animation "YellowBelt"... 
 [9] 2018/06/30 12:40:45.720 DEBUG | VNI[5353] Reading 17 frames for animation "4names"... 
 [9] 2018/06/30 12:40:45.720 DEBUG | VNI[49174] Reading 32 frames for animation "Eyes- replacement"... 
 [9] 2018/06/30 12:40:45.738 DEBUG | VNI[131620] Reading 16 frames for animation "TwinMilLitesSewer"... 
 [9] 2018/06/30 12:40:45.738 DEBUG | VNI[172861] Reading 20 frames for animation "TMNT-GoNinja"... 
 [9] 2018/06/30 12:40:45.750 DEBUG | VNI[224408] Reading 16 frames for animation "PlungerDoubleSkill"... 
 [9] 2018/06/30 12:40:45.750 DEBUG | VNI[265646] Reading 1 frame for animation "LoopEntry"... 
 [9] 2018/06/30 12:40:45.750 DEBUG | VNI[268260] Reading 1 frame for animation "OrangeBelt"... 
 [9] 2018/06/30 12:40:45.765 DEBUG | VNI[270880] Reading 15 frames for animation "Muti-Sewer-Lites"... 
 [9] 2018/06/30 12:40:45.765 DEBUG | VNI[309547] Reading 9 frames for animation "Spell TURTLES"... 
 [9] 2018/06/30 12:40:45.765 DEBUG | VNI[332757] Reading 5 frames for animation "swirls"... 
 [9] 2018/06/30 12:40:45.780 DEBUG | VNI[345673] Reading 41 frames for animation "Replay Value"... 
 [9] 2018/06/30 12:40:45.780 DEBUG | VNI[451287] Reading 1 frame for animation "PurpleBelt"... 
 [9] 2018/06/30 12:40:45.780 DEBUG | VNI[453906] Reading 43 frames for animation "DataEastPinball"... 
 [9] 2018/06/30 12:40:45.801 DEBUG | VNI[564667] Reading 169 frames for animation "T-M-N-T"... 
 [9] 2018/06/30 12:40:45.813 DEBUG | VNI[999882] Reading 16 frames for animation "CaptiveBall"... 
 [9] 2018/06/30 12:40:45.813 DEBUG | VNI[1041120] Reading 4 frames for animation "BlackBelt"... 
 [9] 2018/06/30 12:40:45.825 DEBUG | VNI[1051457] Reading 42 frames for animation "Presents"... 
 [9] 2018/06/30 12:40:45.825 DEBUG | VNI[1159645] Reading 1 frame for animation "BrownBelt"... 
 [9] 2018/06/30 12:40:45.825 DEBUG | VNI[1162258] Reading 36 frames for animation "TMNT Logo"... 
 [9] 2018/06/30 12:40:45.846  INFO | Loaded animation set VPIN v4, 21 animation(s) 
 [9] 2018/06/30 12:40:45.857 DEBUG | [colorize] Setting new palette (2): [ #FF000000 #FF001100 #FF002200 #FF003300 #FF004400 #FF005500 #FF006600 #FF007700 #FF008800 #FF009900 #FF00AA00 #FF00BB00 #FF00CC00 #FF00DD00 #FF00EE00 #FF00FF00 ] 
 [9] 2018/06/30 12:40:45.857  INFO | Opening virtual DMD... 
[13] 2018/06/30 12:40:45.950  INFO | Found B2S, moving behind DMD. 
[13] 2018/06/30 12:40:45.950  INFO | Added VirtualDMD renderer. 
[13] 2018/06/30 12:40:45.980  INFO | PinUP DLL starting tmnt_104... 
[13] 2018/06/30 12:40:45.994  INFO | Added PinUP renderer. 
[13] 2018/06/30 12:40:46.000  INFO | Transformation options: Resize=Fit, HFlip=False, VFlip=False 
[13] 2018/06/30 12:40:46.000  INFO | Just clearing palette, colorization is done by converter. 
 [9] 2018/06/30 12:40:46.000  INFO | 2-Bit Colorizer received new dimensions: 128x32 => 128x16. 
[13] 2018/06/30 12:40:46.022  INFO | Resizing virtual DMD to 128x32 
 [9] 2018/06/30 12:40:46.029  INFO | Resizing virtual DMD to 128x16 
[13] 2018/06/30 12:40:46.029  INFO | Setting up 2-bit Colored VPM Graph for 2 destination(s) 
[13] 2018/06/30 12:40:46.079  INFO | Connecting 2-Bit Colorizer to Dmd (ColoredGray2 => Rgb24) 
[13] 2018/06/30 12:40:46.092  INFO | Connecting 2-Bit Colorizer to Dmd (ColoredGray4 => Rgb24) 
[13] 2018/06/30 12:40:46.092  INFO | Connecting VPM 2-bit Source to PinUP Writer (Gray2 => Gray2) 
[13] 2018/06/30 12:40:46.092  INFO | Setting up 4-bit Colored VPM Graph for 2 destination(s) 
[13] 2018/06/30 12:40:46.110  INFO | Connecting 4-Bit Colorizer to Dmd (ColoredGray2 => Rgb24) 
[13] 2018/06/30 12:40:46.110  INFO | Connecting 4-Bit Colorizer to Dmd (ColoredGray4 => Rgb24) 
[13] 2018/06/30 12:40:46.110  INFO | Connecting VPM 4-bit Source to PinUP Writer (Gray4 => Gray4) 
[13] 2018/06/30 12:40:46.123  INFO | Setting up RGB24-bit VPM Graph for 2 destination(s) 
[13] 2018/06/30 12:40:46.123  INFO | Connecting VPM RGB24 Source to Dmd (Rgb24 => Rgb24) 
[13] 2018/06/30 12:40:46.123  INFO | Connecting VPM RGB24 Source to PinUP Writer (Rgb24 => Bitmap) 
 [9] 2018/06/30 12:40:46.429 ERROR | System.ArgumentException: Array lengths must be the same.
   at System.Collections.BitArray.And(BitArray value)
   at LibDmd.Converter.Gray2Colorizer.FindMapping(Byte[][] planes) in C:\source\dmdextensions\LibDmd\Converter\Gray2Colorizer.cs:line 193
   at LibDmd.Converter.Gray2Colorizer.TriggerAnimation(Byte[][] planes) in C:\source\dmdextensions\LibDmd\Converter\Gray2Colorizer.cs:line 104
   at LibDmd.Converter.Gray2Colorizer.Convert(Byte[] frame) in C:\source\dmdextensions\LibDmd\Converter\Gray2Colorizer.cs:line 86
   at System.Reactive.Linq.ObservableImpl.Do`1._.OnNext(TSource value)
--- End of stack trace from previous location where exception was thrown ---
   at System.Reactive.PlatformServices.DefaultExceptionServices.Rethrow(Exception exception)
   at System.Reactive.Stubs.<.cctor>b__1(Exception ex)
   at System.Reactive.AnonymousSafeObserver`1.OnError(Exception error)
   at System.Reactive.Linq.ObservableImpl.Do`1._.OnNext(TSource value)
   at System.Reactive.Observer`1.OnNext(T value)
   at LibDmd.Input.PinMame.VpmGray2Source.NextFrame(Int32 width, Int32 height, Byte[] frame) in C:\source\dmdextensions\LibDmd\Input\PinMame\VpmGray2Source.cs:line 37
   at LibDmd.DmdDevice.DmdDevice.RenderGray2(Int32 width, Int32 height, Byte[] frame) in C:\source\dmdextensions\LibDmd\DmdDevice\DmdDevice.cs:line 494
   at PinMameDevice.DmdDevice.RenderGray2(UInt16 width, UInt16 height, IntPtr currbuffer)

If I uncheck "Colorize DMD 4 colors" in the rom options, the log file is totally clean. virtual dmd works but not colorized.

 [1] 2018/06/30 14:41:54.137  INFO | Determined color path from assembly path: E:\Emulator\Pinball_emu\VPinMame\altcolor 
 [1] 2018/06/30 14:41:54.163  INFO | Starting VPinMAME API through Setup.exe. 
 [1] 2018/06/30 14:41:54.163  INFO | [vpm] Open() 
 [1] 2018/06/30 14:41:54.163  INFO | [vpm] PM_GameSettings(0) 
 [1] 2018/06/30 14:41:54.163  INFO | Disabling game colorization 
 [1] 2018/06/30 14:41:54.163  INFO | Setting game name: tmnt_104 
 [1] 2018/06/30 14:41:54.163  INFO | Setting color: #FF00FF80 
 [1] 2018/06/30 14:41:54.176  INFO | Loading palette file at E:\Emulator\Pinball_emu\VPinMame\altcolor\tmnt_104\pin2dmd.pal... 
 [1] 2018/06/30 14:41:54.176 TRACE | PAL[1] Read version as 2 
 [1] 2018/06/30 14:41:54.176 TRACE | PAL[3] Read number of palettes as 22 
 [1] 2018/06/30 14:41:54.176 TRACE | PAL[1171] Read number of mappings as 23 
 [1] 2018/06/30 14:41:54.176 TRACE | PAL[1425] Read number of masks as 24 
 [1] 2018/06/30 14:41:54.176  INFO | Loading virtual animation file at E:\Emulator\Pinball_emu\VPinMame\altcolor\tmnt_104\pin2dmd.vni... 
 [1] 2018/06/30 14:41:54.185 TRACE | VNI[8] Skipping 84 bytes of animation indexes. 
 [1] 2018/06/30 14:41:54.185 DEBUG | VNI[92] Reading 21 animations from VPIN v4... 
 [1] 2018/06/30 14:41:54.185 DEBUG | VNI[129] Reading 1 frame for animation "BlueBelt"... 
 [1] 2018/06/30 14:41:54.185 DEBUG | VNI[2743] Reading 1 frame for animation "YellowBelt"... 
 [1] 2018/06/30 14:41:54.185 DEBUG | VNI[5353] Reading 17 frames for animation "4names"... 
 [1] 2018/06/30 14:41:54.185 DEBUG | VNI[49174] Reading 32 frames for animation "Eyes- replacement"... 
 [1] 2018/06/30 14:41:54.185 DEBUG | VNI[131620] Reading 16 frames for animation "TwinMilLitesSewer"... 
 [1] 2018/06/30 14:41:54.185 DEBUG | VNI[172861] Reading 20 frames for animation "TMNT-GoNinja"... 
 [1] 2018/06/30 14:41:54.185 DEBUG | VNI[224408] Reading 16 frames for animation "PlungerDoubleSkill"... 
 [1] 2018/06/30 14:41:54.185 DEBUG | VNI[265646] Reading 1 frame for animation "LoopEntry"... 
 [1] 2018/06/30 14:41:54.185 DEBUG | VNI[268260] Reading 1 frame for animation "OrangeBelt"... 
 [1] 2018/06/30 14:41:54.185 DEBUG | VNI[270880] Reading 15 frames for animation "Muti-Sewer-Lites"... 
 [1] 2018/06/30 14:41:54.185 DEBUG | VNI[309547] Reading 9 frames for animation "Spell TURTLES"... 
 [1] 2018/06/30 14:41:54.185 DEBUG | VNI[332757] Reading 5 frames for animation "swirls"... 
 [1] 2018/06/30 14:41:54.185 DEBUG | VNI[345673] Reading 41 frames for animation "Replay Value"... 
 [1] 2018/06/30 14:41:54.201 DEBUG | VNI[451287] Reading 1 frame for animation "PurpleBelt"... 
 [1] 2018/06/30 14:41:54.201 DEBUG | VNI[453906] Reading 43 frames for animation "DataEastPinball"... 
 [1] 2018/06/30 14:41:54.201 DEBUG | VNI[564667] Reading 169 frames for animation "T-M-N-T"... 
 [1] 2018/06/30 14:41:54.201 DEBUG | VNI[999882] Reading 16 frames for animation "CaptiveBall"... 
 [1] 2018/06/30 14:41:54.201 DEBUG | VNI[1041120] Reading 4 frames for animation "BlackBelt"... 
 [1] 2018/06/30 14:41:54.201 DEBUG | VNI[1051457] Reading 42 frames for animation "Presents"... 
 [1] 2018/06/30 14:41:54.201 DEBUG | VNI[1159645] Reading 1 frame for animation "BrownBelt"... 
 [1] 2018/06/30 14:41:54.201 DEBUG | VNI[1162258] Reading 36 frames for animation "TMNT Logo"... 
 [1] 2018/06/30 14:41:54.201  INFO | Loaded animation set VPIN v4, 21 animation(s) 
 [1] 2018/06/30 14:41:54.219 DEBUG | [colorize] Setting new palette (2): [ #FF000000 #FF001100 #FF002200 #FF003300 #FF004400 #FF005500 #FF006600 #FF007700 #FF008800 #FF009900 #FF00AA00 #FF00BB00 #FF00CC00 #FF00DD00 #FF00EE00 #FF00FF00 ] 
 [1] 2018/06/30 14:41:54.219  INFO | Opening virtual DMD... 
 [8] 2018/06/30 14:41:54.275  INFO | Added VirtualDMD renderer. 
 [8] 2018/06/30 14:41:54.284  INFO | PinUP DLL starting tmnt_104... 
 [8] 2018/06/30 14:41:54.284  INFO | Added PinUP renderer. 
 [8] 2018/06/30 14:41:54.284  INFO | Transformation options: Resize=Fit, HFlip=False, VFlip=False 
 [8] 2018/06/30 14:41:54.284  INFO | Applying default color to render graphs (#FF00FF80). 
 [8] 2018/06/30 14:41:54.297  INFO | Resizing virtual DMD to 128x32 
 [1] 2018/06/30 14:41:54.297  INFO | VPM 2-bit Source received new dimensions: 128x32 => 128x16. 
 [1] 2018/06/30 14:41:54.297  INFO | Resizing virtual DMD to 128x16 
 [8] 2018/06/30 14:41:54.297  INFO | Setting up 2-bit VPM Graph for 2 destination(s) 
 [8] 2018/06/30 14:41:54.310  INFO | Connecting VPM 2-bit Source to Dmd (Gray2 => Rgb24) 
 [8] 2018/06/30 14:41:54.343  INFO | Connecting VPM 2-bit Source to PinUP Writer (Gray2 => Gray2) 
 [8] 2018/06/30 14:41:54.343  INFO | Setting up 4-bit VPM Graph for 2 destination(s) 
 [8] 2018/06/30 14:41:54.343  INFO | Connecting VPM 4-bit Source to Dmd (Gray4 => Rgb24) 
 [8] 2018/06/30 14:41:54.343  INFO | Connecting VPM 4-bit Source to PinUP Writer (Gray4 => Gray4) 
 [8] 2018/06/30 14:41:54.343  INFO | Setting up RGB24-bit VPM Graph for 2 destination(s) 
 [8] 2018/06/30 14:41:54.343  INFO | Connecting VPM RGB24 Source to Dmd (Rgb24 => Rgb24) 
 [8] 2018/06/30 14:41:54.343  INFO | Connecting VPM RGB24 Source to PinUP Writer (Rgb24 => Bitmap) 
 [1] 2018/06/30 14:42:03.482  INFO | [vpm] Close() 
 [1] 2018/06/30 14:42:03.482  INFO | Closing up. 
 [1] 2018/06/30 14:42:03.482 DEBUG | Disposing 2-bit VPM Graph... 
 [1] 2018/06/30 14:42:03.482  INFO | Source for 2 renderer(s) stopped. 
 [1] 2018/06/30 14:42:03.482 DEBUG | Disposing 4-bit VPM Graph... 
 [1] 2018/06/30 14:42:03.482  INFO | Source for 2 renderer(s) stopped. 
 [1] 2018/06/30 14:42:03.482 DEBUG | Disposing RGB24-bit VPM Graph... 
 [1] 2018/06/30 14:42:03.482  INFO | Source for 2 renderer(s) stopped.

Thanks.

freezy commented 6 years ago

@djrobx I suppose that's fixed now by #115?

djrobx commented 6 years ago

Correct - this was the former result of trying to apply a 128x32 PAL+VNI over a 128x16 input. You can close it. :) I gave him a test build and he confirmed the update worked.

freezy commented 6 years ago

Cheers!