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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Suggestions
. . -> [Subject]  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] Refresh page


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

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

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

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

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

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

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

Posted by Twisol   USA  (2,257 posts)  [Biography] 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
[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.


12,462 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 HostDash]