Jump to content



Photo
- - - - -

RGB Magnasave Buttons from DOF Config via DOFLinx

RGB Buttons DOFLinx Magnasave Doflinx.ini

  • Please log in to reply
28 replies to this topic

#21 DDH69

DDH69

    Pinball Wizard

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

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 27 February 2020 - 09:32 PM

There are two ways to achieve what I believe you are looking for.  I believe you are trying to do the following in FX3;

  1. Turn on your mono Launch Button LED - 165
  2. Have your Magna Save RGB LEDs as Blue
  3. Set your Flipper RGB button colours per game
  4. Turn your Magna Save buttons Red for a short time when pressed

The two fixed components can be set in DOFLinx.INI which will perform the action for all table startups.  So

BUTTONS_ON=165
BUTTONS_ON_COLOUR=156,Blue,159,Blue
KEY_TO_COLOUR_TIMER=A0,209,Red,1500

Then you can use the following command in two possible ways (substituting Yellow for the flipper colour you want)

BUTTONS_ON_COLOUR=156,Blue,159,Blue,150,Yellow,153,Yellow

By sending a xxxxxx.INI file to DOFLinx when the table is selected.  You will need a different file per table and a way for your front end to determine which file to send (ie batch file with if statement, etc).  Details of how to use SUP.INI files are in the guide.

 

At table close you will want to send another SUP.INI file to put the flipper button colours back to what you want them to be outside of the FX3 table.  So the same command as in your DOFLinx.INI

BUTTONS_ON_COLOUR=156,Blue,159,Blue

Alternatively (new and untested), you can build the BUTTONS_ON_COLOUR= line into the FX3 file in the [STARTUP] section.  An encrypted line can be inserted and will run when the table starts.  If you want to go down this path you will need to talk me some more.  I've only just added this functionality for the new MAME files and retro fitted it for FX3 files.  So probably best to use the SUP.INI method first and see if you get what you want on a test table first.


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

#22 DDH69

DDH69

    Pinball Wizard

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

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 28 February 2020 - 03:14 AM

By sending a xxxxxx.INI file to DOFLinx when the table is selected.  You will need a different file per table and a way for your front end to determine which file to send (ie batch file with if statement, etc).  Details of how to use SUP.INI files are in the guide

 

 

I went for a wlk at lunch time and realised I'd not given the best advice here.  You will be able to setup a "Run Before" command in your front end to run a Suplementary.INI that is named the same as the game using a parameter, ie DOFLinxmsg [GAMENAME].INI ,_ the syntax here is wrong, look at the examples in the DOFLinx guide then get the right parameter name from your front end menu.  You will have one INI file per game, of course at that rate you can have different colour Magna Save buttons too!


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

#23 fR33Styler

fR33Styler

    Enthusiast

  • Members
  • PipPipPip
  • 56 posts

  • Flag: Germany

  • Favorite Pinball: Monster Bash (FX3)

Posted 29 February 2020 - 06:32 PM

Back from Snowboarding... and directly to the VPIN :dblthumb:

 

I printet out your guide and read / marked this during a business trip in the plane 2 times a month ago (good work btw - helps a lot).

 

What i tried today (i just saw your post after my tries) was (similar what you posted):

 

Created a "Alien_Isolation.ini" in "C:\DirectOutput\MAME" folder... with the content:

####
# The supplementary config file for DOFLinx Pinball FX3 RGB Button Illumination
####

# Turn on Left (150) & Right (153), Magnasave/Nudging Left (156) and Right (159) Flipper Button LEDs
BUTTONS_ON_COLOUR=150,Red,153,Red,156,Yellow_green,159,Yellow_green

then made a "batch file" called "RunSUP_table.bat" with content:

c:
cd c:\directoutput
start /min "" "doflinxmsg.exe" "sup_ini=MAME\[TABLEFILEBASE]"

(TABLEFILEBASE is the variable for PinballY and the FX2/3 tables... and works for sure).

 

and i used "run before" in PinballY with the command:

 

CMD /c c:\DirectOutput\RunSUP_table.bat

(CMD /c .... also works in a different use-case -> tested)

 

But... still the same issue: Flipperbuttons L/R RGB on, Nudgebuttons L/R RGB off :hmm:

 

I tried your untested idea too... put the code in the *.FX3 file:

##################
#
# AlienIsolationPinball
# DOFLinx force feedback FX3 configuration file v2
#
# PinUP Player SSF (Surround Sound Feeback)
# Event Triggers added by TerryRed
#
##################

[STARTUP]
BUTTONS_ON_COLOUR=150,Red,153,Red,156,Yellow_green,159,Yellow_green
fqVqDgieK1/WTlPLVtL7ilvCkurkcVYreB15W2V0olOyOoWGTN/9Rcz4D2+MWbjV
sLdzkBtZ5TKV2G3p2wB+jSQDuR3Mj9/CkGtDb3k94v2L40mX3ryEpw/Nmvs9rNM8
me5M4upKt87NO+NibyoRC/ADTba/tUQJSEgSqpvWqonKY2GoGB24p5F6Xhp8iXzG5TR9roaANZo=

[COMMANDS]
...

The same reaction... Flipperbuttons L/R RGB on, Nudgebuttons L/R RGB off :hmm:

 

 

