Jump to content

Could Not Init Ledwiz Error - Please Help


cjpanici

Recommended Posts

Hello, I am in need of some help with DOF! I tested out my LEDWiz and all outputs are (pretty much) working, so I know that this is not a hardware issue with the LEDWiz. I am wondering if I don't have the "correct" ledwiz for my configuration?

 

Any help is greatly appreciated. I am chopping at the bit to get this thing up and running...yes, it is a new install; I probably should have said that. Below is my log of DOF. Also, my DOF is running and active in the backglass server when I run my visual pinball tables.

 

Thanks,

Chris

 

---------------------------------------------------------------------------------
2015.08.23 21:55:24.086 DirectOutput Logger initialized
2015.08.23 21:55:24.086 DirectOutput Version 0.8.5307.1702 as of 2014.07.13 00:56
2015.08.23 21:55:24.086 Global config loaded from: C:\DIRECTOUTPUT\GlobalConfig_B2SServer.xml
2015.08.23 21:55:24.086 Loading Pinball parts
2015.08.23 21:55:24.086 Loading cabinet
2015.08.23 21:55:24.086 No cabinet config file loaded. Will use AutoConfig.
2015.08.23 21:55:24.086 Cabinet auto configuration started
2015.08.23 21:55:24.195 EXCEPTION: Could not init LedWiz
2015.08.23 21:55:24.195 EXCEPTION: Thread: 
2015.08.23 21:55:24.195 EXCEPTION: Message: Unable to load DLL 'LEDWiz': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
2015.08.23 21:55:24.195 EXCEPTION: Stacktrace:    at DirectOutput.Cab.Out.LW.LedWiz.LWZ_SET_NOTIFY(MulticastDelegate notifyProc, UInt32 list)
2015.08.23 21:55:24.195 EXCEPTION: Stacktrace:    at DirectOutput.Cab.Out.LW.LedWiz.StartupLedWiz()
2015.08.23 21:55:24.195 EXCEPTION: Targetsite: Void LWZ_SET_NOTIFY(System.MulticastDelegate, UInt32)
2015.08.23 21:55:24.195 EXCEPTION: A exception occured during auto configuration for output controller(s) of type LedWizAutoConfigurator.
2015.08.23 21:55:24.195 EXCEPTION: Thread: 
2015.08.23 21:55:24.195 EXCEPTION: Message: Could not init LedWiz
2015.08.23 21:55:24.195 EXCEPTION: Stacktrace:    at DirectOutput.Cab.Out.LW.LedWiz.StartupLedWiz()
2015.08.23 21:55:24.195 EXCEPTION: Stacktrace:    at DirectOutput.Cab.Out.LW.LedWiz..ctor()
2015.08.23 21:55:24.195 EXCEPTION: Stacktrace:    at DirectOutput.Cab.Out.LW.LedWiz.GetLedwizNumbers()
2015.08.23 21:55:24.195 EXCEPTION: Stacktrace:    at DirectOutput.Cab.Out.LW.LedWizAutoConfigurator.AutoConfig(Cabinet Cabinet)
2015.08.23 21:55:24.195 EXCEPTION: Stacktrace:    at DirectOutput.Cab.Cabinet.AutoConfig()
2015.08.23 21:55:24.195 EXCEPTION: Targetsite: Void StartupLedWiz()
2015.08.23 21:55:24.195 EXCEPTION: InnerException 1: Unable to load DLL 'LEDWiz': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
2015.08.23 21:55:24.195 Cabinet auto configuration finished
2015.08.23 21:55:24.195 Cabinet loaded
2015.08.23 21:55:24.195 Loading table config
2015.08.23 21:55:24.195 Warning: No table config file found. Will try to load config from LedControl file(s).
2015.08.23 21:55:24.195 Will try to load configs from DirectOutput.ini or LedControl.ini file(s) for RomName ACDC
2015.08.23 21:55:24.211 Loading LedControl file C:\Program Files (x86)\Visual Pinball\Tables\directoutputconfig.ini
2015.08.23 21:55:24.491 1 directoutputconfig.ini or ledcontrol.ini files loaded.
2015.08.23 21:55:24.491 Config for RomName ACDC exists in LedControl data. Updating cabinet and config.
2015.08.23 21:55:24.507 Table config loading finished
2015.08.23 21:55:24.507 Pinball parts loaded
2015.08.23 21:55:24.507 Starting processes
2015.08.23 21:55:24.507 Initializing cabinet
2015.08.23 21:55:24.523 Cabinet initialized
2015.08.23 21:55:24.523 Framework initialized.
2015.08.23 21:55:24.523 Have fun! :)
2015.08.23 22:00:21.222 Finishing framework
2015.08.23 22:00:21.232 Finishing cabinet
2015.08.23 22:00:21.232 Cabinet finished
2015.08.23 22:00:21.232 DirectOutput framework finished.
2015.08.23 22:00:21.232 Bye and thanks for using!
Link to comment
Share on other sites

