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

running other programs on achievement trigger. #177

Open
Hoover889 opened this issue Dec 21, 2021 · 2 comments
Open

running other programs on achievement trigger. #177

Hoover889 opened this issue Dec 21, 2021 · 2 comments

Comments

@Hoover889
Copy link

Would it be possible to implement a way to trigger some other program/function whenever an achievement is earned?

I built an arcade cabinet with WS2812 LEDs and it would be cool to make them run an animation whenever an achievement triggers

@Jamiras
Copy link
Member

Jamiras commented Dec 21, 2021

That would be a function for the client. rcheevos provides an event when an achievement triggers (see wiki). The client uses that event to pop up the notification. Each client is responsible for managing the event however they feel is appropriate.

There's a couple of twitch integrations that watch for unlocks, but I think they just periodically poll the API to see if anything new is unlocked. I considered adding a named pipe event to the DLL to make it simpler, but most twitch streamers use RetroArch.

Most likely, you're using RetroArch in your arcade cabinet. You could enable logging and watch for unlock messages in the log. Or if you're feeling ambitious, you could just modify the code somewhere in here to do whatever you need yourself.

@meleu
Copy link
Contributor

meleu commented Apr 8, 2022

This reminded me of a conversation I had about 5 years ago about this very thing (blinking LEDs on an arcade cabinet when an achievement is unlocked).

https://retropie.org.uk/forum/post/95321

Never heard about anyone who actually did that though.

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

3 participants