Question about memory leaks

unju

New Member
Reaction score
3
Hey people.

I try my map with a friend and I keep disconnected at about 3-4 minutes in. I have a feeling its a problem with memory leaks. I know about those and I think I have corrected all problems. My question is:

-Can "event- A unit enters region" cause memory leaks? or is it only in actual actions in triggers that we must worry about them?

Thanks for the help.
 
L

LucidWay

Guest
One symptom of a memory leak is that the map will take a super long time to close. (Ussualy because you have all of virtual memory full) I think it can also cause disconnects, but in maps I have played with leaks, the huge slow down is the biggest symptom.
 
M

Mythic Fr0st

Guest
They are created once, and stay around for the entire rest of the game.

Dont the get deleted if you add them from another trigger

then use "WEU's" trigger

reset trigger, to reset it back to its default? (deleting all events/cond/acts)

?

+ the question

A memory leak, involves variables, and conditions and actions

E.G

if terrain type at Position of unit equal to ""

leaks, because it checks at Position of unit...
you have to do
set Loc = position of unit
if terrain type at Loc
call RemoveLocation(udg_Loc)

that fixes it, read a memory leak tutorial
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> use "WEU's" trigger... "reset trigger", to reset it back to its default? (deleting all events/cond/acts)

Have you ever tried to see what that thing is actually doing?

No, I'm not talking about the "hint" that shows up when you select the action.
I mean tried and tested to see what that thing is actually doing...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top