User Tag List

Results 1 to 8 of 8

Thread: Import ZASM: Leading Spaces

  1. #1
    ZC Contirbutor ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    975
    Mentioned
    91 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    3,449
    Level
    18
    vBActivity - Bars
    Lv. Percent
    85.62%
    Daily Activity
    0%
    Weekly Activity
    163.69%
    Monthly Activity
    84.11%

    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 04: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,223
    Mentioned
    64 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    10,756
    Level
    30
    vBActivity - Bars
    Lv. Percent
    75.7%
    Daily Activity
    60.98%
    Weekly Activity
    22.2%
    Monthly Activity
    34.84%
    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
    ZC Contirbutor ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    975
    Mentioned
    91 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    3,449
    Level
    18
    vBActivity - Bars
    Lv. Percent
    85.62%
    Daily Activity
    0%
    Weekly Activity
    163.69%
    Monthly Activity
    84.11%
    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,223
    Mentioned
    64 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    10,756
    Level
    30
    vBActivity - Bars
    Lv. Percent
    75.7%
    Daily Activity
    60.98%
    Weekly Activity
    22.2%
    Monthly Activity
    34.84%
    The former. The label is the string used for absolute jumps etc.

  5. #5
    ZC Contirbutor ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    975
    Mentioned
    91 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    3,449
    Level
    18
    vBActivity - Bars
    Lv. Percent
    85.62%
    Daily Activity
    0%
    Weekly Activity
    163.69%
    Monthly Activity
    84.11%
    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,223
    Mentioned
    64 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    10,756
    Level
    30
    vBActivity - Bars
    Lv. Percent
    75.7%
    Daily Activity
    60.98%
    Weekly Activity
    22.2%
    Monthly Activity
    34.84%
    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
    818
    Mentioned
    93 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    5,082
    Level
    22
    vBActivity - Bars
    Lv. Percent
    31.2%
    Daily Activity
    0%
    Weekly Activity
    41.79%
    Monthly Activity
    30.27%
    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
    ZC Contirbutor ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    975
    Mentioned
    91 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    3,449
    Level
    18
    vBActivity - Bars
    Lv. Percent
    85.62%
    Daily Activity
    0%
    Weekly Activity
    163.69%
    Monthly Activity
    84.11%
    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