Jump to content



Photo
- - - - -

Help setting up DOFLinx with a kl25z and ultimate io


  • Please log in to reply
32 replies to this topic

#1 sic79

sic79

    Hobbyist

  • Members
  • PipPip
  • 23 posts

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

  • Favorite Pinball: The Addams Family

Posted 11 March 2025 - 02:07 PM

Hi again @DDH69! 😊

I’m still struggling to get my RGB buttons working with DOFLinx for VPX and MAME. I followed this guide, but no luck. 😕

So now I have wiped the .ini file and started over. Here is how my setup looks.

  • KL25Z board (for nudging) → Configured as Pinscape ID 1 and LEDWiz Unit 1
  • Ultimarc Ultimate I/O → Flashed with IPAC_ULTIMATE_ID2_155c.ufw     (Started with the IPAC_ULTIMATE_156.ufw firmware but it caused DOFLinx to crash, possibly due to an ID conflict with KL25Z when both had ID 1?)

When starting with the basic .ini in Debug mode, I tried the function "Test Device by Port" to figure out which outputs that match my RGB buttons but none of them lit up. So either i don´t understand how it works or there might be some issues between Ultimate IO and DOFLinx.

Here is the .ini and .log files

 

#######################################################

COLOUR_FILE=D:\LaunchBox\ThirdParty\DOFLinx\config\colours.ini
PATH_MAME=D:\LaunchBox\ThirdParty\DOFLinx\MAME
MAME_FOLDER=D:\LaunchBox\Emulators\MAME

debug = 1

# DOF2DMD
PATH_DOF2DMD=D:\LaunchBox\ThirdParty\DOF2DMD
DOF2DMD=YES

# When to activate, and more specifically what is the MAME process to kick things off
PROCESSES=Mame_270,VPinballX64
MAME_PROCESS=Mame_270

# Shorten the default period between score checks because my computer is reasonably fast and its not impacting MAME game play
MAME_SCORE_CHECK_PERIOD=100

#######################################################

 

######################################

11-Mar-25 10:03:15.847 - DOFLinx for Pinball and MAME Emulators - DOFLinx by DDH69
11-Mar-25 10:03:15.849 - Starting up - version 8.21
11-Mar-25 10:03:15.857 - DOF Path = D:\LaunchBox\ThirdParty\DOFLinx\
11-Mar-25 10:03:15.858 - DirectOutput.dll version = 3.2.9036.21665  dated 2/21/2025 9:33:59 AM
11-Mar-25 10:03:15.877 - 64 bit operating system
11-Mar-25 10:03:15.878 - 64 bit application
11-Mar-25 10:03:15.878 - For support come and visit the community here http: //www.vpforums.org/index.php?showforum=104
11-Mar-25 10:03:15.879 - Pre-Reading DOFLinx.INI startup config file details
11-Mar-25 10:03:16.099 - DOFLinx device: 1 Initializing as Pinscape #1 with name=Pinscape Controller
11-Mar-25 10:03:16.115 - DOFLinx device:1 Pinscape setup with 22 outputs
11-Mar-25 10:03:16.352 - PinOne Port =
11-Mar-25 10:03:16.369 - DOFLinx device: 2 Initializing as LEDWiz #1 with ID=0
11-Mar-25 10:03:16.369 - DOFLinx device:2 LEDWiz setup with 32 outputs
11-Mar-25 10:03:16.384 - Reading DOFLinx.INI startup config file details
11-Mar-25 10:03:16.384 - Reading DirectOutputConfig file named D:\LaunchBox\ThirdParty\DOFLinx\config\colours.ini
11-Mar-25 10:03:16.415 - DEBUG enabled with showing of window True
11-Mar-25 10:03:16.431 - Set Debug Privilege = Set OK
11-Mar-25 10:03:16.456 - DOF2DMD is active so starting up link
11-Mar-25 10:03:16.992 - DOF2DMD Connection Established
11-Mar-25 10:03:17.008 - Loading MAME game names
11-Mar-25 10:03:17.420 - Loading Menu.INI
11-Mar-25 10:03:17.436 - Processing parameter 'LOAD_SOUND' with data 'LFlipper,100,LEFT_REAR,Flipper_L01,Flipper_L02,Flipper_L03,Flipper_L04,Flipper_L05,Flipper_L06,Flipper_L07,Flipper_L08,Flipper_L09,Flipper_L10,Flipper_L11' in real-time
11-Mar-25 10:03:17.449 - Processing parameter 'LOAD_SOUND' with data 'RFlipper,100,RIGHT_REAR,Flipper_R01,Flipper_R02,Flipper_R03,Flipper_R04,Flipper_R05,Flipper_R06,Flipper_R07,Flipper_R08,Flipper_R09,Flipper_R10,Flipper_R11' in real-time
11-Mar-25 10:03:17.453 - Processing parameter 'LOAD_SOUND' with data 'BallColl,100,REAR,Ball_Collide_1,Ball_Collide_2,Ball_Collide_3,Ball_Collide_4,Ball_Collide_5,Ball_Collide_6,Ball_Collide_7' in real-time
11-Mar-25 10:03:17.456 - Processing parameter 'LOAD_SOUND' with data 'DropTarget,100,SIDE,Drop_Target_Down_1,Drop_Target_Down_2,Drop_Target_Down_3,Drop_Target_Down_4,Drop_Target_Down_5,Drop_Target_Down_6' in real-time
11-Mar-25 10:03:17.470 - Trigger thread starting
11-Mar-25 10:03:20.201 - Shutting down
11-Mar-25 10:03:23.890 - Program close

######################################

 

Would really appreciate any insights on what might be wrong.

 

 

 



#2 DDH69

DDH69

    Pinball Wizard

  • Platinum Supporter
  • 3,603 posts
  • Location:DOFLinx HQ, Adelaide

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 11 March 2025 - 10:36 PM

Grab v8.23 , there was a fix for Ultimate IO in that version.  From the log you posted we can see that that the Ultimate IO board is not being found.


DOFLinx
Contributions for equipment to help with ongoing DOFLinx development can be made here

#3 sic79

sic79

    Hobbyist

  • Members
  • PipPip
  • 23 posts

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

  • Favorite Pinball: The Addams Family

Posted 12 March 2025 - 07:33 AM

It works!. I had to flash the Ultimate IO with "IPAC_ULTIMATE_156.ufw" firmware again to get it to work with DOFLinx 8.23, since i got the same error on "IPAC_ULTIMATE_ID2_155c.ufw" .. Thank you @DDH69


Edited by sic79, 12 March 2025 - 07:51 AM.


#4 DDH69

DDH69

    Pinball Wizard

  • Platinum Supporter
  • 3,603 posts
  • Location:DOFLinx HQ, Adelaide

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 12 March 2025 - 08:29 AM

Good to hear.  Now onto those RGB buttons!


DOFLinx
Contributions for equipment to help with ongoing DOFLinx development can be made here

#5 sic79

sic79

    Hobbyist

  • Members
  • PipPip
  • 23 posts

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

  • Favorite Pinball: The Addams Family

Posted 14 March 2025 - 06:10 PM

Hi @DDH69 I have some more questions for you that I hope you can help clarify.

  1. When reading the manual, it says: "BUT_B1 -- BUT_B8 = Arcade buttons". I have a 2-player cabinet with 6 buttons per player. Does this mean that I only can use 4 buttons for each player?

  2. I have two coin buttons. How can I light them both at the same time? The manual mentions "BUT_CN", but I don’t see a second one listed.

  3. With my current configuration (see below), only P1, P2, and Exit are lit when launching a MAME game. Do I need to manually configure each player's buttons with "Button_Lit", or does it work like LedBlinky, where the buttons automatically lit up based on the MAME game configuration?

 

DEBUG=1

COLOUR_FILE=D:\LaunchBox\ThirdParty\DOFLinx\config\colours.ini
DIRECTOUTPUTGLOBAL=D:\DirectOutput\Config\GlobalConfig_B2SServer.xml
PATH_B2S_SERVER=D:\Games\VisualPinball\Tables\

PATH_MAME=D:\LaunchBox\ThirdParty\DOFLinx\MAME\
MAME_FOLDER=D:\LaunchBox\Emulators\MAME 0.265\
PATH_DOF2DMD=D:\LaunchBox\ThirdParty\DOF2DMD\
PATH_HI2TXT=D:\LaunchBox\ThirdParty\Hi2Txt\

PROCESSES=Mame_270
MAME_PROCESS=Mame_270

