-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathscript2.py
executable file
·156 lines (151 loc) · 9.9 KB
/
script2.py
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
str_input = """21:33:26 INFO [Main] [Settings+]: layer_0:
21:33:26 INFO [Main] [Settings+]: page_0:7
21:33:26 INFO [Main] [Settings+]: object_0:
21:33:26 INFO [Main] [Settings+]: info_26:Restarts level upon death automatically.
21:33:26 INFO [Main] [Settings+]: info_52:Restarts in 0.5 s instead of 1.0 s upon death.
21:33:26 INFO [Main] [Settings+]: info_128:Locks and hides cursor during gameplay.
21:33:26 INFO [Main] [Settings+]: info_10:Flips which side controls which player during 2-player mode.
21:33:26 INFO [Main] [Settings+]: info_11:Limits player 1 controls to one side even when dual mode is inactive.
21:33:26 INFO [Main] [Settings+]: info_28:Disables mouse movement when using a controller thumbstick.
21:33:26 INFO [Main] [Settings+]: info_163:Enables some quick temporary bindings until full customization later. Use 'R' for reset, 'CTRL + R' for full reset, and 'P' to toggle hitboxes in Practice mode.
21:33:26 INFO [Main] [Settings+]: layer_1:
21:33:26 INFO [Main] [Settings+]: page_1:10
21:33:26 INFO [Main] [Settings+]: object_1:
21:33:26 INFO [Main] [Settings+]: info_24:Shows cursor and pause button during gameplay.
21:33:26 INFO [Main] [Settings+]: info_135:Hides the attempt counter when playing levels.
21:33:26 INFO [Main] [Settings+]: info_15:Flips the location of the pause button.
21:33:26 INFO [Main] [Settings+]: info_129:Disables extra indicators on portals.
21:33:26 INFO [Main] [Settings+]: info_130:Enables extra indicators on orbs.
21:33:26 INFO [Main] [Settings+]: info_140:Disables the scaling effect on all orbs.
21:33:26 INFO [Main] [Settings+]: info_141:Disables the scaling effect on only trigger orbs.
21:33:26 INFO [Main] [Settings+]: info_172:Disables shake effects.
21:33:26 INFO [Main] [Settings+]: info_14:Disables the shake effect that happens upon death.
21:33:26 INFO [Main] [Settings+]: info_72:Disables the effect that happens upon changing gravity.
21:33:26 INFO [Main] [Settings+]: layer_2:
21:33:26 INFO [Main] [Settings+]: page_2:5
21:33:26 INFO [Main] [Settings+]: object_2:
21:33:26 INFO [Main] [Settings+]: info_60:Sets player icon in mini mode to default.
21:33:26 INFO [Main] [Settings+]: info_61:Toggles between main and secondary color for the teleport effect in spider mode.
21:33:26 INFO [Main] [Settings+]: info_62:Toggles between main and secondary color for the fire effect from dash orbs.
21:33:26 INFO [Main] [Settings+]: info_96:Toggles between main and secondary color for the trail in wave mode.
21:33:26 INFO [Main] [Settings+]: info_174:Hides text in the top left when using start positions or ignore damage.
21:33:26 INFO [Main] [Settings+]: layer_3:
21:33:26 INFO [Main] [Settings+]: page_3:8
21:33:26 INFO [Main] [Settings+]: object_3:
21:33:26 INFO [Main] [Settings+]: info_71:Hides the checkpoint buttons shown in practice mode.
21:33:26 INFO [Main] [Settings+]: info_134:Hides the attempt counter when playing levels in practice mode.
21:33:26 INFO [Main] [Settings+]: info_27:Places checkpoints automatically in practice mode.
21:33:26 INFO [Main] [Settings+]: info_68:Tries to place checkpoints more often in practice mode.
21:33:26 INFO [Main] [Settings+]: info_100:Shows death effects in practice mode.
21:33:26 INFO [Main] [Settings+]: info_125:Plays normal music in sync to editor levels in practice mode.
21:33:26 INFO [Main] [Settings+]: info_166:Shows hitboxes while in practice mode.
21:33:26 INFO [Main] [Settings+]: info_171:Disables the player's hitbox in practice mode (if hitboxes are shown).
21:33:26 INFO [Main] [Settings+]: layer_4:
21:33:26 INFO [Main] [Settings+]: page_4:8
21:33:26 INFO [Main] [Settings+]: object_4:
21:33:26 INFO [Main] [Settings+]: info_66:Increases draw capacity for batch nodes at level start. Can improve performance on some levels, but may cause issues on low-end devices.
21:33:26 INFO [Main] [Settings+]: info_108:Enables low detail mode on levels that support it automatically.
21:33:26 INFO [Main] [Settings+]: info_82:Removes the alert shown when starting levels with a high object count.
21:33:26 INFO [Main] [Settings+]: info_136:Removes glow and enter effects while in low detail mode. Levels without LDM show LDM Lite.
21:33:26 INFO [Main] [Settings+]: info_42:Increases maximum locally saved levels from 10 to 100. This refers to level data, not statistics. Enabling this can make your save file considerably larger, so keeping the option off is recommended for quicker saving.
21:33:26 INFO [Main] [Settings+]: info_119:Saves level statistics as usual, but levels need to be redownloaded every time you restart the game. Makes saving and loading faster.
21:33:26 INFO [Main] [Settings+]: info_127:Saves gauntlet levels locally so they do not have to be redownloaded. Increases save time but helpful if you have poor connection.
21:33:26 INFO [Main] [Settings+]: info_155:Disables anti-aliasing on shader effects.
21:33:26 INFO [Main] [Settings+]: layer_5:
21:33:26 INFO [Main] [Settings+]: page_5:5
21:33:26 INFO [Main] [Settings+]: object_5:
21:33:26 INFO [Main] [Settings+]: info_33:Saves custom songs in a different directory. May fix custom songs not working.
21:33:26 INFO [Main] [Settings+]: info_83:Removes the alert shown when starting levels without the song downloaded.
21:33:26 INFO [Main] [Settings+]: info_18:Stops automatic deletion of custom songs. This is done by default to save space.
21:33:26 INFO [Main] [Settings+]: info_142:Lowers audio sampling rate from 44100 Hz to 24000 Hz. Requires restarting to take effect.
21:33:26 INFO [Main] [Settings+]: info_159:Increases the audio buffer size, which may fix certain issues. Do not enable if audio is working fine. Causes a slight more audio delay. Requires restarting to take effect.
21:33:26 INFO [Main] [Settings+]: layer_6:
21:33:26 INFO [Main] [Settings+]: page_6:10
21:33:26 INFO [Main] [Settings+]: object_6:
21:33:26 INFO [Main] [Settings+]: info_94:Shows more comments per page. Why not?
21:33:26 INFO [Main] [Settings+]: info_90:Loads comments automatically.
21:33:26 INFO [Main] [Settings+]: info_73:Makes completed levels filter based only on percentage from update 2.1. Useful to rebeat levels for Mana Orbs.
21:33:26 INFO [Main] [Settings+]: info_93:Increases created and saved levels per page from 10 to 20.
21:33:26 INFO [Main] [Settings+]: info_84:Places new levels last in the saved levels list. Useful if you want to manually move levels to the top.
21:33:26 INFO [Main] [Settings+]: info_126:Shows decimals in level progress.
21:33:26 INFO [Main] [Settings+]: info_99:Toggles viewing the leaderboard percentage you have on levels. To upload your level progress to the level leaderboard, you need to replay levels completed before 2.11.
21:33:26 INFO [Main] [Settings+]: info_95:Does not do anything... Well, nothing useful.
21:33:26 INFO [Main] [Settings+]: info_167:Adds an extra confirmation window when exiting levels.
21:33:26 INFO [Main] [Settings+]: info_168:Makes transitions between menu pages faster.""".replace("21:33:26 INFO [Main] [Settings+]: ", "")
gvs = []
for line in str_input.split("\n"):
if not line.startswith("info_"):
continue
line_split = line.replace("info_", "").split(":")
gv = line_split[0].zfill(4)
desc = line_split[1]
gvs.append(gv)
print(f"""if (gv == \"{gv}\") ret = \"{desc}\";""")
str_input2 = """21:47:34 INFO [Main] [Settings+]: 0026
21:47:34 INFO [Main] [Settings+]: 0010
21:47:34 INFO [Main] [Settings+]: 0011
21:47:34 INFO [Main] [Settings+]: 0024
21:47:34 INFO [Main] [Settings+]: 0028
21:47:34 INFO [Main] [Settings+]: 0040
21:47:34 INFO [Main] [Settings+]: 0052
21:47:34 INFO [Main] [Settings+]: 0074
21:47:34 INFO [Main] [Settings+]: 0109
21:47:34 INFO [Main] [Settings+]: 0113
21:47:34 INFO [Main] [Settings+]: 0126
21:47:34 INFO [Main] [Settings+]: 0130
21:47:34 INFO [Main] [Settings+]: 0134
21:47:34 INFO [Main] [Settings+]: 0163
21:47:34 INFO [Main] [Settings+]: 0167
21:47:34 INFO [Main] [Settings+]: 0174
21:47:34 INFO [Main] [Settings+]: 0015
21:47:34 INFO [Main] [Settings+]: 0153
21:47:34 INFO [Main] [Settings+]: 0060
21:47:34 INFO [Main] [Settings+]: 0061
21:47:34 INFO [Main] [Settings+]: 0062
21:47:34 INFO [Main] [Settings+]: 0096
21:47:34 INFO [Main] [Settings+]: 0019
21:47:34 INFO [Main] [Settings+]: 0022
21:47:34 INFO [Main] [Settings+]: 0033
21:47:34 INFO [Main] [Settings+]: 0018
21:47:34 INFO [Main] [Settings+]: 0125
21:47:34 INFO [Main] [Settings+]: 0142
21:47:34 INFO [Main] [Settings+]: 0159
21:47:34 INFO [Main] [Settings+]: 0095
21:47:34 INFO [Main] [Settings+]: 0072
21:47:34 INFO [Main] [Settings+]: 0073
21:47:34 INFO [Main] [Settings+]: 0083
21:47:34 INFO [Main] [Settings+]: 0084
21:47:34 INFO [Main] [Settings+]: 0099
21:47:34 INFO [Main] [Settings+]: 0168
21:47:34 INFO [Main] [Settings+]: 0090
21:47:34 INFO [Main] [Settings+]: 0094
21:47:34 INFO [Main] [Settings+]: 0075
21:47:34 INFO [Main] [Settings+]: 0076
21:47:34 INFO [Main] [Settings+]: 0077
21:47:34 INFO [Main] [Settings+]: 0023
21:47:34 INFO [Main] [Settings+]: 0065
21:47:34 INFO [Main] [Settings+]: 0101
21:47:34 INFO [Main] [Settings+]: 0102
21:47:34 INFO [Main] [Settings+]: 0128
21:47:34 INFO [Main] [Settings+]: 0108
21:47:34 INFO [Main] [Settings+]: 0136
21:47:34 INFO [Main] [Settings+]: 0042
21:47:34 INFO [Main] [Settings+]: 0056
21:47:34 INFO [Main] [Settings+]: 0127
21:47:34 INFO [Main] [Settings+]: 0093
21:47:34 INFO [Main] [Settings+]: 0066
21:47:34 INFO [Main] [Settings+]: 0014
21:47:34 INFO [Main] [Settings+]: 0140
21:47:34 INFO [Main] [Settings+]: 0081
21:47:34 INFO [Main] [Settings+]: 0082
21:47:34 INFO [Main] [Settings+]: 0155
21:47:34 INFO [Main] [Settings+]: 0141
21:47:34 INFO [Main] [Settings+]: 0027
21:47:34 INFO [Main] [Settings+]: 0067
21:47:34 INFO [Main] [Settings+]: 0068
21:47:34 INFO [Main] [Settings+]: 0071
21:47:34 INFO [Main] [Settings+]: 0100
21:47:34 INFO [Main] [Settings+]: 0135""".replace("21:47:34 INFO [Main] [Settings+]: ", "")
for line in str_input2.split("\n"):
if line not in gvs:
print(f"if (gv == \"{line}\") ret = \"\";")