Register forum user name Search FAQ

Gammon Forum

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 ➜ Lua ➜ Skipping input lines?

Skipping input lines?

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


Posted by Oli   (1 post)  Bio
Date Tue 31 Jul 2018 08:43 AM (UTC)
Message
I've just had a trigger fail. The code looks like this:


Send("sh")
Send("get pickaxe from bags")
Send("hold pickaxe")


But when I check logs the MUD has only seen this:


sh
hold pickaxe


Is there a chance things are going to fast for the MUD or something? It's really frustrating I've noticed such things a couple of times.
Top

Posted by Fiendish   USA  (2,534 posts)  Bio   Global Moderator
Date Reply #1 on Tue 31 Jul 2018 11:23 AM (UTC)

Amended on Tue 31 Jul 2018 11:30 AM (UTC) by Fiendish

Message
Quote:
Is there a chance things are going to fast for the MUD or something


Anything is possible, but I think that for it to be true your MUD would have had to be specifically written to discard messages that arrive quickly. I've never seen a server that doesn't buffer at least a few messages that have arrived faster than they can be processed, but I can think of reasons why someone might choose to do it for a MUD. What happens if you put in some small delays using wait.lua like so?


require "wait"
wait.make (function ()
  Send("sh")
  wait.time(0.5)
  Send("get pickaxe from bags")
  wait.time(0.5)
  Send("hold pickaxe")
end) 

https://github.com/fiendish/aardwolfclientpackage
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.


8,505 views.

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

Go to topic:           Search the forum


[Go to top] top

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