LINK_BUT_CN=3077,Amber,35
LINK_BUT_ST=3025,Green,4C
LINK_BUT_EX=3057,Tomato,1B
LINK_BUT_LB=3062,Blue,4A
LINK_BUT_P1=3046,White,31
LINK_BUT_P2=3052,White,32
LINK_BUT_PS=3026,Crimson,43
LINK_BUT_B1=3004,Red,4E
LINK_BUT_B2=3007,Red,5A

#!!!!!!!!!!!!!!!!!!!!!!!!!!!
# Manual Entries Section
DOF2DMD=YES
PROCESS_TO_ACTIVE_TIME=1
MAME_SCORE_CHECK_PERIOD=100
TRIGGER_DEBOUNCE_TIME=10
DELAY_BETWEEN_KEY_PRESS=100
CLOSE_ROMS=0
#!!!!!!!!!!!!!!!!!!!!!!!!!!!


 



#6 DDH69

DDH69

    Pinball Wizard

  • Platinum Supporter
  • 3,603 posts
  • Location:DOFLinx HQ, Adelaide

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 14 March 2025 - 09:58 PM

1.  Thanks for reading the guide!  Sadly in this case I didn't update it when B9-B16 were added in v8.15 (Nov 2024).  The guide is now correct, there are 16 buttons.

2.  You can define multiples of the same button.  So just add more repetitions to the end of your LINK_BUT_CN= line.  One of my arcade machines has multiple coin buttons, here is my definition as can be seen in one of the sample INI files
LINK_BUT_CN=1016,MONO,36,000,MONO,35

3.  I don't know how LEDBlinky works, so cannot comment on that.  DOFLinx allows you to define what buttons you want to turn on and where.  So it can be setup to have buttons for lighting set in a few places:

a) In DOFLinx.INI, this would make the buttons be on all the time.  Handy if, like me, you have lit buttons that you want on even for the front-end menu, ie the ones you use for navigation.

b) in All_Post.MAME - this is where the Coin, Exit, Reset, P1 and P2 are setup in the default All_Post.MAME.  I don't have B1 - Bx in there as different games use a different number of buttons and I was planning to only light the buttons needed for the specific game (see next)

c) in the individual game.MAME file.  This allos the specific buttons for a game to be lit.  My first arcade cabinet had a few RGB buttons where as the current one I'm still finishing has 20 RGB buttons.  Its single player with B1-B6 for P1.  I have not yet got around to setting up adding the lighting of the buttons per game, but it will happen.  Most happy to work through this with you for a few games to try it out.  In fact, once we test a couple you can even edit the game.MAME on GItHub and help contribute  :otvclap:

 

Galaga has become my defacto "master" game as it has the capacity to display all of the DOFLinx MAME functions.  Happy to start there.  The modification to the game.MAME file is simple.  Add a line to [STARTUP] and [SHUTDOWN]

 

[STARTUP]

.

.

.

BUTTONS_LIT_ADDED=BUT_B1,BUT_B2     <<<----  The buttons used in the game

 

[SHUTDOWN]

.

BUTTONS_LIT_DELETED_BUT_B1,BUT_B2    <<<---- Same as those added

 

 

A key thing will be to define for people how to number their buttons, P1

B1 - B2 - B3 - B4

B5 - B6 - B7 - B8

 

P2

B9 - B10 - B11 - B12

B13 - B14 - B15 - B16

 

So if you only have a 6 button setup for P1 like me, its

B1 - B2 - B3

B4 - B5 - B6

 

This will ensure that the default will work for the most people.

 

BTW - I noticed "DOF2DMD=YES" in your INI file.  That is a command line argument, not an INI parameter.  It will not hurt anything, but will do nothing other than error in the INI file.  May as well remove it at some stage.


DOFLinx
Contributions for equipment to help with ongoing DOFLinx development can be made here

#7 sic79

sic79

    Hobbyist

  • Members
  • PipPip
  • 23 posts

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

  • Favorite Pinball: The Addams Family

Posted 15 March 2025 - 09:30 AM

Thanks you for answering all my questions!

Will do some more configuring/testing this weekend :).

 

Would be really nice if it would be possible to use LEdBlinkys button mappings somehow, since very many(most?) games are already mapped for MAME. Wonder how it works......

Here´s a link if you wanna check out what it is   https://forum.arcade...ic,73905.0.html

 

Have a great weekend!



#8 sic79

sic79

    Hobbyist

  • Members
  • PipPip
  • 23 posts

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

  • Favorite Pinball: The Addams Family

Posted 15 March 2025 - 05:51 PM

@DDH69 Now I've been doing some testing, but I still can't get everything to work as expected.

I have configured my DOFLinx.ini to include all my buttons (except flipper buttons), and they light up correctly when tested via "test device by port"—both the buttons and colors match what they should be. However, when I use "Fake Emulation" mode, some of the buttons that should be lit don’t turn on, and some appear with incorrect colors.

Below, I’ve included my DOFLinx.ini and log file.

######
# DOFLinx Configuration Tool generated DOFLinx.INI file at 5:54:29 PM Thursday, March 13, 2025
######

DEBUG=1

COLOUR_FILE=D:\LaunchBox\ThirdParty\DOFLinx\config\colours.ini
DIRECTOUTPUTGLOBAL=D:\DirectOutput\Config\GlobalConfig_B2SServer.xml
PATH_B2S_SERVER=D:\Games\VisualPinball\Tables\

PATH_MAME=D:\LaunchBox\ThirdParty\DOFLinx\MAME\
MAME_FOLDER=D:\LaunchBox\Emulators\MAME 0.265\
PATH_DOF2DMD=D:\LaunchBox\ThirdParty\DOF2DMD\
PATH_HI2TXT=D:\LaunchBox\ThirdParty\Hi2Txt\

PROCESSES=Mame_270
MAME_PROCESS=Mame_270

#Common Buttons
LINK_BUT_CN=3077,Yellow,35,3074,Yellow,36
LINK_BUT_ST=3023,Green,4C
LINK_BUT_EX=3057,Red,1B
LINK_BUT_PS=3026,Green,43

#Player 1
LINK_BUT_P1=3046,Red,31
LINK_BUT_B1=3004,Red,4E
LINK_BUT_B2=3007,Red,5A
LINK_BUT_B3=3010,Red,58
LINK_BUT_B4=3013,Red,A2
LINK_BUT_B5=3016,Red,A4
LINK_BUT_B6=3019,Red,20

#Player 2
LINK_BUT_P2=3052,Blue,32
LINK_BUT_B9=3030,BLue,41
LINK_BUT_B10=3033,Blue,53
LINK_BUT_B11=3036,Blue,51
LINK_BUT_B12=3039,Blue,57
LINK_BUT_B13=3042,Blue,49
LINK_BUT_B14=3045,Blue,4B

#Flipper
#LINK_BUT_LB=3062,Blue,4A
#LINK_BUT_FR=3001,Blue,4E
#LINK_BUT_LF=3067,Blue,A0
#LINK_BUT_RF=3058,Blue,A1

#!!!!!!!!!!!!!!!!!!!!!!!!!!!
# Manual Entries Section
PROCESS_TO_ACTIVE_TIME=1
MAME_SCORE_CHECK_PERIOD=100
TRIGGER_DEBOUNCE_TIME=10
DELAY_BETWEEN_KEY_PRESS=100
CLOSE_ROMS=0

#Common Buttons
BUTTONS_LIT_ADDED=BUT_CN
BUTTONS_LIT_ADDED=BUT_PS
BUTTONS_LIT_ADDED=BUT_ST
BUTTONS_LIT_ADDED=BUT_EX

#Player 1
BUTTONS_LIT_ADDED=BUT_P1
BUTTONS_LIT_ADDED=BUT_B1
BUTTONS_LIT_ADDED=BUT_B2
BUTTONS_LIT_ADDED=BUT_B3
BUTTONS_LIT_ADDED=BUT_B4
BUTTONS_LIT_ADDED=BUT_B5
BUTTONS_LIT_ADDED=BUT_B6

#Player 2
BUTTONS_LIT_ADDED=BUT_P2
BUTTONS_LIT_ADDED=BUT_B9
BUTTONS_LIT_ADDED=BUT_B10
BUTTONS_LIT_ADDED=BUT_B11
BUTTONS_LIT_ADDED=BUT_B12
BUTTONS_LIT_ADDED=BUT_B13
BUTTONS_LIT_ADDED=BUT_B14
#!!!!!!!!!!!!!!!!!!!!!!!!!!!

LOG:

