Gammon Forum
Entire forum
MUSHclient
Suggestions
please get rid of the assertion check for IsConnected in wait.lua
please get rid of the assertion check for IsConnected in wait.lua
|
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Posted by
| Fiendish
USA (2,514 posts) bio
Global Moderator |
Date
| Wed 07 Apr 2010 02:23 AM (UTC) |
Message
| I hate this line in wait.lua
assert (not (GetInfo (106) or GetInfo (107)), "Not connected to MUD")
I want to be able to use wait without being connected. This is an arbitrary check that is better done by the caller of this function than by the function itself. |
https://github.com/fiendish/aardwolfclientpackage | top |
|
Posted by
| Nick Gammon
Australia (22,973 posts) bio
Forum Administrator |
Date
| Reply #1 on Wed 07 Apr 2010 02:35 AM (UTC) |
Message
| Commit 44a6c59. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Fiendish
USA (2,514 posts) bio
Global Moderator |
Date
| Reply #2 on Fri 09 Apr 2010 06:55 PM (UTC) |
Message
| Hmm...
Now that the assertion check is gone, I need to figure out why it still doesn't work when not connected to the MUD. Bleh. |
https://github.com/fiendish/aardwolfclientpackage | top |
|
Posted by
| Twisol
USA (2,257 posts) bio
|
Date
| Reply #3 on Fri 09 Apr 2010 07:43 PM (UTC) |
Message
| DoAfter timers default to not "active when disconnected" in an older version. I think, though I'm probably confusing you with someone else, that you said you used 4.40? DoAfter timers default to "active when disconnected" in a later version (I can't remember the exact version), so you'll want to update. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | top |
|
Posted by
| Fiendish
USA (2,514 posts) bio
Global Moderator |
Date
| Reply #4 on Fri 09 Apr 2010 08:09 PM (UTC) Amended on Fri 09 Apr 2010 08:11 PM (UTC) by Fiendish
|
Message
| You're thinking of someone else. I always try to use the latest version. 4.51 in this case, including some of the changes that will be in 4.52. Granted, the files I'm working on are not exactly a proper install. I'll try downloading an official installer and see if anything changes. |
https://github.com/fiendish/aardwolfclientpackage | top |
|
Posted by
| Twisol
USA (2,257 posts) bio
|
Date
| Reply #5 on Fri 09 Apr 2010 09:39 PM (UTC) |
Message
| Hmm, the change I'm thinking of was to the core executable. If you've got the latest, that shouldn't be it. Maybe wait.lua uses AddTimer and sets the flag itself? I'd look into it, but I'm not on my usual computer. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | top |
|
Posted by
| Nick Gammon
Australia (22,973 posts) bio
Forum Administrator |
Date
| Reply #6 on Fri 09 Apr 2010 11:18 PM (UTC) |
Message
| It needed another change to wait.lua (not the one you asked for hehe).
Commit 816da57. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Twisol
USA (2,257 posts) bio
|
Date
| Reply #7 on Fri 09 Apr 2010 11:22 PM (UTC) |
Message
| I was right! *cackle* ^_^ |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | 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.
12,462 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
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.