forked from jonetiz/KotOR-Autosplitter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathK1splitter.asl
465 lines (433 loc) · 24.6 KB
/
K1splitter.asl
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
//SW: KotOR Autosplitter - Release 8 (16 August 2022)
//Full Configuration
//by XerO w/ assistance from Burnt and Glasnonck
state("swkotor")
{
string10 area: "swkotor.exe", 0x003A39E8, 0x4C, 0x0;
uint tickcount: "swkotor.exe", 0x003B935C, 0x54, 0x64, 0x18C;
uint endState: "swkotor.exe", 0x3BB4E4;
int isNotLoading : "dinput8.dll", 0x02C1D4;
int isNotLoading1803:"dinput8.dll", 0x02C1D4;
int isActiveWindow : "swkotor.exe", 0x3A3A38;
int inGamePause : "swkotor.exe", 0x432890;
int runningTimer : "swkotor.exe", 0x3B9288;
}
state("swkotor", "win10-18xx")
{
string10 area: "swkotor.exe", 0x003A39E8, 0x4C, 0x0;
uint tickcount: "swkotor.exe", 0x003B935C, 0x54, 0x64, 0x18C;
uint endState: "swkotor.exe", 0x3BB4E4;
int isNotLoading : "dinput8.dll", 0x030218;
int isNotLoading1803:"dinput8.dll", 0x032238;
int isActiveWindow : "swkotor.exe", 0x3A3A38;
int inGamePause : "swkotor.exe", 0x432890;
int runningTimer : "swkotor.exe", 0x3B9288;
}
state("swkotor", "win10-10-17")
{
string10 area: "swkotor.exe", 0x003A39E8, 0x4C, 0x0;
uint tickcount: "swkotor.exe", 0x003B935C, 0x54, 0x64, 0x18C;
uint endState: "swkotor.exe", 0x3BB4E4;
int isNotLoading : "dinput8.dll", 0x0311D8;
int isNotLoading1803:"dinput8.dll", 0x0311D8;
int isActiveWindow : "swkotor.exe", 0x3A3A38;
int inGamePause : "swkotor.exe", 0x432890;
int runningTimer : "swkotor.exe", 0x3B9288;
}
state("swkotor", "win10-old")
{
string10 area: "swkotor.exe", 0x003A39E8, 0x4C, 0x0;
uint tickcount: "swkotor.exe", 0x003B935C, 0x54, 0x64, 0x18C;
uint endState: "swkotor.exe", 0x3BB4E4;
int isNotLoading : "dinput8.dll", 0x02FEB8;
int isNotLoading1803:"dinput8.dll", 0x02FEB8;
int isActiveWindow : "swkotor.exe", 0x3A3A38;
int inGamePause : "swkotor.exe", 0x432890;
int runningTimer : "swkotor.exe", 0x3B9288;
}
startup
{
// ENDAR SPIRE
settings.Add("end_main", false, "Endar Spire Splits");
settings.Add("END_M01AA", false, "END_M01AA - Command Module", "end_main");
settings.Add("END_M01AA_unlim", false, "Unlimited Splits", "END_M01AA");
settings.Add("END_M01AB", false, "END_M01AB - Starboard Section", "end_main");
settings.Add("END_M01AB_unlim", false, "Unlimited Splits", "END_M01AB");
// TARIS
settings.Add("tar_main", true, "Taris Splits");
settings.Add("TAR_M02AF", true, "TAR_M02AF - Hideout", "tar_main");
settings.Add("TAR_M02AF_unlim", false, "Unlimited Splits", "TAR_M02AF");
settings.Add("TAR_M02AA", false, "TAR_M02AA - South Apartments", "tar_main");
settings.Add("TAR_M02AA_unlim", false, "Unlimited Splits", "TAR_M02AA");
settings.Add("TAR_M02AC", false, "TAR_M02AC - Upper City South", "tar_main");
settings.Add("TAR_M02AC_unlim", false, "Unlimited Splits", "TAR_M02AC");
settings.Add("TAR_M02AE", false, "TAR_M02AE - Upper City Cantina", "tar_main");
settings.Add("TAR_M02AE_unlim", false, "Unlimited Splits", "TAR_M02AE");
settings.Add("TAR_M02AB", false, "TAR_M02AB - Upper City North", "tar_main");
settings.Add("TAR_M02AB_unlim", false, "Unlimited Splits", "TAR_M02AB");
settings.Add("TAR_M02AD", false, "TAR_M02AD - North Apartments", "tar_main");
settings.Add("TAR_M02AD_unlim", false, "Unlimited Splits", "TAR_M02AD");
settings.Add("TAR_M03AA", false, "TAR_M03AA - Lower City", "tar_main");
settings.Add("TAR_M03AA_unlim", false, "Unlimited Splits", "TAR_M03AA");
settings.Add("TAR_M03AD", false, "TAR_M03AD - Lower City Apartments (East)", "tar_main");
settings.Add("TAR_M03AD_unlim", false, "Unlimited Splits", "TAR_M03AD");
settings.Add("TAR_M03AE", false, "TAR_M03AE - Javyar's Cantina", "tar_main");
settings.Add("TAR_M03AE_unlim", false, "Unlimited Splits", "TAR_M03AE");
settings.Add("TAR_M03AB", false, "TAR_M03AB - Lower City Apartments (West)", "tar_main");
settings.Add("TAR_M03AB_unlim", false, "Unlimited Splits", "TAR_M03AB");
settings.Add("TAR_M11AA", false, "TAR_M11AA - Hidden Bek Base", "tar_main");
settings.Add("TAR_M11AA_unlim", false, "Unlimited Splits", "TAR_M11AA");
settings.Add("TAR_M11AB", false, "TAR_M11AB - Gadon Thek's Office", "tar_main");
settings.Add("TAR_M11AB_unlim", false, "Unlimited Splits", "TAR_M11AB");
settings.Add("TAR_M04AA", false, "TAR_M04AA - Undercity", "tar_main");
settings.Add("TAR_M04AA_unlim", false, "Unlimited Splits", "TAR_M04AA");
settings.Add("TAR_M05AA", false, "TAR_M05AA - Lower Sewers", "tar_main");
settings.Add("TAR_M05AA_unlim", false, "Unlimited Splits", "TAR_M05AA");
settings.Add("TAR_M05AB", false, "TAR_M05AB - Upper Sewers", "tar_main");
settings.Add("TAR_M05AB_unlim", false, "Unlimited Splits", "TAR_M05AB");
settings.Add("TAR_M10AA", false, "TAR_M10AA - Vulkar Base", "tar_main");
settings.Add("TAR_M10AA_unlim", false, "Unlimited Splits", "TAR_M10AA");
settings.Add("TAR_M10AB", false, "TAR_M10AB - Vulkar Spice Lab", "tar_main");
settings.Add("TAR_M10AB_unlim", false, "Unlimited Splits", "TAR_M10AB");
settings.Add("TAR_M10AC", false, "TAR_M10AC - Vulkar Garage", "tar_main");
settings.Add("TAR_M10AC_unlim", false, "Unlimited Splits", "TAR_M10AC");
settings.Add("TAR_M03AF", false, "TAR_M03AF - Swoop Platform", "tar_main");
settings.Add("TAR_M03AF_unlim", false, "Unlimited Splits", "TAR_M03AF");
settings.Add("TAR_M03MG", false, "TAR_M03MG - Swoop Racing", "tar_main");
settings.Add("TAR_M03MG_unlim", false, "Unlimited Splits", "TAR_M03MG");
settings.Add("TAR_M09AA", false, "TAR_M09AA - Sith Base", "tar_main");
settings.Add("TAR_M09AA_unlim", false, "Unlimited Splits", "TAR_M09AA");
settings.Add("TAR_M09AB", false, "TAR_M09AB - Governor's Office", "tar_main");
settings.Add("TAR_M09AB_unlim", false, "Unlimited Splits", "TAR_M09AB");
settings.Add("TAR_M08AA", false, "TAR_M08AA - Davik's Estate", "tar_main");
settings.Add("TAR_M08AA_unlim", false, "Unlimited Splits", "TAR_M08AA");
// DANTOOINE
settings.Add("dan_main", true, "Dantooine Splits");
settings.Add("DANM13", true, "DANM13 - Jedi Enclave", "dan_main");
settings.Add("DANM13_unlim", false, "Unlimited Splits", "DANM13");
settings.Add("DANM14AA", false, "DANM14AA - Courtyard", "dan_main");
settings.Add("DANM14AA_unlim", false, "Unlimited Splits", "DANM14AA");
settings.Add("DANM14AB", false, "DANM14AB - Matale Grounds", "dan_main");
settings.Add("DANM14AB_unlim", false, "Unlimited Splits", "DANM14AB");
settings.Add("DANM14AC", false, "DANM14AC - Grove", "dan_main");
settings.Add("DANM14AC_unlim", false, "Unlimited Splits", "DANM14AC");
settings.Add("DANM14AD", false, "DANM14AD - Sandral Grounds", "dan_main");
settings.Add("DANM14AD_unlim", false, "Unlimited Splits", "DANM14AD");
settings.Add("DANM14AE", false, "DANM14AE - Crystal Cave", "dan_main");
settings.Add("DANM14AE_unlim", false, "Unlimited Splits", "DANM14AE");
settings.Add("DANM16", false, "DANM16 - Sandral Estate", "dan_main");
settings.Add("DANM16_unlim", false, "Unlimited Splits", "DANM16");
settings.Add("DANM15", false, "DANM15 - Ruins", "dan_main");
settings.Add("DANM15_unlim", false, "Unlimited Splits", "DANM15");
// MANAAN
settings.Add("man_main", true, "Manaan Splits");
settings.Add("MANM26AD", true, "MANM26AD - Docking Bay", "man_main");
settings.Add("MANM26AD_unlim", false, "Unlimited Splits", "MANM26AD");
settings.Add("MANM26AC", false, "MANM26AC - West Central", "man_main");
settings.Add("MANM26AC_unlim", false, "Unlimited Splits", "MANM26AC");
settings.Add("MANM26AA", false, "MANM26AA - Ahto West", "man_main");
settings.Add("MANM26AA_unlim", false, "Unlimited Splits", "MANM26AA");
settings.Add("MANM26AE", false, "MANM26AE - East Central", "man_main");
settings.Add("MANM26AE_unlim", false, "Unlimited Splits", "MANM26AE");
settings.Add("MANM26AB", false, "MANM26AB - Ahto East", "man_main");
settings.Add("MANM26AB_unlim", false, "Unlimited Splits", "MANM26AB");
settings.Add("MANM26MG", false, "MANM26MG - Swoop Racing", "man_main");
settings.Add("MANM26MG_unlim", false, "Unlimited Splits", "MANM26MG");
settings.Add("MANM27AA", false, "MANM27AA - Sith Base", "man_main");
settings.Add("MANM27AA_unlim", false, "Unlimited Splits", "MANM27AA");
settings.Add("MANM28AA", false, "MANM28AA - Hrakert Station", "man_main");
settings.Add("MANM28AA_unlim", false, "Unlimited Splits", "MANM28AA");
settings.Add("MANM28AB", false, "MANM28AB - Sea Floor", "man_main");
settings.Add("MANM28AB_unlim", false, "Unlimited Splits", "MANM28AB");
settings.Add("MANM28AC", false, "MANM28AC - Kolto Control", "man_main");
settings.Add("MANM28AC_unlim", false, "Unlimited Splits", "MANM28AC");
settings.Add("MANM28AD", false, "MANM28AD - Hrakert Rift", "man_main");
settings.Add("MANM28AD_unlim", false, "Unlimited Splits", "MANM28AD");
// KORRIBAN
settings.Add("kor_main", true, "Korriban Splits");
settings.Add("KORR_M33AA", true, "KORR_M33AA - Dreshdae", "kor_main");
settings.Add("KORR_M33AA_unlim", false, "Unlimited Splits", "KORR_M33AA");
settings.Add("KORR_M33AB", false, "KORR_M33AB - Sith Academy Entrance", "kor_main");
settings.Add("KORR_M33AB_unlim", false, "Unlimited Splits", "KORR_M33AB");
settings.Add("KORR_M35AA", false, "KORR_M35AA - Sith Academy", "kor_main");
settings.Add("KORR_M35AA_unlim", false, "Unlimited Splits", "KORR_M35AA");
settings.Add("KORR_M36AA", false, "KORR_M36AA - Valley of the Dark Lords", "kor_main");
settings.Add("KORR_M36AA_unlim", false, "Unlimited Splits", "KORR_M36AA");
settings.Add("KORR_M34AA", false, "KORR_M34AA - Shyrack Caves", "kor_main");
settings.Add("KORR_M34AA_unlim", false, "Unlimited Splits", "KORR_M34AA");
settings.Add("KORR_M38AA", false, "KORR_M38AA - Tomb of Marka Ragnos", "kor_main");
settings.Add("KORR_M38AA_unlim", false, "Unlimited Splits", "KORR_M38AA");
settings.Add("KORR_M37AA", false, "KORR_M37AA - Tomb of Ajunta Pall", "kor_main");
settings.Add("KORR_M37AA_unlim", false, "Unlimited Splits", "KORR_M37AA");
settings.Add("KORR_M38AB", false, "KORR_M38AB - Tomb of Tulak Hord", "kor_main");
settings.Add("KORR_M38AB_unlim", false, "Unlimited Splits", "KORR_M38AB");
settings.Add("KORR_M39AA", false, "KORR_M39AA - Tomb of Naga Sadow", "kor_main");
settings.Add("KORR_M39AA_unlim", false, "Unlimited Splits", "KORR_M39AA");
// KASHYYYK
settings.Add("kas_main", true, "Kashyyyk Splits");
settings.Add("KAS_M22AA", true, "KAS_M22AA - Czerka Landing Port", "kas_main");
settings.Add("KAS_M22AA_unlim", false, "Unlimited Splits", "KAS_M22AA");
settings.Add("KAS_M22AB", false, "KAS_M22AB - Great Walkway", "kas_main");
settings.Add("KAS_M22AB_unlim", false, "Unlimited Splits", "KAS_M22AB");
settings.Add("KAS_M23AA", false, "KAS_M23AA - Village of Rwookrrorro", "kas_main");
settings.Add("KAS_M23AA_unlim", false, "Unlimited Splits", "KAS_M23AA");
settings.Add("KAS_M23AB", false, "KAS_M23AB - Woorwill's Home", "kas_main");
settings.Add("KAS_M23AB_unlim", false, "Unlimited Splits", "KAS_M23AB");
settings.Add("KAS_M23AC", false, "KAS_M23AC - Worrroznor's Home", "kas_main");
settings.Add("KAS_M23AC_unlim", false, "Unlimited Splits", "KAS_M23AC");
settings.Add("KAS_M24AA", false, "KAS_M24AA - Upper Shadowlands", "kas_main");
settings.Add("KAS_M24AA_unlim", false, "Unlimited Splits", "KAS_M24AA");
settings.Add("KAS_M25AA", false, "KAS_M25AA - Lower Shadowlands", "kas_main");
settings.Add("KAS_M25AA_unlim", false, "Unlimited Splits", "KAS_M25AA");
settings.Add("KAS_M23AD", false, "KAS_M23AD - Hall of the Chieftain", "kas_main");
settings.Add("KAS_M23AD_unlim", false, "Unlimited Splits", "KAS_M23AD");
// TATOOINE
settings.Add("tat_main", true, "Tatooine Splits");
settings.Add("TAT_M17AB", true, "TAT_M17AB - Docking Bay", "tat_main");
settings.Add("TAT_M17AB_unlim", false, "Unlimited Splits", "TAT_M17AB");
settings.Add("TAT_M17AA", false, "TAT_M17AA - Anchorhead", "tat_main");
settings.Add("TAT_M17AA_unlim", false, "Unlimited Splits", "TAT_M17AA");
settings.Add("TAT_M17AD", false, "TAT_M17AD - Hunting Lodge", "tat_main");
settings.Add("TAT_M17AD_unlim", false, "Unlimited Splits", "TAT_M17AD");
settings.Add("TAT_M17AG", false, "TAT_M17AG - Czerka Office", "tat_main");
settings.Add("TAT_M17AG_unlim", false, "Unlimited Splits", "TAT_M17AG");
settings.Add("TAT_M17AE", false, "TAT_M17AE - Swoop Registration", "tat_main");
settings.Add("TAT_M17AE_unlim", false, "Unlimited Splits", "TAT_M17AE");
settings.Add("TAT_M17MG", false, "TAT_M17MG - Swoop Racing", "tat_main");
settings.Add("TAT_M17MG_unlim", false, "Unlimited Splits", "TAT_M17MG");
settings.Add("TAT_M17AF", false, "TAT_M17AF - Cantina", "tat_main");
settings.Add("TAT_M17AF_unlim", false, "Unlimited Splits", "TAT_M17AF");
settings.Add("TAT_M17AC", false, "TAT_M17AC - Droid Shop", "tat_main");
settings.Add("TAT_M17AC_unlim", false, "Unlimited Splits", "TAT_M17AC");
settings.Add("TAT_M18AA", false, "TAT_M18AA - Dune Sea", "tat_main");
settings.Add("TAT_M18AA_unlim", false, "Unlimited Splits", "TAT_M18AA");
settings.Add("TAT_M18AB", false, "TAT_M18AB - Sand People Territory", "tat_main");
settings.Add("TAT_M18AB_unlim", false, "Unlimited Splits", "TAT_M18AB");
settings.Add("TAT_M20AA", false, "TAT_M20AA - Sand People Enclave", "tat_main");
settings.Add("TAT_M20AA_unlim", false, "Unlimited Splits", "TAT_M20AA");
settings.Add("TAT_M18AC", false, "TAT_M18AC - Eastern Dune Sea", "tat_main");
settings.Add("TAT_M18AC_unlim", false, "Unlimited Splits", "TAT_M18AC");
// LEVIATHAN
settings.Add("lev_main", true, "Leviathan Splits");
settings.Add("LEV_M40AA", true, "LEV_M40AA - Prison Block", "lev_main");
settings.Add("LEV_M40AA_unlim", false, "Unlimited Splits", "LEV_M40AA");
settings.Add("LEV_M40AB", false, "LEV_M40AB - Command Deck", "lev_main");
settings.Add("LEV_M40AB_unlim", false, "Unlimited Splits", "LEV_M40AB");
settings.Add("LEV_M40AD", false, "LEV_M40AD - Bridge", "lev_main");
settings.Add("LEV_M40AD_unlim", false, "Unlimited Splits", "LEV_M40AD");
settings.Add("LEV_M40AC", false, "LEV_M40AC - Hangar", "lev_main");
settings.Add("LEV_M40AC_unlim", false, "Unlimited Splits", "LEV_M40AC");
// LEHON
settings.Add("leh_main", true, "Lehon Splits");
settings.Add("UNK_M41AA", true, "UNK_M41AA - Central Beach", "leh_main");
settings.Add("UNK_M41AA_unlim", false, "Unlimited Splits", "UNK_M41AA");
settings.Add("UNK_M41AC", false, "UNK_M41AC - North Beach", "leh_main");
settings.Add("UNK_M41AC_unlim", false, "Unlimited Splits", "UNK_M41AC");
settings.Add("UNK_M43AA", false, "UNK_M43AA - Rakatan Settlement", "leh_main");
settings.Add("UNK_M43AA_unlim", false, "Unlimited Splits", "UNK_M43AA");
settings.Add("UNK_M41AD", false, "UNK_M41AD - Temple Exterior", "leh_main");
settings.Add("UNK_M41AD_unlim", false, "Unlimited Splits", "UNK_M41AD");
settings.Add("UNK_M41AB", false, "UNK_M41AB - South Beach", "leh_main");
settings.Add("UNK_M41AB_unlim", false, "Unlimited Splits", "UNK_M41AB");
settings.Add("UNK_M42AA", false, "UNK_M42AA - Elder Settlement", "leh_main");
settings.Add("UNK_M42AA_unlim", false, "Unlimited Splits", "UNK_M42AA");
settings.Add("UNK_M44AA", false, "UNK_M44AA - Temple Main Floor", "leh_main");
settings.Add("UNK_M44AA_unlim", false, "Unlimited Splits", "UNK_M44AA");
settings.Add("UNK_M44AB", false, "UNK_M44AB - Temple Catacombs", "leh_main");
settings.Add("UNK_M44AB_unlim", false, "Unlimited Splits", "UNK_M44AB");
settings.Add("UNK_M44AC", false, "UNK_M44AC - Temple Summit", "leh_main");
settings.Add("UNK_M44AC_unlim", false, "Unlimited Splits", "UNK_M44AC");
// STAR FORGE
settings.Add("sfg_main", true, "Star Forge Splits");
settings.Add("STA_M45AA", true, "STA_M45AA - Deck 1", "sfg_main");
settings.Add("STA_M45AA_unlim", false, "Unlimited Splits", "STA_M45AA");
settings.Add("STA_M45AB", false, "STA_M45AB - Deck 2", "sfg_main");
settings.Add("STA_M45AB_unlim", false, "Unlimited Splits", "STA_M45AB");
settings.Add("STA_M45AC", false, "STA_M45AC - Command Center", "sfg_main");
settings.Add("STA_M45AC_unlim", false, "Unlimited Splits", "STA_M45AC");
settings.Add("STA_M45AD", false, "STA_M45AD - Viewing Platform", "sfg_main");
settings.Add("STA_M45AD_unlim", false, "Unlimited Splits", "STA_M45AD");
// EBON HAWK
settings.Add("ebo_main", false, "Ebon Hawk Splits");
settings.Add("EBO_M12AA", false, "EBO_M12AA - Ebon Hawk", "ebo_main");
settings.Add("EBO_M12AA_unlim", false, "Unlimited Splits", "EBO_M12AA");
settings.Add("EBO_M41AA", false, "EBO_M41AA - Ebon Hawk on Lehon", "ebo_main");
settings.Add("EBO_M41AA_unlim", false, "Unlimited Splits", "EBO_M41AA");
settings.Add("EBO_M46AB", false, "EBO_M46AB - Mind Prison", "ebo_main");
settings.Add("EBO_M46AB_unlim", false, "Unlimited Splits", "EBO_M46AB");
// MISCELLANEOUS
settings.Add("misc_main", false, "Miscellaneous Splits");
settings.Add("LIV_M99AA", false, "LIV_M99AA - Yavin Station", "misc_main");
settings.Add("LIV_M99AA_unlim", false, "Unlimited Splits", "LIV_M99AA");
settings.Add("STUNT_00", false, "STUNT_00 - Dream Sequence", "misc_main");
settings.Add("STUNT_00_unlim", false, "Unlimited Splits", "STUNT_00");
settings.Add("STUNT_03A", false, "STUNT_03A - Taris Leviathan Bridge Cutscene", "misc_main");
settings.Add("STUNT_03A_unlim", false, "Unlimited Splits", "STUNT_03A");
settings.Add("STUNT_06", false, "STUNT_06 - Taris Destroyed Cutscene", "misc_main");
settings.Add("STUNT_06_unlim", false, "Unlimited Splits", "STUNT_06");
settings.Add("STUNT_07", false, "STUNT_07 - Escaping Taris Conversation", "misc_main");
settings.Add("STUNT_07_unlim", false, "Unlimited Splits", "STUNT_07");
settings.Add("M12AB", false, "M12AB - Ebon Hawk Gunner", "misc_main");
settings.Add("M12AB_unlim", false, "Unlimited Splits", "M12AB");
settings.Add("STUNT_12", false, "STUNT_12 - Calo Nord Leviathan Cutscene", "misc_main");
settings.Add("STUNT_12_unlim", false, "Unlimited Splits", "STUNT_12");
settings.Add("STUNT_14", false, "STUNT_14 - Darth Bandon Leviathan Cutscene", "misc_main");
settings.Add("STUNT_14_unlim", false, "Unlimited Splits", "STUNT_14");
settings.Add("STUNT_16", false, "STUNT_16 - Leviathan Capture Cutscene", "misc_main");
settings.Add("STUNT_16_unlim", false, "Unlimited Splits", "STUNT_16");
settings.Add("STUNT_19", false, "STUNT_19 - Star Forge Lehon Temple Cutscene", "misc_main");
settings.Add("STUNT_19_unlim", false, "Unlimited Splits", "STUNT_19");
settings.Add("EBO_M40AA", false, "EBO_M40AA - Leviathan Game Plan Cutscene", "misc_main");
settings.Add("EBO_M40AA_unlim", false, "Unlimited Splits", "EBO_M40AA");
settings.Add("STUNT_31B", false, "STUNT_31B - Revan Reveal Cutscene", "misc_main");
settings.Add("STUNT_31B_unlim", false, "Unlimited Splits", "STUNT_31B");
settings.Add("EBO_M40AD", false, "EBO_M40AD - Leviathan Escape Cutscene", "misc_main");
settings.Add("EBO_M40AD_unlim", false, "Unlimited Splits", "EBO_M40AD");
settings.Add("STUNT_18", false, "STUNT_18 - Bastilla Torture Cutscene", "misc_main");
settings.Add("STUNT_18_unlim", false, "Unlimited Splits", "STUNT_18");
settings.Add("STUNT_35", false, "STUNT_35 - Lehon Arrival Cutscene", "misc_main");
settings.Add("STUNT_35_unlim", false, "Unlimited Splits", "STUNT_35");
settings.Add("STUNT_42", false, "STUNT_42 - Lehon Departure Cutscene (LS)", "misc_main");
settings.Add("STUNT_42_unlim", false, "Unlimited Splits", "STUNT_42");
settings.Add("STUNT_44", false, "STUNT_44 - Lehon Departure Cutscene (DS)", "misc_main");
settings.Add("STUNT_44_unlim", false, "Unlimited Splits", "STUNT_44");
settings.Add("STUNT_34", false, "STUNT_34 - Star Forge Arrival Cutscene", "misc_main");
settings.Add("STUNT_34_unlim", false, "Unlimited Splits", "STUNT_34");
settings.Add("STUNT_50A", false, "STUNT_50A - Green Squadron Cutscene", "misc_main");
settings.Add("STUNT_50A_unlim", false, "Unlimited Splits", "STUNT_50A");
settings.Add("STUNT_54A", false, "STUNT_54A - The Republic is Doomed Cutscene", "misc_main");
settings.Add("STUNT_54A_unlim", false, "Unlimited Splits", "STUNT_54A");
settings.Add("STUNT_55A", false, "STUNT_55A - All Hail Lord Revan Cutscene", "misc_main");
settings.Add("STUNT_55A_unlim", false, "Unlimited Splits", "STUNT_55A");
settings.Add("STUNT_56A", false, "STUNT_56A - Star Forge Destroyed Cutscene", "misc_main");
settings.Add("STUNT_56A_unlim", false, "Unlimited Splits", "STUNT_56A");
settings.Add("STUNT_57A", false, "STUNT_57A - The Sith are Defeated Cutscene", "misc_main");
settings.Add("STUNT_57A_unlim", false, "Unlimited Splits", "STUNT_57A");
settings.Add("RelententThing", false, "Bastilla Saved", "misc_main");
vars.enteredAreas = new List<string>() { "001EBO" };
if (Environment.OSVersion.Version.Major == 6 &&
Environment.OSVersion.Version.Minor > 1 &&
Environment.OSVersion.Version.Build > 1800)
{
settings.Add("use1803Addr", false, "Use Windows 10 version 1803 addresses for Load Removal");
}
vars.timerStart = (EventHandler) ((s, e) => {
timer.Run.Offset = TimeSpan.FromSeconds(0);
});
timer.OnStart += vars.timerStart;
}
init
{
if (Environment.OSVersion.Version.Major == 10
|| (Environment.OSVersion.Version.Major == 6 &&
Environment.OSVersion.Version.Minor > 1))
{
if (Environment.OSVersion.Version.Build > 1800)
{
version = "win10-18xx";
}
else if (Environment.OSVersion.Version.Build > 1700)
{
version = "win10-10-17";
}
else
{
version = "win10-old";
}
}
int moduleSize = modules.First().ModuleMemorySize;
print("module size is " + moduleSize);
// swkotor module sizes
// w10_v1809 steam 2019328 || 4993024
vars.trust = 0;
vars.vOldRunningTimer = 0;
vars.vvOldRunningTimer = 0;
vars.maxTimeSinceIGP = 10;
vars.timeSinceIGP = 10;
timer.IsGameTimePaused = false;
game.Exited += (s, e) => timer.IsGameTimePaused = false;
}
update
{
if (vars.timeSinceIGP <= vars.maxTimeSinceIGP)
{
++vars.timeSinceIGP;
}
// To begin trusting...
if (current.isNotLoading == 0 && current.isActiveWindow == 1
&& current.inGamePause == 1
&& old.runningTimer == current.runningTimer)
{
if (vars.vvOldRunningTimer == current.runningTimer)
{
vars.trust = 1;
vars.timeSinceIGP = 0;
}
}
// To continue trusting...
// To stop trusting...
if (current.inGamePause == 0 && vars.timeSinceIGP > vars.maxTimeSinceIGP
|| current.inGamePause == 1 && current.isNotLoading == 1 && current.isActiveWindow == 1)
{
vars.trust = 0;
}
vars.vvOldRunningTimer = vars.vOldRunningTimer;
vars.vOldRunningTimer = old.runningTimer;
//print("old: " + old.runningTimer.ToString() + System.Environment.NewLine
// + "cur: " + current.runningTimer.ToString() + System.Environment.NewLine
// + "igp: " + current.inGamePause.ToString() + System.Environment.NewLine
// + "inl: " + current.isNotLoading.ToString() + System.Environment.NewLine
// + "tru: " + vars.trust.ToString());
}
start
{
vars.enteredAreas = new List<string>() { "END_M01AA" };
if (current.area == "END_M01AA" && current.tickcount > 0 && current.tickcount < 30) {
timer.Run.Offset = TimeSpan.FromSeconds(0.75);
return true;
}
}
split
{
if (current.area != old.area) // enters a different module
{
if (settings[current.area.ToUpper()]) { // check if we're supposed to split on the new area
if (settings[current.area.ToUpper() + "_unlim"]) { // check if we want to unlimited split
return true;
} else if (vars.enteredAreas.Contains(current.area.ToUpper()) != true) {
vars.enteredAreas.Add(current.area.ToUpper());
return true;
}
}
if (settings["RelententThing"]) {
if (old.area.ToUpper() == "TAR_M03AF" && current.area.ToUpper() == "TAR_M02AF") {
return true;
}
}
}
if (current.area.ToUpper() == "STA_M45AD" && current.endState == 1132924759)
{
return true;
}
}
isLoading
{
if (vars.trust == 1)
{
if (settings["use1803Addr"])
{
return current.isNotLoading1803 == 0
&& current.isActiveWindow == 1;
}
else
{
return current.isNotLoading == 0
&& current.isActiveWindow == 1;
}
}
else
return false;
}
shutdown {
timer.OnStart -= vars.timerStart;
}