15-Mar-25 18:49:40.792 - DOFLinx for Pinball and MAME Emulators - DOFLinx by DDH69
15-Mar-25 18:49:40.805 - Starting up - version 8.23
15-Mar-25 18:49:40.812 - DOF (DirectOutput.dll) path used = D:\DirectOutput\x64\
15-Mar-25 18:49:40.812 - DirectOutput.dll version = 3.2.9075.22415  dated 11/5/2024 12:27:14 PM
15-Mar-25 18:49:40.823 - 64 bit operating system
15-Mar-25 18:49:40.823 - 64 bit application
15-Mar-25 18:49:40.823 - For support come and visit the community here http: //www.vpforums.org/index.php?showforum=104
15-Mar-25 18:49:40.839 - Pre-Reading DOFLinx.INI startup config file details
15-Mar-25 18:49:40.887 - DEBUG enabled with showing of window True
15-Mar-25 18:49:41.852 - Joystick # 3 detected : 32 buttons   Z-Axis
15-Mar-25 18:49:41.852 - Joystick # 6 detected : 8 buttons  
15-Mar-25 18:49:41.852 - Joystick # 7 detected : 8 buttons  
15-Mar-25 18:49:41.868 - DOFLinx device: 1 Initializing as Pinscape #1 with name=Pinscape Controller
15-Mar-25 18:49:41.868 - DOFLinx device:1 Pinscape setup with 22 outputs
15-Mar-25 18:49:42.075 - PinOne Port =
15-Mar-25 18:49:42.075 - DOFLinx device: 2 Initializing as LEDWiz #8 with ID=0
15-Mar-25 18:49:42.079 - DOFLinx device:2 LEDWiz setup with 32 outputs
15-Mar-25 18:49:42.079 - This device is probably a PinScape emulating a LEDWiz, if it is, then it is better to assign toys to the Pinscape device not this one
15-Mar-25 18:49:42.631 - DOFLinx device: 3 Initializing as Ulimate IO #0 with ID=0
15-Mar-25 18:49:42.641 - DOFLinx device:3 Ultimate IO setup with 96 outputs
15-Mar-25 18:49:42.647 - Reading DOFLinx.INI startup config file details
15-Mar-25 18:49:42.647 - Turning DEBUG off
15-Mar-25 18:49:42.695 - DEBUG enabled with showing of window True
15-Mar-25 18:49:42.695 - Reading DirectOutputConfig file named D:\LaunchBox\ThirdParty\DOFLinx\config\colours.ini
15-Mar-25 18:49:42.710 - Set Debug Privilege = Set OK
15-Mar-25 18:49:42.746 - DOF2DMD is active so starting up link
15-Mar-25 18:49:43.271 - DOF2DMD Connection Established
15-Mar-25 18:49:43.295 - Loading MAME game names
15-Mar-25 18:49:43.721 - Loading Menu.INI
15-Mar-25 18:49:43.737 - Processing parameter 'LOAD_SOUND' with data 'LFlipper,100,LEFT_REAR,Flipper_L01,Flipper_L02,Flipper_L03,Flipper_L04,Flipper_L05,Flipper_L06,Flipper_L07,Flipper_L08,Flipper_L09,Flipper_L10,Flipper_L11' in real-time
15-Mar-25 18:49:43.768 - Processing parameter 'LOAD_SOUND' with data 'RFlipper,100,RIGHT_REAR,Flipper_R01,Flipper_R02,Flipper_R03,Flipper_R04,Flipper_R05,Flipper_R06,Flipper_R07,Flipper_R08,Flipper_R09,Flipper_R10,Flipper_R11' in real-time
15-Mar-25 18:49:43.776 - Processing parameter 'LOAD_SOUND' with data 'BallColl,100,REAR,Ball_Collide_1,Ball_Collide_2,Ball_Collide_3,Ball_Collide_4,Ball_Collide_5,Ball_Collide_6,Ball_Collide_7' in real-time
15-Mar-25 18:49:43.780 - Processing parameter 'LOAD_SOUND' with data 'DropTarget,100,SIDE,Drop_Target_Down_1,Drop_Target_Down_2,Drop_Target_Down_3,Drop_Target_Down_4,Drop_Target_Down_5,Drop_Target_Down_6' in real-time
15-Mar-25 18:49:43.792 - Trigger thread starting
15-Mar-25 18:49:45.798 - Game name = 'Fake'
15-Mar-25 18:49:45.808 - Named process detected and startup commenced
15-Mar-25 18:49:45.814 - Using full colour palette
15-Mar-25 18:49:45.861 - 122 colours added to the palette
15-Mar-25 18:49:45.868 - Turning on RGB button LED Device=3 Output=77 colour index=4
15-Mar-25 18:49:45.909 - Turning on RGB button LED Device=3 Output=74 colour index=4
15-Mar-25 18:49:45.941 - Turning on RGB button LED Device=3 Output=23 colour index=11
15-Mar-25 18:49:45.957 - Turning on RGB button LED Device=3 Output=57 colour index=1
15-Mar-25 18:49:46.020 - Turning on RGB button LED Device=3 Output=26 colour index=11
15-Mar-25 18:49:46.022 - Turning on RGB button LED Device=3 Output=46 colour index=1
15-Mar-25 18:49:46.071 - Turning on RGB button LED Device=3 Output=4 colour index=1
15-Mar-25 18:49:46.073 - Turning on RGB button LED Device=3 Output=7 colour index=1
15-Mar-25 18:49:46.131 - Turning on RGB button LED Device=3 Output=10 colour index=1
15-Mar-25 18:49:46.147 - Turning on RGB button LED Device=3 Output=13 colour index=1
15-Mar-25 18:49:46.163 - Turning on RGB button LED Device=3 Output=16 colour index=1
15-Mar-25 18:49:46.176 - Turning on RGB button LED Device=3 Output=19 colour index=1
15-Mar-25 18:49:46.179 - Turning on RGB button LED Device=3 Output=52 colour index=3
15-Mar-25 18:49:46.187 - Turning on RGB button LED Device=3 Output=30 colour index=3
15-Mar-25 18:49:46.195 - Turning on RGB button LED Device=3 Output=33 colour index=3
15-Mar-25 18:49:46.211 - Turning on RGB button LED Device=3 Output=36 colour index=3
15-Mar-25 18:49:46.211 - Turning on RGB button LED Device=3 Output=39 colour index=3
15-Mar-25 18:49:46.211 - Turning on RGB button LED Device=3 Output=42 colour index=3
15-Mar-25 18:49:46.226 - Turning on RGB button LED Device=3 Output=45 colour index=3
15-Mar-25 18:49:51.221 - Activating process disappeared so stopping things

I've also taken a picture of the issue: Imgur link

Any ideas on what could be wrong or what I do wrong? Thanks in advance for any help!

 



#9 DDH69

DDH69

    Pinball Wizard

  • Platinum Supporter
  • 3,603 posts
  • Location:DOFLinx HQ, Adelaide

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 16 March 2025 - 12:55 AM

Let me start with I discount nothing until we know the answer.  So, it could be my crap code, or it could be your wiring or setup, we just need to find the issues(s).

 

Now, given I recently blew up my main output board in my arcade cabinet with player RGB buttons I can't test this as easily as I want.  I've now got to finish my Pinscape Pico build before I'll have that again.  I do still have my other arcade cabinet with Start, Pause, Exit, P1, P2 all RGB, so can test all of that.  Also B9 - 16 were working before I blew that board up.

 

My first suspicion is your mapping of the output ports.  I mapped yours into a speadsheet and I see one thing that must be wrong, but another couple of things that look odd.  The map I made is below.

 

The thing that looks wrong is that B14 overlaps P1, remembering for RGB we map the RED port and the next two ports will not be mapped to anything.

The things that look odd are output 3022 has a gap of 4 not 3 between RGB devices as does 3029.

3001    
3002    
3003    
3004 B1 Red
3005    
3006    
3007 B2 Red
3008    
3009     
3010 B3 Red 
3011     
3012     
3013 B4 Red 
3014     
3015     
3016 B5 Red 
3017     
3018     
3019 B6 Red 
3020     
3021     
3022     
3023 ST Green 
3024     
3025     
3026 PS Green 
3027     
3028     
3029     
3030 B9 Blue 
3031     
3032     
3033 B10 Blue 
3034     
3035     
3036 B11 Blue 
3037     
3038     
3039 B12 Blue 
3040     
3041     
3042 B13 Blue 
3043     
3044     
3045 B14 Blue 
3046 P1 Red 
3047     
3048     
3049     
3050     
3051     
3052 P2 Blue 
3053     
3054     
3055     
3056     
3057 EX Red 
3058     
3059     
3060     
3061     
3062     
3063     
3064     
3065     
3066     
3067     
3068     
3069     
3070     
3071     
3072     
3073     
3074 CN Yellow 
3075     
3076     
3077 CN Yellow 
3078     
3079     
3080    

