Tool Leak Check v3

*There will be a new version coming out soon with some additional features as well as detection for some leaks I missed.

can this check every possible leak?
I want to say yes, but right now I'm sure there are some leaks that are not being detected. The only way for me to fix that is for people to report any leaks not being detected that they know of.

What? No colors?
With colors, I can see better.
(and prettier)
There are colors in the new version coming out soon. No worries :)


Anyway, the only Player Group leak it actually detects is Convert Player To Player Group (ignores all others). It would also be nice if it could detect if the mapper tried to destroy (All players) and warn that it's a very bad idea to do that.
It should detect Covert Player to Player Group or at least the test I have done has detected it.

Code:
call DestroyForce(GetAllPlayers())
Code:
Player Group - Remove all players from (All players)
Is either of those the code you are talking about? I haven't used WE in quite a long time.

I also recommend that you get rid of the suggested fix thing.
A lot of people completely rely on this fix as the ultimate and only solution while they often don't know how to use it ("where is the Set MyLocation action?") or can sometimes be wrong due to a bug/improper use (in conditions for instance).
Instead you can just make it say, for example, "Unit Group Leak, click here for more info" where clicking would result in a window with information on Unit Group leaks and a couple of examples on how to remove them (and possibly a link to emjlr3's tutorial) showing up.
I have set the default option for showing suggested fixes to off. I have also made it display a warning when turning it on.

At the end of the scan I have also made it display a link to some Memory Leak tutorials.
 
Any assing of a force to all players and then cleaning(I think that cleaning) the force or destroying it will cause AllPlayers to dissapear.
 
Nice new interface, I should get my self one, maybe you should change the title to your own though.
 
> It should detect Covert Player to Player Group or at least the test I have done has detected it.
Yes, but what I'm saying is that it doesn't detect any other except for that one. Try All Players Of Control for example.

> Is either of those the code you are talking about?
No, more like something like this:
Code:
Set MyPG = (All players)
Player Group - Pick every player in MyPG and do (Actions)
    Loop - Actions
        // anything here
Custom script:   call DestroyForce(udg_MyPG)

It also doesn't detect whether you actually destroyed/removed a variable, but I can't think of an accurate way of checking this (those Location variable not removed things in the previous version were really annoying).
However you may want to make it report something if the mapper reassigned a variable before destroying:
Code:
Set loc = (Center of (Playable map area))

// any number of actions here
Unit - Create 1 Footman for Player 1 (Red) at loc facing Default building facing degrees

// variable reassigned, but there is no Custom Script that removes it, display a warning
Set loc = (Random point in (Playable map area))
 
Sounds very good for me since I am lazy, problem is the program doesn't open for me :eek:
 
To I'm_On_56K:

I can't run the program. How come everyone can run it, but I can't?
 
> How come everyone can run it, but I can't?

What operation system are you using? Maybe you are missing some kind of a base environment, what is required by that program to run properly?
 
I'm running on Windows XP, SP2, Traditional Chinese.

And what environment should I required to have?
 
I too, can't run the program.
I double click on Leakcheck.exe, and the error sound plays, but no error shows.

When i try to run in compatibility with Windows 2000 or any other Windows as a matter of fact, i get the error message:

'Component 'COMCTL32.OCX' or one of its dependencies not currently registered: a file is missing or invalid'

I've never used leak check, so I was just curious to see if it'd find anything in my map :D
 
To I'm On 56K:

Some questions:

1. While the executable file for non-VB users hasn't been out, should I have to use Leak Check v2?
2. Is Leak Check v3 for RoC only, TFT only, or both?
 
It works fine for me. I tried it on Vista. Just extract the files and double click the application file.
 
New version updated. Yes I know I am terrible at sticking to something :)

- New version includes newest leak definitions which means it will detect more leaks then previous versions.

- A variable removal detection which is in beta stage.

- Colors! You will see what I mean.

- Suggested fixes is turned off by default as it can provide incorrect information.

- There are also some additional features you may or may not notice but I will not list them as they are minor.

Go to my first post to download the updated version. Overwrite all files if you are extracting to the same location.

I am planning on releasing the source code still, I just haven't got around to commenting everything yet - but it is coming.
 
ERROR said:
Componet 'COMCTL32.OCX' or one of its dependencies not correctly registered: a file is missing or invalid

it pops that up when i try it
 
Bug:

Code:
Starter Death
    Events
        Unit - A unit owned by Player 1 (Red) Finishes construction
        Unit - A unit owned by Player 2 (Blue) Finishes construction
        Unit - A unit owned by Player 3 (Teal) Finishes construction
        Unit - A unit owned by Player 4 (Purple) Finishes construction
        Unit - A unit owned by Player 5 (Yellow) Finishes construction
        Unit - A unit owned by Player 6 (Orange) Finishes construction
        Unit - A unit owned by Player 7 (Green) Finishes construction
        Unit - A unit owned by Player 8 (Pink) Finishes construction
        Unit - A unit owned by Player 9 (Gray) Finishes construction
        Unit - A unit owned by Player 10 (Light Blue) Finishes construction
        Unit - A unit owned by Player 11 (Dark Green) Finishes construction
        Unit - A unit owned by Player 12 (Brown) Finishes construction
    Conditions
    Actions
        Set finishbuilding[(Player number of (Triggering player))] = True
        Set typeofBuilding[(Player number of (Triggering player))] = (Unit-type of (Constructed structure))
        Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) of type Wisp) and do (Unit - Remove (Picked unit) from the game)

Says "Subscript out of range"

I think it's the Unicode problem.


Picture:
91370940ku2.png
 
Bug again:

Code:
Setup Dialog
    Events
        Time - Elapsed game time is 0.10 seconds
    Conditions
    Actions
        Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Wisp)) and do (Unit - Remove (Picked unit) from the game)
        Game - Display to (All players) for 5.00 seconds the text: Game Mode is now be...
        Wait 1.00 seconds
        Dialog - Change the title of DIA to Game Modes
        Dialog - Create a dialog button for DIA labelled Original
        Set DIAbut[1] = (Last created dialog Button)
        Dialog - Create a dialog button for DIA labelled Incomes
        Set DIAbut[2] = (Last created dialog Button)
        Dialog - Show DIA for Player 1 (Red)

That's the original trigger. It somehow shows this one.

70840202hz5.png


I really don't know what is wrong with it.
 
I am not sure what bug you are pointing out to me.

It will help if you show the text it is showing by moving the horizontal scroll bars to the left on both text boxes.

If you are trying to say it's not scanning the trigger you want it to - you have Always Copy on which means it will keep replacing the text in the input text box to the text on your clipboard. Turn that off. Otherwise you are going to have to explain to me more what bug you are trying to show me.
 
The bug is right there in front of you. See that Chinese characters?

Those =/= "Wisp".

I don't know why. It didn't copy it correctly. Those words doesn't look like "Wisp" at all.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      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