User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 12 of 12

Thread: [2.50.3] Something Strange with SetComboSolid

  1. #11
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    70 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    11,028
    Level
    31
    vBActivity - Bars
    Lv. Percent
    8.46%
    Here is the proposed refactoring. Old ZASM data structure:

    struct ffscript
    {
    word command;
    long arg1;
    long arg2;
    char *ptr;
    };
    New one:

    struct zasm
    {
    int16_t command;
    int32_t arg1;
    int32_t arg2;
    };

    struct ZAsmScript
    {
    // ZASM script types
    // Would be an enum, if enums were portably serializable
    const int16_t ZA_GLOBAL = 0;
    const int16_t ZA_FFC = 1;
    const int16_t ZA_ITEM = 2;
    const int16_t ZA_GUY = 3;
    const int16_t ZA_WPN = 4;
    const int16_t ZA_LINK = 5;
    const int16_t ZA_SCREEN = 6;

    // Version of ZASM this script was compiled for
    int16_t version;

    // Type of the script (one of ZA_ values above)
    int16_t type;

    // Name of the script, if the script was compiled from ZScript
    // For debugging and logging errors, etc.
    int16_t name_len;
    char *name;

    // The ZASM itself
    int16_t commands_len;
    zasm *commands;
    };

  2. #12
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    70 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    11,028
    Level
    31
    vBActivity - Bars
    Lv. Percent
    8.46%
    This fix has been implemented. Specifically:
    - Saffith's fix will take effect the next time a quest's script is recompiled. Old quests still use the old behavior. Old quests loaded into ZQ and saved, without recompiling scripts, will preserve the old behavior.
    - All ZASM scripts now carry with them some metadata about their ZASM version, type, etc. Might be useful in the future.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social