I suspect you may not have all buttons mapped to their RED port.  Can you please check this.  The easiest way is to "Test Device by Port" from DOFLinx's right-click menu.  This will let you turn on one output port at a time.  Test the R then G then B, ensure you get Red, Green and Blue then use the Red port as the mapping.

 

For example, I wouldn't be surprised to find that your Start button is actually 3022 not 3023.  This would explain you getting Blue show when you have set Green.  I think you might just have a couple wrong.  Ideally test every port and ensure that you get the Red, Green or Blue for the button you expect.  It sounds a bit tedious, but I can tell you from experience its well worth while.

 

Once we know everything is mapped correctly, test with "Fake Emulation" again.  If there are still mismatches we will look further.  I will eyeball the code in the interim.

 

I am away for a couple of days from tomorrow, so I may be a little delayed in responding.


Edited by DDH69, 16 March 2025 - 12:58 AM.

DOFLinx
Contributions for equipment to help with ongoing DOFLinx development can be made here

#10 sic79

sic79

    Hobbyist

  • Members
  • PipPip
  • 23 posts

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

  • Favorite Pinball: The Addams Family

Posted 16 March 2025 - 06:26 PM

Hello @DDH69!

 

Yes, you are absolutely right about mapping to the RED port, I actually missed this vital part, so sorry for that, I actually mapped blue to blue output....... So I fixed that but still some buttons show wrong colours :(.

So started to dig into my Ledblinky config since I know that  it works on my buttons and found something intresting. The colour order changes on the Ultimate IO board after output 48.

Output 1 - 48 uses RGB order and 49 -  96 uses BGR order, can that be the issue here since the buttons that don´t show the right colors are connected to the BGR side of the board?

 

Check the outputs on the board here:

uio_top1.jpg

 

 

 

Here is my old ledblinky config:

rgb_pinout.jpg

 

 

Here is a video when Daniel Spies configure LEDblinky RGB order with the configtool if you are intrested how it works  https://www.youtube....h?v=m4rLw32lbuE

 

And here comes the ini and log file for DOFLinx:

######
# DOFLinx Configuration Tool generated DOFLinx.INI file at 5:54:29 PM Thursday, March 13, 2025
######

DEBUG=1

COLOUR_FILE=D:\LaunchBox\ThirdParty\DOFLinx\config\colours.ini
DIRECTOUTPUTGLOBAL=D:\DirectOutput\Config\GlobalConfig_B2SServer.xml
PATH_B2S_SERVER=D:\Games\VisualPinball\Tables\

PATH_MAME=D:\LaunchBox\ThirdParty\DOFLinx\MAME\
MAME_FOLDER=D:\LaunchBox\Emulators\MAME 0.265\
PATH_DOF2DMD=D:\LaunchBox\ThirdParty\DOF2DMD\
PATH_HI2TXT=D:\LaunchBox\ThirdParty\Hi2Txt\

PROCESSES=Mame_270
MAME_PROCESS=Mame_270

#Common Buttons
LINK_BUT_CN=3075,Yellow,35,3078,Yellow,36
LINK_BUT_ST=3022,Green,4C
LINK_BUT_EX=3057,Red,1B
LINK_BUT_PS=3025,Green,43

#Player 1
LINK_BUT_P1=3046,Red,31
LINK_BUT_B1=3004,Red,4E
LINK_BUT_B2=3007,Red,5A
LINK_BUT_B3=3010,Red,58
LINK_BUT_B4=3013,Red,A2
LINK_BUT_B5=3016,Red,A4
LINK_BUT_B6=3019,Red,20

#Player 2
LINK_BUT_P2=3054,Blue,32
LINK_BUT_B9=3028,BLue,41
LINK_BUT_B10=3031,Blue,53
LINK_BUT_B11=3034,Blue,51
LINK_BUT_B12=3037,Blue,57
LINK_BUT_B13=3040,Blue,49
LINK_BUT_B14=3043,Blue,4B

#Flipper
LINK_BUT_LB=3066,Blue,4A
LINK_BUT_LF=3069,Blue,A0
LINK_BUT_RF=3060,Blue,A1

#!!!!!!!!!!!!!!!!!!!!!!!!!!!
# Manual Entries Section
PROCESS_TO_ACTIVE_TIME=1
MAME_SCORE_CHECK_PERIOD=100
TRIGGER_DEBOUNCE_TIME=10
DELAY_BETWEEN_KEY_PRESS=100
CLOSE_ROMS=0

#Common Buttons
BUTTONS_LIT_ADDED=BUT_CN
BUTTONS_LIT_ADDED=BUT_PS
BUTTONS_LIT_ADDED=BUT_ST
BUTTONS_LIT_ADDED=BUT_EX

#Player 1
BUTTONS_LIT_ADDED=BUT_P1
BUTTONS_LIT_ADDED=BUT_B1
BUTTONS_LIT_ADDED=BUT_B2
BUTTONS_LIT_ADDED=BUT_B3
BUTTONS_LIT_ADDED=BUT_B4
BUTTONS_LIT_ADDED=BUT_B5
BUTTONS_LIT_ADDED=BUT_B6

#Player 2
BUTTONS_LIT_ADDED=BUT_P2
BUTTONS_LIT_ADDED=BUT_B9
BUTTONS_LIT_ADDED=BUT_B10
BUTTONS_LIT_ADDED=BUT_B11
BUTTONS_LIT_ADDED=BUT_B12
BUTTONS_LIT_ADDED=BUT_B13
BUTTONS_LIT_ADDED=BUT_B14

#Flipper
BUTTONS_LIT_ADDED=BUT_LB
BUTTONS_LIT_ADDED=BUT_LF
BUTTONS_LIT_ADDED=BUT_RF
#!!!!!!!!!!!!!!!!!!!!!!!!!!!

Log:

16-Mar-25 18:11:58.623 - DOFLinx for Pinball and MAME Emulators - DOFLinx by DDH69
16-Mar-25 18:11:58.623 - Starting up - version 8.23
16-Mar-25 18:11:58.637 - DOF (DirectOutput.dll) path used = D:\DirectOutput\x64\
16-Mar-25 18:11:58.639 - DirectOutput.dll version = 3.2.9075.22415  dated 11/5/2024 12:27:14 PM
16-Mar-25 18:11:58.655 - 64 bit operating system
16-Mar-25 18:11:58.655 - 64 bit application
16-Mar-25 18:11:58.655 - For support come and visit the community here http: //www.vpforums.org/index.php?showforum=104
16-Mar-25 18:11:58.655 - Pre-Reading DOFLinx.INI startup config file details
16-Mar-25 18:11:58.722 - DEBUG enabled with showing of window True
16-Mar-25 18:11:59.654 - Joystick # 3 detected : 32 buttons   Z-Axis
16-Mar-25 18:11:59.654 - Joystick # 6 detected : 8 buttons  
16-Mar-25 18:11:59.670 - Joystick # 7 detected : 8 buttons  
16-Mar-25 18:11:59.670 - DOFLinx device: 1 Initializing as Pinscape #1 with name=Pinscape Controller
16-Mar-25 18:11:59.670 - DOFLinx device:1 Pinscape setup with 22 outputs
16-Mar-25 18:11:59.909 - PinOne Port =
16-Mar-25 18:11:59.913 - DOFLinx device: 2 Initializing as LEDWiz #8 with ID=0
16-Mar-25 18:11:59.913 - DOFLinx device:2 LEDWiz setup with 32 outputs
16-Mar-25 18:11:59.913 - This device is probably a PinScape emulating a LEDWiz, if it is, then it is better to assign toys to the Pinscape device not this one
16-Mar-25 18:11:59.925 - DOFLinx device: 3 Initializing as Ulimate IO #0 with ID=0
16-Mar-25 18:11:59.934 - DOFLinx device:3 Ultimate IO setup with 96 outputs
16-Mar-25 18:11:59.934 - Reading DOFLinx.INI startup config file details
16-Mar-25 18:11:59.942 - Turning DEBUG off
16-Mar-25 18:11:59.995 - DEBUG enabled with showing of window True
16-Mar-25 18:11:59.995 - Reading DirectOutputConfig file named D:\LaunchBox\ThirdParty\DOFLinx\config\colours.ini
16-Mar-25 18:12:00.006 - Set Debug Privilege = Set OK
16-Mar-25 18:12:00.043 - DOF2DMD is active so starting up link
16-Mar-25 18:12:00.583 - DOF2DMD Connection Established
16-Mar-25 18:12:00.593 - Loading MAME game names
16-Mar-25 18:12:00.973 - Loading Menu.INI
16-Mar-25 18:12:00.989 - Processing parameter 'LOAD_SOUND' with data 'LFlipper,100,LEFT_REAR,Flipper_L01,Flipper_L02,Flipper_L03,Flipper_L04,Flipper_L05,Flipper_L06,Flipper_L07,Flipper_L08,Flipper_L09,Flipper_L10,Flipper_L11' in real-time
16-Mar-25 18:12:01.005 - Processing parameter 'LOAD_SOUND' with data 'RFlipper,100,RIGHT_REAR,Flipper_R01,Flipper_R02,Flipper_R03,Flipper_R04,Flipper_R05,Flipper_R06,Flipper_R07,Flipper_R08,Flipper_R09,Flipper_R10,Flipper_R11' in real-time
16-Mar-25 18:12:01.010 - Processing parameter 'LOAD_SOUND' with data 'BallColl,100,REAR,Ball_Collide_1,Ball_Collide_2,Ball_Collide_3,Ball_Collide_4,Ball_Collide_5,Ball_Collide_6,Ball_Collide_7' in real-time
16-Mar-25 18:12:01.013 - Processing parameter 'LOAD_SOUND' with data 'DropTarget,100,SIDE,Drop_Target_Down_1,Drop_Target_Down_2,Drop_Target_Down_3,Drop_Target_Down_4,Drop_Target_Down_5,Drop_Target_Down_6' in real-time
16-Mar-25 18:12:01.021 - Trigger thread starting
16-Mar-25 18:12:05.081 - Game name = 'Fake'
16-Mar-25 18:12:05.113 - Named process detected and startup commenced
16-Mar-25 18:12:05.120 - Using full colour palette
16-Mar-25 18:12:05.136 - 122 colours added to the palette
16-Mar-25 18:12:05.136 - Turning on RGB button LED Device=3 Output=75 colour index=4
16-Mar-25 18:12:05.216 - Turning on RGB button LED Device=3 Output=78 colour index=4
16-Mar-25 18:12:05.244 - Turning on RGB button LED Device=3 Output=22 colour index=11
16-Mar-25 18:12:05.251 - Turning on RGB button LED Device=3 Output=57 colour index=1
16-Mar-25 18:12:05.290 - Turning on RGB button LED Device=3 Output=25 colour index=11
16-Mar-25 18:12:05.295 - Turning on RGB button LED Device=3 Output=46 colour index=1
16-Mar-25 18:12:05.330 - Turning on RGB button LED Device=3 Output=4 colour index=1
16-Mar-25 18:12:05.339 - Turning on RGB button LED Device=3 Output=7 colour index=1
16-Mar-25 18:12:05.342 - Turning on RGB button LED Device=3 Output=10 colour index=1
16-Mar-25 18:12:05.342 - Turning on RGB button LED Device=3 Output=13 colour index=1
16-Mar-25 18:12:05.342 - Turning on RGB button LED Device=3 Output=16 colour index=1
16-Mar-25 18:12:05.358 - Turning on RGB button LED Device=3 Output=19 colour index=1
16-Mar-25 18:12:05.368 - Turning on RGB button LED Device=3 Output=54 colour index=3
16-Mar-25 18:12:05.374 - Turning on RGB button LED Device=3 Output=28 colour index=3
16-Mar-25 18:12:05.377 - Turning on RGB button LED Device=3 Output=31 colour index=3
16-Mar-25 18:12:05.377 - Turning on RGB button LED Device=3 Output=34 colour index=3
16-Mar-25 18:12:05.389 - Turning on RGB button LED Device=3 Output=37 colour index=3
16-Mar-25 18:12:05.397 - Turning on RGB button LED Device=3 Output=40 colour index=3
16-Mar-25 18:12:05.407 - Turning on RGB button LED Device=3 Output=43 colour index=3
16-Mar-25 18:12:05.410 - Turning on RGB button LED Device=3 Output=66 colour index=3
16-Mar-25 18:12:05.421 - Turning on RGB button LED Device=3 Output=69 colour index=3
16-Mar-25 18:12:05.424 - Turning on RGB button LED Device=3 Output=60 colour index=3
16-Mar-25 18:12:14.477 - Activating process disappeared so stopping things
16-Mar-25 18:12:14.933 - Shutting down
16-Mar-25 18:12:16.503 - Program close

Edited by sic79, 16 March 2025 - 09:15 PM.


#11 DDH69

DDH69

    Pinball Wizard

  • Platinum Supporter
  • 3,603 posts
  • Location:DOFLinx HQ, Adelaide

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 16 March 2025 - 10:46 PM

Yes, not being RGB will be the issue.  It's not the board that changes its your wiring.  Not sure why a mixture of setups would ever be applied to one cabinet setup.  I haven't ever struck this before. If they were all one way or all the other then you have options.


DOFLinx
Contributions for equipment to help with ongoing DOFLinx development can be made here

#12 sic79

sic79

    Hobbyist

  • Members
  • PipPip
  • 23 posts

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

  • Favorite Pinball: The Addams Family

Posted 17 March 2025 - 06:54 AM

Yes, not being RGB will be the issue.  It's not the board that changes its your wiring.  Not sure why a mixture of setups would ever be applied to one cabinet setup.  I haven't ever struck this before. If they were all one way or all the other then you have options.

 

Yes, it´s not the board. Problem here is that the buttons comes prewired so you can only put them in one direction since there is a yellow + wire. I assume that´s why LedBlinky goes through the outputs when configuring. Why the Ultimate IO has choose to use both RGB and BRG is a mystery ;). The buttons and the board is bought here Ultimarc

 

