Leak or not?

lucifekit

New Member
Reaction score
2
Please see my map,i use leak check and my map don't have any leak(you can see again) but handle counter go up never stop after i use the skill.Can you find the leak which leak check cannot find?
 

Attachments

  • NKHN.w3x
    27.2 KB · Views: 161

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
The Rules said:
4. Keep in mind that you may not be answered immediately. Be patient. If your thread is clean, reasonable, and easy to understand, it will be answered.
5. We here at TH.net are not a Warcraft III editing service. Do not expect for you to hand over your map to us and have it handed back magically complete. It won't happen. So don't try.
There are cases where the problem can't be readily seen in the posts, in which case you will be asked to upload the map for someone to look at, but they will only be looking at that one problem.

..

If 24 hours have passed, you were the last one to post, and your question has not been answered, you may bump your thread. But the 24 hour limit will be enforced, so be careful.

We're not just going to look through an entire map.

1. Post what triggers you believe to be problematic.
2. Have you read a tutorial on finding and fixing leaks yourself (without the program)?
3. "The skill" - do you have a custom triggered spell in your map? Did you make it yourself? Post the code/trigger here so we can take a look.
 

lucifekit

New Member
Reaction score
2
Yeah sorry.

But my spell is based on autocast arrow ability and it have 7 trigger(not long to much).And the handle counter you can see when testing map so i don't post all my trigger here.Viewing the map is the best i think so.I ask many mapmaker in my region but they don't know like me.

Yeah i reads tutorial on finding and fixing leaks.(leak check for more sure)

Sorry again for not reading the rule:p,near 24 hours:p
 

lucifekit

New Member
Reaction score
2
If 24 hours have passed, you were the last one to post, and your question has not been answered, you may bump your thread. But the 24 hour limit will be enforced, so be careful.

Sad.......

Hic,so i bump my thread,help me plz,maybe it's the one that make my map disconnect so fast T____T
 

perkeyone

something clever
Reaction score
71
which skill causes the handle counter to go up?
maybe you could post the triggers for that one spell.
then we could look at it and tell you.
all you have to do is right click the trigger and "copy as text"
then paste it here inbetween [WC3*][/WC3*]tags
(without the *'s)
most people would rather not download your map and try every skill just to find the one specific thing you are trying to fix
so help us help you
 

Artificial

Without Intelligence
Reaction score
326
Your problem lies in NKHN Move:
Code:
Set TempGroup = (Units of type Nhan Kiem Hop Nhat)
Set TempGroup2 = (Units of type Effect NKHN)
(Units of type ...) happens to leak in a way you cannot fix using any simple custom scripts (like some other GUI actions seem to do, too).

A relatively easy way of fixing this:
  1. Create a variable called 'TempUnitType' of type Unit-Type
  2. Add this code to your map header (At the top of the list of triggers there's your maps name prefixed by a map image. Click on that to see the map header):
    JASS:
    function GetUnitsOfTypeIdAllLeakless takes integer unitid returns group
        local group g = CreateGroup()
        local integer index = 0
        set bj_lastCreatedGroup = CreateGroup()
        
        loop
            set bj_groupEnumTypeId = unitid
            call GroupEnumUnitsOfPlayer(g, Player(index), filterGetUnitsOfTypeIdAll)
            call GroupAddGroup(g, bj_lastCreatedGroup)
            set index = index + 1
            exitwhen index == bj_MAX_PLAYER_SLOTS
        endloop
        
        call DestroyGroup(g)
        set g = null
        
        return bj_lastCreatedGroup
    endfunction
  3. Change these:
    Code:
    Set TempGroup = (Units of type Nhan Kiem Hop Nhat)
    Set TempGroup2 = (Units of type Effect NKHN)
    to these:
    Code:
    Set TempUnitType = Effect NKHN
    Custom script:   set udg_TempGroup = GetUnitsOfTypeIdAllLeakless(udg_TempUnitType)
    Set TempUnitType = Nhan Kiem Hop Nhat
    Custom script:   set udg_TempGroup2 = GetUnitsOfTypeIdAllLeakless(udg_TempUnitType)

A better way of fixing this:
  1. Learn Jass. ^_^

> [WC3*][/WC3*]
You could btw use the [noparse][noparse][/noparse][/noparse] tags instead of those * inside the tags. [noparse][noparse]
Trigger:
[/noparse][/noparse] would transform into [noparse]
Trigger:
[/noparse] (see, no stars and it's still as plain text? :)).
 

perkeyone

something clever
Reaction score
71
You could btw use the [noparse][noparse][/noparse][/noparse] tags instead of those * inside the tags. [noparse][noparse]
Trigger:
[/noparse][/noparse] would transform into [noparse]
Trigger:
[/noparse] (see, no stars and it's still as plain text? :)).
nice
thanks i wondered about that
+rep

ps were tags case sensitive before?
i used to have trouble with getting them to work when not all caps
 

LaZyNation43

New Member
Reaction score
2
You also have a leak in your timer.

Code:
event
    Events
        Time - Every 2.00 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in TakeDamGroup and do (Actions)
            Loop - Actions
                Game - Display to (All players) the text: (Take Damage group : + (Name of (Picked unit)))


It can cause major lag if your game lasts a while. I forgot the website that shows how to clear timers up =/ but its in war3c.net I believe.
Goodluck bud
 

lucifekit

New Member
Reaction score
2
Your problem lies in NKHN Move:
Code:
Set TempGroup = (Units of type Nhan Kiem Hop Nhat)
Set TempGroup2 = (Units of type Effect NKHN)
(Units of type ...) happens to leak in a way you cannot fix using any simple custom scripts (like some other GUI actions seem to do, too).

....

Wow,so wonderful,i did it and the number didn't go up anymore.(but it up and down between 1-2,but it don't matter:D)

Thanks you so much :X.I added reputation to you :X.And all else 4 helping me :D

Except unit of type,is there any else functions leaks like it?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top