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.
 Entire forum ➜ Dawn of Time ➜ Administration ➜ Where in the ROM Diku/DOT codebase is the code that governs spell/skill lag?

Where in the ROM Diku/DOT codebase is the code that governs spell/skill lag?

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


Posted by BishopOsiris   USA  (55 posts)  Bio
Date Mon 18 Oct 2021 10:37 PM (UTC)
Message
I've found a few keywords (wait_state, wait, pulse) that I thought would lead me to lag-code but so far I can't quite pin it down. I want to reduce all lag from imm chars. No spell lag. No skill lag.

Any ideas?
Top

Posted by Nick Gammon   Australia  (23,102 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 23 Oct 2021 07:49 PM (UTC)
Message
What do you mean by spell lag? The time from when you cast the spell to when it takes effect?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by BishopOsiris   USA  (55 posts)  Bio
Date Reply #2 on Sat 23 Oct 2021 07:51 PM (UTC)
Message
I mean the time between when you cast one spell till the time you can cast another spell. Offensive spells generally have 2 rounds of lag. I want to reduce that to no lag for immortals.
Top

Posted by Nick Gammon   Australia  (23,102 posts)  Bio   Forum Administrator
Date Reply #3 on Tue 26 Oct 2021 10:27 PM (UTC)
Message
What message do you get if you try to cast a spell before the rounds are up?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by BishopOsiris   USA  (55 posts)  Bio
Date Reply #4 on Tue 26 Oct 2021 11:28 PM (UTC)
Message
No message. You are just lagged 2 rounds before the next command goes through.
Top

Posted by Nick Gammon   Australia  (23,102 posts)  Bio   Forum Administrator
Date Reply #5 on Wed 27 Oct 2021 05:44 AM (UTC)
Message
You are posting in the DoT part of the forum, but also asking about ROM Diku/DOT code bases. They may well not all do it the same way.

Does *every* command lag, or just the skills? If only the skills I would look at what happens when you type one and see where the code decides to do it later. It may put it into a queue of things to do, rather than do it immediately.

Using the debugger to follow the flow of code may be quicker than trying to work out by just looking at it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by BishopOsiris   USA  (55 posts)  Bio
Date Reply #6 on Wed 27 Oct 2021 12:25 PM (UTC)
Message
DOT is based on the Diku base code that's why I mentioned it. I have traced it via debugger a few times but never saw the pulse time for the skill/spell. I even set all the pulse macros to 0 but it had no affect.

DOT works just like all other Diku muds. There's lag time on any action that affects another player; offensive and defensive skills/spells used in either combat or to help a guild mate, etc. But other regular commands like says, emotes, eating, drinking, etc. have no lag.

I'll keep looking until I find it but thanks for looking anyway. I appreciate it.
Top

Posted by Nick Gammon   Australia  (23,102 posts)  Bio   Forum Administrator
Date Reply #7 on Thu 28 Oct 2021 12:18 AM (UTC)

Amended on Thu 28 Oct 2021 12:19 AM (UTC) by Nick Gammon

Message

My guess is that it is related to this in update.c:

The violence_update function is called only every PULSE_VIOLENCE ticks (for every player) so perhaps this is why it isn’t easy to change it so that things happen faster for some players rather than others.

However I could be wrong.


- 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.


13,465 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.