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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Thu Jul 10, 2008 10:25 pm   

[2.30] lua print command broken
 
Type the following in the command line:

#LUA {print("hello")}

It will give you an error. I'm guessing this has been doing this since you added the #print command.
_________________
Taz :)
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Thu Jul 10, 2008 10:43 pm   
 
Working fine for me. That code there prints hello just like it should. Have you done any mucking about hooking the function? What error do you get?
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Thu Jul 10, 2008 11:18 pm   
 
That's decidedly odd, it's working for me now too. Before it was giving an error something along the lines of "attempt to call global 'print' (string value) (line 1)", that is not exactly word for word what a shame that I didn't take a screen shot like I was initially going to.
_________________
Taz :)
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Thu Jul 10, 2008 11:41 pm   
 
It's a good idea. The string value thing sounds like print has been changed somehow - probably in an attempt to hook print that went horribly wrong, or else a script that tried to access top-level global variables dynamically using _G that ended up changing print by mistake.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Fri Jul 11, 2008 12:46 am   
 
I can't get this to fail here either.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion 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