This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tkinter as tk | |
from tkinter import ttk | |
import os | |
import time | |
import scripts.PlayerFetcher as pf | |
class Player: | |
def __init__(self, twitch_username, display_name): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import obspython as S | |
import os | |
import csv | |
# CONFIG | |
player_format = "p" | |
focus_scene = "4 Players" | |
main_scene = "6 Players" | |
last_update = 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tkinter as tk | |
from tkinter import ttk | |
import os | |
import time | |
ROWS, COLS = 2, 3 | |
path = os.path.dirname(os.path.realpath(__file__)) | |
obstxtPath = os.path.abspath(os.path.realpath( | |
os.path.join(path, 'data', 'obs.txt'))) | |
twitchtxtPath = os.path.abspath(os.path.realpath( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import requests | |
import time | |
from datetime import datetime | |
mc_name = "specnr" | |
RANKED_API = "https://mcsrranked.com/api/users/" | |
MATCHES_API_EXTENSION = "/matches" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import shutil | |
import glob | |
import os | |
# Edit this | |
INST_FOLDER = "C:/MultiInstanceMC/MultiMC/instances" | |
RECORDS_FOLDER = "C:/Users/Spencer/speedrunigt/records" | |
with open("bop.log", "w") as log: | |
print("Deleting worlds...") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import requests | |
import time | |
import math | |
from datetime import datetime | |
def ms_to_str(ms): | |
milliseconds = math.floor((ms % 1000) / 100) | |
seconds = math.floor((ms / 1000) % 60) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from obswebsocket import obsws, requests | |
import time | |
host = "localhost" | |
port = 4444 | |
password = "" | |
player_format = "p" | |
ws = obsws(host, port, password) | |
try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; by Specnr :) | |
; v0.2 | |
; Startup all instances on title screen, run script, then once all instances are in the world, press Shift+F | |
#NoEnv | |
#SingleInstance Force | |
SetKeyDelay, 0 | |
SetWinDelay, 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
mmc = "C:\MultiInstanceMC\MultiMC" # Change this to match your mmc location | |
instance_format = "1.16INST" # Change this to match your instance naming convention (mine is 1.16INST1, 1.16INST2, etc) | |
instance_count = 9 # Change to match instance count | |
for i in range(1, instance_count+1): | |
print(f"Starting instance {instance_format}{i}") | |
os.system(f"{mmc}\MultiMC.exe -l {instance_format}{i}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import shutil | |
import glob | |
import os | |
# Edit this | |
INST_FOLDER = "C:/MultiInstanceMC/MultiMC/instances" | |
with open("bop.log", "w") as log: | |
files = glob.glob(f'{INST_FOLDER}/*/.minecraft/saves/*') | |
for f in files: |
NewerOlder