User Tag List

Results 1 to 4 of 4

Thread: Too many HCs crashes ZC (very minor)

  1. #1
    Octorok Binx's Avatar
    Join Date
    Feb 2006
    Age
    36
    Posts
    157
    Mentioned
    9 Post(s)
    Tagged
    3 Thread(s)
    vBActivity - Stats
    Points
    1,220
    Level
    11
    vBActivity - Bars
    Lv. Percent
    95.45%

    Sick Bug Too many HCs crashes ZC (very minor)

    I was testing a scripted boss for my quest, decided to max out my HP via cheat menu. Wasn't sure on the cap, so i just added 999999 HCs, expecting that it would either auto-cap it to the max the engine could handle, or return an error telling me to make the number an integer between 1 and whatever the cap is. Instead it gave me this:



    Then promptly crashed. I doubt anyone will ever cause this error during an actual playthrough, but yeah, it's there. Whether I hit abort, retry or ignore, it crashes. "This program has stopped working." with the options to either close the program, or search online, then close the program.
    Please check out my current project, The Legend of Zelda: Trials of the Gods
    http://armageddongames.net/showthrea...ls-of-the-Gods
    Current release: V3.1 (Demo)

  2. #2
    Here lies mero. Died by his own dumbassitude.
    Join Date
    May 2011
    Posts
    929
    Mentioned
    102 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    5,527
    Level
    23
    vBActivity - Bars
    Lv. Percent
    13.96%
    Take note when you set Heart Containers your probably setting HP too. 16 HP per HC.
    999999 * 16 = 15999984

    Yeah of course it would crash. That goes beyond the max for the type HP uses.

  3. #3
    Octorok Binx's Avatar
    Join Date
    Feb 2006
    Age
    36
    Posts
    157
    Mentioned
    9 Post(s)
    Tagged
    3 Thread(s)
    vBActivity - Stats
    Points
    1,220
    Level
    11
    vBActivity - Bars
    Lv. Percent
    95.45%
    Programming 101, if assigning a value to a dialog box crashes the program, you auto-cap the max integer or otherwise prevent the dialogue box from assigning a number it can't handle. You see it all the time, even in ZC and ZQ "Please use a number between 1-255(or whatever the maximum integer the system can handle)". Not including something that prevents crashing in these situations is a bug, it is a failure in the program's design. Now, if you want to point out that it's a very *minor* bug that most people will never come across, and thus isn't high priority, that's a fair point, but to act like it should be an expected aspect of the program is just asinine and lazy.
    Please check out my current project, The Legend of Zelda: Trials of the Gods
    http://armageddongames.net/showthrea...ls-of-the-Gods
    Current release: V3.1 (Demo)

  4. #4
    Is this the end?
    ZC Developer
    Saffith's Avatar
    Join Date
    Jan 2001
    Age
    41
    Posts
    3,389
    Mentioned
    178 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,430
    Level
    24
    vBActivity - Bars
    Lv. Percent
    69.58%
    Turns out it does cap the value, just not quite correctly. It caps the value at 65536 HP, which in an unsigned short int becomes 0, causing a subsequent assert(low<=high) to fail.
    Fixed.

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