User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

Thread: [2.50.2] Negative Max Float Error?

  1. #1
    The Timelord
    ZC Developer
    ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,082
    Mentioned
    96 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    3,740
    Level
    19
    vBActivity - Bars
    Lv. Percent
    52.82%
    Daily Activity
    0%
    Weekly Activity
    41.76%
    Monthly Activity
    81.32%

    Sick Bug [2.50.2] Negative Max Float Error?

    Apparently, the negative max constant is -021473.0001

    I checked, and negative max int is -214747, negative max float is -214747.9999. This only affects constants.

    This apparently is true in 2.50.2, 2.50.1, and 2.50.0.
    Last edited by XMuppetSB; 12-14-2015 at 08:19 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..

  2. #2
    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,103
    Level
    22
    vBActivity - Bars
    Lv. Percent
    35.09%
    Daily Activity
    0%
    Weekly Activity
    3.3%
    Monthly Activity
    2.34%
    Not a bug, just the way things work.

  3. #3
    The Timelord
    ZC Developer
    ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,082
    Mentioned
    96 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    3,740
    Level
    19
    vBActivity - Bars
    Lv. Percent
    52.82%
    Daily Activity
    0%
    Weekly Activity
    41.76%
    Monthly Activity
    81.32%
    Quote Originally Posted by Tamamo View Post
    Not a bug, just the way things work.
    Well, one way or another, it's something that deserves correction, as max signed type constant should always match max signed type variable.

    These values sum 236221.0, which doesn't seem to indicate anything.. Signed, or unsigned, long or fixed, that value doesn't make any sense.

    21473.0001 is derived, how?
    @Gleeok : Confirmation requested.


    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
    Developer ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,700
    Mentioned
    242 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,423
    Level
    32
    vBActivity - Bars
    Lv. Percent
    67.85%
    Daily Activity
    0%
    Weekly Activity
    3.3%
    Monthly Activity
    11.26%
    Probably a bug.
    This post contains the official Gleeok™ seal of approval. Look for these and other posts in an area near you.

  5. #5
    The Timelord
    ZC Developer
    ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,082
    Mentioned
    96 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    3,740
    Level
    19
    vBActivity - Bars
    Lv. Percent
    52.82%
    Daily Activity
    0%
    Weekly Activity
    41.76%
    Monthly Activity
    81.32%
    Quote Originally Posted by Gleeok View Post
    Probably a bug.
    that's what I'm feeling here. The value to handle them should be a signed long, and thus identical in both directions. Technically, it could extend in one direction by .0001, which might have been the intent, and how we got this screwy value.

    I have no idea why Tamamo flagged it 'not a bug', but then again, I can't find this in the [ ... ] material.

    I think the value is simply input improperly, but I'm having a fun time trying to find where this is handled... I swear, this shyte is going to drive me doubly out of my flipping mind. I say just make it 214747.9999 in both directions, and be done...if I can ever locate it. Then again, waiting a week, would be better.


    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
    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,103
    Level
    22
    vBActivity - Bars
    Lv. Percent
    35.09%
    Daily Activity
    0%
    Weekly Activity
    3.3%
    Monthly Activity
    2.34%
    The reason I didn't think it was a bug is because they use a custom type (fix) don't they? If not then...
    From what saffith told me all numbers in zscript are the same thing.


  7. #7
    The Timelord
    ZC Developer
    ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,082
    Mentioned
    96 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    3,740
    Level
    19
    vBActivity - Bars
    Lv. Percent
    52.82%
    Daily Activity
    0%
    Weekly Activity
    41.76%
    Monthly Activity
    81.32%
    I'm pretty sure those are just for Allegro things, using the Fix class. I don't even see the fix.h file anywhere, or know where the defs, and related functions are being loaded. I skimmed to find that in the past, but it isn't among my files, so ...

    Either way, a fixed width integer can be 32b signed. If the values aren't 32b signed longs, they're 32b wide signed fixed ints. I'm pretty sure they are signed longs though... I'll probably wait for the 'promised day' to do anything more about this, but I did again glance through the lexer, and now need more alcohol. We should probably unflag this topic for now.

    For what it's worth, the lexer also has a bug that allows compilation of a script with a ? token i it. It gives a lexical error warning, but compiles it anyhow; which, as was reported to me, can be a problem if a user hits ? instead of / in a calculation. It's because the lexer defines ? and ^ as %token SINGLECHAR, and is set up to report a lexical error for them, but not to halt compilation. :/

    That's more of an oversight than a true bug, but it feels as if it'll be mad easy to correct.
    Last edited by ZoriaRPG; 12-12-2015 at 11:31 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..

  8. #8
    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,103
    Level
    22
    vBActivity - Bars
    Lv. Percent
    35.09%
    Daily Activity
    0%
    Weekly Activity
    3.3%
    Monthly Activity
    2.34%
    it seems to be 18 bits but doesn't use all of them, weird.
    The fraction is separate of course and is truncated to 62 bit.

    Definitely a bug.

  9. #9
    The Timelord
    ZC Developer
    ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,082
    Mentioned
    96 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    3,740
    Level
    19
    vBActivity - Bars
    Lv. Percent
    52.82%
    Daily Activity
    0%
    Weekly Activity
    41.76%
    Monthly Activity
    81.32%
    Quote Originally Posted by Tamamo View Post
    it seems to be 18 bits but doesn't use all of them, weird.
    The fraction is separate of course and is truncated to 62 bit.

    Definitely a bug.
    Please send me a PM with the filenames, and line number (the latter, if possible) for where you saw it, so that I can find it readily.


    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..

  10. #10
    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,103
    Level
    22
    vBActivity - Bars
    Lv. Percent
    35.09%
    Daily Activity
    0%
    Weekly Activity
    3.3%
    Monthly Activity
    2.34%
    I didn't, I took the numbers you gave us, and plugged them into my brain which outputs binary anyways.
    WHere are you @Saffith , if your there get your ass in here.

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