Here is how the button looks when they are prewired: 

concave_composite.jpg

 

 

I hope you will consider to support this in future release of DOFLinx, this will affect affect people using Ultimate IO with around 20 buttons that is bought from etc Ultimarc. 

A suggestion would be if user has a Ultimate IO board and uses port 49-96 the user is forced to manually map the BGR outputs either through the .ini file or map with a function like "Test Device by Port". Please also consider to watch the youtube link i posted earlier that show how ledblinky maps the RGB order if you missed that.


Edited by sic79, 17 March 2025 - 09:12 AM.


#13 DDH69

DDH69

    Pinball Wizard

  • Platinum Supporter
  • 3,603 posts
  • Location:DOFLinx HQ, Adelaide

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 17 March 2025 - 10:48 AM

Oh, don't panic just yet!  I pride myself on the fact that DOFLinx can do more then any other middleware for pinball and arcade machines.  If you are prepared to test, then I will add support for other than RGB devices.  I had a couple of wines and went for a walk today while away for a couple of days and have an idea.  We can sort this over the next week if you are prepared for the test time  :D

 

If you are, then ma all of your LEDs to the first output port, ie Red for RBG, Blue for BRG, Green for GRB, etc.  I will add the ability to define a device RGB order.


DOFLinx
Contributions for equipment to help with ongoing DOFLinx development can be made here

#14 digitalarts

digitalarts

    Pinball Fan

  • Members
  • PipPipPipPip
  • 864 posts
  • Location:Bavaria

  • Flag: Germany

  • Favorite Pinball: Judge Dredd (have the real one); all virtual EM's

Posted 17 March 2025 - 05:40 PM

? I can't See a problem with the Pins at this Board.
One Side is +RGB, so plug your Button-connector to it: yellow-red-green-blue
ON other Side is BGR+, so Turn your Button-connector and Plug to it:blue-green-red-yellow

#15 sic79

sic79

    Hobbyist

  • Members
  • PipPip
  • 23 posts

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

  • Favorite Pinball: The Addams Family

Posted 17 March 2025 - 08:53 PM

Oh, don't panic just yet!  I pride myself on the fact that DOFLinx can do more then any other middleware for pinball and arcade machines.  If you are prepared to test, then I will add support for other than RGB devices.  I had a couple of wines and went for a walk today while away for a couple of days and have an idea.  We can sort this over the next week if you are prepared for the test time  :D
 
If you are, then ma all of your LEDs to the first output port, ie Red for RBG, Blue for BRG, Green for GRB, etc.  I will add the ability to define a device RGB order.


Haha, ok. Wine and walk solves many problems, so Ive heard ;).

Ok, do I really need to rewire? Cant the test be done on current setup? Its a ratsnest under the control panel and plenty of hotglue to hold the wires. :o

#16 DDH69

