Could someone fix up my leaks ? (if its not too much to ask)

marvey323

Member
Reaction score
1
My map has been crashing incessantly whenever I have more than a few players playing and I know its beacuse of poor coding. I was wondering if anyone could take some time and fix up the obvious leaks it has. Map size is slightly over the forum allowed limit to upload so I've uploaded it to rapidshare if anyone wants to take a shot at it.

The map is not even 1% done as you can tell so any help right now would really be appreciated to get me going in the right direction.

Map:
http://rapidshare.com/files/198659227/vhMAP_v2.w3x.html


Thanks in advance.
 

Stryke

New Member
Reaction score
6
Just use the 56kers Leak Checker, it gets rid of most of the leaks. you can find it on the hiveworkshop probably.
 

vypur85

Hibernate
Reaction score
803
Crashing is not usually caused by leak, at least at early game.


> if its not too much to ask

It could be much. You should learn yourself. Show your triggers and I may help to fix some, while you fix the rest yourself.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Here's some tutorials on leak checking / removal.
They're the two I used to learn.
One
Two
No need to read them in order;
Either or will do (although I recommend reading both) .
 

Igor_Z

You can change this now in User CP.
Reaction score
61
If u need leak removing. Check out the programs below. Btw can u show the triggers, its too much time to open the map...
 

marvey323

Member
Reaction score
1
Well.. the reason why I uploaded the map is because there's more than 30 triggers in total, some of them are over 100 lines each so which am I supposd to post.. I think they are all equally leak-able.


In any case, I'll update this thread in the morning and try to post as much of my trigger code as possible.

Thanks for the links btw.
 

Igor_Z

You can change this now in User CP.
Reaction score
61
Oh, i didn't knew that... Don't waste so much time.. I'll check it and see later or myb some 1 else will. Btw i thought that u have 1 spell to fix the leaks..
 

Ryuu

I am back with Chocolate (:
Reaction score
64
Use the Link checker the identify your leaks.
The most common leaks that people always have (at least for me):

Point leaks:
Custom script: call RemoveLocation(udg_Variable)

Unit Group leaks:
Custom script: call DestroyGroup(udg_Variable)

Player Group leaks:
Custom script: call DestroyForce(udg_Variable)

Special Effect leaks:
Special Effect - Destroy (Variable)
 

Dregonx

TH.net Regular
Reaction score
21
Use the Link checker the identify your leaks.
The most common leaks that people always have (at least for me):

Point leaks:
Custom script: call RemoveLocation(udg_Variable)

Unit Group leaks:
Custom script: call DestroyGroup(udg_Variable)

Player Group leaks:
Custom script: call DestroyForce(udg_Variable)

Special Effect leaks:
Special Effect - Destroy (Variable)

Wow, I never knew player groups leaked... greaaaat... :banghead:
 

vypur85

Hibernate
Reaction score
803
> I never knew player groups leaked

Not 'All players' though. It doesn't leak. And it's not a good idea to destroy All players. The others would leak.
 

Dregonx

TH.net Regular
Reaction score
21
> I never knew player groups leaked

Not 'All players' though. It doesn't leak. And it's not a good idea to destroy All players. The others would leak.

Oh so, like Player Group - Player 1 (Red) / Player 1 (Red) etc?
 

marvey323

Member
Reaction score
1
I'm not gonna fix any of the leaks I find because it would take more work then i'm rdy to put into it, i'm working on my own map wich still needs alot of work.

In the Category - Bosses there are lots of location and unit group leaks.

Also the trigger under Category - Creep Item Drop called "Item Drop lvl 1to10" has location leaks.

Under Category - Creep Patrol the trigger "Patrol Start" has tons of unit group leaks.

Under Category - Town Unit Patrol the trigger named "Guard Patrol Main Start" and "Guard Patrol Start South" have Unit group and a Location leaks.

It's safe to say that most or all are gonna be location and unit group leaks.
Haven't checked the rest of the triggers.... because I think there are tons more.
One more reason why I don't wanna fix them is because if you gonna do more to this map you're gonna get more leaks and you should learn to fix them when you make the triggers.

--------------------------------------------------------------------------------

Thanks. At least you told me where to start. And thanks to the rest too for the links.
 

marvey323

Member
Reaction score
1
Okay so in my attempt to fix my leaks.. here's one that I thougth I fixed...

Trigger:
  • Repicking
    • Events
      • Player - Player 1 (Red) types a chat message containing -repick as An exact match
      • Player - Player 2 (Blue) types a chat message containing -repick as An exact match
      • Player - Player 3 (Teal) types a chat message containing -repick as An exact match
      • Player - Player 4 (Purple) types a chat message containing -repick as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -repick as An exact match
      • Player - Player 6 (Orange) types a chat message containing -repick as An exact match
    • Conditions
      • Repick[(Player number of (Triggering player))] Equal to 0
      • (Number of units in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))) Equal to 2
    • Actions
      • Game - Display to (All allies of (Triggering player)) the text: A player has repick...
      • Set RepickingArea = (Center of RepickingArea <gen>)
      • Camera - Pan camera for (Triggering player) to RepickingArea over 0.00 seconds
      • Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Actions)
        • Loop - Actions
          • Unit - Remove (Picked unit) from the game
      • Unit - Create 1 Hero Chooser for (Triggering player) at RepickingArea facing Default building facing degrees
      • Set Repick[(Player number of (Triggering player))] = 1
      • Custom script: call RemoveLocation(udg_RepickingArea)
      • Custom script: set bj_wantDestroyGroup = true



Here's what leak checker shows when I run the analysis:
(Line: 11 ) (Word: 5 ) Unit Group Leak
(Number of units in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))) Equal to 2
(Number of units in ^Leak
(Suggested fix) Custom Script: set bj_wantDestroyGroup = true
(Suggested fix) (Number of units in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))) Equal to 2

(Line: 16 ) (Word: 8 ) Unit Group Leak
Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Actions)
Unit Group - Pick every unit in ^Leak
(Suggested fix) Custom Script: set bj_wantDestroyGroup = true
(Suggested fix) Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Actions)

Location variable has not been removed:

Completed
Total amount of leaks: 2
Leak Rating: Good

Is it just a bug in leak checker? Its suggested fixes are already done in my trigger yet it says I haven't done so.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though

      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