I am pretty sure that I installed v2. And all of the files are unblocked, all the files in the DOF directory and I checked all the b2s server directory. All unblocked. I will re-install the DOF folder and unblock the files again but I am pretty sure that this is not the issue....

Link to comment
Share on other sites

I am pretty sure that I installed v2. And all of the files are unblocked, all the files in the DOF directory and I checked all the b2s server directory. All unblocked. I will re-install the DOF folder and unblock the files again but I am pretty sure that this is not the issue....

Did you install dof V1 then V2?

Link to comment
Share on other sites

You have to install version 1 first then install version 2 over the top of it because in version one you need to register the DOF

So what I would do is take all your stuff you set up for a version 2  move it to another folder ..Then set-up version one in there then copy version 2 over the top of it and that will probably fix you up

You may need to check for blocked files


 

Link to comment
Share on other sites

OK, that managed to clear up my LED init error. I ran the AC/DC table and my flipper buttons were on (white) meaning that the ledwiz was firing (3) outputs. However, the rest of them were not working. I should note that I do have a virtual plunger, here is my DOF log:

 
---------------------------------------------------------------------------------
2015.08.24 16:40:43.888 DirectOutput Logger initialized
2015.08.24 16:40:43.888 DirectOutput Version 0.8.5307.1702 as of 2014.07.13 00:56
2015.08.24 16:40:43.888 Global config loaded from: C:\DIRECTOUTPUT\GlobalConfig_B2SServer.xml
2015.08.24 16:40:43.888 Loading Pinball parts
2015.08.24 16:40:43.888 Loading cabinet
2015.08.24 16:40:43.888 No cabinet config file loaded. Will use AutoConfig.
2015.08.24 16:40:43.888 Cabinet auto configuration started
2015.08.24 16:40:43.934 Detected and added LedWiz Nr. 1 with name LedWiz 01
2015.08.24 16:40:43.934 Added LedwizEquivalent Nr. 1 with name LedWiz 01 Equivalent for Ledwiz Nr. 1
2015.08.24 16:40:43.934 Cabinet auto configuration finished
2015.08.24 16:40:43.934 Cabinet loaded
2015.08.24 16:40:43.934 Loading table config
2015.08.24 16:40:43.934 Warning: No table config file found. Will try to load config from LedControl file(s).
2015.08.24 16:40:43.934 Will try to load configs from DirectOutput.ini or LedControl.ini file(s) for RomName ACDC
2015.08.24 16:40:43.934 Loading LedControl file C:\Program Files (x86)\Visual Pinball\Tables\directoutputconfig.ini
2015.08.24 16:40:44.215 1 directoutputconfig.ini or ledcontrol.ini files loaded.
2015.08.24 16:40:44.215 Config for RomName ACDC exists in LedControl data. Updating cabinet and config.
2015.08.24 16:40:44.246 Table config loading finished
2015.08.24 16:40:44.246 Pinball parts loaded
2015.08.24 16:40:44.246 Starting processes
2015.08.24 16:40:44.246 Initializing cabinet
2015.08.24 16:40:44.246 LedWiz Nr. 01 initialized and updater thread initialized.
2015.08.24 16:40:44.262 Updater thread for LedWiz 01 started.
2015.08.24 16:40:44.262 Cabinet initialized
2015.08.24 16:40:44.278 Framework initialized.
2015.08.24 16:40:44.278 Have fun! :)
2015.08.24 16:41:40.984 Finishing framework
2015.08.24 16:41:40.994 Finishing cabinet
2015.08.24 16:41:42.024 LedWiz Nr. 01 finished and updater thread stopped.
2015.08.24 16:41:42.024 Cabinet finished
2015.08.24 16:41:42.024 DirectOutput framework finished.
2015.08.24 16:41:42.024 Bye and thanks for using!
 
 
Thanks,
Chris
Link to comment
Share on other sites

