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

Gammon Software Solutions 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

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Fly   (2 posts)  [Biography] bio
Date Tue 20 Apr 2010 09:53 PM (UTC)  quote  ]
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  (18,770 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Tue 20 Apr 2010 10:29 PM (UTC)  quote  ]

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)  quote  ]
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   Moderator
Date Reply #3 on Wed 21 Apr 2010 03:55 PM (UTC)  quote  ]
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  (867 posts)  [Biography] bio
Date Reply #4 on Wed 21 Apr 2010 05:08 PM (UTC)  quote  ]
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  (18,770 posts)  [Biography] bio   Forum Administrator
Date Reply #5 on Thu 22 Apr 2010 01:01 AM (UTC)  quote  ]
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.


1,759 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]