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