Return Bug Finder

Any tool that you think is useful, make a thread here and upload it.

Moderator: Cheaters

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.
undeadstorms
Newcomer
Posts: 11
Joined: June 7th, 2012, 7:38 pm

Re: Return Bug Finder

Post by undeadstorms »

owner123 wrote:Here's a sample of how to do it.

I'll take your first bug:

Code: Select all

function s2i takes string s2s returns integer
return s2s
return 0
endfunction

So, you need to separate this into 2 functions.

So, in haxorico's example, you create a "fix" function, and an "origional" function. The original calls the fix, the fix contains one of the returns of the original

For yours, it would be:

Code: Select all

function fix1 takes string s2s returns integer
return s2s
end function

Code: Select all

function originalFunction takes string s2s returns integer
call fix1(s2s)
return s2s
end function


I think that should work! It'd be nice if one of the people who are good at JASS tells me if this is right though.


Right right, so how do I insert that into my j file ? :(
Dragonball Z: Supreme RPG v1.2/v1.3. Only playable on patches 1.23 and earlier. Unless you sir, are willing to fix it. Are you? PM me if you are willing to assist me in fixing this map so it is able to play in all its glorious abundance on current patches, once again. Good day sir, and thank you for reading.
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4424
Joined: November 19th, 2007, 5:05 am

Re: Return Bug Finder

Post by Bartimaeus »

Uh, by the way, I'm still getting that same error, even with the newest upload. o.o
undeadstorms
Newcomer
Posts: 11
Joined: June 7th, 2012, 7:38 pm

Re: Return Bug Finder

Post by undeadstorms »

Bartimaeus wrote:Uh, by the way, I'm still getting that same error, even with the newest upload. o.o


Same here.
Dragonball Z: Supreme RPG v1.2/v1.3. Only playable on patches 1.23 and earlier. Unless you sir, are willing to fix it. Are you? PM me if you are willing to assist me in fixing this map so it is able to play in all its glorious abundance on current patches, once again. Good day sir, and thank you for reading.
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm

Re: Return Bug Finder

Post by owner123 »

Now that uploaded one works fine for me. I even re-downloaded it to try.

Anyways, I'm in the process of re-writing the whole thing cause my code is epic sloppy.. I should have it done in a few hours to a day.

(edit) Are you guys on 32 bit or 64 bit?
User avatar
haxorico
Super Moderator
Posts: 3190
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND

Re: Return Bug Finder

Post by haxorico »

Haxorizer has a return bug finder, I can give you that part of the source to make it save time for you.
Also from my expirience, the method I am using, is not working all that well.
I think I made like 50 fix functions for NotD and it didn't do what it needed.
In any case, I think I figured out what it does, mainly its a way to convert variables.

function h2i takes handle h returns integer
return h
return 0
endfunction

will convert h to an integer for some reason. At patch 1.24, extra native functions were added to make this convertations, for the above example, a fix would be

function h2i takes handle i returns integer
return GetHandleID(h)
endfunction

or for your example

function exampleFunctions takes string s returns integer
return S2I(s) //this converts string to integer
endfunction

Same goes for units or any other thing. - Still I cannot confirm that to be 100% positive.
Image
Spoiler:
(02:24:09)

Code: Select all

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: Select all


(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: Select all

(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: Select all

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

Code: Select all

(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: Select all

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

Code: Select all

(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: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
undeadstorms
Newcomer
Posts: 11
Joined: June 7th, 2012, 7:38 pm

Re: Return Bug Finder

Post by undeadstorms »

haxorico wrote:Haxorizer has a return bug finder, I can give you that part of the source to make it save time for you.
Also from my expirience, the method I am using, is not working all that well.
I think I made like 50 fix functions for NotD and it didn't do what it needed.
In any case, I think I figured out what it does, mainly its a way to convert variables.

function h2i takes handle h returns integer
return h
return 0
endfunction

will convert h to an integer for some reason. At patch 1.24, extra native functions were added to make this convertations, for the above example, a fix would be

function h2i takes handle i returns integer
return GetHandleID(h)
endfunction

or for your example

function exampleFunctions takes string s returns integer
return S2I(s) //this converts string to integer
endfunction

Same goes for units or any other thing. - Still I cannot confirm that to be 100% positive.


Ok if you could send that part of haxorizer that can fix my return bugs, I would be most greatful :) thank you!
Dragonball Z: Supreme RPG v1.2/v1.3. Only playable on patches 1.23 and earlier. Unless you sir, are willing to fix it. Are you? PM me if you are willing to assist me in fixing this map so it is able to play in all its glorious abundance on current patches, once again. Good day sir, and thank you for reading.
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4424
Joined: November 19th, 2007, 5:05 am

Re: Return Bug Finder

Post by Bartimaeus »

I am on 64bit, and so is Undeadstorms.
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm

Re: Return Bug Finder

Post by owner123 »

Hmm.. That explains it. I haven't converted it to x64 yet. I'll do that when I release the next

(edit)

As it's in Haxorizer.. Just use the one in haxorizer if you want a return-bug checker. :P.
undeadstorms
Newcomer
Posts: 11
Joined: June 7th, 2012, 7:38 pm

Re: Return Bug Finder

Post by undeadstorms »

owner123 wrote:Hmm.. That explains it. I haven't converted it to x64 yet. I'll do that when I release the next

(edit)

As it's in Haxorizer.. Just use the one in haxorizer if you want a return-bug checker. :P.


I would but you have to pay 5$ for that program and I don't want to pay unless I have a guarantee it is going to work, so I'm asking him if he can just send me the bug fixer part :)
Dragonball Z: Supreme RPG v1.2/v1.3. Only playable on patches 1.23 and earlier. Unless you sir, are willing to fix it. Are you? PM me if you are willing to assist me in fixing this map so it is able to play in all its glorious abundance on current patches, once again. Good day sir, and thank you for reading.
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4424
Joined: November 19th, 2007, 5:05 am

Re: Return Bug Finder

Post by Bartimaeus »

owner123 wrote:As it's in Haxorizer.. Just use the one in haxorizer if you want a return-bug checker. :P.


...which is also only a 32bit program, at least currently...unless Haxorico has fixed it. lol