The fix was to install v1 then overwrite with v2 files. Make sure all DLL and EXE files are unblocked and the error went away.

 

There were only 3 outputs firing though. It is almost like the game (AC/DC) did not know what was wired up; like the auto configuration failed. Correct me if I am wrong but the config tool (web) should set all of that up correct? I do have the Virtuapin Digital plunger with board installed so I am wondering if that is conflicting or DOF is not compatible with it? But 3 of the outputs were on...I don't know.

 

I appreciate the help.

 

Thanks,
Chris

Link to comment
Share on other sites

randr, to answer your question: Addams Family nothing works...

 

gtxjoe, no the DOF ini in my tables folder is not the current version; there may not even be one in there. When I downloaded the file using the config tool I put it in my DOF folder C:\DirectOutput. I will move it from the DirectOutput folder to my tables folder and try it.

 

Thanks,

Chris

Link to comment
Share on other sites

Sounds like you need to review the install doc again. Suggested install paths are a shortcut in tables folder to direct output folder. Then ini files go inside that in config folder. Don't really matter as global.xml will point to where they are and search the locations but I suggest you follow the default locations for the files.

Link to comment
Share on other sites

This is how i have mine set-up Installation in own directory (Recommended)

To avoid duplicate installations of the DirectOutput framework, the applications using the framework as a plugin can follow windows shortcuts to the directory containging DOF.

To install DirectOutput like this, please do the following:

  • Create a directory for you DirectOutput installtion (e.g. C:\DirectOutput). The name and the path to this directory can be anything you like, but it might be a clever idea to have DirectOutput in the directory name.
  • Unzip the contents of the zip-file containg the framework to the newly created directory.
  • If using platforms like Vista or Win7, the installed files might be blocked by UAC. To unblock the files please read: Unblock the DLLs

To allow the hosting application (e.g. B2S.Server) to detect the DirectOutput framework, do the following:

  • Go to the directory containing the files of the hosting application (For B2S.Server this is typically the VP tables folder).
  • In this directory create a subdirectory named plugins.
  • In the newly created plugins directory, create a windows shortcut pointing to the directory containg the DirectOutput framework. This can be done by right clicking in the plugins directory and selecting New -> Shortcut in the context menu.

Example: A typical installation of the framework in its own directory might resemble the following file and directory structure:

Installation_OwnDirectory1.png
DirectOutput installtion in own directory

Note: Depending on the DirectOutput framework version, more files might exist in the installation.

If the framework is used with a B2S.Server installtion (which normaly reside in the VP table folder), you should have the following directory structure and shortcut (pointing to the directory containg the DirectOutput framework):

Installation_OwnDirectory2.png
Shortcut pinting to the DirectOutput installation directory
Unblock the DLLs

On platforms like Win7 or Vista you might need to unblock the files of the DirectOutput framework, before it can be recognized by hosting applications (e.g. B2S.Server).

Please exceute the following procedure for all dll and exe files of the DirectOutput installtion:

  • Right click the DLL file and select Properties in the context menu.
  • Select the General tab in the properties window.
  • If you find the text _"This file came from another computer and might be blocked to help protect this computer" or somthing similar on this tab, click the Unblock button. This should fix the issue.

If the text about the file coming from another computer does not exist, everthing should be fine.

Link to comment
Share on other sites

outhere, that is my set up as well (recommended).

 

I think here where my confusion lies. The global config looks for an "xml" file for the cabinet config. However, the config tool on the web outputs a dll file for the Ports? Do I need to generate my own cabinet config file?

 

Thanks,

Chris 

Link to comment
Share on other sites

Yep. Actually, I had the directoutputconfig.ini in multiple locations trying to get things to work. Ok, I updated my global config and pointed the ini files path to C:\DirectOutput\config which is where my good directoutputconfig.ini was stored.

 

ACDC was still barely working - meaning the flipper RGB LEDs were white color. However, I did fire up The Addams Family table, I got a ".directb2s not found error". I thought I was dead in the water, but I clicked on ok and started playing the table. Well, a lot of my "toys" started working. The flipper buttons were sticking and there was some lag time between when the bumpers hit and the solenoids fired. Then, I went and got a .directb2s file for the Addams Family table and things were much more smooth. 

 

So I know my DOF is working with my Addams Family table, however, none of my other tables are working. What am I missing?

 

Thanks,

Chris

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...