Coder Social home page Coder Social logo

thiaudiott / hoi4-presence Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 10.0 134 KB

Hearts of Iron IV presence for Discord!

License: MIT License

Python 98.78% Batchfile 1.22%
hearts-of-iron-4 hoi4 hoi4mod hoi4rpc mod python3 rich-presence rich-presence-discord

hoi4-presence's Introduction

> My name's Thiago


「 A fullstack developer 」

“Specialization is for insects.”

λ

hoi4-presence's People

Contributors

thiaudiott avatar wolfmyths avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hoi4-presence's Issues

Issue on launch

Game launches fine, however error messages appear and appears to be accessing wrong file-path, user profile is not called User? (e.g. "Users/User/etc." should be "Users/actualusername/etc."
Capture
Capture2

Create an "all in one" file

This will help with the release packages. Make a CMAKE/Makefile using batch, or something, to compile all the files in one folder.

Adds more time when getting errors

When I get some error, the program exit it without any warning in some cases.

We need to find when and where this occurs and adds a time.sleep(10) (or other thing) to let the user know that we get an error.

Improve documentation

Create an /docs folder and add documentations there OR

Elaborate repository Wiki.

Check if the paths in installer are all valid

Add checking if paths in installer are all valids.

If it isn't valid, ask the user to enter the path again.

image

Obs:
Checking if the path is valid isn't enough, we already do it. Check if the path contains the game and the others resources that the presence uses (if any) and asks the user until we find a real valid path.

[BUG] - Can't change launcher-settings.json | 'charmap' codec can't decode byte 0x90 in position 792: character maps to <undefined>

We are having trouble when installing the presence with the new update 1.14.4.3.

We can't change the launcher-settings.json, this causes the presence to not update.
Error:

'charmap' codec can't decode byte 0x90 in position 792: character maps to <undefined>

Possibly related: #36

Line in code:

print("Changing launcher-settings.json...")

Temporary solution

Change exePath in launcher-settings.json to:

"exePath": "./runRPC.bat",

Add more countries

Currently, the presence works perfectly only with the "main" countries.

Add all the others countries, as well their flags, use discord developer portal to see if the images are good.

Uninstaller

Create an uninstaller to bring back the vanilla game.

See #2

Change file location in batchFile if setup.py installs in another folder

start "hoi4RPC.exe" "C:\Users\%USERNAME%\Documents\Paradox Interactive\Hearts of Iron IV\hoi4Presence\checkupdate.exe"

This drive name is fixed and needs to change like setup.py changes the installation.

We fix this issue making setup.py rewrite this line and making it point to the exact location.

Both for presence path and checkupdate path

CI/CD for the repo

We can create, somehow, a github workflow to build the exe files and release the packages. This would create a CI/CD and make the release more easier.

Solving this issue first would be better-> #9

Rename documents path

image

This text doesn't provide which documents path. The objective of this issue is to provide a way to better show what the documents path is.

It is something like:

C:\Users\$USER\OneDrive\Documentos\Paradox Interactive\Hearts of Iron IV

Create an installer

Create an setup.py that install all the files (batch and .exe and all with the dependencies) and configure the initialization automatically.

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.