-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtime.py
More file actions
83 lines (71 loc) · 2.4 KB
/
Copy pathtime.py
File metadata and controls
83 lines (71 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import os
import platform
system = platform.system()
username = os.getlogin()
jobs = { "JobResearchAssistant": "research assistant",
"JobPsychologist": "psychologist",
"JobChiefEngineer": "ce",
"JobReporter": "reporter",
"JobZookeeper": "zookeeper",
"JobMedicalIntern": "med intern",
"JobStationAi": "ai",
"JobWarden": "warden",
"JobBoxer": "boxer",
"JobScientist": "sci",
"JobStationEngineer": "engi",
"JobSecurityOfficer": "sec off",
"JobMusician": "musician",
"JobChaplain": "chaplain",
"JobChef": "chef",
"JobSalvageSpecialist": "savl",
"JobChemist": "chem",
"JobMedicalDoctor": "med doctor",
"JobHeadOfSecurity": "hos",
"JobTechnicalAssistant": "technical assistant",
"JobResearchDirector": "rd",
"JobMime": "mime",
"JobParamedic": "paramed",
"JobCaptain": "cap",
"JobBorg": "cyborg",
"JobCargoTechnician": "cargo tech",
"JobHeadOfPersonnel": "hop",
"JobServiceWorker": "service worker",
"JobClown": "clown",
"JobDetective": "det",
"JobLawyer": "lawyer",
"JobAtmosphericTechnician": "atmos",
"JobBartender": "bartender",
"JobBotanist": "botanist",
"JobQuartermaster": "qm",
"JobJanitor": "janitor",
"JobPassenger": "passenger",
"JobSecurityCadet": "sec cadet",
"JobLibrarian": "librarian",
"JobChiefMedicalOfficer": "cmo" }
overall = 0
account = input("SS14 account name: ")
if system == "Linux":
path = "/home/" + username + "/.local/share/Space Station 14/data/roles/"
file = open(path + account, "w")
else:
path = "C:/Users/" + username + "/AppData/Roaming/Space Station 14/data/roles/"
file = open(path + account, "w")
i = 0
for id, name in jobs.items():
while True:
inp = input("Time for " + name + " (eg. 30 47 for 30h 47m): ")
inp = inp.split()
if (len(inp) != 2):
continue
if (not inp[0].isdigit):
continue
if (not inp[1].isdigit):
continue
time = int(inp[0]) * 60
time += int(inp[1])
overall += time
file.write("playtime_addrole " + account + " " + id + " " + str(time) + "\n")
i += 1
break
file.write("playtime_addoverall " + account + " " + str(overall))
file.close()