Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Alcander
Wanderer


Joined: 04 Aug 2001
Posts: 79
Location: USA

PostPosted: Mon Dec 10, 2007 2:28 am   

[2.16] Run time error with Python Script
 
Playing around with Python and I'd thought I would see what I could do with the scripting in Cmud and Cmud Pro. I made a basic trigger and found that if exact python language isn't used then Cmud gets very angry and gives a runtime error and dies.

Anyone else experience a problem like this?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Mon Dec 10, 2007 5:33 am   
 
Nope. I'm using ActivePython to test this - if you're not, give more information on which WSH implementation of Python you're using. If I enter invalid syntax into an alias and run it from the command line, I get a standard "invalid syntax [Python ActiveX Scripting Engine]" CMUD syntax error dialogue, which isn't very descriptive, but is the proper way.

EDIT: I tell a lie. Hidden under the normal CMUD syntax error dialogue is the following:

"Microsoft Visual C++ Runtime Library

Runtime Error!

Program: D:\CMUD\cMUD.exe

This application requested the runtime to terminate it in an unusual way. Please contact the application's support team for more information."

And pressing OK causes CMUD to close. However, I tested this with RubyScript and PerlScript as well, and neither of those caused a runtime error when calling invalid syntax. In addition, CMUD isn't developed with MS C++ and shouldn't have anything to do with it - I'm guessing that it's the Python scripting engine that's causing the error to appear, and not CMUD.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net