remove launcher

This commit is contained in:
Absturztaube 2021-01-15 08:56:56 +01:00
parent 88e450ccc0
commit 933e9c23a2
3 changed files with 4 additions and 7 deletions

View File

@ -4,6 +4,8 @@
Script runs super hexagon and monitors your progress in the game (just looks at high scores, dw) and posts new scores as you acchieve them to fedi
Currently only tested on linux. wont work on windows, not sure about macos.
## How to use
make sure you have `scrot` installed
@ -12,4 +14,4 @@ copy the example config and make the nessecary changes to it. (this wont werk on
run `pip install -r requirements.txt` to install the required modules.
run `python ./superfedigon.py` to make it work
start the game and run `python ./superfedigon.py` to make it work

View File

@ -1,8 +1,5 @@
{
"GameDir": "/path/to/super_hexagon/game_dir",
"LaunchCmd": [
"dex '/path/to/Super Hexagon.desktop'"
],
"instance": "your fedi instance",
"username": "your fedi username",
"password": "your fedi password"

View File

@ -60,8 +60,6 @@ scoresHash = hash(scoresFile)
print("Player: " + str(settings.find("./username").text))
subprocess.run(config["LaunchCmd"], shell=True)
wait = 0
print("waiting for super hexagon to start")
while (not process_up() and wait < 10):
@ -111,7 +109,7 @@ while (process_up()):
print("can't post result on fedi")
print(e)
if os.path.isfile(basedir + "/score.png"):
os.rename(basedir + "/time-" + mode + "-" + time + ".png")
os.rename(basedir + "/score.png", basedir + "/time-" + mode + "-" + time + ".png")
print("New PB in " + mode + ": " + time)
scores = newScores
scoresHash = currentScoresHash