A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.
Moderator: MacroQuest Developers
-
smelly wang
- a lesser mummy

- Posts: 54
- Joined: Mon Jan 19, 2004 6:04 pm
Post
by smelly wang » Sat Jan 24, 2004 8:46 pm
How do you record the pathfiles? I made a real short macro -
Code: Select all
#turbo
#include advpath.inc
Sub Main
/call InitAPFVars 1 15 20
/call RecordFunction "TEST"
/endmacro
but when i run it says "there were no locations to record!". had a look through this thread and the other one, but other than the syntax to use i couldnt find anything about how to record them
-
ml2517
- a grimling bloodguard

- Posts: 1216
- Joined: Wed Nov 12, 2003 1:12 am
Post
by ml2517 » Sat Jan 24, 2004 9:03 pm
Your macro wouldn't give it time to record anything anyways.
Did you read the instructions on the top of advpath.inc? It should be very clear how to do it.
Anyways, using my example macro and advpath.inc just use:
/echo record pathfilename
and then when you are done moving around:
/echo stop
and then it will save the pathfile.
-
smelly wang
- a lesser mummy

- Posts: 54
- Joined: Mon Jan 19, 2004 6:04 pm
Post
by smelly wang » Sat Jan 24, 2004 10:08 pm
Thanks, that works great. Read the post last night and was pretty tired, read the help at the bottom and the examples of calling from scripts, but not that part for some reason hehe
-
Spanky_Monkey
- a ghoul

- Posts: 103
- Joined: Wed Feb 19, 2003 3:10 pm
Post
by Spanky_Monkey » Sun Feb 01, 2004 6:02 am
Would it not be a good idea to define 4 additional variable for people to define custom keys? I don't use the arrow keys, I use the numpad and w/s/a/d. Perhaps allowing these to be set at the beginning of the include would allow more globalized macroing. I might test it on mine or if someone thinks this is a good idea pop it up here. I know it is a simple search and replace, but I have crap to do right NOW hehe... Might it also be possible to have MQ itself select the usage of up/down/left/right from the settings files or something? I dunno. Just a couple thoughts from someone who has to change things around to make this work

-
ml2517
- a grimling bloodguard

- Posts: 1216
- Joined: Wed Nov 12, 2003 1:12 am
Post
by ml2517 » Sun Feb 01, 2004 9:02 am
Yeah I can see the value of that. I'll try to get it done some time today.
-
ml2517
- a grimling bloodguard

- Posts: 1216
- Joined: Wed Nov 12, 2003 1:12 am
Post
by ml2517 » Sun Feb 01, 2004 9:31 am
Updated:
Added 4 defines at the top of advpath.inc that you can change to map to the keys that you use for movement in EQ.
-
fishez
- orc pawn

- Posts: 19
- Joined: Tue Dec 09, 2003 3:42 pm
Post
by fishez » Fri Feb 06, 2004 6:55 pm
Having some problems with recorded paths. After a port of any kind the macro continues to run but the characters just stands in the same place it ported in to even though it appears to be playing a recorded path.
Am I missing a setting of some kind? This is my first use of advpath to record and replay.
TIA for the help.
-
ml2517
- a grimling bloodguard

- Posts: 1216
- Joined: Wed Nov 12, 2003 1:12 am
Post
by ml2517 » Fri Feb 06, 2004 7:02 pm
Not sure if I'd mentioned it in the documentation but you should make sure that you only record pathfiles while in each zone.
Example:
If you wanted to go from bazaar to plane of knowledge you would record 3 different path files.
One from where you would be at in Bazaar to the Nexxus zone. Start recording your pathfile. Then issue the stop command to save your recorded path.
Then zone into nexxus. Start your recording of the next path file and run to the book that zones you to PoK. Issue the stop command to save that path file.
Then zone into PoK. Start your recording of the next path file and run to wherever you wanted to go in PoK and then issue the stop command.
Now you will have 3 different path files. Then you either chain the playback commands or call them one at a time. Make sure you get all of your options correct (I.E. if the end of your current pathfile ends at a zone point use the z command.)
-
fishez
- orc pawn

- Posts: 19
- Joined: Tue Dec 09, 2003 3:42 pm
Post
by fishez » Mon Feb 09, 2004 10:11 am
I'm calling each one individually. I ported/succored to spot then started recording. Now when mac is run, I port/succor to spot, recorded path appears to play because character "twitches" as if to move, but never moves off the spot. Any thoughts?
Excellent work on this BTW, it's amazing how well it works.
-
ml2517
- a grimling bloodguard

- Posts: 1216
- Joined: Wed Nov 12, 2003 1:12 am
Post
by ml2517 » Mon Feb 09, 2004 3:40 pm
Umm.. if you recorded this from point A to point B are you playing it in the correct direction? It's really impossible to tell what you are doing wrong without you showing me examples of the syntax you used, pathfiles etc. PM me your code and I'll see if that is your problem or your syntax.
-
Draekz
- a hill giant

