Page 4 of 5
Re: Return Bug Finder
Posted: June 9th, 2012, 10:59 pm
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 ?

Re: Return Bug Finder
Posted: June 9th, 2012, 11:13 pm
by Bartimaeus
Uh, by the way, I'm still getting that same error, even with the newest upload. o.o
Re: Return Bug Finder
Posted: June 9th, 2012, 11:26 pm
by undeadstorms
Bartimaeus wrote:Uh, by the way, I'm still getting that same error, even with the newest upload. o.o
Same here.
Re: Return Bug Finder
Posted: June 10th, 2012, 1:44 am
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?
Re: Return Bug Finder
Posted: June 10th, 2012, 3:21 am
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.
Re: Return Bug Finder
Posted: June 10th, 2012, 5:52 am
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!
Re: Return Bug Finder
Posted: June 10th, 2012, 10:17 am
by Bartimaeus
I am on 64bit, and so is Undeadstorms.
Re: Return Bug Finder
Posted: June 10th, 2012, 1:53 pm
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.

.
Re: Return Bug Finder
Posted: June 10th, 2012, 10:09 pm
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.

.
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

Re: Return Bug Finder
Posted: June 10th, 2012, 10:32 pm
by Bartimaeus
owner123 wrote:As it's in Haxorizer.. Just use the one in haxorizer if you want a return-bug checker.

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