[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  python Queue function bug
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

python Queue function bug

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


Posted by Fly   (2 posts)  [Biography] 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)
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] 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
[Go to top] top

Posted by Fly   (2 posts)  [Biography] bio
Date Reply #2 on Wed 21 Apr 2010 08:24 AM (UTC)
Message
Thank you reply
This isn't bug, is my problem
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] 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
[Go to top] top

Posted by Worstje   Netherlands  (899 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] 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
[Go to top] 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.


4,830 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]