DDH69

    Pinball Wizard

  • Platinum Supporter
  • 3,603 posts
  • Location:DOFLinx HQ, Adelaide

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 17 March 2025 - 11:02 PM

? I can't See a problem with the Pins at this Board.
One Side is +RGB, so plug your Button-connector to it: yellow-red-green-blue
ON other Side is BGR+, so Turn your Button-connector and Plug to it:blue-green-red-yellow

 

That takes care of the physical wiring with standard harnesses, but if it leaves you with RGB for incrementing port numbers on part of the board and BGR for incrementing port numbers on the other part then you've got a driving software issue.  So defining a RGB LED on one side has say port 1 = R, 2 = G, 3 = B  whereas on the other side you have 70 = B, 71 = G, 72 = R, so the base port is not always red.


 

Ok, do I really need to rewire? Cant the test be done on current setup? Its a ratsnest under the control panel and plenty of hotglue to hold the wires. :o

 

 

Don't rewire.  Instead of mapping the red port, map the first port for each RGB, so on the first side it will be the red port, but on the second side it will be blue (if I'm not mistaken)


DOFLinx
Contributions for equipment to help with ongoing DOFLinx development can be made here

#17 sic79

sic79

    Hobbyist

  • Members
  • PipPip
  • 23 posts

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

  • Favorite Pinball: The Addams Family

Posted 18 March 2025 - 06:58 AM

@DDH69 Ok, so just remap the BGR side then :).. Will do this first thing when I get home from work.


Edited by sic79, 18 March 2025 - 07:35 AM.


#18 DDH69

DDH69

    Pinball Wizard

  • Platinum Supporter
  • 3,603 posts
  • Location:DOFLinx HQ, Adelaide

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 19 March 2025 - 06:52 AM

OK, testing time!

 

Here is a beta with the ability to spin the RGB to anything you need.

 

Add a combined line, or a line per button to switch the ones that are NOT RGB.

 

LED_COLOUR_ORDER=BUT_ST,BGR,BUT_P9,GRB,BUT_P10,RBG , etc

or

LED_COLOUR_ORDER=BUT_ST,BGR

LED_COLOUR_ORDER=BUT_P9,GRB

LED_COLOUR_ORDER=BUT_P10,RBG

 

I remind you that my main arcade machine with lots of RGB buttons has no output board at present so I've briefly tested this on the arcade machine with only 6 RGB buttons.

 

Let me know how you go.  Being a beta there will be lots of logging.  Interested to see the LOG if you have issues.  Remember map the first port for the LED, regardless of its colour.  Also, remember to spell COLOUR correctly  :clnglasses:

Attached Files


DOFLinx
Contributions for equipment to help with ongoing DOFLinx development can be made here

#19 sic79

sic79

    Hobbyist

  • Members
  • PipPip
  • 23 posts

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

  • Favorite Pinball: The Addams Family

Posted 19 March 2025 - 05:51 PM

Hi!, 

 

Now I have tested but still wrong colours, heres the log, ini and a picture.

 

INI

######
# DOFLinx Configuration Tool generated DOFLinx.INI file at 5:54:29 PM Thursday, March 13, 2025
######

DEBUG=1

COLOUR_FILE=D:\LaunchBox\ThirdParty\DOFLinx\config\colours.ini
DIRECTOUTPUTGLOBAL=D:\DirectOutput\Config\GlobalConfig_B2SServer.xml
PATH_B2S_SERVER=D:\Games\VisualPinball\Tables\

PATH_MAME=D:\LaunchBox\ThirdParty\DOFLinx\MAME\
MAME_FOLDER=D:\LaunchBox\Emulators\MAME 0.265\
PATH_DOF2DMD=D:\LaunchBox\ThirdParty\DOF2DMD\
PATH_HI2TXT=D:\LaunchBox\ThirdParty\Hi2Txt\

PROCESSES=Mame_270
MAME_PROCESS=Mame_270

#Common Buttons
LINK_BUT_CN=3073,Yellow,35,3076,Yellow,36
LINK_BUT_ST=3022,Green,4C
LINK_BUT_EX=3055,Red,1B
LINK_BUT_PS=3025,Green,43

#Player 1
LINK_BUT_P1=3046,Red,31
LINK_BUT_B1=3004,Red,4E
LINK_BUT_B2=3007,Red,5A
LINK_BUT_B3=3010,Red,58
LINK_BUT_B4=3013,Red,A2
LINK_BUT_B5=3016,Red,A4
LINK_BUT_B6=3019,Red,20

#Player 2
LINK_BUT_P2=3052,Blue,32
LINK_BUT_B9=3028,BLue,41
LINK_BUT_B10=3031,Blue,53
LINK_BUT_B11=3034,Blue,51
LINK_BUT_B12=3037,Blue,57
LINK_BUT_B13=3040,Blue,49
LINK_BUT_B14=3043,Blue,4B

#Flipper
LINK_BUT_LB=3064,Blue,4A
LINK_BUT_LF=3067,Blue,A0
LINK_BUT_RF=3058,Blue,A1

#!!!!!!!!!!!!!!!!!!!!!!!!!!!
# Manual Entries Section
PROCESS_TO_ACTIVE_TIME=1
MAME_SCORE_CHECK_PERIOD=100
TRIGGER_DEBOUNCE_TIME=10
DELAY_BETWEEN_KEY_PRESS=100
CLOSE_ROMS=0

####### Button Lit #######	
#Common Buttons
BUTTONS_LIT_ADDED=BUT_CN
BUTTONS_LIT_ADDED=BUT_PS
BUTTONS_LIT_ADDED=BUT_ST
BUTTONS_LIT_ADDED=BUT_EX

#Player 1
BUTTONS_LIT_ADDED=BUT_P1
BUTTONS_LIT_ADDED=BUT_B1
BUTTONS_LIT_ADDED=BUT_B2
BUTTONS_LIT_ADDED=BUT_B3
BUTTONS_LIT_ADDED=BUT_B4
BUTTONS_LIT_ADDED=BUT_B5
BUTTONS_LIT_ADDED=BUT_B6

#Player 2
BUTTONS_LIT_ADDED=BUT_P2
BUTTONS_LIT_ADDED=BUT_B9
BUTTONS_LIT_ADDED=BUT_B10
BUTTONS_LIT_ADDED=BUT_B11
BUTTONS_LIT_ADDED=BUT_B12
BUTTONS_LIT_ADDED=BUT_B13
BUTTONS_LIT_ADDED=BUT_B14

#Flipper
BUTTONS_LIT_ADDED=BUT_LB
BUTTONS_LIT_ADDED=BUT_LF
BUTTONS_LIT_ADDED=BUT_RF




####### Button Colours #######
#Button Colours
LED_COLOUR_ORDER=BUT_CN,BGR
LED_COLOUR_ORDER=BUT_ST,RBG
LED_COLOUR_ORDER=BUT_EX,GBR
LED_COLOUR_ORDER=BUT_PS,RBG

# Player 1 Button Colours
LED_COLOUR_ORDER=BUT_P1,RBG
LED_COLOUR_ORDER=BUT_B1,RBG
LED_COLOUR_ORDER=BUT_B2,RBG
LED_COLOUR_ORDER=BUT_B3,RBG
LED_COLOUR_ORDER=BUT_B4,RBG
LED_COLOUR_ORDER=BUT_B5,RBG
LED_COLOUR_ORDER=BUT_B6,RBG

#Player 2 Button Colours
LED_COLOUR_ORDER=BUT_P2,BGR
LED_COLOUR_ORDER=BUT_B9,RBG
LED_COLOUR_ORDER=BUT_B10,RBG
LED_COLOUR_ORDER=BUT_B11,RBG
LED_COLOUR_ORDER=BUT_B12,RBG
LED_COLOUR_ORDER=BUT_B13,RBG
LED_COLOUR_ORDER=BUT_B14,RBG

#Flipper Button Colours
LED_COLOUR_ORDER=BUT_LB,GBR
LED_COLOUR_ORDER=BUT_LF,BGR
LED_COLOUR_ORDER=BUT_RF,BGR

#!!!!!!!!!!!!!!!!!!!!!!!!!!!

LOG

