Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ General ➜ python Queue function bug

python Queue function bug

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Fly   (2 posts)  Bio
Date Tue 20 Apr 2010 09:53 PM (UTC)
Message
Script error
World: a
Execution of line 1 column 0
Immediate execution
Traceback (most recent call last):
File "<Script Block 10>", line 1, in <module>
world.Queue(world.EvaluateSpeedwalk("4n"), true)
NameError: name 'true' is not defined

Line in error:
world.Queue(world.EvaluateSpeedwalk("4n"), true)
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 20 Apr 2010 10:29 PM (UTC)

Amended on Tue 20 Apr 2010 10:30 PM (UTC) by Nick Gammon

Message
I'm no Python expert, but for most functions I think you can substitute 1 for true and 0 for false.

This isn't a bug BTW - you are having trouble with the Python script engine, not MUSHclient.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Fly   (2 posts)  Bio
Date Reply #2 on Wed 21 Apr 2010 08:24 AM (UTC)
Message
Thank you reply
This isn't bug, is my problem
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #3 on Wed 21 Apr 2010 03:55 PM (UTC)
Message
In Python, the value 'true' is written as 'True' (and false is 'False').

BTW if this isn't a bug report it should probably be filed somewhere other than the "Bug reports" section. :-)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Worstje   Netherlands  (899 posts)  Bio
Date Reply #4 on Wed 21 Apr 2010 05:08 PM (UTC)
Message
I think I understand why he posted it as a bug. It's a blooper in the documentation, see: http://www.gammon.com.au/scripts/function.php?name=Queue
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #5 on Thu 22 Apr 2010 01:01 AM (UTC)
Message
Amended the documentation for the next release (and similar instances in other functions).

Also moved to General part of forum.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


20,943 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.