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