19-Mar-25 18:34:32.453 - *********************************************************
19-Mar-25 18:34:32.453 - DOFLinx for Pinball and MAME Emulators - DOFLinx by DDH69
19-Mar-25 18:34:32.467 - Starting up - version 8.25 Beta 3
19-Mar-25 18:34:32.467 - *********************************************************
19-Mar-25 18:34:32.483 - DEBUG enabled with showing of window True
19-Mar-25 18:34:32.483 * BETA logging flag enabled
19-Mar-25 18:34:32.499 * DOF path taken from CLSID = D:\DirectOutput\x64\
19-Mar-25 18:34:32.499 - DOF (DirectOutput.dll) path used = D:\DirectOutput\x64\
19-Mar-25 18:34:32.499 - DirectOutput.dll version = 3.2.9075.22415  dated 11/5/2024 12:27:14 PM
19-Mar-25 18:34:32.530 - 64 bit operating system
19-Mar-25 18:34:32.530 - 64 bit application
19-Mar-25 18:34:32.530 - If you like it, please make a donation here https://www.paypal.com/donate?hosted_button_id=YEPCTUYFX5KDE
19-Mar-25 18:34:32.530 - The guide can be found here https://doflinx.github.io/docs/
19-Mar-25 18:34:32.530 - For support come and visit the community here https://www.vpforums.org/index.php?showforum=104
19-Mar-25 18:34:32.530 - Pre-Reading DOFLinx.INI startup config file details
19-Mar-25 18:34:32.546 * Processing parameter 'DEBUG' with data '1' not in real-time
19-Mar-25 18:34:32.546 - Turning DEBUG off
19-Mar-25 18:34:32.609 - DEBUG enabled with showing of window True
19-Mar-25 18:34:32.613 - DEBUG enabled with showing of window True
19-Mar-25 18:34:32.613 * Running Start_DOF_Pinball - Current DOF ROM =   New ROM = doflinx
19-Mar-25 18:34:33.600 * Opened DOF 'Pinball' doflinx in 960mS
19-Mar-25 18:34:33.606 * ReceiveData with Element=E Number=99 Value=1 for time=0
19-Mar-25 18:34:33.648 * Joystick number = 1  Return code = 165
19-Mar-25 18:34:33.648 * Joystick number = 2  Return code = 165
19-Mar-25 18:34:33.664 * Joystick number = 3  Return code = 0
19-Mar-25 18:34:33.667 - Joystick # 3 detected : 32 buttons   Z-Axis
19-Mar-25 18:34:33.667 * Joystick number = 4  Return code = 165
19-Mar-25 18:34:33.671 * Joystick number = 5  Return code = 165
19-Mar-25 18:34:33.671 * Joystick number = 6  Return code = 0
19-Mar-25 18:34:33.671 - Joystick # 6 detected : 8 buttons  
19-Mar-25 18:34:33.680 * Joystick number = 7  Return code = 0
19-Mar-25 18:34:33.680 - Joystick # 7 detected : 8 buttons  
19-Mar-25 18:34:33.680 * Joystick number = 8  Return code = 165
19-Mar-25 18:34:33.688 * Joystick number = 9  Return code = 165
19-Mar-25 18:34:33.688 * Joystick number = 10  Return code = 165
19-Mar-25 18:34:33.758 * Joystick number = 11  Return code = 165
19-Mar-25 18:34:33.767 * Joystick number = 12  Return code = 165
19-Mar-25 18:34:33.771 * Joystick number = 13  Return code = 165
19-Mar-25 18:34:33.774 * Joystick number = 14  Return code = 165
19-Mar-25 18:34:33.774 * Joystick number = 15  Return code = 165
19-Mar-25 18:34:33.827 * Joystick number = 16  Return code = 165
19-Mar-25 18:34:33.837 * 1 Pinscape device(s) found
19-Mar-25 18:34:33.837 - DOFLinx device: 1 Initializing as Pinscape #1 with name=Pinscape Controller
19-Mar-25 18:34:33.849 - DOFLinx device:1 Pinscape setup with 22 outputs
19-Mar-25 18:34:33.853 * 0 Pinscape Pico device(s) found
19-Mar-25 18:34:33.863 * 0 Dudes Cab(s) found
19-Mar-25 18:34:34.089 - PinOne Port = 
19-Mar-25 18:34:34.089 * No PinOne device found
19-Mar-25 18:34:34.089 * 1 LEDWiz device(s) found
19-Mar-25 18:34:34.107 - DOFLinx device: 2 Initializing as LEDWiz #8 with ID=0
19-Mar-25 18:34:34.107 - DOFLinx device:2 LEDWiz setup with 32 outputs
19-Mar-25 18:34:34.107 - This device is probably a PinScape emulating a LEDWiz, if it is, then it is better to assign toys to the Pinscape device not this one
19-Mar-25 18:34:34.124 * 0 FTDI (Sainsmart) device(s) found
19-Mar-25 18:34:34.137 * 0 PacLED64 device(s) found
19-Mar-25 18:34:34.137 * 1 Ultimate IO device(s) found
19-Mar-25 18:34:34.152 - DOFLinx device: 3 Initializing as Ulimate IO #0 with ID=0
19-Mar-25 18:34:34.159 - DOFLinx device:3 Ultimate IO setup with 96 outputs
19-Mar-25 18:34:34.161 * DOFAllOff updating output device #1
19-Mar-25 18:34:34.171 * DOFAllOff updating output device #2
19-Mar-25 18:34:34.176 * DOFAllOff updating output device #3
19-Mar-25 18:34:34.184 - Reading DOFLinx.INI startup config file details
19-Mar-25 18:34:34.184 * Processing parameter 'DEBUG' with data '1' not in real-time
19-Mar-25 18:34:34.184 - Turning DEBUG off
19-Mar-25 18:34:34.217 - DEBUG enabled with showing of window True
19-Mar-25 18:34:34.234 - Reading DirectOutputConfig file named D:\LaunchBox\ThirdParty\DOFLinx\config\colours.ini
19-Mar-25 18:34:34.247 - DEBUG enabled with showing of window True
19-Mar-25 18:34:34.247 - Set Debug Privilege = Set OK
19-Mar-25 18:34:34.247 * Checking DOF2DMD
19-Mar-25 18:34:34.263 * Reading DOF2DMD setup
19-Mar-25 18:34:34.271 * Trying to start DOF2DMD
19-Mar-25 18:34:34.279 - DOF2DMD is active so starting up link
19-Mar-25 18:34:34.295 * Sending URL='http://127.0.0.1:8080/v1/version'
19-Mar-25 18:34:34.830 * DOF2DMD response='1.0'
19-Mar-25 18:34:34.845 * 1.0
19-Mar-25 18:34:34.846 - DOF2DMD Connection Established
19-Mar-25 18:34:34.857 * Sending URL='http://127.0.0.1:8080/v1/display/picture?path=mame/DOFLinx&duration=-1'
19-Mar-25 18:34:34.872 * DOF2DMD response='Picture or video not found: mame/DOFLinx'
19-Mar-25 18:34:34.878 - Loading MAME game names
19-Mar-25 18:34:35.240 * BG creation worked OK
19-Mar-25 18:34:35.256 - Loading Menu.INI
19-Mar-25 18:34:35.267 - Processing parameter 'LOAD_SOUND' with data 'LFlipper,100,LEFT_REAR,Flipper_L01,Flipper_L02,Flipper_L03,Flipper_L04,Flipper_L05,Flipper_L06,Flipper_L07,Flipper_L08,Flipper_L09,Flipper_L10,Flipper_L11' in real-time
19-Mar-25 18:34:35.272 - Processing parameter 'LOAD_SOUND' with data 'RFlipper,100,RIGHT_REAR,Flipper_R01,Flipper_R02,Flipper_R03,Flipper_R04,Flipper_R05,Flipper_R06,Flipper_R07,Flipper_R08,Flipper_R09,Flipper_R10,Flipper_R11' in real-time
19-Mar-25 18:34:35.288 - Processing parameter 'LOAD_SOUND' with data 'BallColl,100,REAR,Ball_Collide_1,Ball_Collide_2,Ball_Collide_3,Ball_Collide_4,Ball_Collide_5,Ball_Collide_6,Ball_Collide_7' in real-time
19-Mar-25 18:34:35.292 - Processing parameter 'LOAD_SOUND' with data 'DropTarget,100,SIDE,Drop_Target_Down_1,Drop_Target_Down_2,Drop_Target_Down_3,Drop_Target_Down_4,Drop_Target_Down_5,Drop_Target_Down_6' in real-time
19-Mar-25 18:34:35.303 - Trigger thread starting
19-Mar-25 18:34:38.311 - Game name = 'Fake'
19-Mar-25 18:34:38.318 - Named process detected and startup commenced
19-Mar-25 18:34:38.326 * Build Current Colours called for Game Name = 'Fake' Index found = -1
19-Mar-25 18:34:38.334 - Using full colour palette
19-Mar-25 18:34:38.342 - 122 colours added to the palette
19-Mar-25 18:34:38.358 - Turning on RGB button LED Device=3 Output=73 colour index=4
19-Mar-25 18:34:38.360 - Turning on RGB button LED Device=3 Output=76 colour index=4
19-Mar-25 18:34:38.373 - Turning on RGB button LED Device=3 Output=22 colour index=11
19-Mar-25 18:34:38.385 - Turning on RGB button LED Device=3 Output=55 colour index=1
19-Mar-25 18:34:38.401 - Turning on RGB button LED Device=3 Output=25 colour index=11
19-Mar-25 18:34:38.405 - Turning on RGB button LED Device=3 Output=46 colour index=1
19-Mar-25 18:34:38.405 - Turning on RGB button LED Device=3 Output=4 colour index=1
19-Mar-25 18:34:38.433 - Turning on RGB button LED Device=3 Output=7 colour index=1
19-Mar-25 18:34:38.437 - Turning on RGB button LED Device=3 Output=10 colour index=1
19-Mar-25 18:34:38.452 - Turning on RGB button LED Device=3 Output=13 colour index=1
19-Mar-25 18:34:38.452 - Turning on RGB button LED Device=3 Output=16 colour index=1
19-Mar-25 18:34:38.471 - Turning on RGB button LED Device=3 Output=19 colour index=1
19-Mar-25 18:34:38.483 - Turning on RGB button LED Device=3 Output=52 colour index=3
19-Mar-25 18:34:38.484 - Turning on RGB button LED Device=3 Output=28 colour index=3
19-Mar-25 18:34:38.500 - Turning on RGB button LED Device=3 Output=31 colour index=3
19-Mar-25 18:34:38.500 - Turning on RGB button LED Device=3 Output=34 colour index=3
19-Mar-25 18:34:38.521 - Turning on RGB button LED Device=3 Output=37 colour index=3
19-Mar-25 18:34:38.533 - Turning on RGB button LED Device=3 Output=40 colour index=3
19-Mar-25 18:34:38.533 - Turning on RGB button LED Device=3 Output=43 colour index=3
19-Mar-25 18:34:38.547 - Turning on RGB button LED Device=3 Output=64 colour index=3
19-Mar-25 18:34:38.555 - Turning on RGB button LED Device=3 Output=67 colour index=3
19-Mar-25 18:34:38.563 - Turning on RGB button LED Device=3 Output=58 colour index=3
19-Mar-25 18:34:42.589 - Activating process disappeared so stopping things
19-Mar-25 18:34:42.589 * DOFAllOff updating output device #1
19-Mar-25 18:34:42.589 * DOFAllOff updating output device #2
19-Mar-25 18:34:42.605 * DOFAllOff updating output device #3
19-Mar-25 18:34:43.896 - Shutting down
19-Mar-25 18:34:43.896 * DOFAllOff updating output device #1
19-Mar-25 18:34:43.903 * DOFAllOff updating output device #2
19-Mar-25 18:34:43.918 * DOFAllOff updating output device #3
19-Mar-25 18:34:44.965 * Sending URL='http://127.0.0.1:8080/v1/display/score?players=1&player=1&score=0'
19-Mar-25 18:34:44.973 * DOF2DMD response='OK'
19-Mar-25 18:34:44.981 * Sending URL='http://127.0.0.1:8080/v1/blank'
19-Mar-25 18:34:44.981 * DOF2DMD response='OK'
19-Mar-25 18:34:44.997 * Sending URL='http://127.0.0.1:8080/v1/exit'
19-Mar-25 18:34:45.515 * DOF2DMD response='exit'
19-Mar-25 18:34:45.515 - Program close

