Lagg Fix (Walk, Run, SpellCast)

Praktica

Dedicated Member
Dedicated Member
Jun 16, 2009
240
1
45
England
STICKY: Lagg Fix (Walk, Run, SpellCast)

People have been asking around for this so I thought I would post it.
What it does, is stops so much lagg when your walking, running, casting spells, or fighting mobs on a 2.3 server.

Also known as castlagg etc etc.

Well here it is.

!Setup.txt

MaxHitMsgCount=1
MaxSpellMsgCount=1
MaxRunMsgCount=1
MaxWalkMsgCount=1
MaxTurnMsgCount=1
MaxSitDonwMsgCount=1
MaxDigUpMsgCount=1
SpellSendUpdateMsg=1
ActionSendActionMsg=1
OverSpeedKickCount=4
DropOverSpeed=10
KickOverSpeed=0
SpeedControlMode=0
HitIntervalTime=900
MagicHitIntervalTime=800
RunIntervalTime=1
WalkIntervalTime=1
TurnIntervalTime=1
ControlActionInterval=1
ControlWalkHit=1
ControlRunLongHit=1
ControlRunHit=1
ControlRunMagic=1
ActionIntervalTime=1
RunLongHitIntervalTime=1
RunHitIntervalTime=1
WalkHitIntervalTime=1
RunMagicIntervalTime=700
DisableStruck=0
DisableSelfStruck=0
StruckTime=1
StruckTime=100


Enjoy.
/Prak
 
Last edited:

Zen2

LOMCN Veteran
Veteran
Jul 26, 2007
1,818
18
125
Re: STICKY: Lagg Fix (Walk, Run, SpellCast)

Aaron you neeeeeeb, may help if you explained where this went! Some noobs may not know its in the !Setup.txt

And you got your hopes up about a sticky lol, This isnt really worth stickying, Its like saying i want my npc script stickying >.<
 
Upvote 0

Praktica

Dedicated Member
Dedicated Member
Jun 16, 2009
240
1
45
England
Re: STICKY: Lagg Fix (Walk, Run, SpellCast)

Oh yeah I forgot that part :P
But I think it is worth stickying mind you, its real useful and stops the lagg
 
Upvote 0

Praktica

Dedicated Member
Dedicated Member
Jun 16, 2009
240
1
45
England
Im not sure, but when you walk run cast spells etc, you get ashort lagg spike whats freezes you completely.

This just puts a stop to it.
It origionally came from Bon/Ben
 
Upvote 0

Chris22

LOMCN Veteran
Veteran
Jun 10, 2009
372
1
45
Re: STICKY: Lagg Fix (Walk, Run, SpellCast)

What exactly does it do?

Its how the server checks to see how fast data is being sent to and from the server, and if it is to quick, it stops you, resulting in a backstep.

In all honesty i wouldnt use this setup, the values there are very low, for instance this is the bit that causes backstep when running....

RunIntervalTime=1
WalkIntervalTime=1
TurnIntervalTime=1

I had backstep when it was set at

RunIntervalTime=500
WalkIntervalTime=500
TurnIntervalTime=500

Mines now fine at

RunIntervalTime=400
WalkIntervalTime=400
TurnIntervalTime=400

Now i dont know how its programmed, so i wouldnt know if having the values set so low give the server a higher workload, but why have it set to 1 if it runs fine at 400 ?

In my experience the bigger changes you make to a server, the bigger **** up you have when it all goes wrong.....
 
Upvote 0

James

Dedicated Member
Dedicated Member
Jan 31, 2010
144
38
55
The values are setable in m2server.exe and are in milliseconds

basically if you set hit speed to 800 it will be 800ms between hits or
run 800 would be 800ms between each run step

if you make it too fast the server will lag but if you make it too slow you'll get the same problem, it is possible to have some settings faster than others like walk speed 900 and hit speed 800 aslong as you test it thoroughly to make sure it doesnt affect anyone but keeping note of settings that work fine incase you have trouble.
 
Upvote 0

hustler

Banned
Banned
Veteran
Jun 6, 2009
570
30
115
The values are setable in m2server.exe and are in milliseconds

basically if you set hit speed to 800 it will be 800ms between hits or
run 800 would be 800ms between each run step

if you make it too fast the server will lag but if you make it too slow you'll get the same problem, it is possible to have some settings faster than others like walk speed 900 and hit speed 800 aslong as you test it thoroughly to make sure it doesnt affect anyone but keeping note of settings that work fine incase you have trouble.

Mine are set really low and i think it's why im getting laggouts... not sure what to set it to so i'll give it a shot later.
 
Upvote 0

Killmaster

Legend
Legendary
Golden Oldie
Loyal Member
Nov 13, 2003
3,967
27
274
I wouldn't have reduced it to one. I would take Chris22 advice into account. Lower it slightly each time until the lag has gone.
 
Upvote 0