Giter Club home page Giter Club logo

splatoon2richpresence's Introduction

Splatoon 2 Rich Presence for Discord

Screenshot

Description

This utility brings Discord Rich Presence support to the Nintendo Switch game Splatoon 2 via an easy-to-use GUI for selecting your current map.

Usage

  1. Run launch.py
  2. Click on buttons to change your current map
  3. If the map lineup resets in-game, restart launch.py to update the buttons.

Requirements

  • Python 3
  • requests
  • Tk bindings
  • Splatoon 2 fonts (recommended, provided)
  • Discord

FAQ

Q: Will this ever be fully automated (no button-clicking needed)?

A: No. Blame Nintendo.

Q: Does this work on macOS/Windows/Linux?

A:

Windows: Known issues (issues #1, #2)
macOS: Confirmed
GNU-Linux: Confirmed (issue #4)

Attribution

License

launch.py and the default map.txt file are licensed under the MIT license.

splatoon2richpresence's People

Contributors

shugabuga avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

splatoon2richpresence's Issues

Crashes when attempting to set map

Exception in Tkinter callback Traceback (most recent call last): File "C:\Python37\lib\tkinter\__init__.py", line 1702, in __call__ return self.func(*args) File "C:\Python37\lib\tkinter\__init__.py", line 746, in callit func(*args) File "C:\Users\mario\OneDrive\Desktop\Splatoon2RichPresence\launch.py", line 81, in <lambda> label.after(1000, lambda:loop(currentMap, start_time)) File "C:\Users\mario\OneDrive\Desktop\Splatoon2RichPresence\launch.py", line 79, in loop rpc_obj.set_activity(activity) File "C:\Users\mario\OneDrive\Desktop\Splatoon2RichPresence\core\rpc.py", line 138, in set_activity self.send(data) File "C:\Users\mario\OneDrive\Desktop\Splatoon2RichPresence\core\rpc.py", line 116, in send self._write(header) File "C:\Users\mario\OneDrive\Desktop\Splatoon2RichPresence\core\rpc.py", line 161, in _write self._f.flush() OSError: [Errno 22] Invalid argument

So when im attempting to set the map im playing that happens

Crashes on launch in Windows [ Bug ]

I launched the script, but then it couldn't open a lot of files and dirs. Here is the output:

�[95mSplatoon 2 Rich Presence (for Discord)�[0m
�[95mCreated by HeyItsShuga - Data from splatoon2.ink�[0m

failed to open '\\\\?\\pipe\\discord-ipc-0': [Errno 2] No such file or directory: '\\\\?\\pipe\\discord-ipc-0'
failed to open '\\\\?\\pipe\\discord-ipc-1': [Errno 2] No such file or directory: '\\\\?\\pipe\\discord-ipc-1'
failed to open '\\\\?\\pipe\\discord-ipc-2': [Errno 2] No such file or directory: '\\\\?\\pipe\\discord-ipc-2'
failed to open '\\\\?\\pipe\\discord-ipc-3': [Errno 2] No such file or directory: '\\\\?\\pipe\\discord-ipc-3'
failed to open '\\\\?\\pipe\\discord-ipc-4': [Errno 2] No such file or directory: '\\\\?\\pipe\\discord-ipc-4'
failed to open '\\\\?\\pipe\\discord-ipc-5': [Errno 2] No such file or directory: '\\\\?\\pipe\\discord-ipc-5'
failed to open '\\\\?\\pipe\\discord-ipc-6': [Errno 2] No such file or directory: '\\\\?\\pipe\\discord-ipc-6'
failed to open '\\\\?\\pipe\\discord-ipc-7': [Errno 2] No such file or directory: '\\\\?\\pipe\\discord-ipc-7'
failed to open '\\\\?\\pipe\\discord-ipc-8': [Errno 2] No such file or directory: '\\\\?\\pipe\\discord-ipc-8'
failed to open '\\\\?\\pipe\\discord-ipc-9': [Errno 2] No such file or directory: '\\\\?\\pipe\\discord-ipc-9'
�[91mRPC connection failed! Is Discord open?�[0m

I have no idea what is causing this, I guess it is the absence of requests as I wasn't able to install it using pip.

I have freshly reinstalled the entire python... thing. (I ran the installer and reinstalled everything completely)

RPC connection failed on Ubuntu 18.04 LTS

I tried running this script like normal, but I get this error message upon opening:

RPC connection failed! Is Discord open?

I tried restarting both Discord, both the script but it just kept on giving me this error.

I'm using Ubuntu 18.04.1 Bionic Beaver LTS. And yes, Discord is open.

cannot import

cannot import name 'rpc' from 'core' (unknown location)
error being spit out
also
can't open file 'replinput': [Errno 2] No such file or directory
third issue
unable to import requests

Linux issue (and suggestion)

Hey, just downloaded this RPC client. It works great so far on Linux, though there's one issue. I am unable to resize the window, and not all of the text fits in.
image
Also my suggestion is a private battle mode so people can know if you're playing a PB (maybe an option to put the password up as well)
Other than that, nice program!

Investigate alternate RPC library

Looking at #2, the RPC library might be causing issues on non-macOS platforms, so switching RPC libraries might solve some of the crashing issues.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.