Main > Linux
LEDSpicer changing button color when using emitter.
StefanV:
Hi everyone,
I bulidng my first arcade and at the moment I am trying to light my RGB Buttons for my aracde running retropie on a RPI 4.
Using LEDSpicer is working quite well for this.
There is one challenge I am fighting with.
Is there any chance to change the button colors when emitter gathers the configuration from the gameData.xml file?
With my current configuration the button color is always "White", and I would like to change the colors not for every game but for the system.
Attached there is snap from the log file for using emitter with galaga like the example from the LEDSpicer Wiki Pages:
--- Code: ---Received message: task: CraftProfile, data: arcade/galaga|P2_JOYSTICK1,P2_BUTTON1,P1_JOYSTICK1,P1_BUTTON1|PLAYER1,PLAYER2,2_COINS,2_PLAYERS|arcade|11
changing profile to arcade/galaga
Reading /usr/share/ledspicer/profiles/arcade/galaga.xml
Profile failed: Unable to read the file /usr/share/ledspicer/profiles/arcade/galaga.xml Error=XML_ERROR_FILE_NOT_FOUND ErrorID=3 (0x3) Line number=0: filename=/usr/share/ledspicer/profiles/arcade/galaga.xml
Creating profile with profile_arcade
Reading /usr/share/ledspicer/profiles/profile_arcade.xml
Unknown element P2_JOYSTICK1
Unknown element P2_BUTTON1
Unknown element P1_JOYSTICK1
Using element P1_BUTTON1 color White
Loading animation PLAYER1
--- End code ---
I found out that chanig the color is possible when I create a profile for each game.
But that would mean I need to craete a xml profile file for any game played.
From my understanding that would contradict the idea behind using emitter an get the config from the gameData.xml file.
Any hint is much appreaciated.
Thanks, Stefan.
mahuti:
I have a lot of experience with LEDspicer and my system does what you ask with only the profile_arcade. Changing the colors is done automatically with a colors.ini file. I'll get the details and details back to you later.
Meantime I have a write up that could possibly be helpful, though I don't remember if I specifically covered that scenario in it.
StefanV:
Thanks mahuti for your quick response. :D
I will take a look in your linked description for the emitter plugin.
I guess the hint to the colors.ini file will be the key.
I haven't found any information to this here in the forum nor in the ledspicer wiki pages.
BTW: The search function of this forum is not working for me.
I alway get the error attached in the uploaded screenshot. Any idea to this issue?
Thanks, Stefan.
PL1:
--- Quote from: StefanV on January 04, 2021, 10:40:09 am ---BTW: The search function of this forum is not working for me.
I alway get the error attached in the uploaded screenshot. Any idea to this issue?
--- End quote ---
Saint knows about the problem. http://forum.arcadecontrols.com/index.php/topic,162229.0.html
--- Quote from: PL1 on October 29, 2020, 05:29:58 pm ---JRobATL found a way to partly restore search functionality.
--- Quote from: JRobATL on October 29, 2020, 04:23:44 pm ---You can still use the search feature if you search in message subjects only.
--- End quote ---
--- End quote ---
If a subject line search doesn't yield the desired results, add "site:forum.arcadecontrols.com" to an internet search engine query.
- For example, if you want to search for BYOAC posts containing LEDSpicer and emitter the search terms would be,
--- Code: ---LEDSpicer emitter site:forum.arcadecontrols.com
--- End code ---
https://duckduckgo.com/?q=LEDSpicer+emitter+site%3Aforum.arcadecontrols.com&t=h_&ia=web
Scott
meduza:
as mahuti, using the color's file is one way to go, you can also use default color per element / group :)
Navigation
[0] Message Index
[#] Next page
Go to full version