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