forked from ozin370/Script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathq.ks
65 lines (58 loc) · 1.25 KB
/
q.ks
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
@LAZYGLOBAL on.
SET CONFIG:STAT TO false.
set terminal:brightness to 1.
//set terminal:charwidth to 12.
//set terminal:charheight to 12.
print "Preparing QUAD script files..".
runoncepath("cpu_light.ks").
setLights(0,0.5,0.5).
wait 0.1.
run compileLog.
list files in fileList.
local didCompile is false.
for f in fileList {
if f:name = "quad.ks" {
if f:size <> quad_Size {
run cq(1).
set didCompile to true.
}
}
else if f:name = "quad_loop.ks" {
if f:size <> quad_loop_Size {
run cq(2).
set didCompile to true.
}
}
else if f:name = "lib_quad.ks" {
if f:size <> lib_quad_Size {
run cq(3).
set didCompile to true.
}
}
else if f:name = "race.ks" {
if f:size <> race_Size {
run cq(4).
set didCompile to true.
}
}
else if f:name = "lib_json.ks" {
if f:size <> lib_json_Size {
run cq(5).
set didCompile to true.
}
}
}
if didCompile { print "Compiling finished..". wait 0.4. }
//now run the damned thing already
clearguis().
runoncepath("cam.ks").
runoncepath("lib_quad.ksm").
runoncepath("lib_json.ksm").
runoncepath("race.ksm").
runoncepath("lib_formation.ks").
runoncepath("quad_loop.ksm").
runoncepath("quad_GUI.ks").
print "Running Quad setup..".
core:doaction("close terminal",true).
runpath("quad.ksm").
reboot.