User Tag List

Results 1 to 8 of 8

Thread: Import ZASM: Leading Spaces

  1. #1
    The Timelord ZC Developer ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,039
    Mentioned
    96 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    3,607
    Level
    19
    vBActivity - Bars
    Lv. Percent
    22.44%
    Daily Activity
    357.14%
    Weekly Activity
    100%
    Monthly Activity
    225.73%

    Not A Bug Import ZASM: Leading Spaces

    This has been an issue for ages, and we should fix it.

    When loading a ZASM script, any instruction that does not begin with a leading space (or a leading tab) will halt the import and generate an error.



    Note than I import ZASM for one of three main reasons:
    1. When a quester provides a quest in which they need me to add an ffc, but they do not apply, or they do not have all of the ZScript files.
    2. When recompiling requires rearranging headers, and importing precompiled ZASM is easier.
    3. When I wish to 'idiot-proof' adding a script; usually ffcs.
    Last edited by ZoriaRPG; 05-29-2017 at 05:47 AM.


    Featured Scripts & Headers: RPG.zh ( v. a0.97.1 ) ( RPG.zh Thread ) | Zelda 3 Thief's Town Treasure Chest Minigame (ffc) | Bobomb (enemy)
    ZScript & ZC-Related Pastebin | Quests and ZScript Repository | ZC Dev & Betas | Latest ZC 2.54 Beta | YouTube Channel
    All of the code that I create and publish here is free for use, modification and distribution under the GPL v2.0, or v3.0 where applicable..

  2. #2
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    68 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    10,796
    Level
    30
    vBActivity - Bars
    Lv. Percent
    80.5%
    Daily Activity
    0%
    Weekly Activity
    50%
    Monthly Activity
    33.86%
    I don't think that's a bug... just part of the ZASM spec. Every line begins with a label and a space, and if there is no label, there must still be a space.

  3. #3
    The Timelord ZC Developer ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,039
    Mentioned
    96 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    3,607
    Level
    19
    vBActivity - Bars
    Lv. Percent
    22.44%
    Daily Activity
    357.14%
    Weekly Activity
    100%
    Monthly Activity
    225.73%
    Quote Originally Posted by DarkDragon View Post
    I don't think that's a bug... just part of the ZASM spec. Every line begins with a label and a space, and if there is no label, there must still be a space.
    Are you saying that the spec is:

    LABEL SPACE INSTRUCTION <VALUES>

    ?

    Or by label, do you mean instruction? If so, then this is still odd, because it does not see the first instruction without a leading space. CR should e treated as a space in the spec, too, FWIW.


    Featured Scripts & Headers: RPG.zh ( v. a0.97.1 ) ( RPG.zh Thread ) | Zelda 3 Thief's Town Treasure Chest Minigame (ffc) | Bobomb (enemy)
    ZScript & ZC-Related Pastebin | Quests and ZScript Repository | ZC Dev & Betas | Latest ZC 2.54 Beta | YouTube Channel
    All of the code that I create and publish here is free for use, modification and distribution under the GPL v2.0, or v3.0 where applicable..

  4. #4
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    68 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    10,796
    Level
    30
    vBActivity - Bars
    Lv. Percent
    80.5%
    Daily Activity
    0%
    Weekly Activity
    50%
    Monthly Activity
    33.86%
    The former. The label is the string used for absolute jumps etc.

  5. #5
    The Timelord ZC Developer ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,039
    Mentioned
    96 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    3,607
    Level
    19
    vBActivity - Bars
    Lv. Percent
    22.44%
    Daily Activity
    357.14%
    Weekly Activity
    100%
    Monthly Activity
    225.73%
    I see. There is nothing in place to check if a potential label is identical to a instruction ID, and to skip ahead if it encounters an instruction with no label or leading space. Lovely.


    Featured Scripts & Headers: RPG.zh ( v. a0.97.1 ) ( RPG.zh Thread ) | Zelda 3 Thief's Town Treasure Chest Minigame (ffc) | Bobomb (enemy)
    ZScript & ZC-Related Pastebin | Quests and ZScript Repository | ZC Dev & Betas | Latest ZC 2.54 Beta | YouTube Channel
    All of the code that I create and publish here is free for use, modification and distribution under the GPL v2.0, or v3.0 where applicable..

  6. #6
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    68 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    10,796
    Level
    30
    vBActivity - Bars
    Lv. Percent
    80.5%
    Daily Activity
    0%
    Weekly Activity
    50%
    Monthly Activity
    33.86%
    Nope. The ZASM parser could use a rewrite. But to be honest it's extremely low priority, as long as it works for the ZScript compiler output.

  7. #7
    Nine-Tailed Goddess Tamamo's Avatar
    Join Date
    May 2011
    Location
    Kobe
    Age
    28
    Posts
    820
    Mentioned
    94 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    5,096
    Level
    22
    vBActivity - Bars
    Lv. Percent
    33.89%
    Daily Activity
    1785.71%
    Weekly Activity
    300%
    Monthly Activity
    112.87%
    Wrong @DarkDragon
    The whole engine could use a rewrite.
    We're all just to damn lazy to actually do something about it... Hence why it can't actually happen.

  8. #8
    The Timelord ZC Developer ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,039
    Mentioned
    96 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    3,607
    Level
    19
    vBActivity - Bars
    Lv. Percent
    22.44%
    Daily Activity
    357.14%
    Weekly Activity
    100%
    Monthly Activity
    225.73%
    Quote Originally Posted by Tamamo View Post
    Wrong @DarkDragon
    The whole engine could use a rewrite.
    We're all just to damn lazy to actually do something about it... Hence why it can't actually happen.
    (Emphasis, mine.)
    This is, essentially true. (We're doing that in little bits, as needed, or as we feel like doing it.)


    Featured Scripts & Headers: RPG.zh ( v. a0.97.1 ) ( RPG.zh Thread ) | Zelda 3 Thief's Town Treasure Chest Minigame (ffc) | Bobomb (enemy)
    ZScript & ZC-Related Pastebin | Quests and ZScript Repository | ZC Dev & Betas | Latest ZC 2.54 Beta | YouTube Channel
    All of the code that I create and publish here is free for use, modification and distribution under the GPL v2.0, or v3.0 where applicable..

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