And if i put this again directly into DOFLinx.ini:

 

BUTTONS_ON_COLOUR=150,Red,153,Red,156,Yellow_green,159,Yellow_green

 

loading FX3: Flipperbuttons L/R RGB on, Nudgebuttons L/R RGB on

InGame: Flipperbuttons L/R RGB on, Nudgebuttons L/R RGB off

 

It (just) looks (for me with less background) like "DOF" overrides "DOFLinx" in some way... because in PinballY (PinballY is controlled by DOF) its the same: Flipperbuttons L/R RGB on, Nudgebuttons L/R RGB off

(and it´s the same when i start "Pinball FX3 via Steam directly" (no PinballY Frontend))

 

It´s really strange... because the log shows twice "the outputs" are turned on:

log0.png

 

Hm... :hmm:
 


Edited by fR33Styler, 29 February 2020 - 06:53 PM.

My VPIN


#24 DDH69

DDH69

    Pinball Wizard

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

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 29 February 2020 - 09:25 PM

The turning on of the outputs a second time is OK.  This is obviously the Beta version I sent in a post above.  It reruns the items established as fixed outputs (BUTTONS_ON_COLOUR= , etc) after loading the FX3 files as some things in there can impact those fixed outputs.

 

Have you created a custom DOF setup for this table's ROM?  If so, can you remove it and retry.  - this will ensure DOF is not interacting in ways we don't want.

Have you tried stopping PinballY, sending the Alien_Isolation.ini file, then starting PinballFX3?  - This will ensure PinballY is not interacting in ways we do not want.

 

 

I do know why the FX3 method is not working - nothing you can do about that just yet.  The run before method is functional though.


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

#25 fR33Styler

fR33Styler

    Enthusiast

  • Members
  • PipPipPip
  • 56 posts

  • Flag: Germany

  • Favorite Pinball: Monster Bash (FX3)

Posted 01 March 2020 - 12:10 AM

No Custom DOF Setup (i dont know where they are?)

 

When i start with PinballY (incl. the: run before "*.bat") and kill PinballY during loading the game -> Buttons colors are correct at both (Flipper & Nudge), but as soon as the game starts (same timing when Teensy LEDs turn on (Playfield & Undercab) -> Flipperbuttons L/R RGB on, Nudgebuttons L/R RGB off

 

The log shows: Processing parameter 'Buttons_ON-COLOUR' with data '150,Red....' but it´s different.

 

Same for "Start Pinball FX3 via Steam only".

 

I made a temporary video for you:

https://drive.google...pp0?usp=sharing

 

00:04: RunSUP_table.bat loaded with correct test-colours (Flipperbuttons red, Nudgingbuttons Yellow_green)

00:15 Game loaded (everything off)

00:18 Teensy Playfield, Undercab on,Flipperbuttons in green, Nudgebuttons off

00:29 pressed "Enter" (Started the game) -> Launchball/Start blinking

 

The green override comes from: DOF Config tool -> RGB Flippers: value

If i delete this (at the Alien_Isolation table) ... also the L/R Flipperbutton LEDs are off

 

So... something "higher or maybe later prioritized" overrates this (from DOFLinx) i think...


Edited by fR33Styler, 01 March 2020 - 12:41 AM.

My VPIN


#26 DDH69

DDH69

    Pinball Wizard

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

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 01 March 2020 - 12:45 AM

Thanks for the video and explanation.

 

No Custom DOF Setup (i dont know where they are?)

 

Your post #16 in this thread talks about placing settings in the DOF config tool for your flippers.  They are the ones I'm asking about being removed.

 

I'll PM you a couple of other instructions.


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

#27 fR33Styler

fR33Styler

    Enthusiast

  • Members
  • PipPipPip
  • 56 posts

  • Flag: Germany

  • Favorite Pinball: Monster Bash (FX3)

Posted 01 March 2020 - 01:05 AM

You dont have to... i found it (with your push) :love39: :love39: :love39: :love39: :love39:

 

I deleted my settings here... made them new (the same), saved it and generated a config with this:

ports.png

(maybe something was wrong in the file just with the RGB magnasave definition)

 

And now it works..... omg... 2 weeks searching :stunned:

 

Thx a lot. Now i can proceed with optimize (in my recording studio) the SSF sounds and build everthing back inside the cabinet :tup:


Edited by fR33Styler, 01 March 2020 - 01:06 AM.

My VPIN


#28 DDH69

DDH69

    Pinball Wizard

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

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 01 March 2020 - 01:18 AM

Yay and congratulations!

 

Your calm persistence has paid off.  Isn't it a wonderful hobby  :facepalm:   Some days its all joy, others ... well just walk away.


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

#29 fR33Styler

fR33Styler

    Enthusiast

  • Members
  • PipPipPip
  • 56 posts

  • Flag: Germany

  • Favorite Pinball: Monster Bash (FX3)

Posted 01 March 2020 - 01:31 AM

Iam a 101% person... i never would give up till it works... and it´s one of the coolest hobby´s ever, you right :winetoast:


My VPIN






Also tagged with one or more of these keywords: RGB Buttons, DOFLinx, Magnasave, Doflinx.ini