> My name's Thiago
「 A fullstack developer 」
“Specialization is for insects.”
λ
Hearts of Iron IV presence for Discord!
License: MIT License
「 A fullstack developer 」
“Specialization is for insects.”
λ
Adds more information to the end user.
hoi4-presence/src/discordRPC/hoi4RPC.py
Line 21 in bd92a27
I think it should be "Playing hoi4" or something.
Maybe a good idea is to add some intelligence and display other things as well.
In: https://github.com/ThiaudioTT/hoi4-presence/blob/main/src/discordRPC/main.py#L32
Does not need to be autosave.hoi4
, it can be whatever the name is, just search for a recent file in that Dir.
Discuss and implement how to automatically update the script.
Describe the bug
When executing hoi4rpc it says it
To Reproduce
Steps to reproduce the behavior:
Execute hoi4rpc.exe
Solution:
Adds psutil to requirements.txt
https://stackoverflow.com/questions/50316358/error-no-module-named-psutil
The github actions doesnt have it, so it is building wrong.
This will help with the release packages. Make a CMAKE/Makefile using batch, or something, to compile all the files in one folder.
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.
Create an /docs folder and add documentations there OR
Elaborate repository Wiki.
It gives an error and then, exit.
Change checkupdate and add exceptions with time.sleep.
Add checking if paths in installer are all valids.
If it isn't valid, ask the user to enter the path again.
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.
This could help:
https://pypi.org/project/update-check/
https://stackoverflow.com/questions/12842693/python-check-for-updates-for-a-program
https://stackoverflow.com/questions/72191474/how-to-update-software-made-with-python
version.json
{
"version": "0.1.0",
"auto-update": false
}
You can auto-update using HTTP or requesting the user to do it.
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:
Line 193 in bd92a27
Change exePath in launcher-settings.json
to:
"exePath": "./runRPC.bat",
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.
Finish the documentation...
Describe the bug
I think checkupdate isn't working somehow
Adds more information to the end user.
It's one of the best mods in HOI4 and also one of the most played.
And also we have a wiki:
Create an uninstaller to bring back the vanilla game.
See #2
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
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
We can set any image to large_image
:
https://stackoverflow.com/questions/64417184/how-does-pypresence-work-where-do-i-get-the-image-key
Maybe we can upload the images on GitHub and use it as a source of flags instead of modifying in discord developer portal.
Create an setup.py
that install all the files (batch and .exe and all with the dependencies) and configure the initialization automatically.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.