Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pinball FX3 and Pinball Arcade not working with new freezy 2.20 #410

Closed
halencarvalho opened this issue Aug 23, 2023 · 5 comments
Closed

Comments

@halencarvalho
Copy link

My visual pinball is working for colorize.

I've tested several settings on the command line and dmddevice.ini. Serum is working but for Pac.files none.

When i run Pinball FX3 with the new command line Serum colorize works like a charm!!

[15] 2023/08/22 14:14:48.303 INFO | Process found, starting capturing...
[15] 2023/08/22 14:14:48.303 INFO | Reading DMD data from Pinball FX3's memory at 25 fps...
[15] 2023/08/22 14:14:48.303 INFO | Frames coming in from Pinball FX3.
[10] 2023/08/22 14:15:35.171 INFO | Found Pinball FX3 game: BALLY_Champion_Pub
[10] 2023/08/22 14:15:35.235 INFO | [serum] Found 0 triggers to emit.
[10] 2023/08/22 14:15:35.235 INFO | [serum] Serum colorizer v1.6 initialized.
[10] 2023/08/22 14:15:35.235 INFO | [serum] Loading colorization at D:\Pinball\Visual Pinball\VPinMAME\altcolor\BALLY_Champion_Pub\BALLY_Champion_Pub.cRZ...
[10] 2023/08/22 14:15:35.235 INFO | Switching Converter (Passthrough) switching to Serum
[5] 2023/08/22 14:15:58.227 INFO | Terminating DMD data capture from Pinball FX3
[5] 2023/08/22 14:15:58.227 INFO | Frames stopped from Pinball FX3.
[5] 2023/08/22 14:15:58.227 INFO | Waiting for Pinball FX3 process to start...

But for PAC files:

[16] 2023/08/22 14:09:56.123 INFO | [serum] No colorization found at D:\Pinball\Visual Pinball\VPinMAME\altcolor\BALLY_Attack_from_Mars\BALLY_Attack_from_Mars.cRZ...
[16] 2023/08/22 14:09:56.123 INFO | [plugin] Determined pin2color.dll path from assembly path: D:\Pinball\Visual Pinball\VPinMAME\pin2color.dll
[16] 2023/08/22 14:09:56.123 ERROR | [plugin] Error loading plugin at D:\Pinball\Visual Pinball\VPinMAME\pin2color.dll.
[16] 2023/08/22 14:09:56.123 WARN | Error initializing colorizer: No PAC key found. Set it in DmdDevice.ini under vni.key. System.ArgumentException: No PAC key found. Set it in DmdDevice.ini under vni.key.
at LibDmd.Converter.Vni.VniLoader.LoadPac(String vniKey)
at LibDmd.Converter.Vni.VniLoader.Load(String vniKey)
at LibDmd.Converter.Vni.ColorizationLoader.LoadVniColorizer(String gameName, ScalerMode scalerMode, String vniKey)
[16] 2023/08/22 14:09:56.123 INFO | Switching Converter (Passthrough) switching to Passthrough.

@sundogak
Copy link

You need to set the PAC key in the DmdDevice.ini file as it notes in error. It won't open PAC format files without the key. See https://vpuniverse.com/forums/topic/9051-new-release-v220-final/

@MikedaSpike
Copy link

this is a bit of odd one, but figured it out
@sundogak is right, but by default DMDEXT.EXE isn't configured to use an INI file.
This can be added to the DMDEXT parameter.
If I add --use-ini "c:\pinball\visual Pinball\Vpinmame\DMDdevice.ini" to my DMD launch parameter PAC files are working to FX3

Here's the first part of my log :

