]> git.pond.sub.org Git - empserver/blob - tests/load-tend/01-load-1
client: Unbreak standalone build
[empserver] / tests / load-tend / 01-load-1
1 ||| General load / unload rules
2 |
3 | only harbor and city with at least 2% efficiency can work
4 | odd: even non-canal ships work in c
5 | only own and friendly ships / lands in own sectors can load
6 |   planes / lands loaded onto friendly ships / lands are given away,
7 |   just like commodities
8 | only own ships / lands in own and friendly sectors can unload
9 |   planes / lands unloaded in friendly sectors are given away,
10 |   just like commodities
11 | only own and allied lands in own sectors can load
12 | only own land in own and allied sectors can unload
13 |
14 | sector matrix: (2% h, 0% h, 2% c, 0% c, 100% +)
15 |              * (own, allied, friendly, neutral, unowned
16 | only 2% h and 2% c can work
17 |
18 | ships (own unless stated otherwise)
19 | ls#0/.../24 (fleet a) spread over the sector matrix
20 | fb#25/.../34 (fleet a) spread over the sector matrix's cities
21 | cs#80 is in occupied harbor
22 | cs#81/82 are in old-owned harbor
23 | cs#85 is allied, and the ally is the harbor's old owner
24 | cs#86 is allied and in old-owned harbor
25 | cs#87 is in allied occupied harbor, old owner matches ship owner
26 | ls#90/92/93/94 (fleet b) are owned by #0/2/3/4 and in own harbor
27 | ls#95 (fleet b) is at sea
28 | cal#100/mb#101/cs#105 plane carriers, cap. plane, miss, full
29 | cs#105 full of planes
30 | frg#110/sb#111/cs#112/sbc#113 land carriers, sub x supply
31 | cs#115 full of lands
32 |
33 | lands:
34 | linf#0/.../24 (army A) next to fleet a
35 | linf#25/.../29 (army A) next to fleet a in 2% h, owned by sector owner
36 | linf#30/.../34 (army C) next to army a
37 | linf#35/.../39 (army C) next to army a, owned by sector owner
38 | tra#50/.../54 (army a) spread over sector matrix 2% h
39 | sup#80 is in occupied harbor
40 | sup#81/82 are in old-owned harbor
41 | tra#90/92/93/94 (army b) are owned by #0/2/3/4 in own harbor
42 | rad#100/105 plane carriers, empty and full
43 | tra#110/115 land carriers, empty and full
44 | rad#120/.../133 riding cs#115 and tra#115
45 | linf#140/.../143 next to land carriers, light
46 | hat#150/.../152 next to land carriers, neither light nor heavy
47 | tra#160 next to land carriers, heavy
48 | spy#170/.../174 next to land carriers, spy
49 | linf#180/.../204 (army B) riding fleet a
50 | linf#210/212/213/214 next to fleet b
51 | linf#222/223/224/225 (army B) riding fleet b
52 | linf#230/.../234 (army D) riding army a
53 | linf#240/242/243/244 next to army b
54 | linf#252/253/254 riding army b
55 |
56 | planes:
57 | sam#0/.../24 (wing A) next to fleet a
58 | sam#25/.../29 (wing A) next to fleet a in 2% h, owned by sector owner
59 | sam#30/.../34 (wing C) next to army a
60 | sam#35/.../39 (wing C) next to army a, owned by sector owner
61 | sam#40/.../56 (wing E) next to plane carriers, x-light
62 | sam#57/58 riding ship#105, land#105
63 | sam#59 next to plane carriers, hardened
64 | nc#60/.../89 (wing K) next to plane carriers, helo
65 | mi#90/.../109 (wing M) next to plane carriers, light missile
66 | f2#110/.../139 (wing F) next to plane carriers, light fixed-wing
67 | zep#140 next to plane carriers, non-light fixed-wing
68 | sam#150/.../174 (wing B) riding fleet a
69 | sam#180/182/183/184 next to fleet b
70 | sam#192/193/194/195 (wing B) riding fleet b
71 | sam#200/.../204 (wing D) riding army a
72 | sam#210/.../210 next to army b
73 | sam#222/223/224 (wing D) riding army b
74 | sam#230/231 riding and next to rad#121
75 | sam#232/233 riding and next to rad#122
76 |
77 ||| load / unload commodities
78 |
79 || general sanity
80 | invalid commodity
81 load x
82 lload x
83 unload x
84 lunload x
85 | invalid ship
86 load f -1
87 unload f -1
88 | invalid land
89 lload f -1
90 lunload f -1
91 | invalid amount
92 | impossible, as crap is mapped to zero
93 |
94 || no ships / lands match
95 load f n
96 unload f n
97 lload f n
98 lunload f n
99 |
100 || ships loading commodities with load
101 | list of own and foreign ships: #0/15/25/92/93 work
102 load f 0/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/90/92/93/94/95 0
103 load f 0/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/90/92/93/94/95 1
104 | group: #0/15/25 work
105 load f a 1
106 load f b 1
107 | area: #0/15/25 work
108 realm 1 0:9,0:5
109 load f #1 1
110 load f 0:9,0:5 1
111 load f -1:9,0:5 1
112 | load to desired level rather than an amount
113 | list of own and foreign ships: #0/15/25/92/93 work
114 load f 0/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/90/92/93/94/95 -6
115 | group: #0/15/25 work
116 load f a -7
117 load f b -7
118 | own and occupied civilians, own and oldown's ship: #81/85 work
119 load c 80/81/85/86/87 1
120 |
121 || ships loading commodities with unload
122 | only own ships in own sectors can work (even though we actually load)
123 | list of own and foreign ships: #0/15/25 work
124 unload f 0/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/90/92/93/94/95 -8
125 | group: #0/15/25 work
126 unload f a -9
127 unload f b -9
128 | own and occupied civilians, own and oldown's ship: #81 works
129 unload c 80/81/85/86/87 -12
130 |
131 || lands loading commodities with lload
132 | list of own and foreign lands: #50/92 work
133 lload f 50/51/52/53/54/90/92/93/94 0
134 lload f 50/51/52/53/54/90/92/93/94 1
135 | group: #50 works
136 lload f a 1
137 lload f b 1
138 | while on a ship or land
139 | BUG: land #185/190/200 can load even though their carrier can't
140 | list: #180/195/230/222/252 work
141 lload f 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/230/231/232/233/234/222/223/224/225/252/253/254 0
142 lload f 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/230/231/232/233/234/222/223/224/225/252/253/254 1
143 | group: #180/195/230 work
144 lload f B 1
145 lload f D 1
146 | area: none of army b works
147 lload f #1 1 ?army=b
148 lload f 0:9,0:5 1 ?army=b
149 lload f -0:9,0:5 1 ?army=b
150 |
151 | load to desired level rather than an amount
152 | list of own and foreign lands: #50/92 work
153 lload f 50/51/52/53/54/90/92/93/94 -6
154 | group: #50 works
155 lload f a -7
156 lload f b -7
157 | while on a ship or land
158 | BUG: land #185/190/200 can load even though their carrier can't
159 | list: #180/195/230/222/252 work
160 lload f 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/230/231/232/233/234/222/223/224/225/252/253/254 -6
161 | group: #180/195/230 work
162 lload f B -7
163 lload f D -7
164 | own and occupied civilians, own and oldown's land
165 | TODO need a land unit that can carry c to test this
166 |
167 || lands loading commodities with lunload
168 | only own lands in own sectors can work (even though we actually load)
169 | list of own and foreign lands: #50 works
170 lunload f 50/51/52/53/54/90/92/93/94 -8
171 | group: #50 works
172 lunload f a -9
173 lunload f b -9
174 | while on a ship or land
175 | BUG: land #185/190/200 can load even though their carrier can't
176 | list: #180/195/230 work
177 lunload f 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/230/231/232/233/234/222/223/224/225/252/253/254 -8
178 | group: #180/195/230 work
179 lunload f B -9
180 lunload f D -9
181 | own and occupied civilians, own and oldown's land
182 | TODO need a land unit that can carry c to test this
183 |
184 || ships unloading commodities with load
185 | only own ships in own sectors can work (even though we actually unload)
186 | list of own and foreign ships: #0/15/25 work
187 load m 0/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/90/92/93/94/95 -5
188 | group: #0/15/25 work
189 load m a -4
190 load m b -4
191 | own and occupied civilians, own and oldown's ship: #81 works
192 load c 80/81/85/86/87 -1
193 |
194 || ships unloading commodities with unload
195 | list of own and foreign ships: #0/1/2/15/16/17/25/26/27 work
196 unload m 0/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/90/92/93/94/95 -3
197 | group: #0/1/2/15/16/17/25/26/27 work
198 unload m a -2
199 unload m b -2
200 | unload to desired level rather than an amount
201 | list of own and foreign ships: #0/1/2/15/16/17/25/26/27 work
202 unload m 0/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/90/92/93/94/95 0
203 unload m 0/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/90/92/93/94/95 1
204 | group: #0/1/2/15/16/17/25/26/27 work
205 unload m a 1
206 unload m b 1
207 | own and occupied civilians, own and oldown's ship: #81 works
208 unload c 80/81/85/86/87 1
209 |
210 || lands unloading commodities with lload
211 | list of own and foreign lands: #50 works
212 lload m 50/51/52/53/54/90/92/93/94 -5
213 | group: #50 works
214 lload m a -4
215 lload m b -4
216 | while on a ship or land
217 | BUG: land #185/190/200 can load even though their carrier can't
218 | list: #180/195/230 work
219 lload m 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/230/231/232/233/234/222/223/224/225/252/253/254 -5
220 | group: #180/195/230 work
221 lload m B -4
222 lload m D -4
223 | own and occupied civilians, own and oldown's land
224 | TODO need a land unit that can carry c to test this
225 |
226 || lands unloading commodities with lunload
227 | list of own and foreign lands: #50/51 work
228 lunload m 50/51/52/53/54/90/92/93/94 -3
229 | group: #50/51 work
230 lunload m a -2
231 lunload m b -2
232 | while on a ship or land
233 | BUG: land #185/186/190/191/200/201 can load even though their carrier can't
234 | list: #180/181/195/196/230/231 work
235 lunload m 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/230/231/232/233/234/222/223/224/225/252/253/254 -3
236 | group: #180/181/195/196/230/231 work
237 lunload m B -2
238 lunload m D -2
239 |
240 | unload amount rather than to desired level
241 | list of own and foreign lands: #50/51 work
242 lunload m 50/51/52/53/54/90/92/93/94 0
243 lunload m 50/51/52/53/54/90/92/93/94 1
244 | group: #50/51 work
245 lunload m a 1
246 lunload m b 1
247 | while on a ship or land
248 | BUG: land #185/186/190/191/200/201 can load even though their carrier can't
249 | list: #180/181/195/196/230/231 work
250 lunload m 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/230/231/232/233/234/222/223/224/225/252/253/254 0
251 lunload m 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/230/231/232/233/234/222/223/224/225/252/253/254 1
252 | group: #180/181/195/196/230/231 work
253 lunload m B 1
254 lunload m D 1
255 | own and occupied civilians, own and oldown's land
256 | TODO need a land unit that can carry c to test this
257 |
258 || load / unload something the ship/land can't hold
259 load i 80 1
260 unload i 80 1
261 lload c 81 1
262 lunload c 81 1
263 |
264 || load more than sector has
265 | with load
266 load s 80 10
267 load s 80 10
268 load s 81 -10
269 load s 81 -10
270 | with unload
271 unload s 82 -10
272 unload s 82 -10
273 | with lload
274 lload g 80 10
275 lload g 80 10
276 lload g 81 -10
277 lload g 81 -10
278 | with lunload
279 lunload g 82 -10
280 lunload g 82 -10
281 |
282 || unload more than ship/land has
283 | with unload
284 unload s 80 10
285 unload s 80 10
286 | with lunload
287 lunload g 80 10
288 lunload g 80 10
289 |
290 || load more than ship/land can hold
291 | with load
292 load m 80 100
293 load m 80 100
294 load m 81 -100
295 load m 81 -100
296 | with unload
297 unload m 82 -100
298 unload m 82 -100
299 | with lload
300 lload b 80 20
301 lload b 80 20
302 lload b 81 -20
303 lload b 81 -20
304 | with lunload
305 lunload b 82 -20
306 lunload b 82 -20
307 |
308 || unload more than sector can hold
309 | with load
310 load l 80 -1
311 load l 80 -1
312 | with unload
313 unload l 81 -1
314 unload l 81 -1
315 unload l 82 100
316 unload l 82 100
317 | with lload
318 lload i 80 -1
319 lload i 80 -1
320 | with lunload
321 lunload i 81 -1
322 lunload i 81 -1
323 lunload i 82 100
324 lunload i 82 100
325 |
326 || interactive
327 load
328 x
329 load
330 f
331 -1
332 load
333 f
334 80/81
335 x
336 1
337 lunload
338 h
339 80/81/82
340 x
341 0
342 1
343 |
344 ||| load / unload planes
345 |
346 || general sanity
347 | invalid ship
348 load plane -1
349 unload plane -1
350 | invalid plane
351 lload plane -1
352 lunload plane -1
353 | invalid plane to load / unload
354 load plane 100 -1
355 unload plane 100 -1
356 lload plane 100 -1
357 lunload plane 100 -1
358 |
359 || no ships / lands match
360 load plane n
361 unload plane n
362 lload plane n
363 lunload plane n
364 |
365 || ships loading planes
366 | ships #0/15/92/93 work
367 load plane a A
368 load plane 90 180
369 load plane 92 182
370 load plane 93 183
371 load plane 94 184
372 |
373 || ships unloading planes
374 | ships #0/1/2/15/16/17 work
375 unload plane a B
376 unload plane b B
377 |
378 || ships that can't load
379 | not capable
380 load plane 25
381 unload plane 25
382 | no room
383 load plane 105
384 |
385 || planes that can't be loaded
386 | no planes match
387 load plane 100 n
388 | not capable: non-light fixed-wing
389 load plane 100 140
390 | already loaded
391 load plane 100 57/58
392 | hardened missile
393 load plane 101 59
394 |
395 || ships' plane load limits
396 | can't carry helo
397 load plane 101 60
398 | can't carry x-light
399 | TODO need a ship that can't carry xlight, but can carry helo
400 | (must be helo because x-light can use missile and fixed-wing slots)
401 | can't carry light missiles
402 load plane 80 90
403 | can't carry light planes
404 load plane 101 110
405 | no room for light plane (loads first 20)
406 load plane 100 F
407 | no room for helo (loads first 20)
408 load plane 100 K
409 | no room for x-light (loads first 4)
410 load plane 100 E
411 | no room for light missile (loads first 10)
412 load plane 101 M
413 | helo can use fixed-wing slot
414 unload plane 100 110
415 load plane 100 80/81
416 | x-light can use missile slot
417 unload plane 101 90
418 load plane 101 44/45
419 | plane carrier can load missile instead of fixed-wing plane
420 unload plane 100 111
421 load plane 100 100/101
422 |
423 || lands loading planes
424 | land #50/92 work
425 lload plane a C
426 lload plane 90 210
427 lload plane 92 212
428 lload plane 93 213
429 lload plane 94 214
430 | while on a ship or land
431 lload plane 121/123 231/233
432 |
433 || land unloading planes
434 | lands #50/51 work
435 lunload plane a D
436 lunload plane b D
437 | while on a ship or land
438 lunload plane 120/122 230/232
439 |
440 || lands that can't load
441 | not capable
442 lload plane 0
443 lunload plane 0
444 | no room
445 lload plane 105
446 |
447 || planes that can't be loaded
448 | no planes match
449 lload plane 100 n
450 | not capable: non-xlight
451 lload plane 100 99
452 | already loaded
453 lload plane 100 57/58
454 | hardened missile
455 lload plane 100 59
456 |
457 || lands' plane load limits
458 | can't carry x-light implies can't carry any, covered above
459 | no room for x-light plane (loads first one)
460 lload plane 100 E
461 |
462 || interactive
463 load
464 plane
465 !
466 load
467 plane
468 80/81
469 *
470 *
471 unload
472 plane
473 80
474 *
475 lunload
476 plane
477 100/105
478 x
479 *
480 lload
481 plane
482 105
483 *
484 |
485 ||| load / unload lands
486 |
487 || general sanity
488 | invalid ship
489 load land -1
490 unload land -1
491 | invalid land
492 lload land -1
493 lunload land -1
494 | invalid land to load / unload
495 load land 110 -1
496 unload land 110 -1
497 lload land 110 -1
498 lunload land 110 -1
499 |
500 || no ships / lands match
501 load land n
502 unload land n
503 lload land n
504 lunload land n
505 |
506 || ships loading lands
507 | ships #0/15/92/93 work
508 load land a A
509 load land 90 210
510 load land 92 212
511 load land 93 213
512 load land 94 214
513 |
514 || ships unloading lands
515 | ships #0/1/2/15/16/17 work
516 unload land a B
517 unload land b B
518 |
519 || ships that can't load
520 | not capable
521 load land 25
522 unload land 25
523 | no room
524 load land 115
525 |
526 || lands that can't be loaded
527 | no lands match
528 load land 110 n
529 | not capable: heavy
530 load land 110 160
531 | already loaded
532 load land 110 120/122
533 | carrying units
534 | TODO need a non-heavy land that can carry lands to test this
535 | carrying civilians, onto foreign ship
536 | TODO need a land unit that can carry c to test this
537 |
538 || lands that can't be unloaded
539 | carrying foreign civilians
540 | TODO need a land unit that can carry c to test this
541 |
542 || ships' land load limits
543 | can't carry non-light
544 load land 110/113 150
545 | can't carry light (only spies)
546 load land 111/113 140
547 | no room for non-light (loads first 2)
548 load land 112 150/151/152
549 | no room for light (loads first 2)
550 load land 110 140/141/142
551 | no room for spy (loads first 2 on 1st ship, 3rd on 2nd ship)
552 load land 111/113 170/171/172
553 | The "already on ship" messages for units loaded on first ship aren't nice
554 | light can use non-light slot
555 unload land 112 150
556 load land 112 142/143
557 | spy can use light and non-light slot
558 unload land 110/112 140/142
559 load land 110/112 173/174
560 |
561 || lands loading lands
562 | land #50/92 works
563 lload land a C
564 lload land 90 240
565 lload land 92 242
566 lload land 93 243
567 lload land 94 244
568 |
569 || lands unloading lands
570 | lands #50/51 work
571 lunload land a D
572 lunload land b D
573 |
574 || lands that can't load
575 | not capable
576 lload land 0
577 lunload land 0
578 | while on a ship or land
579 | TODO need a non-heavy land that can carry lands to test this
580 | no room
581 lload land 115
582 |
583 || lands that can't be loaded
584 | no lands match
585 lload land 110 n
586 | not capable: carrying units, heavy
587 lload land 110 115/160
588 | already loaded
589 lload land 110 120/122
590 | carrying units
591 | TODO need a non-heavy land that can carry lands to test this
592 | can't load self
593 lload land 110 110
594 | carrying civilians, onto foreign land
595 | TODO need a land unit that can carry c to test this
596 |
597 || lands that can't be unloaded
598 | carrying foreign civilians
599 | TODO need a land unit that can carry c to test this
600 |
601 || lands' land load limits
602 | no room (loads first one)
603 lunload land 115 130
604 lload land 115 143/130
605 |
606 || interactive
607 lload
608 land
609 !
610 lunload
611 land
612 115
613 131/132
614 lload
615 land
616 50/110/115
617 132/131
618 132/131
619 x