Problem with players getting dced {after 20 minutes of playing}

Status
Not open for further replies.
Level 2
Joined
Jan 14, 2009
Messages
7
After about 20 minutes when i play my map on b.net people start getting dced. Is it because of memory leaks?
 
Level 8
Joined
Nov 9, 2008
Messages
502
Maybe desyncs cause dcs? Have you used any custom script GetLocalPlayer() functions? I heard that function PanCameraAsNecessary is a desyncer.
 
Level 2
Joined
Jan 14, 2009
Messages
7
Im not using GetLocalPlayer() anywhere. Hmm i found a map where the same thing happens. Kodo tag x-treme v 4.2. But there it happens more randomly and sometimes not at all.
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
btw you can fix leaks like this

set VARIABLE
if it is variable type

point - Custom script:call RemoveLocation(udg_VARIABLE)
player - Custom script:call DestroyForce(udg_VARIABLE)
point - Custom script:call RemoveLocation(udg_VARIABLE)
unit group - Custom script:call DestroyGroup(udg_VARIABLE)

dont use Custom script:call DestroyForce(udg_VARIABLE)
for all palyers

if you create some special effect you must destroy it with action special effect-destroy laste created special effect
 
Level 2
Joined
Jan 14, 2009
Messages
7
My map is very simple so i doubt thats the cause of my problem. Btw is this a known result of memory leaks? The problem started after i created a flying shop and changed prizes on some items i dont see why it should cause it problems though. Maybe its a bug that happend when i optimized my map? Im quite noobish as a mapmaker so what is a desync?
 
Last edited:
Level 1
Joined
Jul 13, 2009
Messages
2
My word editor wont save my map it say TRIGGERS HAS BEEN CANSELED DUE ERRORS !!PLEAS HELP ME!!
 
Status
Not open for further replies.
Top