Not getting last sub properly when includes used
Posted: Wed Mar 09, 2005 11:43 pm
I'm not exactly sure what's going on, but here's what I figured out. With the 03/05+ versions of MQ2 the autoenc.mac from the VIP section stopped working. When you run it says:
After playing around with this for 3 days I figured out it wasn't getting out of the last routine in the gen_routines.inc file that was getting included. Not sure why, but I tried moving that routine around. Doing that, I found whichever routine was LAST didn't ever end properly, almost like it isn't getting imported properly.
I was able to see this problem with other macros that used includes (though, honestly, they were all by Rusty and used spell_routines.inc and gen_routines.inc and move.inc).
I "fixed" all my problem by just creating a dummy routine at the end of each include file that I wouldn't ever use.
Is there some way someone can verify the problem and the solution?
Code: Select all
Flow ran into another subroutine
move.inc@46 (MoveToLoc(MoveToY, MoveToX)):Sub MoveToLoc9MoveToY, MoveToX)
ench.mac@313 (Main): /if (!${validTarget} || (!${nukeMode} && !${useDebuff} && !${useMez})) { I was able to see this problem with other macros that used includes (though, honestly, they were all by Rusty and used spell_routines.inc and gen_routines.inc and move.inc).
I "fixed" all my problem by just creating a dummy routine at the end of each include file that I wouldn't ever use.
Is there some way someone can verify the problem and the solution?