2023-08-24 06:41:56.0674|DEBUG|LibDmd.RenderGraph|Disposing Pinball FX3 Render Graph...
2023-08-24 06:41:56.0674|INFO|LibDmd.RenderDisposable|Source for 4 renderer(s) stopped.
2023-08-24 06:44:53.5343|INFO|DmdExt.DmdExt|Launching console tool v2.2.1-SNAPSHOT-r11 (bb35e25)
2023-08-24 06:44:53.5838|INFO|LibDmd.DmdDevice.Configuration|Successfully loaded config from c:\pinball\visual Pinball\Vpinmame\DMDdevice.ini.
2023-08-24 06:44:54.8962|INFO|LibDmd.Output.PinDmd3.PinDmd3|Checking port COM1 for PinDMDv3...
2023-08-24 06:44:55.0463|INFO|LibDmd.Output.PinDmd3.PinDmd3|Trusting that PinDMDv3 sits on port COM1.
2023-08-24 06:44:55.0463|DEBUG|LibDmd.Output.PinDmd3.PinDmd3|   Firmware:    REV-vPin-01014
2023-08-24 06:44:55.0463|DEBUG|LibDmd.Output.PinDmd3.PinDmd3|   Resolution:  128x32
2023-08-24 06:44:55.0463|DEBUG|LibDmd.Output.PinDmd3.PinDmd3|   Revision:    1014
2023-08-24 06:44:55.0463|INFO|LibDmd.Output.PinDmd3.PinDmd3|Colored 4-bit frames for PinDMDv3 enabled.
2023-08-24 06:44:55.1649|INFO|DmdExt.Common.BaseCommand|Added PinDMDv3 renderer.
2023-08-24 06:44:55.1649|INFO|LibDmd.Common.PathUtil|[serum] Determined altcolor path from VPinMAME registry: C:\pinball\Visual Pinball\VPinMAME\altcolor
2023-08-24 06:44:55.1892|WARN|DmdExt.DmdExt|Error opening PinUP output: ROM name must not be null.
2023-08-24 06:44:55.2151|INFO|LibDmd.RenderGraph|Setting up Pinball FX3 Render Graph for 1 destination(s) [ PinDMD v3 ]
2023-08-24 06:44:55.2151|INFO|LibDmd.RenderGraph|  == Listening to Pinball FX3 for Switching Converter (Passthrough) (Gray2)
2023-08-24 06:44:55.2151|INFO|LibDmd.Input.MemoryGrabber`1|Waiting for Pinball FX3 process to start...
2023-08-24 06:44:55.2399|INFO|LibDmd.RenderGraph|  ** Linking converter Switching Converter (Passthrough) to PinDMD v3...
2023-08-24 06:44:55.2536|INFO|LibDmd.RenderGraph|    -> Connecting Switching Converter (Passthrough) to PinDMD v3 (ColoredGray2 -> ColoredGray2)
2023-08-24 06:44:55.2668|INFO|LibDmd.RenderGraph|    -> Connecting Switching Converter (Passthrough) to PinDMD v3 (ColoredGray4 -> ColoredGray4)
2023-08-24 06:44:55.2668|WARN|LibDmd.RenderGraph|    -- Destination doesn't support colored 6-bit frames from converter, converting to RGB source.
2023-08-24 06:44:55.2668|INFO|LibDmd.RenderGraph|    -> Connecting Switching Converter (Passthrough) to PinDMD v3 (ColoredGray6 -> Rgb24)
2023-08-24 06:44:55.2668|INFO|DmdExt.DmdExt|Press CTRL+C to close.
2023-08-24 06:44:55.2850|INFO|LibDmd.Input.MemoryGrabber`1|Process found, starting capturing...
2023-08-24 06:44:55.2850|INFO|LibDmd.Input.MemoryGrabber`1|Reading DMD data from Pinball FX3's memory at 25 fps...
2023-08-24 06:44:55.2850|INFO|LibDmd.RenderGraph|Frames coming in from Pinball FX3.
2023-08-24 06:45:00.0791|INFO|LibDmd.Input.MemoryGrabber`1|Found Pinball FX3 game: BALLY_BlackRose
2023-08-24 06:45:00.0791|INFO|LibDmd.Converter.Vni.ColorizationLoader|[serum] No colorization found at C:\pinball\Visual Pinball\VPinMAME\altcolor\BALLY_BlackRose...
2023-08-24 06:45:00.0938|INFO|LibDmd.Converter.Vni.VniLoader|[vni] Loading PAC file at C:\pinball\Visual Pinball\VPinMAME\altcolor\BALLY_BlackRose\BALLY_BlackRose.pac...
2023-08-24 06:45:00.1020|TRACE|LibDmd.Converter.Vni.PalFile|[vni] PAL[1] Read version as 2
2023-08-24 06:45:00.1020|TRACE|LibDmd.Converter.Vni.PalFile|[vni] PAL[3] Read number of palettes as 25
2023-08-24 06:45:00.1020|TRACE|LibDmd.Converter.Vni.PalFile|[vni] PAL[4930] Read number of mappings as 164
2023-08-24 06:45:00.1020|TRACE|LibDmd.Converter.Vni.PalFile|[vni] PAL[6735] Read number of masks as 23
2023-08-24 06:45:00.1391|TRACE|LibDmd.Converter.Vni.AnimationSet|[vni] VNI[8] Skipping 468 bytes of animation indexes.
2023-08-24 06:45:00.1391|DEBUG|LibDmd.Converter.Vni.AnimationSet|[vni] VNI[476] Reading 117 animations from VPIN v5...
2023-08-24 06:45:00.1391|DEBUG|LibDmd.Converter.Vni.FrameSeq|[vni] VNI[1050] Reading 1 frame for animation "Status Report Most Ship Sunk"...
2023-08-24 06:45:00.1391|DEBUG|LibDmd.Converter.Vni.FrameSeq|[vni] VNI[5215] Reading 1 frame for animation "High Score Award 1"...
2023-08-24 06:45:00.1391|DEBUG|LibDmd.Converter.Vni.FrameSeq|[vni] VNI[9368] Reading 1 frame for animation "3 Ball"...
2023-08-24 06:45:00.1391|DEBUG|LibDmd.Converter.Vni.FrameSeq|[vni] VNI[13532] Reading 5 frames for animation "Coin Treasure LCM"...
2023-08-24 06:45:00.1391|DEBUG|LibDmd.Converter.Vni.FrameSeq|[vni] VNI[32101] Reading 1 frame for animation "Great Score Player"...