- Posts: 263
- Joined: Thu Aug 01, 2002 6:07 pm
- Location: Winnipeg, Manitoba, Canada
Post
by Draekz » Sun Feb 29, 2004 2:17 pm
Hmm having trouble playing back a test macro after recording the files. It finds the path files alright but when it goes to initiate the playback routine it says:
Code: Select all
Ending Macro: Subroutine WaitTilThere wasn't found
advpath.mac@21 (Main): /call WaitTilThere
Anyway, thats the error I keep getting and i cant figure out why! Here's my sample code i was using to make it run (or at least trying to).
Code: Select all
|
| Example of using advpath.inc to walk from location to location and do things along the way
|
#turbo
#include advpath.inc
Sub Main
/call InitAPFVars 1 15 20
:MainLoop
/doevents
| This is my first pathfile - I walk from my starting point to the first location
| where I'd like to do something.
| --------------------------------------------------------------------------------
|||Runs to First Door|||
/call PlayFunction "path1 1 f nopp noz"
/call WaitTilThere
| --------------------------------------------------------------------------------
| * Put the code where you'd like to do things like target mobs, buy things etc here.
| ---------------------------------------------------------------------------------
|||Clicks Open first Door|||
/click left
/delay 3
| This is my second pathfile - I walk from my current point to the second location
| where I'd like to do something.
| --------------------------------------------------------------------------------
|||Runs from Door to merch|||
/call PlayFunction "path2 1 f nopp noz"
/call WaitTilThere
| --------------------------------------------------------------------------------
| * Put the code where you'd like to do things like target mobs, buy things etc here.
| ---------------------------------------------------------------------------------
|**||clicks on merch|||
/click Right 555 333
/delay 5
**||
|| --------------------------------------------------------------------------------
/call PlayFunction "path3 1 f nopp noz"
/call WaitTilThere
|| -----------------------------------------------
/call PlayFunction "path4 1 f nopp noz"
/call WaitTilThere
/return
Sub WaitTilThere
:LoopTilThere
/if n @PathingFlag==1 {
/call AdvPathPoll
/delay 0
/doevents
/goto :LoopTilThere
}
/return
Anyway, thanks for any help..hopefully someone knows whats going on
Appreciate it!
Draekz
-
ml2517
- a grimling bloodguard

- Posts: 1216
- Joined: Wed Nov 12, 2003 1:12 am
Post
by ml2517 » Sun Feb 29, 2004 3:29 pm
Hmm well the only things I can see that might be causing problems are:
Code: Select all
[color=red]|**||clicks on merch|||
/click Right 555 333
/delay 5
**|| [/color]
|| --------------------------------------------------------------------------------
/call PlayFunction "path3 1 f nopp noz"
/call WaitTilThere
|| -----------------------------------------------
/call PlayFunction "path4 1 f nopp noz"
/call WaitTilThere
[color=red]
/goto :MainLoop
[/color]
/return
If you don't want it to repeat change the /goto :MainLoop line to /endmacro. /return'ing in the Main sub does screwy things.
I'm not so sure it even got there though, I'm guessing the multiline comment above that might be causing problems.
-
Draekz
- a hill giant

- Posts: 263
- Joined: Thu Aug 01, 2002 6:07 pm
- Location: Winnipeg, Manitoba, Canada
Post
by Draekz » Sun Feb 29, 2004 11:39 pm
Awsome thanks..it was that stupid multiline comment thing i did lol dammit i suck
In any case, appreciate the info!
Draekz
-
flightrecorder
- a lesser mummy

- Posts: 50
- Joined: Mon Dec 22, 2003 10:06 am
- Location: Sydney
Post
by flightrecorder » Mon Mar 01, 2004 4:58 am
First off ml2517, this is some great scripting :-)
Pathing works beautifully except in PoK where I'm moving between stones. after about 10-12 locs being parsed my toon starts to "swing" back and forth along the pathing line in trying to follow the loc.
Firstly, i think this is due to the lag and the script trying to compensate by returningto/facing the next loc in the ini. This causes the toon to go back and forward eratically and eventually get real mixed up.
.... and that gives me and idea
With knowledge comes power....so RTFM
-
flightrecorder
- a lesser mummy

- Posts: 50
- Joined: Mon Dec 22, 2003 10:06 am
- Location: Sydney
Post
by flightrecorder » Mon Mar 01, 2004 5:10 am
OK, stripped down the number of locs in my ini and this ran smoothly
I know see the finesse of the InitAPFVars speed value although this could get messy recording a complex path at a low value
What this leads me to think is that it would be very cool to have some kind of single loc record function that allows us to make keypress/simple function call selections of locs the toon is at, that are then being written to a single path file.
eg. run to certain point, record that loc, run to another, record that, etc, and each loc going into the same path file...?
I'm happy to manually edit loc files in initial creation, but this would be very cool... it also sounds diff to a newb like myself :-)
[edit]
I'm thinking something like a pause and a file append with file name specified perhaps?
With knowledge comes power....so RTFM