Picture

doflinx_beta.jpg

 

 

I also saw something interesting with the "MixColour" function, when testing one button 2 were lit.

doflinx_mixcolour.jpg

 

 

I hope the above helps to trace whats going on :)



#20 DDH69

DDH69

    Pinball Wizard

  • Platinum Supporter
  • 3,603 posts
  • Location:DOFLinx HQ, Adelaide

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 19 March 2025 - 09:06 PM

Based on your port mappings I would expect any button >49 to have its LED wired as BGR.  As such I would expect your DOFLinx.INI would look more like this

 

#####
# DOFLinx Configuration Tool generated DOFLinx.INI file at 5:54:29 PM Thursday, March 13, 2025
######


DEBUG=1


COLOUR_FILE=D:\LaunchBox\ThirdParty\DOFLinx\config\colours.ini
DIRECTOUTPUTGLOBAL=D:\DirectOutput\Config\GlobalConfig_B2SServer.xml
PATH_B2S_SERVER=D:\Games\VisualPinball\Tables\


PATH_MAME=D:\LaunchBox\ThirdParty\DOFLinx\MAME\
MAME_FOLDER=D:\LaunchBox\Emulators\MAME 0.265\
PATH_DOF2DMD=D:\LaunchBox\ThirdParty\DOF2DMD\
PATH_HI2TXT=D:\LaunchBox\ThirdParty\Hi2Txt\


PROCESSES=Mame_270
MAME_PROCESS=Mame_270


#Common Buttons
LINK_BUT_CN=3073,Yellow,35,3076,Yellow,36
LINK_BUT_ST=3022,Green,4C
LINK_BUT_EX=3055,Red,1B
LINK_BUT_PS=3025,Green,43


#Player 1
LINK_BUT_P1=3046,Red,31
LINK_BUT_B1=3004,Red,4E
LINK_BUT_B2=3007,Red,5A
LINK_BUT_B3=3010,Red,58
LINK_BUT_B4=3013,Red,A2
LINK_BUT_B5=3016,Red,A4
LINK_BUT_B6=3019,Red,20


#Player 2
LINK_BUT_P2=3052,Blue,32
LINK_BUT_B9=3028,BLue,41
LINK_BUT_B10=3031,Blue,53
LINK_BUT_B11=3034,Blue,51
LINK_BUT_B12=3037,Blue,57
LINK_BUT_B13=3040,Blue,49
LINK_BUT_B14=3043,Blue,4B


#Flipper
LINK_BUT_LB=3064,Blue,4A
LINK_BUT_LF=3067,Blue,A0
LINK_BUT_RF=3058,Blue,A1


#!!!!!!!!!!!!!!!!!!!!!!!!!!!
# Manual Entries Section
PROCESS_TO_ACTIVE_TIME=1
MAME_SCORE_CHECK_PERIOD=100
TRIGGER_DEBOUNCE_TIME=10
DELAY_BETWEEN_KEY_PRESS=100
CLOSE_ROMS=0


####### Button Lit ####### 
#Common Buttons
BUTTONS_LIT_ADDED=BUT_CN
BUTTONS_LIT_ADDED=BUT_PS
BUTTONS_LIT_ADDED=BUT_ST
BUTTONS_LIT_ADDED=BUT_EX


#Player 1
BUTTONS_LIT_ADDED=BUT_P1
BUTTONS_LIT_ADDED=BUT_B1
BUTTONS_LIT_ADDED=BUT_B2
BUTTONS_LIT_ADDED=BUT_B3
BUTTONS_LIT_ADDED=BUT_B4
BUTTONS_LIT_ADDED=BUT_B5
BUTTONS_LIT_ADDED=BUT_B6


#Player 2
BUTTONS_LIT_ADDED=BUT_P2
BUTTONS_LIT_ADDED=BUT_B9
BUTTONS_LIT_ADDED=BUT_B10
BUTTONS_LIT_ADDED=BUT_B11
BUTTONS_LIT_ADDED=BUT_B12
BUTTONS_LIT_ADDED=BUT_B13
BUTTONS_LIT_ADDED=BUT_B14


#Flipper
BUTTONS_LIT_ADDED=BUT_LB
BUTTONS_LIT_ADDED=BUT_LF
BUTTONS_LIT_ADDED=BUT_RF


####### LED Wiring #######
#LEDs on ports with BGR, ie those > 49
LED_COLOUR_ORDER=BUT_CN,BGR
LED_COLOUR_ORDER=BUT_EX,BGR
LED_COLOUR_ORDER=BUT_P2,BGR
LED_COLOUR_ORDER=BUT_LB,BGR
LED_COLOUR_ORDER=BUT_LF,BGR
LED_COLOUR_ORDER=BUT_RF,BGR


#!!!!!!!!!!!!!!!!!!!!!!!!!!!

Regarding the "Mix Colour" function, that works on raw port numbers, not defined devices (ie, BUT_RF, etc) so it is RGB not BGR.  For anything over port 49 you would need to work on "Red" being "Blue and "Blue being "Red".


DOFLinx
Contributions for equipment to help with ongoing DOFLinx development can be made here