Help section from before the user variable changes that broke all macros
Moderator: MacroQuest Developers
-
Mckorr
- Developer

- Posts: 2326
- Joined: Fri Oct 18, 2002 1:16 pm
- Location: Texas
Post
by Mckorr » Thu Dec 26, 2002 1:31 pm
I've tried several macros from the depot (for example, combine.mac and skullale.mac), and I get a "could not parse whatever". Usually starts with the line just after "sub main", then says "could not parse" and whatever is on that line. Repeated for every line of code.
Any idea what would cause a general failure such as this?
-
S_B_R
- a lesser mummy

- Posts: 72
- Joined: Tue Jul 30, 2002 11:12 am
Post
by S_B_R » Thu Dec 26, 2002 3:32 pm
you're probably not passing the correct parameters to the macro when you start it. i.e. /macro combine.mac param1 param2 param3.
I dunno forsure though I've never uesed either of those macros

[b]dd if=/dev/zero of=/dev/hda[/b]
-
Malachi
- a hill giant

- Posts: 227
- Joined: Tue Nov 19, 2002 1:29 am
-
Contact:
Post
by Malachi » Thu Dec 26, 2002 4:06 pm
I spy with my little eye...
someone who didn't rename macroquest.ini.dist to macroquest.ini when they installed the package....
~Malachi
~Oh danny boy, the pipes the pipes are calling.~
-
SingleServing
- a hill giant

- Posts: 195
- Joined: Tue Dec 17, 2002 11:00 pm
Post
by SingleServing » Thu Dec 26, 2002 4:44 pm
You have a typo somewhere, or as mentioned you are not calling the function correctly
[color=DarkBlue]Everything,[/color] [color=DarkBlue][b]is[/b][/color] [color=black]black[/color] [color=DarkBlue]and[/color] [color=white]white[/color][color=DarkBlue], when you zoom out it looks[/color] [color=gray]grey[/color][color=DarkBlue].[/color]
-
Mckorr
- Developer

- Posts: 2326
- Joined: Fri Oct 18, 2002 1:16 pm
- Location: Texas
Post
by Mckorr » Fri Dec 27, 2002 7:03 pm
I'm not that much of a newb. I DO have a correct macroquest.ini.
Passing parameters according to the instructions, and in the case of skullale.mac there aren't any. Macro is posted below (though by the time I get it working I'll be done with skull ale) :
Code: Select all
| - SkullAle.mac -
#include routines.mac
sub main
| Initialisation
/press ctrl
/press shift
/press alt
| Main Loop
/itemtarget Brew Barrel
/face item
/click left item
:MakeItem
/sendkey down ctrl
/finditem "Vinegar"
/if $find()==FALSE /goto :Done
/click left enviro 0
/finditem "Spices"
/if $find()==FALSE /goto :Done
/click left enviro 1
/finditem "Short Beer"
/if $find()==FALSE /goto :Done
/click left enviro 2
/finditem "Cyclops Skull"
/if $find()==FALSE /goto :Done
/click left enviro 3
/sendkey up ctrl
/click left enviro combine
/for v1 1 to 10
/delay 5
/if "$cursor()"=="TRUE" /goto :AutoDropAle
/next v1
/goto :MakeItem
:AutoDropAle
/if "$cursor(name)"=="Cyclops Skull" /goto :AutoDropSkull
/click left auto
/delay 1
/if "$cursor()"=="TRUE" /goto :AutoDropAle
:AutoDropSkull
/click left auto
/if "$cursor()"=="TRUE" /goto :AutoDropSkull
/doevents
/delay 11
/goto :MakeItem
:Done
/sendkey up ctrl
/click left enviro done
/return