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
Valkenar
Beginner


Joined: 12 Aug 2009
Posts: 15

PostPosted: Mon Aug 08, 2011 10:51 pm   

Cmud 3.34 Hangs when using pick from Lua via function
 
I have this:
Code:

<class name="Test" id="738">
  <func name="TestFunc" language="Lua" id="725">
    <value>zs.func.pick("p:Text'","o:1",
             "Option1: Result1",
             "Option2: Result2",
             "Option3: Result3")
</value>
  </func>
  <alias name="TestAlias" language="Lua" id="737">
    <value>zs.execfunc("testfunc")
</value>
  </alias>
</class>


And it hangs when testalias is run from the command line.

This is a boiled down example version, obviously. I have tried various combinations of returning values from the function, using them in the alias, etc, and it doesn't make a difference. This particular example hangs before you can pick from the list, but usually the experience I have is that it works until you try to switch windows, say go back to the settings window for example.

The Yesno function behaves identically.
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