Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Akatosh on March 23, 2010, 01:35:20 PM

Title: Exception Handling in Wintemute.
Post by: Akatosh on March 23, 2010, 01:35:20 PM
Hello everyone,

As this is my first post, I would like to start by congratulating the fine team that made Wintermute. It's truly superb.

I would like to ask if there is any Exception Handling available on Wintermute.
I have searched the forums and the online Documentation but I didn't see anything.

I'm asking this because I want to make the player type the scene and/or an inventory item, for example, to acess/get it.

If there is no such scene/item when prompted, it says "Error script" in game and "Fatal Error" on wme.log

I tried making a try catch method, but the game doesn't recognize.
If I was to detect that error, in some kind of handler, I could avoid possible crashes and that evil message on screen.
Title: Re: Exception Handling in Wintemute.
Post by: Mnemonic on March 23, 2010, 03:27:08 PM
Unfortunately there's no exception system (or any other global error handling system) in WME script.
Title: Re: Exception Handling in Wintemute.
Post by: Akatosh on March 23, 2010, 03:42:46 PM
Hum, so there's any way to detect the script gave error ? I don't need it to have a specific error.

Oh well. Thanks for the quick reply :)

Good day.