View difference between Paste ID: B7tUYWcz and 7mig5c8r
SHOW: | | - or go back to the newest paste.
1
if warpdriveCommons then os.unloadAPI("warpdriveCommons") end
2
if not os.loadAPI("warpdrive/warpdriveCommons") then error("missing warpdriveCommons") end
3
local w = warpdriveCommons.w
4
 
5
local data
6
 
7
----------- Ship support
8
local monitor_textScale = 0.5 
9
local ship
10
local ship_front = 0
11
local ship_right = 0
12
local ship_up = 0
13
local ship_back = 0
14
local ship_left = 0
15
local ship_down = 0
16
local ship_isInHyper = false
17
local ship_x, ship_y, ship_z = 0, 0, 0
18
local ship_xTarget, ship_yTarget, ship_zTarget = 0, 0, 0
19
local ship_actualDistance = 0
20
local ship_energyRequired = 0
21
local ship_movement = { 0, 0, 0 }
22
local ship_rotationSteps = 0
23
local ship_indexPlayer = 0
24
local ship_arrayPlayers = { }
25
local ship_indexTarget = 0
26
w.clear()
27
local lmonitor = w.device_get("top")
28
lmonitor.setTextScale(monitor_textScale)
29
 w.page_begin("Zephyr3 - Connections")
30
  w.writeLn("")
31
  w.setColorSuccess()
32
  w.writeLn("1 monitor detected")
33
  w.writeLn("Ship controller detected")
34
  w.writeLn("")         
35
  w.setColorNormal()
36
  w.writeLn("Booting Ship")
37
  w.write("- acquiring parameters: ")
38
  w.setColorSuccess()
39
  w.writeLn("ok")
40
 
41
  w.setColorNormal()
42
  w.write("- checking assembly   : ")
43
  local timeout = 10
44
  local isValid, message
45
  repeat
46
    w.sleep(0.05)
47
    timeout = timeout - 1
48
  until isValid == true or timeout < 0
49
  if timeout < 0 then
50
    w.setColorWarning()
51
    w.writeLn("failed")
52
    w.writeLn(message)
53
    w.setColorNormal()
54
    w.sleep(6)
55
   else
56
    w.setColorSuccess()
57
    w.writeLn("passed")
58
  end
59
  w.sleep(0.2)
60
 
61
  w.setColorNormal()
62
  w.write("- celestial position  : ")
63
  timeout = 10
64
  local pos
65
  repeat
66
    w.sleep(0.05)
67
    timeout = timeout - 1
68
  until pos ~= nil or timeout < 0
69
  if timeout < 0 then
70
    w.setColorWarning()
71
    w.writeLn("failed")
72
    w.writeLn("")
73
    w.writeLn("Something is wrong here, rebooting...")
74-
    w.writeLn("[THC] Was Here!.")
74+
    w.writeLn("SYSTEM FAILURE.")
75
    w.sleep(.3)
76
    w.writeLn("SYSTEM FAILURE.")
77
    w.sleep(.3)
78
    w.writeLn("SYSTEM FAILURE.")
79
    w.sleep(.3)
80
    w.writeLn("SYSTEM FAILURE.")
81
    w.sleep(.3)
82
    w.writeLn("SYSTEM FAILURE.")
83
    w.sleep(.3)
84
    w.writeLn("SYSTEM FAILURE.")
85
    w.sleep(.3)
86
    w.writeLn("SYSTEM FAILURE.")
87
    w.sleep(.3)
88
    w.writeLn("SYSTEM FAILURE.")
89
    w.sleep(.3)
90
    w.writeLn("SYSTEM FAILURE.")
91
    w.sleep(4)
92
w.clear()
93
local lmonitor = w.device_get("top")
94
lmonitor.setTextScale(monitor_textScale)
95
 w.page_begin("Zephyr3 - Connections")
96
  w.writeLn("")
97
  w.setColorBad()
98
w.writeLn("In WWM10")
99
    w.sleep(2)
100
w.writeLn("War was beginning.")
101
    w.sleep(2)
102
w.writeLn("Captain: What happen ?")
103
    w.sleep(2)
104
w.writeLn("Mechanic: Somebody set up us the bomb.")
105
    w.sleep(2)
106
w.writeLn("Operator: We get signal.")
107
    w.sleep(2)
108
w.writeLn("Captain: What !")
109
    w.sleep(2)
110
w.writeLn("Operator: Main screen turn on.")
111
    w.sleep(2)
112
w.writeLn("Captain: It's you !!")
113
    w.sleep(2)
114
    w.setColorNormal()
115
w.writeLn("[THC]: How are you gentlemen !!")
116
    w.sleep(2)
117
w.writeLn("[THC]: All your base are belong to us.")
118
    w.sleep(2)
119
w.writeLn("[THC]: You are on the way to destruction.")
120
    w.sleep(2)
121
    w.setColorBad()
122
w.writeLn("Captain: What you say !!")
123
    w.sleep(2)
124
    w.setColorNormal()
125
w.writeLn("[THC]: You have no chance to survive make your time.")
126
    w.sleep(2)
127
w.writeLn("[THC]: Ha ha ha ha...")
128
    w.sleep(2)
129
    w.setColorBad()
130
w.writeLn("Operator: Captain !!")
131
    w.sleep(2)
132
w.writeLn("Captain: Take off every 'ZIG'!!")
133
    w.sleep(2)
134
w.writeLn("Captain: You know what you doing.")
135
    w.sleep(2)
136
w.writeLn("Captain: Move 'ZIG'.")
137
    w.sleep(2)
138
w.writeLn("Captain: For great justice.")
139
    w.sleep(7)
140
    w.reboot()
141
  else
142
  end