Menu

#149 Customizeable/avoidable error screen/scripts

open
nobody
engine (98)
5
2004-02-02
2003-04-30
Anonymous
No

Allow the error screen to be customizeable and
screenshotable? Last time I checked it just gave blank
screens.

Discussion

  • Brian Robb

    Brian Robb - 2003-05-01

    Logged In: YES
    user_id=387078

    Hmm, how would the error screen become customizeable,
    any reason why?

     
  • Nobody/Anonymous

    Logged In: NO

    not any parictular reasoning. I think it would be cool to have
    it go to a screen where it's drawn with the game's font in a
    window with some stuff in the background and the
    charecter shaking his head.

     
  • Brian Robb

    Brian Robb - 2003-05-05

    Logged In: YES
    user_id=387078

    Hmm...

    SetErrorScript("ErrorScript()");
    function ErrorScript() {
    var error = GetError();
    while (!IsKeyPressed(KEY_ENTER))
    GetSystemFont().drawText(0, 0, "Error: " + error);
    FlipScreen();
    }
    }

    Could be interesting, a better way might be to think of some
    sort of error handling, maybe have errors throw exceptions
    (although exceptions can be annoying when you don't care
    about them)

    Any thoughts?

     
  • Chad Austin

    Chad Austin - 2003-05-06

    Logged In: YES
    user_id=7212

    I like the idea of an error script... I like exceptions
    better, but an error script is MUCH better than the way
    things are currently done.

    Maybe it could return a value to say whether to keep going
    or not... so people could avoid errors. (oh no, it's
    starting to be like QBasic)

     
  • Brian Robb

    Brian Robb - 2004-02-02
    • summary: Error stuff --> Customizeable/avoidable error screen/scripts
     
  • Nobody/Anonymous

    Logged In: NO

    Javascript already has a decent try/catch/finally structure.
    I'd be happy if Sphere's functions threw an exception which
    could be caught, rather than just exiting.

     

Log in to post a comment.