remove launcher
This commit is contained in:
parent
88e450ccc0
commit
933e9c23a2
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue