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.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Miniwindows
➜ Error when trying to create miniwindows
Error when trying to create miniwindows
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Grek
Sweden (12 posts) Bio
|
Date
| Wed 06 Aug 2008 02:53 PM (UTC) Amended on Wed 06 Aug 2008 03:03 PM (UTC) by Grek
|
Message
| MUSHClient v4.27
Line in error:
world.WindowCreate("test", 100, 100, 300, 300, 12, 0, 16777215)
Script error
World: IoM
Execution of line 1 column 0
Immediate execution
Traceback (most recent call last):
File "<Script Block 50>", line 1, in <module>
world.WindowCreate("test", 100, 100, 300, 300, 12, 0, world.ColourNameToRGB("white"))
File "L:\Programmering\Python25\Lib\site-packages\win32comext\axscript\client\pyscript.py", line 142, in __getattr__
return getattr(self._scriptItem_.dispatchContainer,attr)
File "L:\Programmering\Python25\Lib\site-packages\win32com\client\dynamic.py", line 500, in __getattr__
raise AttributeError, "%s.%s" % (self._username_, attr)
AttributeError: world.WindowCreate
Line in error:
world.WindowCreate("test", 100, 100, 300, 300, 12, 0, world.ColourNameToRGB("white")) | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #1 on Wed 06 Aug 2008 03:14 PM (UTC) |
Message
| You're using a version before miniwindows were introduced... maybe you should try upgrading? |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Grek
Sweden (12 posts) Bio
|
Date
| Reply #2 on Wed 06 Aug 2008 03:18 PM (UTC) Amended on Wed 06 Aug 2008 03:26 PM (UTC) by Grek
|
Message
| Thanks David, I was just about to start converting 300 lines of python to lua.
I did update to the latest version available on the Downloads page before posting - would be good if the link somehow always pointed to the latest version available. :)
Edit:
Another question, does lua have the same issues with threading as python? | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #3 on Wed 06 Aug 2008 03:30 PM (UTC) |
Message
|
Quote: I did update to the latest version available on the Downloads page before posting - would be good if the link somehow always pointed to the latest version available. :)
See the MUSHclient FAQ, item 4 :-)
http://www.gammon.com.au/forum/?id=7794
Part of the reasoning is that people who see forum announcements will see the "test" versions, whereas people who aren't interested in following the latest-and-greatest will just go to the download page.
Quote: Another question, does lua have the same issues with threading as python?
Well, I'm not sure which issues Python has with threading. :) Lua does not natively support concurrent multi-threading, although it does have something called cooperative multi-threading ("coroutines" in its vocabulary). What kind of issues are you running into? |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Grek
Sweden (12 posts) Bio
|
Date
| Reply #4 on Wed 06 Aug 2008 03:43 PM (UTC) |
Message
| I can't say for sure anymore, been a while, but I recall having problems using time.sleep().
Maybe I forgot to thread it though. :) | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #5 on Wed 06 Aug 2008 03:46 PM (UTC) |
Message
| Oh... if you're just sleeping the script, then yes, I think that that will cause the whole client to block until the call to sleep ends. I think that normally what you do is to create a timer that, after the desired time, calls the script again. Nick has several examples of how to do this with coroutines on the forums; I don't remember the links or post titles off-hand, but I think one of the keywords is "pausing". |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Trayn318
(5 posts) Bio
|
Date
| Reply #6 on Mon 02 Mar 2009 03:29 AM (UTC) |
Message
| I can't get mini windows to work? is there a tab or something I need to click or should I just delete my mushclient and reload it from scratch? | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #7 on Mon 02 Mar 2009 05:13 AM (UTC) |
Message
| In what way is it not working? If this is related to your other post about the experience bar, try what I suggested there. |
- 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.
23,063 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top