I can't find an option to add directly the vni.key to the parameter and nor that the environment variable is working to get the dmddevice.ini.
@freezy whats your opinion

  • Should DMDext.exe by default use the dmddevice.ini from the system environment variable ?
  • Should DMDext.exe have a command line parameter for adding the vni key ? (so FX3 and TPA can use it)
  • Or should just DMDext.exe be use with '--use-ini'

Let me know your thoughts, and I can create a feature request as well if one of the first 2 options should be added (or both)

@halencarvalho
Copy link
Author

Thanks Mike.
Now the colorize for Pinball FX3 is working but does not positioning the DMD. The command line --virtual-position 2204 633 845 122 is not working.

I try to add a line in dmddevice.ini:

[BALLY_Attack_from_Mars]
virtualdmd left = 2204
virtualdmd top = 633
virtualdmd width = 845
virtualdmd height = 122

I click on the dmd with the right mouse button and tried to save the position but it only shows the option to save globally.

The dmd works wiht global parameters set in dmddevice.ini. The DMDEXT dont read the position. If you have a 3 screens the position is not the problem you work with global position.

@xantari
Copy link
Contributor

xantari commented Aug 24, 2023

@MikedaSpike there is a command line option for adding the key: --pac-key

@halencarvalho
Copy link
Author

Yes Xantari!!!

The command line is:

mirror --source=pinballfx3 --virtual-stay-on-top --fps 60 --virtual-position 2195 580 805 130 --colorize ----pac-key xxxxxxxxxxx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants