Free Hero Mesh

Check-in [2885d776fc]
Login
This is a mirror of the main repository for Free Hero Mesh. New tickets and changes will not be accepted at this mirror.
Overview
Comment:Add the possibility to specify the level version number when importing (optional)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2885d776fca080772acd32ffb3cccceffe5c1b58
User & Date: user on 2021-04-20 02:32:02
Other Links: manifest | tags
Context
2021-04-22
03:00
Add possibility of additional code pages. check-in: 9959860889 user: user tags: trunk
2021-04-20
02:32
Add the possibility to specify the level version number when importing (optional) check-in: 2885d776fc user: user tags: trunk
2021-04-19
22:04
Implement some more array operations. check-in: f731355880 user: user tags: trunk
Changes

Modified edit.c from [de2922fa30] to [58dde81db5].

970
971
972
973
974
975
976






977
978
979
980
981
982
983
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989







+
+
+
+
+
+







          goto done;
        }
        d=1;
        annihilate();
        pfwidth=x;
        pfheight=y;
        break;
      case 'V':
        p=import_numbers(p+1,&x,0);
        if(!p || *p) goto bad;
        level_version=x;
        level_changed=0;
        break;
      case '@':
        free(level_title);
        level_title=import_string(p+1);
        break;
      case '%':
        if(nlevelstrings>0x2000) {
          screen_message("Too many level strings");

Modified export.doc from [ec871d7ba2] to [c550d0d7d1].

28
29
30
31
32
33
34





35
36
37
38
39
40
41
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46







+
+
+
+
+







C code
  The level code number, from 0 to 65535.

D width height
  The play field dimensions. The width and height must be 1 to 64. This
  line must come before any objects are listed, and is mandatory.

V version
  This command never occurs in levels exported from Free Hero Mesh,
  although it can optionally occur in imported levels. If it is specified,
  then it sets the level version number.

x y $class image misc1 misc2 misc3 dir
  Specify an object. Objects are listed starting from the top left corner,
  going right, and within each cell the objects are listed from bottom to
  top. Coordinates are one-based. The image is a number (0 for the first
  image), misc1 to misc3 are misc values (see below), and dir is also a
  number (0 for east, up to 7 for southeast). When the data is being
  imported, it will accept objects listed in any order, but when being