Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Exception Handling in Wintemute.  (Read 1568 times)

0 Members and 1 Guest are viewing this topic.

Akatosh

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 14
  • Discomfort generates evolution.
    • View Profile
Exception Handling in Wintemute.
« 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.

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5679
    • View Profile
    • Dead:Code Site
Re: Exception Handling in Wintemute.
« Reply #1 on: March 23, 2010, 03:27:08 PM »

Unfortunately there's no exception system (or any other global error handling system) in WME script.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Akatosh

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 14
  • Discomfort generates evolution.
    • View Profile
Re: Exception Handling in Wintemute.
« Reply #2 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.
 

Page created in 0.17 seconds with 24 queries.