wc3edit.net

United Warcraft 3 map hacking!
It is currently March 28th, 2024, 3:13 pm

All times are UTC


Forum rules


While crediting should be allowed, please keep down the advertising. If you know who it's from, and they have a website, please link to it as a basic courtesy.



Post new topic Reply to topic  [ 43 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
 Post subject: Return Bug Finder
PostPosted: April 12th, 2011, 3:42 am 
Offline
Super Moderator

Joined: February 3rd, 2009, 11:28 pm
Posts: 2394
Just a tool I made.
It finds if there are 2 consecutive returns in a script, and if there are, gives you the line number. (You still must fix it yourself. For instructions on how refer to this: viewtopic.php?f=64&p=142909#p142909)
You have to use it on the script, not the warcraft map file.
This has been extremely useful to me when finding return bugs. Hope it helps.
If you want the source, pm me.

Just use the browse button to fill in the path to the code you want checked, and press the check button.

2.0 updates:
-There is now a window to open the .j file and edit it via there. This saves you having to JASSCraft the map to fix it.
-You can now open .w3x files to check.
-You now need MPQLib.dll in the folder where the application is.
-Stealers suggestion has been implemented - the errors now show in a listbox, not in messageboxes. (Comments will be ignored later.)
-w3e won't let me upload .dlls, so I packed it into a .zip.

Spoiler:
Attachment:
Return Bug Checker.exe

Attachment:
Return Bug Checker.exe

Attachment:
Return Bug Checker 2.0.zip





Unzip with 7Zip.


You do not have the required permissions to view the files attached to this post.


Last edited by owner123 on June 9th, 2012, 4:23 am, edited 6 times in total.
update.


Top
 Profile  
 
 Post subject: Re: Return Bug Finder
PostPosted: April 12th, 2011, 6:09 am 
Offline
Shopping Maul USA Creator
User avatar

Joined: January 18th, 2007, 11:07 am
Posts: 1992
Location: Calgary Canada
Title: No Comment
Sounds like a good tool. I was looking for a tool that could check for leaks, anything on that? ;)

_________________
.
.
How to use cheats: http://forum.wc3edit.net/announces/are- ... 35804.html


Top
 Profile  
 
 Post subject: Re: Return Bug Finder
PostPosted: April 12th, 2011, 5:12 pm 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3815
Location: JEW LAND
Nice job owner :)
I was thinking about doing that + making it find errors like this:
Code:
call DisplayTextToPlayer(Player(0),0,0,"This is some text
And this is some more text"

Its on planty of hard-to-crack maps :)
Only way I found (I don't remember where I placed that damn thing) is it checks if the line doesn't start with:
call
loop
endloop
function etc....

_________________
Image
Spoiler:
(02:24:09)
Code:
ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).
Code:

(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code:
(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code:
(15:42:51) Lanaya: can i suck , . . .

Code:
(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code:
GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code:
(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code:
(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?


Top
 Profile  
 
 Post subject: Re: Return Bug Finder
PostPosted: April 12th, 2011, 8:43 pm 
Offline
Super Moderator

Joined: February 3rd, 2009, 11:28 pm
Posts: 2394
I will make this later (Unless you're planning to ofc.)
@vegas I don't really know enough about leaks. If you gave me infos I would try :)


Top
 Profile  
 
 Post subject: Re: Return Bug Finder
PostPosted: April 12th, 2011, 8:53 pm 
Offline
Shopping Maul USA Creator
User avatar

Joined: January 18th, 2007, 11:07 am
Posts: 1992
Location: Calgary Canada
Title: No Comment
I used this program before

Leak checker
http://www.thehelper.net/forums/showthr ... eak+finder
You need an account at thehelper.net to download. (Its at the bottom of the page)


Its ok, but misses different leaks.

_________________
.
.
How to use cheats: http://forum.wc3edit.net/announces/are- ... 35804.html


Top
 Profile  
 
 Post subject: Re: Return Bug Finder
PostPosted: April 12th, 2011, 9:51 pm 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3815
Location: JEW LAND
I already have it done, some where xD... I used it long ago when I started with all my "mini misc tools" not everything was posted :P

_________________
Image
Spoiler:
(02:24:09)
Code:
ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).
Code:

(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:


Code:
(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code:
(15:42:51) Lanaya: can i suck , . . .

Code:
(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code:
GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code:
(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).


Code:
(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?


Top
 Profile  
 
 Post subject: Re: Return Bug Finder
PostPosted: April 18th, 2011, 11:32 pm 
Offline
Super Moderator

Joined: February 3rd, 2009, 11:28 pm
Posts: 2394
Updated..
Before it found an error if one line said "function x takes y returns z" and the next "return x". Now it doesn't.


Top
 Profile  
 
 Post subject: Re: Return Bug Finder
PostPosted: April 30th, 2011, 4:28 pm 
Offline
Member

Joined: April 14th, 2008, 1:01 am
Posts: 71
If the line is commented out i think you should ignore the return error.

ex
line 756 //function Fk takes integer i returns unit
line 757 //return i
line 758 //return null
line 759 //endfunction

your program tells me "Return error at line 757 and line 758".

I don't like how it finds 1 return error and then stops, i wish it would compile them all together.



------------
How good is this method (post142909.html#p142909)
Cause i basicly copied it and the map doesn't work.

Very often the thing that it took was not its return value. also some of the functions according to jassCraft seem to not exist when i do a syntax check but if i use find it finds them.....
"Undeclared Function FJ" is what i mean by syntax check thinks they don't exist.

Same map as the one i used for the text out of line.


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: Return Bug Finder
PostPosted: April 30th, 2011, 5:10 pm 
Offline
Super Moderator

Joined: February 3rd, 2009, 11:28 pm
Posts: 2394
I've used the method before, and it works.
It doesn't find 1 then stop. Example is attached, run it through that.
There might be some sort of other error if it can't find it.

I dunno about the jasscraft errors. Try de-obfuscating the script with RMPQEx first.


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: Return Bug Finder
PostPosted: May 1st, 2011, 2:37 pm 
Offline
Member

Joined: April 14th, 2008, 1:01 am
Posts: 71
I didn't explain very well.

your program finds the first error it sees and reports it and then pauses.
when you hit the x or ok(?) it then finds the next error it sees and then pauses.
rise and repeat.

haven't tried using rmpqex yet, my internet is pretty bad as of the past week.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 43 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)