rnd-20060805-5-src
[rocksndiamonds.git] / src / main.c
1 /***********************************************************
2 * Rocks'n'Diamonds -- McDuffin Strikes Back!               *
3 *----------------------------------------------------------*
4 * (c) 1995-2002 Artsoft Entertainment                      *
5 *               Holger Schemel                             *
6 *               Detmolder Strasse 189                      *
7 *               33604 Bielefeld                            *
8 *               Germany                                    *
9 *               e-mail: info@artsoft.org                   *
10 *----------------------------------------------------------*
11 * main.c                                                   *
12 ***********************************************************/
13
14 #include "libgame/libgame.h"
15
16 #include "main.h"
17 #include "init.h"
18 #include "game.h"
19 #include "tape.h"
20 #include "events.h"
21 #include "config.h"
22
23 Bitmap                 *bitmap_db_title;
24 Bitmap                 *bitmap_db_field;
25 Bitmap                 *bitmap_db_door;
26 DrawBuffer             *fieldbuffer;
27 DrawBuffer             *drawto_field;
28
29 int                     game_status = -1;
30 boolean                 level_editor_test_game = FALSE;
31 boolean                 network_playing = FALSE;
32
33 #if defined(TARGET_SDL)
34 boolean                 network_server = FALSE;
35 SDL_Thread             *server_thread;
36 #endif
37
38 int                     key_joystick_mapping = 0;
39
40 boolean                 redraw[MAX_BUF_XSIZE][MAX_BUF_YSIZE];
41 int                     redraw_x1 = 0, redraw_y1 = 0;
42
43 short                   Feld[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
44 short                   MovPos[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
45 short                   MovDir[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
46 short                   MovDelay[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
47 short                   ChangeDelay[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
48 short                   ChangePage[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
49 short                   CustomValue[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
50 short                   Store[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
51 short                   Store2[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
52 short                   StorePlayer[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
53 short                   Back[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
54 boolean                 Stop[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
55 boolean                 Pushed[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
56 short                   ChangeCount[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
57 short                   ChangeEvent[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
58 short                   WasJustMoving[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
59 short                   WasJustFalling[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
60 short                   CheckCollision[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
61 short                   AmoebaNr[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
62 short                   AmoebaCnt[MAX_NUM_AMOEBA];
63 short                   AmoebaCnt2[MAX_NUM_AMOEBA];
64 short                   ExplodeField[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
65 short                   ExplodePhase[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
66 short                   ExplodeDelay[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
67 int                     RunnerVisit[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
68 int                     PlayerVisit[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
69
70 #if 0
71 unsigned long           Properties[MAX_NUM_ELEMENTS][NUM_EP_BITFIELDS];
72 #endif
73
74 int                     GfxFrame[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
75 int                     GfxRandom[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
76 int                     GfxElement[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
77 int                     GfxAction[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
78 int                     GfxDir[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
79
80 int                     lev_fieldx, lev_fieldy;
81 int                     scroll_x, scroll_y;
82
83 int                     FX = SX, FY = SY;
84 int                     ScrollStepSize;
85 int                     ScreenMovDir = MV_NONE, ScreenMovPos = 0;
86 int                     ScreenGfxPos = 0;
87 int                     BorderElement = EL_STEELWALL;
88 int                     GameFrameDelay = GAME_FRAME_DELAY;
89 int                     FfwdFrameDelay = FFWD_FRAME_DELAY;
90 int                     BX1 = 0, BY1 = 0;
91 int                     BX2 = SCR_FIELDX - 1, BY2 = SCR_FIELDY - 1;
92 int                     SBX_Left, SBX_Right;
93 int                     SBY_Upper, SBY_Lower;
94 int                     ZX, ZY;
95 int                     ExitX, ExitY;
96 int                     AllPlayersGone;
97
98 int                     TimeFrames, TimePlayed, TimeLeft, TapeTime;
99
100 boolean                 network_player_action_received = FALSE;
101
102 struct LevelSetInfo     levelset;
103 struct LevelInfo        level, level_template;
104 struct PlayerInfo       stored_player[MAX_PLAYERS], *local_player = NULL;
105 struct HiScore          highscore[MAX_SCORE_ENTRIES];
106 struct TapeInfo         tape;
107 struct SetupInfo        setup;
108 struct GameInfo         game;
109 struct GlobalInfo       global;
110 struct MenuInfo         menu;
111 struct DoorInfo         door_1, door_2;
112 struct GraphicInfo     *graphic_info = NULL;
113 struct SoundInfo       *sound_info = NULL;
114 struct MusicInfo       *music_info = NULL;
115 struct MusicFileInfo   *music_file_info = NULL;
116 struct HelpAnimInfo    *helpanim_info = NULL;
117 SetupFileHash          *helptext_info = NULL;
118
119
120 /* ------------------------------------------------------------------------- */
121 /* element definitions                                                       */
122 /* ------------------------------------------------------------------------- */
123
124 struct ElementInfo element_info[MAX_NUM_ELEMENTS + 1];
125
126 /* this contains predefined structure elements to initialize "element_info" */
127 struct ElementNameInfo element_name_info[MAX_NUM_ELEMENTS + 1] =
128 {
129   /* keyword to start parser: "ELEMENT_INFO_START" <-- do not change! */
130
131   /* ----------------------------------------------------------------------- */
132   /* "real" level file elements                                              */
133   /* ----------------------------------------------------------------------- */
134
135   {
136     "empty_space",
137     "empty_space",
138     "empty space"
139   },
140   {
141     "sand",
142     "sand",
143     "sand"
144   },
145   {
146     "wall",
147     "wall",
148     "normal wall"
149   },
150   {
151     "wall_slippery",
152     "wall",
153     "slippery wall"
154   },
155   {
156     "rock",
157     "rock",
158     "rock"
159   },
160   {
161     "key_obsolete",
162     "obsolete",
163     "key (OBSOLETE)"
164   },
165   {
166     "emerald",
167     "emerald",
168     "emerald"
169   },
170   {
171     "exit_closed",
172     "exit",
173     "closed exit"
174   },
175   {
176     "player_obsolete",
177     "obsolete",
178     "player (OBSOLETE)"
179   },
180   {
181     "bug",
182     "bug",
183     "bug (random start direction)"
184   },
185   {
186     "spaceship",
187     "spaceship",
188     "spaceship (random start direction)"
189   },
190   {
191     "yamyam",
192     "yamyam",
193     "yam yam (random start direction)"
194   },
195   {
196     "robot",
197     "robot",
198     "robot"
199   },
200   {
201     "steelwall",
202     "steelwall",
203     "steel wall"
204   },
205   {
206     "diamond",
207     "diamond",
208     "diamond"
209   },
210   {
211     "amoeba_dead",
212     "amoeba",
213     "dead amoeba"
214   },
215   {
216     "quicksand_empty",
217     "quicksand",
218     "empty quicksand"
219   },
220   {
221     "quicksand_full",
222     "quicksand",
223     "quicksand with rock"
224   },
225   {
226     "amoeba_drop",
227     "amoeba",
228     "amoeba drop"
229   },
230   {
231     "bomb",
232     "bomb",
233     "bomb"
234   },
235   {
236     "magic_wall",
237     "magic_wall",
238     "magic wall"
239   },
240   {
241     "speed_pill",
242     "speed_pill",
243     "speed pill"
244   },
245   {
246     "acid",
247     "acid",
248     "acid"
249   },
250   {
251     "amoeba_wet",
252     "amoeba",
253     "dropping amoeba (EM style)"
254   },
255   {
256     "amoeba_dry",
257     "amoeba",
258     "normal amoeba"
259   },
260   {
261     "nut",
262     "nut",
263     "nut with emerald"
264   },
265   {
266     "game_of_life",
267     "game_of_life",
268     "Conway's wall of life"
269   },
270   {
271     "biomaze",
272     "biomaze",
273     "biomaze"
274   },
275   {
276     "dynamite.active",
277     "dynamite",
278     "burning dynamite"
279   },
280   {
281     "stoneblock",
282     "wall",
283     "wall"
284   },
285   {
286     "robot_wheel",
287     "robot_wheel",
288     "magic wheel"
289   },
290   {
291     "robot_wheel.active",
292     "robot_wheel",
293     "magic wheel (running)"
294   },
295   {
296     "key_1",
297     "key",
298     "key 1"
299   },
300   {
301     "key_2",
302     "key",
303     "key 2"
304   },
305   {
306     "key_3",
307     "key",
308     "key 3"
309   },
310   {
311     "key_4",
312     "key",
313     "key 4"
314   },
315   {
316     "gate_1",
317     "gate",
318     "door 1"
319   },
320   {
321     "gate_2",
322     "gate",
323     "door 2"
324   },
325   {
326     "gate_3",
327     "gate",
328     "door 3"
329   },
330   {
331     "gate_4",
332     "gate",
333     "door 4"
334   },
335   {
336     "gate_1_gray",
337     "gate",
338     "gray door (opened by key 1)"
339   },
340   {
341     "gate_2_gray",
342     "gate",
343     "gray door (opened by key 2)"
344   },
345   {
346     "gate_3_gray",
347     "gate",
348     "gray door (opened by key 3)"
349   },
350   {
351     "gate_4_gray",
352     "gate",
353     "gray door (opened by key 4)"
354   },
355   {
356     "dynamite",
357     "dynamite",
358     "dynamite"
359   },
360   {
361     "pacman",
362     "pacman",
363     "pac man (random start direction)"
364   },
365   {
366     "invisible_wall",
367     "wall",
368     "invisible normal wall"
369   },
370   {
371     "lamp",
372     "lamp",
373     "lamp (off)"
374   },
375   {
376     "lamp.active",
377     "lamp",
378     "lamp (on)"
379   },
380   {
381     "wall_emerald",
382     "wall",
383     "wall with emerald"
384   },
385   {
386     "wall_diamond",
387     "wall",
388     "wall with diamond"
389   },
390   {
391     "amoeba_full",
392     "amoeba",
393     "amoeba with content"
394   },
395   {
396     "bd_amoeba",
397     "bd_amoeba",
398     "amoeba (BD style)"
399   },
400   {
401     "time_orb_full",
402     "time_orb_full",
403     "time orb (full)"
404   },
405   {
406     "time_orb_empty",
407     "time_orb_empty",
408     "time orb (empty)"
409   },
410   {
411     "expandable_wall",
412     "wall",
413     "growing wall (horizontal, visible)"
414   },
415   {
416     "bd_diamond",
417     "bd_diamond",
418     "diamond (BD style)"
419   },
420   {
421     "emerald_yellow",
422     "emerald",
423     "yellow emerald"
424   },
425   {
426     "wall_bd_diamond",
427     "wall",
428     "wall with BD style diamond"
429   },
430   {
431     "wall_emerald_yellow",
432     "wall",
433     "wall with yellow emerald"
434   },
435   {
436     "dark_yamyam",
437     "dark_yamyam",
438     "dark yam yam"
439   },
440   {
441     "bd_magic_wall",
442     "bd_magic_wall",
443     "magic wall (BD style)"
444   },
445   {
446     "invisible_steelwall",
447     "steelwall",
448     "invisible steel wall"
449   },
450   {
451     "sokoban_field_player",
452     "sokoban",
453     "sokoban field with player"
454   },
455   {
456     "dynabomb_increase_number",
457     "dynabomb",
458     "increases number of bombs"
459   },
460   {
461     "dynabomb_increase_size",
462     "dynabomb",
463     "increases explosion size"
464   },
465   {
466     "dynabomb_increase_power",
467     "dynabomb",
468     "increases power of explosion"
469   },
470   {
471     "sokoban_object",
472     "sokoban",
473     "sokoban object"
474   },
475   {
476     "sokoban_field_empty",
477     "sokoban",
478     "sokoban empty field"
479   },
480   {
481     "sokoban_field_full",
482     "sokoban",
483     "sokoban field with object"
484   },
485   {
486     "bd_butterfly.right",
487     "bd_butterfly",
488     "butterfly (starts moving right)"},
489   {
490     "bd_butterfly.up",
491     "bd_butterfly",
492     "butterfly (starts moving up)"
493   },
494   {
495     "bd_butterfly.left",
496     "bd_butterfly",
497     "butterfly (starts moving left)"},
498   {
499     "bd_butterfly.down",
500     "bd_butterfly",
501     "butterfly (starts moving down)"},
502   {
503     "bd_firefly.right",
504     "bd_firefly",
505     "firefly (starts moving right)"
506   },
507   {
508     "bd_firefly.up",
509     "bd_firefly",
510     "firefly (starts moving up)"
511   },
512   {
513     "bd_firefly.left",
514     "bd_firefly",
515     "firefly (starts moving left)"
516   },
517   {
518     "bd_firefly.down",
519     "bd_firefly",
520     "firefly (starts moving down)"
521   },
522   {
523     "bd_butterfly",
524     "bd_butterfly",
525     "butterfly (random start direction)"
526   },
527   {
528     "bd_firefly",
529     "bd_firefly",
530     "firefly (random start direction)"
531   },
532   {
533     "player_1",
534     "player",
535     "player 1"
536   },
537   {
538     "player_2",
539     "player",
540     "player 2"
541   },
542   {
543     "player_3",
544     "player",
545     "player 3"
546   },
547   {
548     "player_4",
549     "player",
550     "player 4"
551   },
552   {
553     "bug.right",
554     "bug",
555     "bug (starts moving right)"
556   },
557   {
558     "bug.up",
559     "bug",
560     "bug (starts moving up)"
561   },
562   {
563     "bug.left",
564     "bug",
565     "bug (starts moving left)"
566   },
567   {
568     "bug.down",
569     "bug",
570     "bug (starts moving down)"
571   },
572   {
573     "spaceship.right",
574     "spaceship",
575     "spaceship (starts moving right)"},
576   {
577     "spaceship.up",
578     "spaceship",
579     "spaceship (starts moving up)"
580   },
581   {
582     "spaceship.left",
583     "spaceship",
584     "spaceship (starts moving left)"},
585   {
586     "spaceship.down",
587     "spaceship",
588     "spaceship (starts moving down)"},
589   {
590     "pacman.right",
591     "pacman",
592     "pac man (starts moving right)"
593   },
594   {
595     "pacman.up",
596     "pacman",
597     "pac man (starts moving up)"
598   },
599   {
600     "pacman.left",
601     "pacman",
602     "pac man (starts moving left)"
603   },
604   {
605     "pacman.down",
606     "pacman",
607     "pac man (starts moving down)"
608   },
609   {
610     "emerald_red",
611     "emerald",
612     "red emerald"
613   },
614   {
615     "emerald_purple",
616     "emerald",
617     "purple emerald"
618   },
619   {
620     "wall_emerald_red",
621     "wall",
622     "wall with red emerald"
623   },
624   {
625     "wall_emerald_purple",
626     "wall",
627     "wall with purple emerald"
628   },
629   {
630     "acid_pool_topleft",
631     "wall",
632     "acid pool (top left)"
633   },
634   {
635     "acid_pool_topright",
636     "wall",
637     "acid pool (top right)"
638   },
639   {
640     "acid_pool_bottomleft",
641     "wall",
642     "acid pool (bottom left)"
643   },
644   {
645     "acid_pool_bottom",
646     "wall",
647     "acid pool (bottom)"
648   },
649   {
650     "acid_pool_bottomright",
651     "wall",
652     "acid pool (bottom right)"
653   },
654   {
655     "bd_wall",
656     "wall",
657     "normal wall (BD style)"
658   },
659   {
660     "bd_rock",
661     "bd_rock",
662     "rock (BD style)"
663   },
664   {
665     "exit_open",
666     "exit",
667     "open exit"
668   },
669   {
670     "black_orb",
671     "black_orb",
672     "black orb bomb"
673   },
674   {
675     "amoeba_to_diamond",
676     "amoeba",
677     "amoeba"
678   },
679   {
680     "mole",
681     "mole",
682     "mole (random start direction)"
683   },
684   {
685     "penguin",
686     "penguin",
687     "penguin"
688   },
689   {
690     "satellite",
691     "satellite",
692     "satellite"
693   },
694   {
695     "arrow_left",
696     "arrow",
697     "arrow left"
698   },
699   {
700     "arrow_right",
701     "arrow",
702     "arrow right"
703   },
704   {
705     "arrow_up",
706     "arrow",
707     "arrow up"
708   },
709   {
710     "arrow_down",
711     "arrow",
712     "arrow down"
713   },
714   {
715     "pig",
716     "pig",
717     "pig"
718   },
719   {
720     "dragon",
721     "dragon",
722     "fire breathing dragon"
723   },
724   {
725     "em_key_1_file_obsolete",
726     "obsolete",
727     "key (OBSOLETE)"
728   },
729   {
730     "char_space",
731     "char",
732     "letter ' '"
733   },
734   {
735     "char_exclam",
736     "char",
737     "letter '!'"
738   },
739   {
740     "char_quotedbl",
741     "char",
742     "letter '\"'"
743   },
744   {
745     "char_numbersign",
746     "char",
747     "letter '#'"
748   },
749   {
750     "char_dollar",
751     "char",
752     "letter '$'"
753   },
754   {
755     "char_percent",
756     "char",
757     "letter '%'"
758   },
759   {
760     "char_ampersand",
761     "char",
762     "letter '&'"
763   },
764   {
765     "char_apostrophe",
766     "char",
767     "letter '''"
768   },
769   {
770     "char_parenleft",
771     "char",
772     "letter '('"
773   },
774   {
775     "char_parenright",
776     "char",
777     "letter ')'"
778   },
779   {
780     "char_asterisk",
781     "char",
782     "letter '*'"
783   },
784   {
785     "char_plus",
786     "char",
787     "letter '+'"
788   },
789   {
790     "char_comma",
791     "char",
792     "letter ','"
793   },
794   {
795     "char_minus",
796     "char",
797     "letter '-'"
798   },
799   {
800     "char_period",
801     "char",
802     "letter '.'"
803   },
804   {
805     "char_slash",
806     "char",
807     "letter '/'"
808   },
809   {
810     "char_0",
811     "char",
812     "letter '0'"
813   },
814   {
815     "char_1",
816     "char",
817     "letter '1'"
818   },
819   {
820     "char_2",
821     "char",
822     "letter '2'"
823   },
824   {
825     "char_3",
826     "char",
827     "letter '3'"
828   },
829   {
830     "char_4",
831     "char",
832     "letter '4'"
833   },
834   {
835     "char_5",
836     "char",
837     "letter '5'"
838   },
839   {
840     "char_6",
841     "char",
842     "letter '6'"
843   },
844   {
845     "char_7",
846     "char",
847     "letter '7'"
848   },
849   {
850     "char_8",
851     "char",
852     "letter '8'"
853   },
854   {
855     "char_9",
856     "char",
857     "letter '9'"
858   },
859   {
860     "char_colon",
861     "char",
862     "letter ':'"
863   },
864   {
865     "char_semicolon",
866     "char",
867     "letter ';'"
868   },
869   {
870     "char_less",
871     "char",
872     "letter '<'"
873   },
874   {
875     "char_equal",
876     "char",
877     "letter '='"
878   },
879   {
880     "char_greater",
881     "char",
882     "letter '>'"
883   },
884   {
885     "char_question",
886     "char",
887     "letter '?'"
888   },
889   {
890     "char_at",
891     "char",
892     "letter '@'"
893   },
894   {
895     "char_a",
896     "char",
897     "letter 'A'"
898   },
899   {
900     "char_b",
901     "char",
902     "letter 'B'"
903   },
904   {
905     "char_c",
906     "char",
907     "letter 'C'"
908   },
909   {
910     "char_d",
911     "char",
912     "letter 'D'"
913   },
914   {
915     "char_e",
916     "char",
917     "letter 'E'"
918   },
919   {
920     "char_f",
921     "char",
922     "letter 'F'"
923   },
924   {
925     "char_g",
926     "char",
927     "letter 'G'"
928   },
929   {
930     "char_h",
931     "char",
932     "letter 'H'"
933   },
934   {
935     "char_i",
936     "char",
937     "letter 'I'"
938   },
939   {
940     "char_j",
941     "char",
942     "letter 'J'"
943   },
944   {
945     "char_k",
946     "char",
947     "letter 'K'"
948   },
949   {
950     "char_l",
951     "char",
952     "letter 'L'"
953   },
954   {
955     "char_m",
956     "char",
957     "letter 'M'"
958   },
959   {
960     "char_n",
961     "char",
962     "letter 'N'"
963   },
964   {
965     "char_o",
966     "char",
967     "letter 'O'"
968   },
969   {
970     "char_p",
971     "char",
972     "letter 'P'"
973   },
974   {
975     "char_q",
976     "char",
977     "letter 'Q'"
978   },
979   {
980     "char_r",
981     "char",
982     "letter 'R'"
983   },
984   {
985     "char_s",
986     "char",
987     "letter 'S'"
988   },
989   {
990     "char_t",
991     "char",
992     "letter 'T'"
993   },
994   {
995     "char_u",
996     "char",
997     "letter 'U'"
998   },
999   {
1000     "char_v",
1001     "char",
1002     "letter 'V'"
1003   },
1004   {
1005     "char_w",
1006     "char",
1007     "letter 'W'"
1008   },
1009   {
1010     "char_x",
1011     "char",
1012     "letter 'X'"
1013   },
1014   {
1015     "char_y",
1016     "char",
1017     "letter 'Y'"
1018   },
1019   {
1020     "char_z",
1021     "char",
1022     "letter 'Z'"
1023   },
1024   {
1025     "char_bracketleft",
1026     "char",
1027     "letter '['"
1028   },
1029   {
1030     "char_backslash",
1031     "char",
1032     "letter '\\'"
1033   },
1034   {
1035     "char_bracketright",
1036     "char",
1037     "letter ']'"
1038   },
1039   {
1040     "char_asciicircum",
1041     "char",
1042     "letter '^'"
1043   },
1044   {
1045     "char_underscore",
1046     "char",
1047     "letter '_'"
1048   },
1049   {
1050     "char_copyright",
1051     "char",
1052     "letter '©'"
1053   },
1054   {
1055     "char_aumlaut",
1056     "char",
1057     "letter 'Ä'"
1058   },
1059   {
1060     "char_oumlaut",
1061     "char",
1062     "letter 'Ö'"
1063   },
1064   {
1065     "char_uumlaut",
1066     "char",
1067     "letter 'Ãœ'"
1068   },
1069   {
1070     "char_degree",
1071     "char",
1072     "letter '°'"
1073   },
1074   {
1075     "char_trademark",
1076     "char",
1077     "letter '®'"
1078   },
1079   {
1080     "char_cursor",
1081     "char",
1082     "letter ' '"
1083   },
1084   {
1085     "char_unused",
1086     "char",
1087     "letter ''"
1088   },
1089   {
1090     "char_unused",
1091     "char",
1092     "letter ''"
1093   },
1094   {
1095     "char_unused",
1096     "char",
1097     "letter ''"
1098   },
1099   {
1100     "char_unused",
1101     "char",
1102     "letter ''"
1103   },
1104   {
1105     "char_unused",
1106     "char",
1107     "letter ''"
1108   },
1109   {
1110     "char_unused",
1111     "char",
1112     "letter ''"
1113   },
1114   {
1115     "char_unused",
1116     "char",
1117     "letter ''"
1118   },
1119   {
1120     "char_unused",
1121     "char",
1122     "letter ''"
1123   },
1124   {
1125     "char_unused",
1126     "char",
1127     "letter ''"
1128   },
1129   {
1130     "expandable_wall_horizontal",
1131     "wall",
1132     "growing wall (horizontal)"
1133   },
1134   {
1135     "expandable_wall_vertical",
1136     "wall",
1137     "growing wall (vertical)"
1138   },
1139   {
1140     "expandable_wall_any",
1141     "wall",
1142     "growing wall (any direction)"
1143   },
1144   {
1145     "em_gate_1",
1146     "gate",
1147     "door 1 (EM style)"
1148   },
1149   {
1150     "em_gate_2",
1151     "gate",
1152     "door 2 (EM style)"
1153   },
1154   {
1155     "em_gate_3",
1156     "gate",
1157     "door 3 (EM style)"
1158   },
1159   {
1160     "em_gate_4",
1161     "gate",
1162     "door 4 (EM style)"
1163   },
1164   {
1165     "em_key_2_file_obsolete",
1166     "obsolete",
1167     "key (OBSOLETE)"
1168   },
1169   {
1170     "em_key_3_file_obsolete",
1171     "obsolete",
1172     "key (OBSOLETE)"
1173   },
1174   {
1175     "em_key_4_file_obsolete",
1176     "obsolete",
1177     "key (OBSOLETE)"
1178   },
1179   {
1180     "sp_empty_space",
1181     "empty_space",
1182     "empty space"
1183   },
1184   {
1185     "sp_zonk",
1186     "sp_zonk",
1187     "zonk"
1188   },
1189   {
1190     "sp_base",
1191     "sp_base",
1192     "base"
1193   },
1194   {
1195     "sp_murphy",
1196     "player",
1197     "murphy"
1198   },
1199   {
1200     "sp_infotron",
1201     "sp_infotron",
1202     "infotron"
1203   },
1204   {
1205     "sp_chip_single",
1206     "wall",
1207     "chip (single)"
1208   },
1209   {
1210     "sp_hardware_gray",
1211     "wall",
1212     "hardware"
1213   },
1214   {
1215     "sp_exit_closed",
1216     "sp_exit",
1217     "exit"
1218   },
1219   {
1220     "sp_disk_orange",
1221     "sp_disk_orange",
1222     "orange disk"
1223   },
1224   {
1225     "sp_port_right",
1226     "sp_port",
1227     "port (leading right)"
1228   },
1229   {
1230     "sp_port_down",
1231     "sp_port",
1232     "port (leading down)"
1233   },
1234   {
1235     "sp_port_left",
1236     "sp_port",
1237     "port (leading left)"
1238   },
1239   {
1240     "sp_port_up",
1241     "sp_port",
1242     "port (leading up)"
1243   },
1244   {
1245     "sp_gravity_port_right",
1246     "sp_port",
1247     "gravity port (leading right)"
1248   },
1249   {
1250     "sp_gravity_port_down",
1251     "sp_port",
1252     "gravity port (leading down)"
1253   },
1254   {
1255     "sp_gravity_port_left",
1256     "sp_port",
1257     "gravity port (leading left)"
1258   },
1259   {
1260     "sp_gravity_port_up",
1261     "sp_port",
1262     "gravity port (leading up)"
1263   },
1264   {
1265     "sp_sniksnak",
1266     "sp_sniksnak",
1267     "snik snak"
1268   },
1269   {
1270     "sp_disk_yellow",
1271     "sp_disk_yellow",
1272     "yellow disk"
1273   },
1274   {
1275     "sp_terminal",
1276     "sp_terminal",
1277     "terminal"
1278   },
1279   {
1280     "sp_disk_red",
1281     "dynamite",
1282     "red disk"
1283   },
1284   {
1285     "sp_port_vertical",
1286     "sp_port",
1287     "port (vertical)"
1288   },
1289   {
1290     "sp_port_horizontal",
1291     "sp_port",
1292     "port (horizontal)"
1293   },
1294   {
1295     "sp_port_any",
1296     "sp_port",
1297     "port (any direction)"
1298   },
1299   {
1300     "sp_electron",
1301     "sp_electron",
1302     "electron"
1303   },
1304   {
1305     "sp_buggy_base",
1306     "sp_buggy_base",
1307     "buggy base"
1308   },
1309   {
1310     "sp_chip_left",
1311     "wall",
1312     "chip (left half)"
1313   },
1314   {
1315     "sp_chip_right",
1316     "wall",
1317     "chip (right half)"
1318   },
1319   {
1320     "sp_hardware_base_1",
1321     "wall",
1322     "hardware"
1323   },
1324   {
1325     "sp_hardware_green",
1326     "wall",
1327     "hardware"
1328   },
1329   {
1330     "sp_hardware_blue",
1331     "wall",
1332     "hardware"
1333   },
1334   {
1335     "sp_hardware_red",
1336     "wall",
1337     "hardware"
1338   },
1339   {
1340     "sp_hardware_yellow",
1341     "wall",
1342     "hardware"
1343   },
1344   {
1345     "sp_hardware_base_2",
1346     "wall",
1347     "hardware"
1348   },
1349   {
1350     "sp_hardware_base_3",
1351     "wall",
1352     "hardware"
1353   },
1354   {
1355     "sp_hardware_base_4",
1356     "wall",
1357     "hardware"
1358   },
1359   {
1360     "sp_hardware_base_5",
1361     "wall",
1362     "hardware"
1363   },
1364   {
1365     "sp_hardware_base_6",
1366     "wall",
1367     "hardware"
1368   },
1369   {
1370     "sp_chip_top",
1371     "wall",
1372     "chip (upper half)"
1373   },
1374   {
1375     "sp_chip_bottom",
1376     "wall",
1377     "chip (lower half)"
1378   },
1379   {
1380     "em_gate_1_gray",
1381     "gate",
1382     "gray door (EM style, key 1)"
1383   },
1384   {
1385     "em_gate_2_gray",
1386     "gate",
1387     "gray door (EM style, key 2)"
1388   },
1389   {
1390     "em_gate_3_gray",
1391     "gate",
1392     "gray door (EM style, key 3)"
1393   },
1394   {
1395     "em_gate_4_gray",
1396     "gate",
1397     "gray door (EM style, key 4)"
1398   },
1399   {
1400     "em_dynamite",
1401     "dynamite",
1402     "dynamite (EM style)"
1403   },
1404   {
1405     "em_dynamite.active",
1406     "dynamite",
1407     "burning dynamite (EM style)"
1408   },
1409   {
1410     "pearl",
1411     "pearl",
1412     "pearl"
1413   },
1414   {
1415     "crystal",
1416     "crystal",
1417     "crystal"
1418   },
1419   {
1420     "wall_pearl",
1421     "wall",
1422     "wall with pearl"
1423   },
1424   {
1425     "wall_crystal",
1426     "wall",
1427     "wall with crystal"
1428   },
1429   {
1430     "door_white",
1431     "gate",
1432     "white door"
1433   },
1434   {
1435     "door_white_gray",
1436     "gate",
1437     "gray door (opened by white key)"
1438   },
1439   {
1440     "key_white",
1441     "key",
1442     "white key"
1443   },
1444   {
1445     "shield_normal",
1446     "shield_normal",
1447     "shield (normal)"
1448   },
1449   {
1450     "extra_time",
1451     "extra_time",
1452     "extra time"
1453   },
1454   {
1455     "switchgate_open",
1456     "switchgate",
1457     "switch gate (open)"
1458   },
1459   {
1460     "switchgate_closed",
1461     "switchgate",
1462     "switch gate (closed)"
1463   },
1464   {
1465     "switchgate_switch_up",
1466     "switchgate_switch",
1467     "switch for switch gate"
1468   },
1469   {
1470     "switchgate_switch_down",
1471     "switchgate_switch",
1472     "switch for switch gate"
1473   },
1474   {
1475     "unused_269",
1476     "unused",
1477     "-"
1478   },
1479   {
1480     "unused_270",
1481     "unused",
1482     "-"
1483   },
1484   {
1485     "conveyor_belt_1_left",
1486     "conveyor_belt",
1487     "conveyor belt 1 (left)"
1488   },
1489   {
1490     "conveyor_belt_1_middle",
1491     "conveyor_belt",
1492     "conveyor belt 1 (middle)"
1493   },
1494   {
1495     "conveyor_belt_1_right",
1496     "conveyor_belt",
1497     "conveyor belt 1 (right)"
1498   },
1499   {
1500     "conveyor_belt_1_switch_left",
1501     "conveyor_belt_switch",
1502     "switch for conveyor belt 1 (left)"
1503   },
1504   {
1505     "conveyor_belt_1_switch_middle",
1506     "conveyor_belt_switch",
1507     "switch for conveyor belt 1 (middle)"
1508   },
1509   {
1510     "conveyor_belt_1_switch_right",
1511     "conveyor_belt_switch",
1512     "switch for conveyor belt 1 (right)"
1513   },
1514   {
1515     "conveyor_belt_2_left",
1516     "conveyor_belt",
1517     "conveyor belt 2 (left)"
1518   },
1519   {
1520     "conveyor_belt_2_middle",
1521     "conveyor_belt",
1522     "conveyor belt 2 (middle)"
1523   },
1524   {
1525     "conveyor_belt_2_right",
1526     "conveyor_belt",
1527     "conveyor belt 2 (right)"
1528   },
1529   {
1530     "conveyor_belt_2_switch_left",
1531     "conveyor_belt_switch",
1532     "switch for conveyor belt 2 (left)"
1533   },
1534   {
1535     "conveyor_belt_2_switch_middle",
1536     "conveyor_belt_switch",
1537     "switch for conveyor belt 2 (middle)"
1538   },
1539   {
1540     "conveyor_belt_2_switch_right",
1541     "conveyor_belt_switch",
1542     "switch for conveyor belt 2 (right)"
1543   },
1544   {
1545     "conveyor_belt_3_left",
1546     "conveyor_belt",
1547     "conveyor belt 3 (left)"
1548   },
1549   {
1550     "conveyor_belt_3_middle",
1551     "conveyor_belt",
1552     "conveyor belt 3 (middle)"
1553   },
1554   {
1555     "conveyor_belt_3_right",
1556     "conveyor_belt",
1557     "conveyor belt 3 (right)"
1558   },
1559   {
1560     "conveyor_belt_3_switch_left",
1561     "conveyor_belt_switch",
1562     "switch for conveyor belt 3 (left)"
1563   },
1564   {
1565     "conveyor_belt_3_switch_middle",
1566     "conveyor_belt_switch",
1567     "switch for conveyor belt 3 (middle)"
1568   },
1569   {
1570     "conveyor_belt_3_switch_right",
1571     "conveyor_belt_switch",
1572     "switch for conveyor belt 3 (right)"
1573   },
1574   {
1575     "conveyor_belt_4_left",
1576     "conveyor_belt",
1577     "conveyor belt 4 (left)"
1578   },
1579   {
1580     "conveyor_belt_4_middle",
1581     "conveyor_belt",
1582     "conveyor belt 4 (middle)"
1583   },
1584   {
1585     "conveyor_belt_4_right",
1586     "conveyor_belt",
1587     "conveyor belt 4 (right)"
1588   },
1589   {
1590     "conveyor_belt_4_switch_left",
1591     "conveyor_belt_switch",
1592     "switch for conveyor belt 4 (left)"
1593   },
1594   {
1595     "conveyor_belt_4_switch_middle",
1596     "conveyor_belt_switch",
1597     "switch for conveyor belt 4 (middle)"
1598   },
1599   {
1600     "conveyor_belt_4_switch_right",
1601     "conveyor_belt_switch",
1602     "switch for conveyor belt 4 (right)"
1603   },
1604   {
1605     "landmine",
1606     "sand",
1607     "land mine"
1608   },
1609   {
1610     "envelope_obsolete",
1611     "obsolete",
1612     "envelope (OBSOLETE)"
1613   },
1614   {
1615     "light_switch",
1616     "light_switch",
1617     "light switch (off)"
1618   },
1619   {
1620     "light_switch.active",
1621     "light_switch",
1622     "light switch (on)"
1623   },
1624   {
1625     "sign_exclamation",
1626     "wall",
1627     "sign (exclamation)"
1628   },
1629   {
1630     "sign_radioactivity",
1631     "wall",
1632     "sign (radio activity)"
1633   },
1634   {
1635     "sign_stop",
1636     "wall",
1637     "sign (stop)"
1638   },
1639   {
1640     "sign_wheelchair",
1641     "wall",
1642     "sign (wheel chair)"
1643   },
1644   {
1645     "sign_parking",
1646     "wall",
1647     "sign (parking)"
1648   },
1649   {
1650     "sign_oneway",
1651     "wall",
1652     "sign (one way)"
1653   },
1654   {
1655     "sign_heart",
1656     "wall",
1657     "sign (heart)"
1658   },
1659   {
1660     "sign_triangle",
1661     "wall",
1662     "sign (triangle)"
1663   },
1664   {
1665     "sign_round",
1666     "wall",
1667     "sign (round)"
1668   },
1669   {
1670     "sign_exit",
1671     "wall",
1672     "sign (exit)"
1673   },
1674   {
1675     "sign_yinyang",
1676     "wall",
1677     "sign (yin yang)"
1678   },
1679   {
1680     "sign_other",
1681     "wall",
1682     "sign (other)"
1683   },
1684   {
1685     "mole.left",
1686     "mole",
1687     "mole (starts moving left)"
1688   },
1689   {
1690     "mole.right",
1691     "mole",
1692     "mole (starts moving right)"
1693   },
1694   {
1695     "mole.up",
1696     "mole",
1697     "mole (starts moving up)"
1698   },
1699   {
1700     "mole.down",
1701     "mole",
1702     "mole (starts moving down)"
1703   },
1704   {
1705     "steelwall_slippery",
1706     "steelwall",
1707     "slippery steel wall"
1708   },
1709   {
1710     "invisible_sand",
1711     "sand",
1712     "invisible sand"
1713   },
1714   {
1715     "dx_unknown_15",
1716     "unknown",
1717     "dx unknown element 15"
1718   },
1719   {
1720     "dx_unknown_42",
1721     "unknown",
1722     "dx unknown element 42"
1723   },
1724   {
1725     "unused_319",
1726     "unused",
1727     "(not used)"
1728   },
1729   {
1730     "unused_320",
1731     "unused",
1732     "(not used)"
1733   },
1734   {
1735     "shield_deadly",
1736     "shield_deadly",
1737     "shield (deadly, kills enemies)"
1738   },
1739   {
1740     "timegate_open",
1741     "timegate",
1742     "time gate (open)"
1743   },
1744   {
1745     "timegate_closed",
1746     "timegate",
1747     "time gate (closed)"
1748   },
1749   {
1750     "timegate_switch.active",
1751     "timegate_switch",
1752     "switch for time gate"
1753   },
1754   {
1755     "timegate_switch",
1756     "timegate_switch",
1757     "switch for time gate"
1758   },
1759   {
1760     "balloon",
1761     "balloon",
1762     "balloon"
1763   },
1764   {
1765     "balloon_switch_left",
1766     "balloon_switch",
1767     "wind switch (left)"
1768   },
1769   {
1770     "balloon_switch_right",
1771     "balloon_switch",
1772     "wind switch (right)"
1773   },
1774   {
1775     "balloon_switch_up",
1776     "balloon_switch",
1777     "wind switch (up)"
1778   },
1779   {
1780     "balloon_switch_down",
1781     "balloon_switch",
1782     "wind switch (down)"
1783   },
1784   {
1785     "balloon_switch_any",
1786     "balloon_switch",
1787     "wind switch (any direction)"
1788   },
1789   {
1790     "emc_steelwall_1",
1791     "steelwall",
1792     "steel wall"
1793   },
1794   {
1795     "emc_steelwall_2",
1796     "steelwall",
1797     "steel wall"
1798   },
1799   {
1800     "emc_steelwall_3",
1801     "steelwall",
1802     "steel wall"
1803   },
1804   {
1805     "emc_steelwall_4",
1806     "steelwall",
1807     "steel wall"
1808   },
1809   {
1810     "emc_wall_1",
1811     "wall",
1812     "normal wall"
1813   },
1814   {
1815     "emc_wall_2",
1816     "wall",
1817     "normal wall"
1818   },
1819   {
1820     "emc_wall_3",
1821     "wall",
1822     "normal wall"
1823   },
1824   {
1825     "emc_wall_4",
1826     "wall",
1827     "normal wall"
1828   },
1829   {
1830     "emc_wall_5",
1831     "wall",
1832     "normal wall"
1833   },
1834   {
1835     "emc_wall_6",
1836     "wall",
1837     "normal wall"
1838   },
1839   {
1840     "emc_wall_7",
1841     "wall",
1842     "normal wall"
1843   },
1844   {
1845     "emc_wall_8",
1846     "wall",
1847     "normal wall"
1848   },
1849   {
1850     "tube_any",
1851     "tube",
1852     "tube (any direction)"
1853   },
1854   {
1855     "tube_vertical",
1856     "tube",
1857     "tube (vertical)"
1858   },
1859   {
1860     "tube_horizontal",
1861     "tube",
1862     "tube (horizontal)"
1863   },
1864   {
1865     "tube_vertical_left",
1866     "tube",
1867     "tube (vertical & left)"
1868   },
1869   {
1870     "tube_vertical_right",
1871     "tube",
1872     "tube (vertical & right)"
1873   },
1874   {
1875     "tube_horizontal_up",
1876     "tube",
1877     "tube (horizontal & up)"
1878   },
1879   {
1880     "tube_horizontal_down",
1881     "tube",
1882     "tube (horizontal & down)"
1883   },
1884   {
1885     "tube_left_up",
1886     "tube",
1887     "tube (left & up)"
1888   },
1889   {
1890     "tube_left_down",
1891     "tube",
1892     "tube (left & down)"
1893   },
1894   {
1895     "tube_right_up",
1896     "tube",
1897     "tube (right & up)"
1898   },
1899   {
1900     "tube_right_down",
1901     "tube",
1902     "tube (right & down)"
1903   },
1904   {
1905     "spring",
1906     "spring",
1907     "spring"
1908   },
1909   {
1910     "trap",
1911     "trap",
1912     "trap"
1913   },
1914   {
1915     "dx_supabomb",
1916     "bomb",
1917     "stable bomb (DX style)"
1918   },
1919   {
1920     "unused_358",
1921     "unused",
1922     "-"
1923   },
1924   {
1925     "unused_359",
1926     "unused",
1927     "-"
1928   },
1929   {
1930     "custom_1",
1931     "custom",
1932     "custom element 1"
1933   },
1934   {
1935     "custom_2",
1936     "custom",
1937     "custom element 2"
1938   },
1939   {
1940     "custom_3",
1941     "custom",
1942     "custom element 3"
1943   },
1944   {
1945     "custom_4",
1946     "custom",
1947     "custom element 4"
1948   },
1949   {
1950     "custom_5",
1951     "custom",
1952     "custom element 5"
1953   },
1954   {
1955     "custom_6",
1956     "custom",
1957     "custom element 6"
1958   },
1959   {
1960     "custom_7",
1961     "custom",
1962     "custom element 7"
1963   },
1964   {
1965     "custom_8",
1966     "custom",
1967     "custom element 8"
1968   },
1969   {
1970     "custom_9",
1971     "custom",
1972     "custom element 9"
1973   },
1974   {
1975     "custom_10",
1976     "custom",
1977     "custom element 10"
1978   },
1979   {
1980     "custom_11",
1981     "custom",
1982     "custom element 11"
1983   },
1984   {
1985     "custom_12",
1986     "custom",
1987     "custom element 12"
1988   },
1989   {
1990     "custom_13",
1991     "custom",
1992     "custom element 13"
1993   },
1994   {
1995     "custom_14",
1996     "custom",
1997     "custom element 14"
1998   },
1999   {
2000     "custom_15",
2001     "custom",
2002     "custom element 15"
2003   },
2004   {
2005     "custom_16",
2006     "custom",
2007     "custom element 16"
2008   },
2009   {
2010     "custom_17",
2011     "custom",
2012     "custom element 17"
2013   },
2014   {
2015     "custom_18",
2016     "custom",
2017     "custom element 18"
2018   },
2019   {
2020     "custom_19",
2021     "custom",
2022     "custom element 19"
2023   },
2024   {
2025     "custom_20",
2026     "custom",
2027     "custom element 20"
2028   },
2029   {
2030     "custom_21",
2031     "custom",
2032     "custom element 21"
2033   },
2034   {
2035     "custom_22",
2036     "custom",
2037     "custom element 22"
2038   },
2039   {
2040     "custom_23",
2041     "custom",
2042     "custom element 23"
2043   },
2044   {
2045     "custom_24",
2046     "custom",
2047     "custom element 24"
2048   },
2049   {
2050     "custom_25",
2051     "custom",
2052     "custom element 25"
2053   },
2054   {
2055     "custom_26",
2056     "custom",
2057     "custom element 26"
2058   },
2059   {
2060     "custom_27",
2061     "custom",
2062     "custom element 27"
2063   },
2064   {
2065     "custom_28",
2066     "custom",
2067     "custom element 28"
2068   },
2069   {
2070     "custom_29",
2071     "custom",
2072     "custom element 29"
2073   },
2074   {
2075     "custom_30",
2076     "custom",
2077     "custom element 30"
2078   },
2079   {
2080     "custom_31",
2081     "custom",
2082     "custom element 31"
2083   },
2084   {
2085     "custom_32",
2086     "custom",
2087     "custom element 32"
2088   },
2089   {
2090     "custom_33",
2091     "custom",
2092     "custom element 33"
2093   },
2094   {
2095     "custom_34",
2096     "custom",
2097     "custom element 34"
2098   },
2099   {
2100     "custom_35",
2101     "custom",
2102     "custom element 35"
2103   },
2104   {
2105     "custom_36",
2106     "custom",
2107     "custom element 36"
2108   },
2109   {
2110     "custom_37",
2111     "custom",
2112     "custom element 37"
2113   },
2114   {
2115     "custom_38",
2116     "custom",
2117     "custom element 38"
2118   },
2119   {
2120     "custom_39",
2121     "custom",
2122     "custom element 39"
2123   },
2124   {
2125     "custom_40",
2126     "custom",
2127     "custom element 40"
2128   },
2129   {
2130     "custom_41",
2131     "custom",
2132     "custom element 41"
2133   },
2134   {
2135     "custom_42",
2136     "custom",
2137     "custom element 42"
2138   },
2139   {
2140     "custom_43",
2141     "custom",
2142     "custom element 43"
2143   },
2144   {
2145     "custom_44",
2146     "custom",
2147     "custom element 44"
2148   },
2149   {
2150     "custom_45",
2151     "custom",
2152     "custom element 45"
2153   },
2154   {
2155     "custom_46",
2156     "custom",
2157     "custom element 46"
2158   },
2159   {
2160     "custom_47",
2161     "custom",
2162     "custom element 47"
2163   },
2164   {
2165     "custom_48",
2166     "custom",
2167     "custom element 48"
2168   },
2169   {
2170     "custom_49",
2171     "custom",
2172     "custom element 49"
2173   },
2174   {
2175     "custom_50",
2176     "custom",
2177     "custom element 50"
2178   },
2179   {
2180     "custom_51",
2181     "custom",
2182     "custom element 51"
2183   },
2184   {
2185     "custom_52",
2186     "custom",
2187     "custom element 52"
2188   },
2189   {
2190     "custom_53",
2191     "custom",
2192     "custom element 53"
2193   },
2194   {
2195     "custom_54",
2196     "custom",
2197     "custom element 54"
2198   },
2199   {
2200     "custom_55",
2201     "custom",
2202     "custom element 55"
2203   },
2204   {
2205     "custom_56",
2206     "custom",
2207     "custom element 56"
2208   },
2209   {
2210     "custom_57",
2211     "custom",
2212     "custom element 57"
2213   },
2214   {
2215     "custom_58",
2216     "custom",
2217     "custom element 58"
2218   },
2219   {
2220     "custom_59",
2221     "custom",
2222     "custom element 59"
2223   },
2224   {
2225     "custom_60",
2226     "custom",
2227     "custom element 60"
2228   },
2229   {
2230     "custom_61",
2231     "custom",
2232     "custom element 61"
2233   },
2234   {
2235     "custom_62",
2236     "custom",
2237     "custom element 62"
2238   },
2239   {
2240     "custom_63",
2241     "custom",
2242     "custom element 63"
2243   },
2244   {
2245     "custom_64",
2246     "custom",
2247     "custom element 64"
2248   },
2249   {
2250     "custom_65",
2251     "custom",
2252     "custom element 65"
2253   },
2254   {
2255     "custom_66",
2256     "custom",
2257     "custom element 66"
2258   },
2259   {
2260     "custom_67",
2261     "custom",
2262     "custom element 67"
2263   },
2264   {
2265     "custom_68",
2266     "custom",
2267     "custom element 68"
2268   },
2269   {
2270     "custom_69",
2271     "custom",
2272     "custom element 69"
2273   },
2274   {
2275     "custom_70",
2276     "custom",
2277     "custom element 70"
2278   },
2279   {
2280     "custom_71",
2281     "custom",
2282     "custom element 71"
2283   },
2284   {
2285     "custom_72",
2286     "custom",
2287     "custom element 72"
2288   },
2289   {
2290     "custom_73",
2291     "custom",
2292     "custom element 73"
2293   },
2294   {
2295     "custom_74",
2296     "custom",
2297     "custom element 74"
2298   },
2299   {
2300     "custom_75",
2301     "custom",
2302     "custom element 75"
2303   },
2304   {
2305     "custom_76",
2306     "custom",
2307     "custom element 76"
2308   },
2309   {
2310     "custom_77",
2311     "custom",
2312     "custom element 77"
2313   },
2314   {
2315     "custom_78",
2316     "custom",
2317     "custom element 78"
2318   },
2319   {
2320     "custom_79",
2321     "custom",
2322     "custom element 79"
2323   },
2324   {
2325     "custom_80",
2326     "custom",
2327     "custom element 80"
2328   },
2329   {
2330     "custom_81",
2331     "custom",
2332     "custom element 81"
2333   },
2334   {
2335     "custom_82",
2336     "custom",
2337     "custom element 82"
2338   },
2339   {
2340     "custom_83",
2341     "custom",
2342     "custom element 83"
2343   },
2344   {
2345     "custom_84",
2346     "custom",
2347     "custom element 84"
2348   },
2349   {
2350     "custom_85",
2351     "custom",
2352     "custom element 85"
2353   },
2354   {
2355     "custom_86",
2356     "custom",
2357     "custom element 86"
2358   },
2359   {
2360     "custom_87",
2361     "custom",
2362     "custom element 87"
2363   },
2364   {
2365     "custom_88",
2366     "custom",
2367     "custom element 88"
2368   },
2369   {
2370     "custom_89",
2371     "custom",
2372     "custom element 89"
2373   },
2374   {
2375     "custom_90",
2376     "custom",
2377     "custom element 90"
2378   },
2379   {
2380     "custom_91",
2381     "custom",
2382     "custom element 91"
2383   },
2384   {
2385     "custom_92",
2386     "custom",
2387     "custom element 92"
2388   },
2389   {
2390     "custom_93",
2391     "custom",
2392     "custom element 93"
2393   },
2394   {
2395     "custom_94",
2396     "custom",
2397     "custom element 94"
2398   },
2399   {
2400     "custom_95",
2401     "custom",
2402     "custom element 95"
2403   },
2404   {
2405     "custom_96",
2406     "custom",
2407     "custom element 96"
2408   },
2409   {
2410     "custom_97",
2411     "custom",
2412     "custom element 97"
2413   },
2414   {
2415     "custom_98",
2416     "custom",
2417     "custom element 98"
2418   },
2419   {
2420     "custom_99",
2421     "custom",
2422     "custom element 99"
2423   },
2424   {
2425     "custom_100",
2426     "custom",
2427     "custom element 100"
2428   },
2429   {
2430     "custom_101",
2431     "custom",
2432     "custom element 101"
2433   },
2434   {
2435     "custom_102",
2436     "custom",
2437     "custom element 102"
2438   },
2439   {
2440     "custom_103",
2441     "custom",
2442     "custom element 103"
2443   },
2444   {
2445     "custom_104",
2446     "custom",
2447     "custom element 104"
2448   },
2449   {
2450     "custom_105",
2451     "custom",
2452     "custom element 105"
2453   },
2454   {
2455     "custom_106",
2456     "custom",
2457     "custom element 106"
2458   },
2459   {
2460     "custom_107",
2461     "custom",
2462     "custom element 107"
2463   },
2464   {
2465     "custom_108",
2466     "custom",
2467     "custom element 108"
2468   },
2469   {
2470     "custom_109",
2471     "custom",
2472     "custom element 109"
2473   },
2474   {
2475     "custom_110",
2476     "custom",
2477     "custom element 110"
2478   },
2479   {
2480     "custom_111",
2481     "custom",
2482     "custom element 111"
2483   },
2484   {
2485     "custom_112",
2486     "custom",
2487     "custom element 112"
2488   },
2489   {
2490     "custom_113",
2491     "custom",
2492     "custom element 113"
2493   },
2494   {
2495     "custom_114",
2496     "custom",
2497     "custom element 114"
2498   },
2499   {
2500     "custom_115",
2501     "custom",
2502     "custom element 115"
2503   },
2504   {
2505     "custom_116",
2506     "custom",
2507     "custom element 116"
2508   },
2509   {
2510     "custom_117",
2511     "custom",
2512     "custom element 117"
2513   },
2514   {
2515     "custom_118",
2516     "custom",
2517     "custom element 118"
2518   },
2519   {
2520     "custom_119",
2521     "custom",
2522     "custom element 119"
2523   },
2524   {
2525     "custom_120",
2526     "custom",
2527     "custom element 120"
2528   },
2529   {
2530     "custom_121",
2531     "custom",
2532     "custom element 121"
2533   },
2534   {
2535     "custom_122",
2536     "custom",
2537     "custom element 122"
2538   },
2539   {
2540     "custom_123",
2541     "custom",
2542     "custom element 123"
2543   },
2544   {
2545     "custom_124",
2546     "custom",
2547     "custom element 124"
2548   },
2549   {
2550     "custom_125",
2551     "custom",
2552     "custom element 125"
2553   },
2554   {
2555     "custom_126",
2556     "custom",
2557     "custom element 126"
2558   },
2559   {
2560     "custom_127",
2561     "custom",
2562     "custom element 127"
2563   },
2564   {
2565     "custom_128",
2566     "custom",
2567     "custom element 128"
2568   },
2569   {
2570     "custom_129",
2571     "custom",
2572     "custom element 129"
2573   },
2574   {
2575     "custom_130",
2576     "custom",
2577     "custom element 130"
2578   },
2579   {
2580     "custom_131",
2581     "custom",
2582     "custom element 131"
2583   },
2584   {
2585     "custom_132",
2586     "custom",
2587     "custom element 132"
2588   },
2589   {
2590     "custom_133",
2591     "custom",
2592     "custom element 133"
2593   },
2594   {
2595     "custom_134",
2596     "custom",
2597     "custom element 134"
2598   },
2599   {
2600     "custom_135",
2601     "custom",
2602     "custom element 135"
2603   },
2604   {
2605     "custom_136",
2606     "custom",
2607     "custom element 136"
2608   },
2609   {
2610     "custom_137",
2611     "custom",
2612     "custom element 137"
2613   },
2614   {
2615     "custom_138",
2616     "custom",
2617     "custom element 138"
2618   },
2619   {
2620     "custom_139",
2621     "custom",
2622     "custom element 139"
2623   },
2624   {
2625     "custom_140",
2626     "custom",
2627     "custom element 140"
2628   },
2629   {
2630     "custom_141",
2631     "custom",
2632     "custom element 141"
2633   },
2634   {
2635     "custom_142",
2636     "custom",
2637     "custom element 142"
2638   },
2639   {
2640     "custom_143",
2641     "custom",
2642     "custom element 143"
2643   },
2644   {
2645     "custom_144",
2646     "custom",
2647     "custom element 144"
2648   },
2649   {
2650     "custom_145",
2651     "custom",
2652     "custom element 145"
2653   },
2654   {
2655     "custom_146",
2656     "custom",
2657     "custom element 146"
2658   },
2659   {
2660     "custom_147",
2661     "custom",
2662     "custom element 147"
2663   },
2664   {
2665     "custom_148",
2666     "custom",
2667     "custom element 148"
2668   },
2669   {
2670     "custom_149",
2671     "custom",
2672     "custom element 149"
2673   },
2674   {
2675     "custom_150",
2676     "custom",
2677     "custom element 150"
2678   },
2679   {
2680     "custom_151",
2681     "custom",
2682     "custom element 151"
2683   },
2684   {
2685     "custom_152",
2686     "custom",
2687     "custom element 152"
2688   },
2689   {
2690     "custom_153",
2691     "custom",
2692     "custom element 153"
2693   },
2694   {
2695     "custom_154",
2696     "custom",
2697     "custom element 154"
2698   },
2699   {
2700     "custom_155",
2701     "custom",
2702     "custom element 155"
2703   },
2704   {
2705     "custom_156",
2706     "custom",
2707     "custom element 156"
2708   },
2709   {
2710     "custom_157",
2711     "custom",
2712     "custom element 157"
2713   },
2714   {
2715     "custom_158",
2716     "custom",
2717     "custom element 158"
2718   },
2719   {
2720     "custom_159",
2721     "custom",
2722     "custom element 159"
2723   },
2724   {
2725     "custom_160",
2726     "custom",
2727     "custom element 160"
2728   },
2729   {
2730     "custom_161",
2731     "custom",
2732     "custom element 161"
2733   },
2734   {
2735     "custom_162",
2736     "custom",
2737     "custom element 162"
2738   },
2739   {
2740     "custom_163",
2741     "custom",
2742     "custom element 163"
2743   },
2744   {
2745     "custom_164",
2746     "custom",
2747     "custom element 164"
2748   },
2749   {
2750     "custom_165",
2751     "custom",
2752     "custom element 165"
2753   },
2754   {
2755     "custom_166",
2756     "custom",
2757     "custom element 166"
2758   },
2759   {
2760     "custom_167",
2761     "custom",
2762     "custom element 167"
2763   },
2764   {
2765     "custom_168",
2766     "custom",
2767     "custom element 168"
2768   },
2769   {
2770     "custom_169",
2771     "custom",
2772     "custom element 169"
2773   },
2774   {
2775     "custom_170",
2776     "custom",
2777     "custom element 170"
2778   },
2779   {
2780     "custom_171",
2781     "custom",
2782     "custom element 171"
2783   },
2784   {
2785     "custom_172",
2786     "custom",
2787     "custom element 172"
2788   },
2789   {
2790     "custom_173",
2791     "custom",
2792     "custom element 173"
2793   },
2794   {
2795     "custom_174",
2796     "custom",
2797     "custom element 174"
2798   },
2799   {
2800     "custom_175",
2801     "custom",
2802     "custom element 175"
2803   },
2804   {
2805     "custom_176",
2806     "custom",
2807     "custom element 176"
2808   },
2809   {
2810     "custom_177",
2811     "custom",
2812     "custom element 177"
2813   },
2814   {
2815     "custom_178",
2816     "custom",
2817     "custom element 178"
2818   },
2819   {
2820     "custom_179",
2821     "custom",
2822     "custom element 179"
2823   },
2824   {
2825     "custom_180",
2826     "custom",
2827     "custom element 180"
2828   },
2829   {
2830     "custom_181",
2831     "custom",
2832     "custom element 181"
2833   },
2834   {
2835     "custom_182",
2836     "custom",
2837     "custom element 182"
2838   },
2839   {
2840     "custom_183",
2841     "custom",
2842     "custom element 183"
2843   },
2844   {
2845     "custom_184",
2846     "custom",
2847     "custom element 184"
2848   },
2849   {
2850     "custom_185",
2851     "custom",
2852     "custom element 185"
2853   },
2854   {
2855     "custom_186",
2856     "custom",
2857     "custom element 186"
2858   },
2859   {
2860     "custom_187",
2861     "custom",
2862     "custom element 187"
2863   },
2864   {
2865     "custom_188",
2866     "custom",
2867     "custom element 188"
2868   },
2869   {
2870     "custom_189",
2871     "custom",
2872     "custom element 189"
2873   },
2874   {
2875     "custom_190",
2876     "custom",
2877     "custom element 190"
2878   },
2879   {
2880     "custom_191",
2881     "custom",
2882     "custom element 191"
2883   },
2884   {
2885     "custom_192",
2886     "custom",
2887     "custom element 192"
2888   },
2889   {
2890     "custom_193",
2891     "custom",
2892     "custom element 193"
2893   },
2894   {
2895     "custom_194",
2896     "custom",
2897     "custom element 194"
2898   },
2899   {
2900     "custom_195",
2901     "custom",
2902     "custom element 195"
2903   },
2904   {
2905     "custom_196",
2906     "custom",
2907     "custom element 196"
2908   },
2909   {
2910     "custom_197",
2911     "custom",
2912     "custom element 197"
2913   },
2914   {
2915     "custom_198",
2916     "custom",
2917     "custom element 198"
2918   },
2919   {
2920     "custom_199",
2921     "custom",
2922     "custom element 199"
2923   },
2924   {
2925     "custom_200",
2926     "custom",
2927     "custom element 200"
2928   },
2929   {
2930     "custom_201",
2931     "custom",
2932     "custom element 201"
2933   },
2934   {
2935     "custom_202",
2936     "custom",
2937     "custom element 202"
2938   },
2939   {
2940     "custom_203",
2941     "custom",
2942     "custom element 203"
2943   },
2944   {
2945     "custom_204",
2946     "custom",
2947     "custom element 204"
2948   },
2949   {
2950     "custom_205",
2951     "custom",
2952     "custom element 205"
2953   },
2954   {
2955     "custom_206",
2956     "custom",
2957     "custom element 206"
2958   },
2959   {
2960     "custom_207",
2961     "custom",
2962     "custom element 207"
2963   },
2964   {
2965     "custom_208",
2966     "custom",
2967     "custom element 208"
2968   },
2969   {
2970     "custom_209",
2971     "custom",
2972     "custom element 209"
2973   },
2974   {
2975     "custom_210",
2976     "custom",
2977     "custom element 210"
2978   },
2979   {
2980     "custom_211",
2981     "custom",
2982     "custom element 211"
2983   },
2984   {
2985     "custom_212",
2986     "custom",
2987     "custom element 212"
2988   },
2989   {
2990     "custom_213",
2991     "custom",
2992     "custom element 213"
2993   },
2994   {
2995     "custom_214",
2996     "custom",
2997     "custom element 214"
2998   },
2999   {
3000     "custom_215",
3001     "custom",
3002     "custom element 215"
3003   },
3004   {
3005     "custom_216",
3006     "custom",
3007     "custom element 216"
3008   },
3009   {
3010     "custom_217",
3011     "custom",
3012     "custom element 217"
3013   },
3014   {
3015     "custom_218",
3016     "custom",
3017     "custom element 218"
3018   },
3019   {
3020     "custom_219",
3021     "custom",
3022     "custom element 219"
3023   },
3024   {
3025     "custom_220",
3026     "custom",
3027     "custom element 220"
3028   },
3029   {
3030     "custom_221",
3031     "custom",
3032     "custom element 221"
3033   },
3034   {
3035     "custom_222",
3036     "custom",
3037     "custom element 222"
3038   },
3039   {
3040     "custom_223",
3041     "custom",
3042     "custom element 223"
3043   },
3044   {
3045     "custom_224",
3046     "custom",
3047     "custom element 224"
3048   },
3049   {
3050     "custom_225",
3051     "custom",
3052     "custom element 225"
3053   },
3054   {
3055     "custom_226",
3056     "custom",
3057     "custom element 226"
3058   },
3059   {
3060     "custom_227",
3061     "custom",
3062     "custom element 227"
3063   },
3064   {
3065     "custom_228",
3066     "custom",
3067     "custom element 228"
3068   },
3069   {
3070     "custom_229",
3071     "custom",
3072     "custom element 229"
3073   },
3074   {
3075     "custom_230",
3076     "custom",
3077     "custom element 230"
3078   },
3079   {
3080     "custom_231",
3081     "custom",
3082     "custom element 231"
3083   },
3084   {
3085     "custom_232",
3086     "custom",
3087     "custom element 232"
3088   },
3089   {
3090     "custom_233",
3091     "custom",
3092     "custom element 233"
3093   },
3094   {
3095     "custom_234",
3096     "custom",
3097     "custom element 234"
3098   },
3099   {
3100     "custom_235",
3101     "custom",
3102     "custom element 235"
3103   },
3104   {
3105     "custom_236",
3106     "custom",
3107     "custom element 236"
3108   },
3109   {
3110     "custom_237",
3111     "custom",
3112     "custom element 237"
3113   },
3114   {
3115     "custom_238",
3116     "custom",
3117     "custom element 238"
3118   },
3119   {
3120     "custom_239",
3121     "custom",
3122     "custom element 239"
3123   },
3124   {
3125     "custom_240",
3126     "custom",
3127     "custom element 240"
3128   },
3129   {
3130     "custom_241",
3131     "custom",
3132     "custom element 241"
3133   },
3134   {
3135     "custom_242",
3136     "custom",
3137     "custom element 242"
3138   },
3139   {
3140     "custom_243",
3141     "custom",
3142     "custom element 243"
3143   },
3144   {
3145     "custom_244",
3146     "custom",
3147     "custom element 244"
3148   },
3149   {
3150     "custom_245",
3151     "custom",
3152     "custom element 245"
3153   },
3154   {
3155     "custom_246",
3156     "custom",
3157     "custom element 246"
3158   },
3159   {
3160     "custom_247",
3161     "custom",
3162     "custom element 247"
3163   },
3164   {
3165     "custom_248",
3166     "custom",
3167     "custom element 248"
3168   },
3169   {
3170     "custom_249",
3171     "custom",
3172     "custom element 249"
3173   },
3174   {
3175     "custom_250",
3176     "custom",
3177     "custom element 250"
3178   },
3179   {
3180     "custom_251",
3181     "custom",
3182     "custom element 251"
3183   },
3184   {
3185     "custom_252",
3186     "custom",
3187     "custom element 252"
3188   },
3189   {
3190     "custom_253",
3191     "custom",
3192     "custom element 253"
3193   },
3194   {
3195     "custom_254",
3196     "custom",
3197     "custom element 254"
3198   },
3199   {
3200     "custom_255",
3201     "custom",
3202     "custom element 255"
3203   },
3204   {
3205     "custom_256",
3206     "custom",
3207     "custom element 256"
3208   },
3209   {
3210     "em_key_1",
3211     "key",
3212     "key 1 (EM style)"
3213     },
3214   {
3215     "em_key_2",
3216     "key",
3217     "key 2 (EM style)"
3218     },
3219   {
3220     "em_key_3",
3221     "key",
3222     "key 3 (EM style)"
3223   },
3224   {
3225     "em_key_4",
3226     "key",
3227     "key 4 (EM style)"
3228   },
3229   {
3230     "envelope_1",
3231     "envelope",
3232     "mail envelope 1"
3233   },
3234   {
3235     "envelope_2",
3236     "envelope",
3237     "mail envelope 2"
3238   },
3239   {
3240     "envelope_3",
3241     "envelope",
3242     "mail envelope 3"
3243   },
3244   {
3245     "envelope_4",
3246     "envelope",
3247     "mail envelope 4"
3248   },
3249   {
3250     "group_1",
3251     "group",
3252     "group element 1"
3253   },
3254   {
3255     "group_2",
3256     "group",
3257     "group element 2"
3258   },
3259   {
3260     "group_3",
3261     "group",
3262     "group element 3"
3263   },
3264   {
3265     "group_4",
3266     "group",
3267     "group element 4"
3268   },
3269   {
3270     "group_5",
3271     "group",
3272     "group element 5"
3273   },
3274   {
3275     "group_6",
3276     "group",
3277     "group element 6"
3278   },
3279   {
3280     "group_7",
3281     "group",
3282     "group element 7"
3283   },
3284   {
3285     "group_8",
3286     "group",
3287     "group element 8"
3288   },
3289   {
3290     "group_9",
3291     "group",
3292     "group element 9"
3293   },
3294   {
3295     "group_10",
3296     "group",
3297     "group element 10"
3298   },
3299   {
3300     "group_11",
3301     "group",
3302     "group element 11"
3303   },
3304   {
3305     "group_12",
3306     "group",
3307     "group element 12"
3308   },
3309   {
3310     "group_13",
3311     "group",
3312     "group element 13"
3313   },
3314   {
3315     "group_14",
3316     "group",
3317     "group element 14"
3318   },
3319   {
3320     "group_15",
3321     "group",
3322     "group element 15"
3323   },
3324   {
3325     "group_16",
3326     "group",
3327     "group element 16"
3328   },
3329   {
3330     "group_17",
3331     "group",
3332     "group element 17"
3333   },
3334   {
3335     "group_18",
3336     "group",
3337     "group element 18"
3338   },
3339   {
3340     "group_19",
3341     "group",
3342     "group element 19"
3343   },
3344   {
3345     "group_20",
3346     "group",
3347     "group element 20"
3348   },
3349   {
3350     "group_21",
3351     "group",
3352     "group element 21"
3353   },
3354   {
3355     "group_22",
3356     "group",
3357     "group element 22"
3358   },
3359   {
3360     "group_23",
3361     "group",
3362     "group element 23"
3363   },
3364   {
3365     "group_24",
3366     "group",
3367     "group element 24"
3368   },
3369   {
3370     "group_25",
3371     "group",
3372     "group element 25"
3373   },
3374   {
3375     "group_26",
3376     "group",
3377     "group element 26"
3378   },
3379   {
3380     "group_27",
3381     "group",
3382     "group element 27"
3383   },
3384   {
3385     "group_28",
3386     "group",
3387     "group element 28"
3388   },
3389   {
3390     "group_29",
3391     "group",
3392     "group element 29"
3393   },
3394   {
3395     "group_30",
3396     "group",
3397     "group element 30"
3398   },
3399   {
3400     "group_31",
3401     "group",
3402     "group element 31"
3403   },
3404   {
3405     "group_32",
3406     "group",
3407     "group element 32"
3408   },
3409   {
3410     "unknown",
3411     "unknown",
3412     "unknown element"
3413   },
3414   {
3415     "trigger_element",
3416     "trigger",
3417     "element triggering change"
3418   },
3419   {
3420     "trigger_player",
3421     "trigger",
3422     "player triggering change"
3423   },
3424   {
3425     "sp_gravity_on_port_right",
3426     "sp_port",
3427     "gravity on port (leading right)"
3428   },
3429   {
3430     "sp_gravity_on_port_down",
3431     "sp_port",
3432     "gravity on port (leading down)"
3433   },
3434   {
3435     "sp_gravity_on_port_left",
3436     "sp_port",
3437     "gravity on port (leading left)"
3438   },
3439   {
3440     "sp_gravity_on_port_up",
3441     "sp_port",
3442     "gravity on port (leading up)"
3443   },
3444   {
3445     "sp_gravity_off_port_right",
3446     "sp_port",
3447     "gravity off port (leading right)"
3448   },
3449   {
3450     "sp_gravity_off_port_down",
3451     "sp_port",
3452     "gravity off port (leading down)"
3453   },
3454   {
3455     "sp_gravity_off_port_left",
3456     "sp_port",
3457     "gravity off port (leading left)"
3458   },
3459   {
3460     "sp_gravity_off_port_up",
3461     "sp_port",
3462     "gravity off port (leading up)"
3463   },
3464   {
3465     "balloon_switch_none",
3466     "balloon_switch",
3467     "wind switch (off)"
3468   },
3469   {
3470     "emc_gate_5",
3471     "gate",
3472     "door 5 (EMC style)",
3473   },
3474   {
3475     "emc_gate_6",
3476     "gate",
3477     "door 6 (EMC style)",
3478   },
3479   {
3480     "emc_gate_7",
3481     "gate",
3482     "door 7 (EMC style)",
3483   },
3484   {
3485     "emc_gate_8",
3486     "gate",
3487     "door 8 (EMC style)",
3488   },
3489   {
3490     "emc_gate_5_gray",
3491     "gate",
3492     "gray door (EMC style, key 5)",
3493   },
3494   {
3495     "emc_gate_6_gray",
3496     "gate",
3497     "gray door (EMC style, key 6)",
3498   },
3499   {
3500     "emc_gate_7_gray",
3501     "gate",
3502     "gray door (EMC style, key 7)",
3503   },
3504   {
3505     "emc_gate_8_gray",
3506     "gate",
3507     "gray door (EMC style, key 8)",
3508   },
3509   {
3510     "emc_key_5",
3511     "key",
3512     "key 5 (EMC style)",
3513   },
3514   {
3515     "emc_key_6",
3516     "key",
3517     "key 6 (EMC style)",
3518   },
3519   {
3520     "emc_key_7",
3521     "key",
3522     "key 7 (EMC style)",
3523   },
3524   {
3525     "emc_key_8",
3526     "key",
3527     "key 8 (EMC style)",
3528   },
3529   {
3530     "emc_android",
3531     "emc_android",
3532     "android",
3533   },
3534   {
3535     "emc_grass",
3536     "emc_grass",
3537     "grass",
3538   },
3539   {
3540     "emc_magic_ball",
3541     "emc_magic_ball",
3542     "magic ball",
3543   },
3544   {
3545     "emc_magic_ball.active",
3546     "emc_magic_ball",
3547     "magic ball (activated)",
3548   },
3549   {
3550     "emc_magic_ball_switch",
3551     "emc_magic_ball_switch",
3552     "magic ball switch (off)",
3553   },
3554   {
3555     "emc_magic_ball_switch.active",
3556     "emc_magic_ball_switch",
3557     "magic ball switch (on)",
3558   },
3559   {
3560     "emc_spring_bumper",
3561     "emc_spring_bumper",
3562     "spring bumper",
3563   },
3564   {
3565     "emc_plant",
3566     "emc_plant",
3567     "plant",
3568   },
3569   {
3570     "emc_lenses",
3571     "emc_lenses",
3572     "lenses",
3573   },
3574   {
3575     "emc_magnifier",
3576     "emc_magnifier",
3577     "magnifier",
3578   },
3579   {
3580     "emc_wall_9",
3581     "wall",
3582     "normal wall"
3583   },
3584   {
3585     "emc_wall_10",
3586     "wall",
3587     "normal wall"
3588   },
3589   {
3590     "emc_wall_11",
3591     "wall",
3592     "normal wall"
3593   },
3594   {
3595     "emc_wall_12",
3596     "wall",
3597     "normal wall"
3598   },
3599   {
3600     "emc_wall_13",
3601     "wall",
3602     "normal wall"
3603   },
3604   {
3605     "emc_wall_14",
3606     "wall",
3607     "normal wall"
3608   },
3609   {
3610     "emc_wall_15",
3611     "wall",
3612     "normal wall"
3613   },
3614   {
3615     "emc_wall_16",
3616     "wall",
3617     "normal wall"
3618   },
3619   {
3620     "emc_wall_slippery_1",
3621     "wall",
3622     "slippery wall"
3623   },
3624   {
3625     "emc_wall_slippery_2",
3626     "wall",
3627     "slippery wall"
3628   },
3629   {
3630     "emc_wall_slippery_3",
3631     "wall",
3632     "slippery wall"
3633   },
3634   {
3635     "emc_wall_slippery_4",
3636     "wall",
3637     "slippery wall"
3638   },
3639   {
3640     "emc_fake_grass",
3641     "fake_grass",
3642     "fake grass"
3643   },
3644   {
3645     "emc_fake_acid",
3646     "fake_acid",
3647     "fake acid"
3648   },
3649   {
3650     "emc_dripper",
3651     "dripper",
3652     "dripper"
3653   },
3654   {
3655     "trigger_ce_value",
3656     "trigger",
3657     "CE value of element triggering change"
3658   },
3659   {
3660     "trigger_ce_score",
3661     "trigger",
3662     "CE score of element triggering change"
3663   },
3664   {
3665     "current_ce_value",
3666     "current",
3667     "CE value of current element"
3668   },
3669   {
3670     "current_ce_score",
3671     "current",
3672     "CE score of current element"
3673   },
3674   {
3675     "yamyam.left",
3676     "yamyam",
3677     "yam yam (starts moving left)"
3678   },
3679   {
3680     "yamyam.right",
3681     "yamyam",
3682     "yam yam (starts moving right)"
3683   },
3684   {
3685     "yamyam.up",
3686     "yamyam",
3687     "yam yam (starts moving up)"
3688   },
3689   {
3690     "yamyam.down",
3691     "yamyam",
3692     "yam yam (starts moving down)"
3693   },
3694   {
3695     "bd_expandable_wall",
3696     "wall",
3697     "growing wall (horizontal, BD style)"
3698   },
3699   {
3700     "last_ce_8",
3701     "last_ce",
3702     "CE 8 positions earlier in list"
3703   },
3704   {
3705     "last_ce_7",
3706     "last_ce",
3707     "CE 7 positions earlier in list"
3708   },
3709   {
3710     "last_ce_6",
3711     "last_ce",
3712     "CE 6 positions earlier in list"
3713   },
3714   {
3715     "last_ce_5",
3716     "last_ce",
3717     "CE 5 positions earlier in list"
3718   },
3719   {
3720     "last_ce_4",
3721     "last_ce",
3722     "CE 4 positions earlier in list"
3723   },
3724   {
3725     "last_ce_3",
3726     "last_ce",
3727     "CE 3 positions earlier in list"
3728   },
3729   {
3730     "last_ce_2",
3731     "last_ce",
3732     "CE 2 positions earlier in list"
3733   },
3734   {
3735     "last_ce_1",
3736     "last_ce",
3737     "CE 1 position earlier in list"
3738   },
3739   {
3740     "self",
3741     "self",
3742     "the current custom element"
3743   },
3744   {
3745     "next_ce_1",
3746     "next_ce",
3747     "CE 1 position later in list"
3748   },
3749   {
3750     "next_ce_2",
3751     "next_ce",
3752     "CE 2 positions later in list"
3753   },
3754   {
3755     "next_ce_3",
3756     "next_ce",
3757     "CE 3 positions later in list"
3758   },
3759   {
3760     "next_ce_4",
3761     "next_ce",
3762     "CE 4 positions later in list"
3763   },
3764   {
3765     "next_ce_5",
3766     "next_ce",
3767     "CE 5 positions later in list"
3768   },
3769   {
3770     "next_ce_6",
3771     "next_ce",
3772     "CE 6 positions later in list"
3773   },
3774   {
3775     "next_ce_7",
3776     "next_ce",
3777     "CE 7 positions later in list"
3778   },
3779   {
3780     "next_ce_8",
3781     "next_ce",
3782     "CE 8 positions later in list"
3783   },
3784   {
3785     "any_element",
3786     "any_element",
3787     "this element matches any element"
3788   },
3789
3790   /* ----------------------------------------------------------------------- */
3791   /* "real" (and therefore drawable) runtime elements                        */
3792   /* ----------------------------------------------------------------------- */
3793
3794   {
3795     "dynabomb_player_1.active",
3796     "dynabomb",
3797     "-"
3798   },
3799   {
3800     "dynabomb_player_2.active",
3801     "dynabomb",
3802     "-"
3803   },
3804   {
3805     "dynabomb_player_3.active",
3806     "dynabomb",
3807     "-"
3808   },
3809   {
3810     "dynabomb_player_4.active",
3811     "dynabomb",
3812     "-"
3813   },
3814   {
3815     "sp_disk_red.active",
3816     "dynamite",
3817     "-"
3818   },
3819   {
3820     "switchgate.opening",
3821     "switchgate",
3822     "-"
3823   },
3824   {
3825     "switchgate.closing",
3826     "switchgate",
3827     "-"
3828   },
3829   {
3830     "timegate.opening",
3831     "timegate",
3832     "-"
3833   },
3834   {
3835     "timegate.closing",
3836     "timegate",
3837     "-"
3838   },
3839   {
3840     "pearl.breaking",
3841     "pearl",
3842     "-"
3843   },
3844   {
3845     "trap.active",
3846     "trap",
3847     "-"
3848   },
3849   {
3850     "invisible_steelwall.active",
3851     "steelwall",
3852     "-"
3853   },
3854   {
3855     "invisible_wall.active",
3856     "wall",
3857     "-"
3858   },
3859   {
3860     "invisible_sand.active",
3861     "sand",
3862     "-"
3863   },
3864   {
3865     "conveyor_belt_1_left.active",
3866     "conveyor_belt",
3867     "-"
3868   },
3869   {
3870     "conveyor_belt_1_middle.active",
3871     "conveyor_belt",
3872     "-"
3873   },
3874   {
3875     "conveyor_belt_1_right.active",
3876     "conveyor_belt",
3877     "-"
3878   },
3879   {
3880     "conveyor_belt_2_left.active",
3881     "conveyor_belt",
3882     "-"
3883   },
3884   {
3885     "conveyor_belt_2_middle.active",
3886     "conveyor_belt",
3887     "-"
3888   },
3889   {
3890     "conveyor_belt_2_right.active",
3891     "conveyor_belt",
3892     "-"
3893   },
3894   {
3895     "conveyor_belt_3_left.active",
3896     "conveyor_belt",
3897     "-"
3898   },
3899   {
3900     "conveyor_belt_3_middle.active",
3901     "conveyor_belt",
3902     "-"
3903   },
3904   {
3905     "conveyor_belt_3_right.active",
3906     "conveyor_belt",
3907     "-"
3908   },
3909   {
3910     "conveyor_belt_4_left.active",
3911     "conveyor_belt",
3912     "-"
3913   },
3914   {
3915     "conveyor_belt_4_middle.active",
3916     "conveyor_belt",
3917     "-"
3918   },
3919   {
3920     "conveyor_belt_4_right.active",
3921     "conveyor_belt",
3922     "-"
3923   },
3924   {
3925     "exit.opening",
3926     "exit",
3927     "-"
3928   },
3929   {
3930     "exit.closing",
3931     "exit",
3932     "-"
3933   },
3934   {
3935     "sp_exit.opening",
3936     "sp_exit",
3937     "-"
3938   },
3939   {
3940     "sp_exit.closing",
3941     "sp_exit",
3942     "-"
3943   },
3944   {
3945     "sp_exit_open",
3946     "sp_exit",
3947     "-"
3948   },
3949   {
3950     "sp_terminal.active",
3951     "sp_terminal",
3952     "-"
3953   },
3954   {
3955     "sp_buggy_base.activating",
3956     "sp_buggy_base",
3957     "-"
3958   },
3959   {
3960     "sp_buggy_base.active",
3961     "sp_buggy_base",
3962     "-"
3963   },
3964   {
3965     "sp_murphy_clone",
3966     "murphy_clone",
3967     "-"
3968   },
3969   {
3970     "amoeba.dropping",
3971     "amoeba",
3972     "-"
3973   },
3974   {
3975     "quicksand.emptying",
3976     "quicksand",
3977     "-"
3978   },
3979   {
3980     "magic_wall.active",
3981     "magic_wall",
3982     "-"
3983   },
3984   {
3985     "bd_magic_wall.active",
3986     "magic_wall",
3987     "-"
3988   },
3989   {
3990     "magic_wall_full",
3991     "magic_wall",
3992     "-"
3993   },
3994   {
3995     "bd_magic_wall_full",
3996     "magic_wall",
3997     "-"
3998   },
3999   {
4000     "magic_wall.emptying",
4001     "magic_wall",
4002     "-"
4003   },
4004   {
4005     "bd_magic_wall.emptying",
4006     "magic_wall",
4007     "-"
4008   },
4009   {
4010     "magic_wall_dead",
4011     "magic_wall",
4012     "-"
4013   },
4014   {
4015     "bd_magic_wall_dead",
4016     "magic_wall",
4017     "-"
4018   },
4019
4020   {
4021     "emc_fake_grass.active",
4022     "fake_grass",
4023     "-"
4024   },
4025   {
4026     "gate_1_gray.active",
4027     "gate",
4028     ""
4029   },
4030   {
4031     "gate_2_gray.active",
4032     "gate",
4033     ""
4034   },
4035   {
4036     "gate_3_gray.active",
4037     "gate",
4038     ""
4039   },
4040   {
4041     "gate_4_gray.active",
4042     "gate",
4043     ""
4044   },
4045   {
4046     "em_gate_1_gray.active",
4047     "gate",
4048     ""
4049   },
4050   {
4051     "em_gate_2_gray.active",
4052     "gate",
4053     ""
4054   },
4055   {
4056     "em_gate_3_gray.active",
4057     "gate",
4058     ""
4059   },
4060   {
4061     "em_gate_4_gray.active",
4062     "gate",
4063     ""
4064   },
4065   {
4066     "emc_gate_5_gray.active",
4067     "gate",
4068     "",
4069   },
4070   {
4071     "emc_gate_6_gray.active",
4072     "gate",
4073     "",
4074   },
4075   {
4076     "emc_gate_7_gray.active",
4077     "gate",
4078     "",
4079   },
4080   {
4081     "emc_gate_8_gray.active",
4082     "gate",
4083     "",
4084   },
4085   {
4086     "emc_dripper.active",
4087     "dripper",
4088     "dripper"
4089   },
4090   {
4091     "emc_spring_bumper.active",
4092     "emc_spring_bumper",
4093     "spring bumper",
4094   },
4095
4096   /* ----------------------------------------------------------------------- */
4097   /* "unreal" (and therefore not drawable) runtime elements                  */
4098   /* ----------------------------------------------------------------------- */
4099
4100   {
4101     "blocked",
4102     "-",
4103     "-"
4104   },
4105   {
4106     "explosion",
4107     "-",
4108     "-"
4109   },
4110   {
4111     "nut.breaking",
4112     "-",
4113     "-"
4114   },
4115   {
4116     "diamond.breaking",
4117     "-",
4118     "-"
4119   },
4120   {
4121     "acid_splash_left",
4122     "-",
4123     "-"
4124   },
4125   {
4126     "acid_splash_right",
4127     "-",
4128     "-"
4129   },
4130   {
4131     "amoeba.growing",
4132     "-",
4133     "-"
4134   },
4135   {
4136     "amoeba.shrinking",
4137     "-",
4138     "-"
4139   },
4140   {
4141     "expandable_wall.growing",
4142     "-",
4143     "-"
4144   },
4145   {
4146     "flames",
4147     "-",
4148     "-"
4149   },
4150   {
4151     "player_is_leaving",
4152     "-",
4153     "-"
4154   },
4155   {
4156     "player_is_exploding_1",
4157     "-",
4158     "-"
4159   },
4160   {
4161     "player_is_exploding_2",
4162     "-",
4163     "-"
4164   },
4165   {
4166     "player_is_exploding_3",
4167     "-",
4168     "-"
4169   },
4170   {
4171     "player_is_exploding_4",
4172     "-",
4173     "-"
4174   },
4175   {
4176     "quicksand.filling",
4177     "quicksand",
4178     "-"
4179   },
4180   {
4181     "magic_wall.filling",
4182     "-",
4183     "-"
4184   },
4185   {
4186     "bd_magic_wall.filling",
4187     "-",
4188     "-"
4189   },
4190   {
4191     "element.snapping",
4192     "-",
4193     "-"
4194   },
4195   {
4196     "diagonal.shrinking",
4197     "-",
4198     "-"
4199   },
4200   {
4201     "diagonal.growing",
4202     "-",
4203     "-"
4204   },
4205
4206   /* ----------------------------------------------------------------------- */
4207   /* dummy elements (never used as game elements, only used as graphics)     */
4208   /* ----------------------------------------------------------------------- */
4209
4210   {
4211     "steelwall_topleft",
4212     "-",
4213     "-"
4214   },
4215   {
4216     "steelwall_topright",
4217     "-",
4218     "-"
4219   },
4220   {
4221     "steelwall_bottomleft",
4222     "-",
4223     "-"
4224   },
4225   {
4226     "steelwall_bottomright",
4227     "-",
4228     "-"
4229   },
4230   {
4231     "steelwall_horizontal",
4232     "-",
4233     "-"
4234   },
4235   {
4236     "steelwall_vertical",
4237     "-",
4238     "-"
4239   },
4240   {
4241     "invisible_steelwall_topleft",
4242     "-",
4243     "-"
4244   },
4245   {
4246     "invisible_steelwall_topright",
4247     "-",
4248     "-"
4249   },
4250   {
4251     "invisible_steelwall_bottomleft",
4252     "-",
4253     "-"
4254   },
4255   {
4256     "invisible_steelwall_bottomright",
4257     "-",
4258     "-"
4259   },
4260   {
4261     "invisible_steelwall_horizontal",
4262     "-",
4263     "-"
4264   },
4265   {
4266     "invisible_steelwall_vertical",
4267     "-",
4268     "-"
4269   },
4270   {
4271     "dynabomb",
4272     "-",
4273     "-"
4274   },
4275   {
4276     "dynabomb.active",
4277     "-",
4278     "-"
4279   },
4280   {
4281     "dynabomb_player_1",
4282     "-",
4283     "-"
4284   },
4285   {
4286     "dynabomb_player_2",
4287     "-",
4288     "-"
4289   },
4290   {
4291     "dynabomb_player_3",
4292     "-",
4293     "-"
4294   },
4295   {
4296     "dynabomb_player_4",
4297     "-",
4298     "-"
4299   },
4300   {
4301     "shield_normal.active",
4302     "-",
4303     "-"
4304   },
4305   {
4306     "shield_deadly.active",
4307     "-",
4308     "-"
4309   },
4310   {
4311     "amoeba",
4312     "amoeba",
4313     "-"
4314   },
4315   {
4316     "[default]",
4317     "default",
4318     "-"
4319   },
4320   {
4321     "[bd_default]",
4322     "bd_default",
4323     "-"
4324   },
4325   {
4326     "[sp_default]",
4327     "sp_default",
4328     "-"
4329   },
4330   {
4331     "[sb_default]",
4332     "sb_default",
4333     "-"
4334   },
4335   {
4336     "internal_clipboard_custom",
4337     "internal",
4338     "empty custom element"
4339   },
4340   {
4341     "internal_clipboard_change",
4342     "internal",
4343     "empty change page"
4344   },
4345   {
4346     "internal_clipboard_group",
4347     "internal",
4348     "empty group element"
4349   },
4350   {
4351     "internal_dummy",
4352     "internal",
4353     "-"
4354   },
4355   {
4356     "internal_cascade_bd",
4357     "internal",
4358     "show Boulder Dash elements"
4359   },
4360   {
4361     "internal_cascade_bd.active",
4362     "internal",
4363     "hide Boulder Dash elements"
4364   },
4365   {
4366     "internal_cascade_em",
4367     "internal",
4368     "show Emerald Mine elements"
4369   },
4370   {
4371     "internal_cascade_em.active",
4372     "internal",
4373     "hide Emerald Mine elements"
4374   },
4375   {
4376     "internal_cascade_emc",
4377     "internal",
4378     "show Emerald Mine Club elements"
4379   },
4380   {
4381     "internal_cascade_emc.active",
4382     "internal",
4383     "hide Emerald Mine Club elements"
4384   },
4385   {
4386     "internal_cascade_rnd",
4387     "internal",
4388     "show Rocks'n'Diamonds elements"
4389   },
4390   {
4391     "internal_cascade_rnd.active",
4392     "internal",
4393     "hide Rocks'n'Diamonds elements"
4394   },
4395   {
4396     "internal_cascade_sb",
4397     "internal",
4398     "show Sokoban elements"
4399   },
4400   {
4401     "internal_cascade_sb.active",
4402     "internal",
4403     "hide Sokoban elements"
4404   },
4405   {
4406     "internal_cascade_sp",
4407     "internal",
4408     "show Supaplex elements"
4409   },
4410   {
4411     "internal_cascade_sp.active",
4412     "internal",
4413     "hide Supaplex elements"
4414   },
4415   {
4416     "internal_cascade_dc",
4417     "internal",
4418     "show Diamond Caves II elements"
4419   },
4420   {
4421     "internal_cascade_dc.active",
4422     "internal",
4423     "hide Diamond Caves II elements"
4424   },
4425   {
4426     "internal_cascade_dx",
4427     "internal",
4428     "show DX Boulderdash elements"
4429   },
4430   {
4431     "internal_cascade_dx.active",
4432     "internal",
4433     "hide DX Boulderdash elements"
4434   },
4435   {
4436     "internal_cascade_chars",
4437     "internal",
4438     "show text elements"
4439   },
4440   {
4441     "internal_cascade_chars.active",
4442     "internal",
4443     "hide text elements"
4444   },
4445   {
4446     "internal_cascade_ce",
4447     "internal",
4448     "show custom elements"
4449   },
4450   {
4451     "internal_cascade_ce.active",
4452     "internal",
4453     "hide custom elements"
4454   },
4455   {
4456     "internal_cascade_ge",
4457     "internal",
4458     "show group elements"
4459   },
4460   {
4461     "internal_cascade_ge.active",
4462     "internal",
4463     "hide group elements"
4464   },
4465   {
4466     "internal_cascade_ref",
4467     "internal",
4468     "show reference elements"
4469   },
4470   {
4471     "internal_cascade_ref.active",
4472     "internal",
4473     "hide reference elements"
4474   },
4475   {
4476     "internal_cascade_user",
4477     "internal",
4478     "show user defined elements"
4479   },
4480   {
4481     "internal_cascade_user.active",
4482     "internal",
4483     "hide user defined elements"
4484   },
4485   {
4486     "internal_cascade_dynamic",
4487     "internal",
4488     "show elements used in this level"
4489   },
4490   {
4491     "internal_cascade_dynamic.active",
4492     "internal",
4493     "hide elements used in this level"
4494   },
4495
4496   /* keyword to stop parser: "ELEMENT_INFO_END" <-- do not change! */
4497
4498   {
4499     NULL,
4500     NULL,
4501     NULL
4502   }
4503 };
4504
4505
4506 /* ------------------------------------------------------------------------- */
4507 /* element action and direction definitions                                  */
4508 /* ------------------------------------------------------------------------- */
4509
4510 struct ElementActionInfo element_action_info[NUM_ACTIONS + 1 + 1] =
4511 {
4512   { ".[DEFAULT]",               ACTION_DEFAULT,                 TRUE    },
4513   { ".waiting",                 ACTION_WAITING,                 TRUE    },
4514   { ".falling",                 ACTION_FALLING,                 TRUE    },
4515   { ".moving",                  ACTION_MOVING,                  TRUE    },
4516   { ".digging",                 ACTION_DIGGING,                 FALSE   },
4517   { ".snapping",                ACTION_SNAPPING,                FALSE   },
4518   { ".collecting",              ACTION_COLLECTING,              FALSE   },
4519   { ".dropping",                ACTION_DROPPING,                FALSE   },
4520   { ".pushing",                 ACTION_PUSHING,                 FALSE   },
4521   { ".walking",                 ACTION_WALKING,                 FALSE   },
4522   { ".passing",                 ACTION_PASSING,                 FALSE   },
4523   { ".impact",                  ACTION_IMPACT,                  FALSE   },
4524   { ".breaking",                ACTION_BREAKING,                FALSE   },
4525   { ".activating",              ACTION_ACTIVATING,              FALSE   },
4526   { ".deactivating",            ACTION_DEACTIVATING,            FALSE   },
4527   { ".opening",                 ACTION_OPENING,                 FALSE   },
4528   { ".closing",                 ACTION_CLOSING,                 FALSE   },
4529   { ".attacking",               ACTION_ATTACKING,               TRUE    },
4530   { ".growing",                 ACTION_GROWING,                 TRUE    },
4531   { ".shrinking",               ACTION_SHRINKING,               FALSE   },
4532   { ".active",                  ACTION_ACTIVE,                  TRUE    },
4533   { ".filling",                 ACTION_FILLING,                 FALSE   },
4534   { ".emptying",                ACTION_EMPTYING,                FALSE   },
4535   { ".changing",                ACTION_CHANGING,                FALSE   },
4536   { ".exploding",               ACTION_EXPLODING,               FALSE   },
4537   { ".boring",                  ACTION_BORING,                  FALSE   },
4538   { ".boring[1]",               ACTION_BORING_1,                FALSE   },
4539   { ".boring[2]",               ACTION_BORING_2,                FALSE   },
4540   { ".boring[3]",               ACTION_BORING_3,                FALSE   },
4541   { ".boring[4]",               ACTION_BORING_4,                FALSE   },
4542   { ".boring[5]",               ACTION_BORING_5,                FALSE   },
4543   { ".boring[6]",               ACTION_BORING_6,                FALSE   },
4544   { ".boring[7]",               ACTION_BORING_7,                FALSE   },
4545   { ".boring[8]",               ACTION_BORING_8,                FALSE   },
4546   { ".boring[9]",               ACTION_BORING_9,                FALSE   },
4547   { ".boring[10]",              ACTION_BORING_10,               FALSE   },
4548   { ".sleeping",                ACTION_SLEEPING,                FALSE   },
4549   { ".sleeping[1]",             ACTION_SLEEPING_1,              FALSE   },
4550   { ".sleeping[2]",             ACTION_SLEEPING_2,              FALSE   },
4551   { ".sleeping[3]",             ACTION_SLEEPING_3,              FALSE   },
4552   { ".awakening",               ACTION_AWAKENING,               FALSE   },
4553   { ".dying",                   ACTION_DYING,                   FALSE   },
4554   { ".turning",                 ACTION_TURNING,                 FALSE   },
4555   { ".turning_from_left",       ACTION_TURNING_FROM_LEFT,       FALSE   },
4556   { ".turning_from_right",      ACTION_TURNING_FROM_RIGHT,      FALSE   },
4557   { ".turning_from_up",         ACTION_TURNING_FROM_UP,         FALSE   },
4558   { ".turning_from_down",       ACTION_TURNING_FROM_DOWN,       FALSE   },
4559   { ".smashed_by_rock",         ACTION_SMASHED_BY_ROCK,         FALSE   },
4560   { ".smashed_by_spring",       ACTION_SMASHED_BY_SPRING,       FALSE   },
4561   { ".eating",                  ACTION_EATING,                  FALSE   },
4562   { ".twinkling",               ACTION_TWINKLING,               FALSE   },
4563   { ".splashing",               ACTION_SPLASHING,               FALSE   },
4564   { ".page[1]",                 ACTION_PAGE_1,                  FALSE   },
4565   { ".page[2]",                 ACTION_PAGE_2,                  FALSE   },
4566   { ".page[3]",                 ACTION_PAGE_3,                  FALSE   },
4567   { ".page[4]",                 ACTION_PAGE_4,                  FALSE   },
4568   { ".page[5]",                 ACTION_PAGE_5,                  FALSE   },
4569   { ".page[6]",                 ACTION_PAGE_6,                  FALSE   },
4570   { ".page[7]",                 ACTION_PAGE_7,                  FALSE   },
4571   { ".page[8]",                 ACTION_PAGE_8,                  FALSE   },
4572   { ".page[9]",                 ACTION_PAGE_9,                  FALSE   },
4573   { ".page[10]",                ACTION_PAGE_10,                 FALSE   },
4574   { ".page[11]",                ACTION_PAGE_11,                 FALSE   },
4575   { ".page[12]",                ACTION_PAGE_12,                 FALSE   },
4576   { ".page[13]",                ACTION_PAGE_13,                 FALSE   },
4577   { ".page[14]",                ACTION_PAGE_14,                 FALSE   },
4578   { ".page[15]",                ACTION_PAGE_15,                 FALSE   },
4579   { ".page[16]",                ACTION_PAGE_16,                 FALSE   },
4580   { ".page[17]",                ACTION_PAGE_17,                 FALSE   },
4581   { ".page[18]",                ACTION_PAGE_18,                 FALSE   },
4582   { ".page[19]",                ACTION_PAGE_19,                 FALSE   },
4583   { ".page[20]",                ACTION_PAGE_20,                 FALSE   },
4584   { ".page[21]",                ACTION_PAGE_21,                 FALSE   },
4585   { ".page[22]",                ACTION_PAGE_22,                 FALSE   },
4586   { ".page[23]",                ACTION_PAGE_23,                 FALSE   },
4587   { ".page[24]",                ACTION_PAGE_24,                 FALSE   },
4588   { ".page[25]",                ACTION_PAGE_25,                 FALSE   },
4589   { ".page[26]",                ACTION_PAGE_26,                 FALSE   },
4590   { ".page[27]",                ACTION_PAGE_27,                 FALSE   },
4591   { ".page[28]",                ACTION_PAGE_28,                 FALSE   },
4592   { ".page[29]",                ACTION_PAGE_29,                 FALSE   },
4593   { ".page[30]",                ACTION_PAGE_30,                 FALSE   },
4594   { ".page[31]",                ACTION_PAGE_31,                 FALSE   },
4595   { ".page[32]",                ACTION_PAGE_32,                 FALSE   },
4596   { ".other",                   ACTION_OTHER,                   FALSE   },
4597
4598   /* empty suffix always matches -- check as last entry in InitSoundInfo() */
4599   { "",                         ACTION_DEFAULT,                 TRUE    },
4600
4601   { NULL,                       0,                              0       }
4602 };
4603
4604 struct ElementDirectionInfo element_direction_info[NUM_DIRECTIONS_FULL + 1] =
4605 {
4606   { ".left",            MV_BIT_LEFT                     },
4607   { ".right",           MV_BIT_RIGHT                    },
4608   { ".up",              MV_BIT_UP                       },
4609   { ".down",            MV_BIT_DOWN                     },
4610   { ".upleft",          MV_BIT_UP                       },
4611   { ".upright",         MV_BIT_RIGHT                    },
4612   { ".downleft",        MV_BIT_LEFT                     },
4613   { ".downright",       MV_BIT_DOWN                     },
4614
4615   { NULL,               0                               }
4616 };
4617
4618 struct SpecialSuffixInfo special_suffix_info[NUM_SPECIAL_GFX_ARGS + 1 + 1] =
4619 {
4620   { ".[DEFAULT]",       GAME_MODE_DEFAULT,              },
4621   { ".TITLE",           GAME_MODE_TITLE,                },
4622   { ".MAIN",            GAME_MODE_MAIN,                 },
4623   { ".LEVELS",          GAME_MODE_LEVELS                },
4624   { ".SCORES",          GAME_MODE_SCORES,               },
4625   { ".EDITOR",          GAME_MODE_EDITOR,               },
4626   { ".INFO",            GAME_MODE_INFO,                 },
4627   { ".SETUP",           GAME_MODE_SETUP,                },
4628   { ".PLAYING",         GAME_MODE_PLAYING,              },
4629   { ".DOOR",            GAME_MODE_PSEUDO_DOOR,          },
4630   { ".PREVIEW",         GAME_MODE_PSEUDO_PREVIEW,       },
4631   { ".CRUMBLED",        GAME_MODE_PSEUDO_CRUMBLED,      },
4632
4633   /* empty suffix always matches -- check as last entry in InitMusicInfo() */
4634   { "",                 GAME_MODE_DEFAULT,              },
4635
4636   { NULL,               0,                              }
4637 };
4638
4639 struct TokenIntPtrInfo image_config_vars[] =
4640 {
4641   { "global.num_toons",         &global.num_toons                          },
4642
4643   { "menu.draw_xoffset",        &menu.draw_xoffset[GFX_SPECIAL_ARG_DEFAULT]},
4644   { "menu.draw_yoffset",        &menu.draw_yoffset[GFX_SPECIAL_ARG_DEFAULT]},
4645   { "menu.draw_xoffset.MAIN",   &menu.draw_xoffset[GFX_SPECIAL_ARG_MAIN]   },
4646   { "menu.draw_yoffset.MAIN",   &menu.draw_yoffset[GFX_SPECIAL_ARG_MAIN]   },
4647   { "menu.draw_xoffset.LEVELS", &menu.draw_xoffset[GFX_SPECIAL_ARG_LEVELS] },
4648   { "menu.draw_yoffset.LEVELS", &menu.draw_yoffset[GFX_SPECIAL_ARG_LEVELS] },
4649   { "menu.draw_xoffset.SCORES", &menu.draw_xoffset[GFX_SPECIAL_ARG_SCORES] },
4650   { "menu.draw_yoffset.SCORES", &menu.draw_yoffset[GFX_SPECIAL_ARG_SCORES] },
4651   { "menu.draw_xoffset.EDITOR", &menu.draw_xoffset[GFX_SPECIAL_ARG_EDITOR] },
4652   { "menu.draw_yoffset.EDITOR", &menu.draw_yoffset[GFX_SPECIAL_ARG_EDITOR] },
4653   { "menu.draw_xoffset.INFO",   &menu.draw_xoffset[GFX_SPECIAL_ARG_INFO]   },
4654   { "menu.draw_yoffset.INFO",   &menu.draw_yoffset[GFX_SPECIAL_ARG_INFO]   },
4655   { "menu.draw_xoffset.SETUP",  &menu.draw_xoffset[GFX_SPECIAL_ARG_SETUP]  },
4656   { "menu.draw_yoffset.SETUP",  &menu.draw_yoffset[GFX_SPECIAL_ARG_SETUP]  },
4657
4658   { "menu.scrollbar_xoffset",   &menu.scrollbar_xoffset                    },
4659
4660   { "menu.list_size",           &menu.list_size[GFX_SPECIAL_ARG_DEFAULT]   },
4661   { "menu.list_size.LEVELS",    &menu.list_size[GFX_SPECIAL_ARG_LEVELS]    },
4662   { "menu.list_size.SCORES",    &menu.list_size[GFX_SPECIAL_ARG_SCORES]    },
4663   { "menu.list_size.INFO",      &menu.list_size[GFX_SPECIAL_ARG_INFO]      },
4664
4665   { "door_1.width",             &door_1.width                              },
4666   { "door_1.height",            &door_1.height                             },
4667   { "door_1.step_offset",       &door_1.step_offset                        },
4668   { "door_1.step_delay",        &door_1.step_delay                         },
4669   { "door_1.anim_mode",         &door_1.anim_mode                          },
4670   { "door_2.width",             &door_2.width                              },
4671   { "door_2.height",            &door_2.height                             },
4672   { "door_2.step_offset",       &door_2.step_offset                        },
4673   { "door_2.step_delay",        &door_2.step_delay                         },
4674   { "door_2.anim_mode",         &door_2.anim_mode                          },
4675
4676   { "[player].boring_delay_fixed",      &game.player_boring_delay_fixed    },
4677   { "[player].boring_delay_random",     &game.player_boring_delay_random   },
4678   { "[player].sleeping_delay_fixed",    &game.player_sleeping_delay_fixed  },
4679   { "[player].sleeping_delay_random",   &game.player_sleeping_delay_random },
4680
4681   { NULL,                       NULL,                                      }
4682 };
4683
4684
4685 /* ------------------------------------------------------------------------- */
4686 /* font definitions                                                          */
4687 /* ------------------------------------------------------------------------- */
4688
4689 /* Important: When one entry is a prefix of another entry, the longer entry
4690    must come first, because the dynamic configuration does prefix matching! */
4691
4692 struct FontInfo font_info[NUM_FONTS + 1] =
4693 {
4694   { "font.initial_1"            },
4695   { "font.initial_2"            },
4696   { "font.initial_3"            },
4697   { "font.initial_4"            },
4698   { "font.title_1"              },
4699   { "font.title_2"              },
4700   { "font.menu_1"               },
4701   { "font.menu_2"               },
4702   { "font.text_1.active"        },
4703   { "font.text_2.active"        },
4704   { "font.text_3.active"        },
4705   { "font.text_4.active"        },
4706   { "font.text_1"               },
4707   { "font.text_2"               },
4708   { "font.text_3"               },
4709   { "font.text_4"               },
4710   { "font.envelope_1"           },
4711   { "font.envelope_2"           },
4712   { "font.envelope_3"           },
4713   { "font.envelope_4"           },
4714   { "font.input_1.active"       },
4715   { "font.input_2.active"       },
4716   { "font.input_1"              },
4717   { "font.input_2"              },
4718   { "font.option_off"           },
4719   { "font.option_on"            },
4720   { "font.value_1"              },
4721   { "font.value_2"              },
4722   { "font.value_old"            },
4723   { "font.level_number.active"  },
4724   { "font.level_number"         },
4725   { "font.tape_recorder"        },
4726   { "font.game_info"            },
4727 };
4728
4729
4730 /* ------------------------------------------------------------------------- */
4731 /* music token prefix definitions                                            */
4732 /* ------------------------------------------------------------------------- */
4733
4734 struct MusicPrefixInfo music_prefix_info[NUM_MUSIC_PREFIXES + 1] =
4735 {
4736   { "background",               TRUE    },
4737
4738   { NULL,                       0       }
4739 };
4740
4741
4742 /* ========================================================================= */
4743 /* main()                                                                    */
4744 /* ========================================================================= */
4745
4746 static void print_usage()
4747 {
4748   printf("\n"
4749          "Usage: %s [OPTION]... [HOSTNAME [PORT]]\n"
4750          "\n"
4751          "Options:\n"
4752          "  -d, --display HOSTNAME[:SCREEN]  specify X server display\n"
4753          "  -b, --basepath DIRECTORY         alternative base DIRECTORY\n"
4754          "  -l, --level DIRECTORY            alternative level DIRECTORY\n"
4755          "  -g, --graphics DIRECTORY         alternative graphics DIRECTORY\n"
4756          "  -s, --sounds DIRECTORY           alternative sounds DIRECTORY\n"
4757          "  -m, --music DIRECTORY            alternative music DIRECTORY\n"
4758          "  -n, --network                    network multiplayer game\n"
4759          "      --serveronly                 only start network server\n"
4760          "  -v, --verbose                    verbose mode\n"
4761          "      --debug                      display debugging information\n"
4762          "  -e, --execute COMMAND            execute batch COMMAND\n"
4763          "\n"
4764          "Valid commands for '--execute' option:\n"
4765          "  \"print graphicsinfo.conf\"        print default graphics config\n"
4766          "  \"print soundsinfo.conf\"          print default sounds config\n"
4767          "  \"print musicinfo.conf\"           print default music config\n"
4768          "  \"print editorsetup.conf\"         print default editor config\n"
4769          "  \"print helpanim.conf\"            print default helpanim config\n"
4770          "  \"print helptext.conf\"            print default helptext config\n"
4771          "  \"dump level FILE\"                dump level data from FILE\n"
4772          "  \"dump tape FILE\"                 dump tape data from FILE\n"
4773          "  \"autoplay LEVELDIR [NR ...]\"     play level tapes for LEVELDIR\n"
4774          "  \"convert LEVELDIR [NR]\"          convert levels in LEVELDIR\n"
4775          "\n",
4776          program.command_basename);
4777 }
4778
4779 int main(int argc, char *argv[])
4780 {
4781   char * window_title_string = getWindowTitleString();
4782
4783   InitProgramInfo(argv[0], USERDATA_DIRECTORY, USERDATA_DIRECTORY_UNIX,
4784                   PROGRAM_TITLE_STRING, window_title_string, ICON_TITLE_STRING,
4785                   X11_ICON_FILENAME, X11_ICONMASK_FILENAME, SDL_ICON_FILENAME,
4786                   MSDOS_POINTER_FILENAME,
4787                   COOKIE_PREFIX, FILENAME_PREFIX, GAME_VERSION_ACTUAL);
4788
4789   InitExitFunction(CloseAllAndExit);
4790   InitPlatformDependentStuff();
4791
4792   GetOptions(argv, print_usage);
4793   OpenAll();
4794
4795   EventLoop();
4796   CloseAllAndExit(0);
4797
4798   return 0;     /* to keep compilers happy */
4799 }