User Tag List

Results 1 to 1 of 1

Thread: [2.50.2] SizeOfArray() does not work on ffc, item, weapon, itemdata types. Also Trace() on these typ

  1. #1
    The Timelord
    ZC Developer
    ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Prydon Academy
    96 Post(s)
    1 Thread(s)
    vBActivity - Stats
    vBActivity - Bars
    Lv. Percent
    Daily Activity
    Weekly Activity
    Monthly Activity

    [2.50.2] SizeOfArray() does not work on ffc, item, weapon, itemdata types. Also Trace() on these typ

    Probably not a bug, but not consistent. SizeOfArray() doe snot work on types other than int, and float. While it's not practical to get it to work on bool types (although this is possible. it should work on the following types: ffc, lweapon, eweapon, item, itemdata.

    I can probably come up with code for making it work on bool types too.

    Furthermore, there is no Trace() function for these types. That should return their pointer.

    Boolean Arrays

    It's actually evident that the size of boolean arrays is preserved in ZScript/ZASM, unlike in C, as the console will list their size when trying to read beyond it. Can't we just fix SizeOfArray to read that value for bool types?
    Last edited by ZoriaRPG; 12-23-2015 at 05:17 PM.

    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.