what does this mean.....

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

3djoker
a hill giant
a hill giant
Posts: 167
Joined: Thu Jun 24, 2004 11:19 pm

what does this mean.....

Post by 3djoker » Sun Jun 27, 2004 10:10 pm

ok, i have used the code from 2 different macros i seen here on the board. posted after last patch so they arent outdated. one was the mage macro, and the other was the chant macro.

i made the files and put them in the macro folder.

when im in game and i do /macro chant 2346 8 55 5 7 1 (how your supposed to load it) or /macro gomage (assist) all i get is the name of the macro in the MQ window in red letters. nothing happens. just the name of the macro in red letters.

i cannot figure out what im doing wrong. i dont think it is the macro becuase there is replies in the last 2 days on both of them saying they worked for others.

any help would be appreciated.

Mister Peepers
a lesser mummy
a lesser mummy
Posts: 46
Joined: Mon Apr 19, 2004 8:10 pm

Post by Mister Peepers » Mon Jun 28, 2004 12:24 am

Lets see maybe you can post what those "red letters" (think you mean red words) are they are not just red letters for a reason. ;) Don't post just what the red letters say post the white text as well that gives the subs name and line number that way the problem can be found quicker.

User avatar
Kambic
a lesser mummy
a lesser mummy
Posts: 74
Joined: Fri May 28, 2004 11:48 am

Post by Kambic » Mon Jun 28, 2004 1:21 am

He already did that twice, and he said clearly that the name of the macro was what was in red letters.

Far as I know, this means that you tried to run a macro which, according to MQ, does not exist. Check that your macro is in your /macros folder and that your macroquest.ini macro path is correct.

3djoker
a hill giant
a hill giant
Posts: 167
Joined: Thu Jun 24, 2004 11:19 pm

Post by 3djoker » Mon Jun 28, 2004 6:16 am

ok maybe it wasn't very clear the way i explained it first time.

when in game, i try to load a macro. to do this, i type /macro gomage (assist). now what the macro is supposed to do is start buffing self/pet and/or fight. what happens instead is my character just stands there. nothing happens. nothing changes.

the only thing that does happen though, if i look up at the MQ window, it now has the word

Code: Select all

gomage.mac

in red letters. thats it.

...........

i checked the paths, i checked to make sure they was in the macro folder. all is well. this just has me baffled.

Me.Name
a lesser mummy
a lesser mummy
Posts: 56
Joined: Thu Mar 11, 2004 11:49 pm
Location: ${Me.Bound}

Post by Me.Name » Mon Jun 28, 2004 7:20 am

First try typing "/listmacros". That should give you a list of all the macros your installation "sees".
Next, double and triple check your spelling including letter case (not positive but I believe the macro names are case sensitive)
Third, add a new line as the first statement in the macro like "/echo Macro soandso has started". That would let you know it is actually entering the code.

Mister Peepers
a lesser mummy
a lesser mummy
Posts: 46
Joined: Mon Apr 19, 2004 8:10 pm

Post by Mister Peepers » Mon Jun 28, 2004 12:26 pm

sorry, I thought you were geting an error when running the macro that was causing it to end.

Since its saying its not finding or somthing close to that. Can you tell us what folder your macros are in and what folder your runing macrquest2.exe out of. If you run MQ2 out of a folder and the macros are not in a subfolder called macros it won't find them. If you renamed the macros folder to something that could cause it was well. To fix this there are two ways to do it. Change the subfolder in that file to macros or go into the ini file in the same directory as the macroquest2.exe file open it up and there should be somthing like MacroPath=.\Macros you need to change this to the full path of the folder your macros are stored in. Of it its just a different named folder under the same folder macroquest2.exe is run in just change the "Macros" name to that folder.

Drumstix42
a grimling bloodguard
a grimling bloodguard
Posts: 808
Joined: Mon May 03, 2004 4:25 pm

Post by Drumstix42 » Mon Jun 28, 2004 4:42 pm

What program do you use to save them.

If you use notepad, asave it as blah.mac, make sure you change the extension so it does save as blah.mac.txt

3djoker
a hill giant
a hill giant
Posts: 167
Joined: Thu Jun 24, 2004 11:19 pm

Post by 3djoker » Mon Jun 28, 2004 5:59 pm

ok my mq2 folder is called "3djoker".
my macro folder is inside that folder and called "macros" (how it was compiled)

inside there i create a notepad file, then rename the file to whatever.mac (making sure it is not whatever.mac.txt)

the first lines of my .ini file is ..

Code: Select all

[MacroQuest]MacroPath=.\MacrosLogPath=.\LogsDebugSpewToFile=0FilterSkills=0FilterTarget=0FilterMoney=0FilterFood=0FilterMacro=0FilterEncumber=0FilterDebug=0KeepKeys=1FilterMQ=0AllErrorsDumpStack=1AllErrorsFatal=0LaxColor=0HUDMode=UnderUI[Aliases]/a=/anonymous/b=/bazaar/ba=/bazaar/c=/consider/cha=/channel/d=/duel/exp=/echo ${Me.PctExp}% experience.../f=/feedback/fa=/fastdrop/g=/gsay/gmlist=/who all gm/gu=/guildsay/hp=/echo Current Health: ${Me.CurrentHPs} -- Max Health: ${Me.MaxHPs}/key=/keys/load=/loadspells/m=/msg/mana=/echo Current Mana: ${Me.CurrentMana} -- Max Mana: ${Me.MaxMana}/npc=/who npc/slotid=/echo ${SelectedItem.InvSlot}/t=/tell/ta=/tap/w=/who[Plugins]
mq2labels=mq2labels
what i noticed like mister peepers suggested, is that there is no folder listing beside ..

Code: Select all

MacroPath=.
do i just put it like this.... MacroPath=.\Macros so that the first line would look like this....

Code: Select all

][MacroQuest]MacroPath=.\macros\MacrosLogPath=.\LogsDebugSpewToFile=
?

i dont wanna screw anything up in the .ini so nothing works.

also, i can run a couple other macros in that folder that i got from a friend, i.e. simpletrade.mac and herobrew.mac

they run fine and are in the same folder.

just trying to pinpoint what i'm doing wrong or is wrong from somewhere in the folder.

also i want to thank you guys for trying to help and not blowtorch my ass for being such a newb :P

gonna try the /listmacro thing in just a minute and let ya know if it sees those macros im having probs with.

Mister Peepers
a lesser mummy
a lesser mummy
Posts: 46
Joined: Mon Apr 19, 2004 8:10 pm

Post by Mister Peepers » Mon Jun 28, 2004 6:30 pm

Humm it might have to do with all that on one line. This is what my Ini file looks like. You can copy and paste it all you like.

Code: Select all

[MacroQuest]
MacroPath=.\Macros
LogPath=.\Logs
DebugSpewToFile=0
FilterSkills=0
FilterTarget=0
FilterMoney=0
FilterFood=0
FilterMacro=0
FilterEncumber=0
FilterDebug=0
KeepKeys=1
FilterMQ=0
AllErrorsDumpStack=1
AllErrorsFatal=0
LaxColor=0
HUDMode=UnderUI

[Aliases]
/a=/anonymous
/b=/bazaar
/ba=/bazaar
/c=/consider
/cha=/channel
/d=/duel
/exp=/echo ${Me.PctExp}% experience...
/f=/feedback
/fa=/fastdrop
/g=/gsay
/gmlist=/who all gm
/gu=/guildsay
/hp=/echo Current Health: ${Me.CurrentHPs} -- Max Health: ${Me.MaxHPs}
/key=/keys
/load=/loadspells
/m=/msg
/mana=/echo Current Mana: ${Me.CurrentMana} -- Max Mana: ${Me.MaxMana}
/npc=/who npc
/slotid=/echo ${SelectedItem.InvSlot}
/t=/tell
/ta=/tap
/w=/who

[Plugins]
mq2labels=mq2labels
mq2itemdisplay=mq2itemdisplay
mq2custombinds=mq2custombinds
mq2hud=mq2hud
mq2fps=mq2fps
mq2map=mq2map
mq2bzsrch=mq2bzsrch
mq2chatwnd=mq2chatwnd
mq2eqbugfix=mq2eqbugfix
mq2moveutils=mq2moveutils

[Key Binds]
RANGED_Nrm=clear
RANGED_Alt=clear
MQ2CHAT_Nrm=.
MQ2CSCHAT_Nrm=/
UNSTICK_FWD_Nrm=Num_8
UNSTICK_FWD_Alt=Up
UNSTICK_BCK_Nrm=Num_2
UNSTICK_BCK_Alt=Down
UNSTICK_LFT_Nrm=Num_4
UNSTICK_LFT_Alt=Left
UNSTICK_RGT_Nrm=Num_6
UNSTICK_RGT_Alt=Right
UNSTICK_STRAFE_LFT_Nrm=clear
UNSTICK_STRAFE_LFT_Alt=clear
UNSTICK_STRAFE_RGT_Nrm=clear
UNSTICK_STRAFE_RGT_Alt=clear

[SWho Filter]
Holding=1

[Captions]
Update=35
Player1=${If[${NamingSpawn.Mark},${NamingSpawn.Mark} - ,]}${If[${NamingSpawn.Trader},Trader ,]}${If[${NamingSpawn.Invis},(${NamingSpawn.DisplayName}),${NamingSpawn.DisplayName}]}${If[${NamingSpawn.AFK}, AFK,]}${If[${NamingSpawn.Linkdead}, LD,]}${If[${NamingSpawn.LFG}, LFG,]}${If[${NamingSpawn.GroupLeader}, LDR,]}
Player2=${If[${NamingSpawn.Mark},${NamingSpawn.Mark} - ,]}${If[${NamingSpawn.Trader},Trader ,]}${If[${NamingSpawn.Invis},(${NamingSpawn.DisplayName}),${NamingSpawn.DisplayName}]}${If[${NamingSpawn.Surname.Length}, ${NamingSpawn.Surname},]}${If[${NamingSpawn.AFK}, AFK,]}${If[${NamingSpawn.Linkdead}, LD,]}${If[${NamingSpawn.LFG}, LFG,]}${If[${NamingSpawn.GroupLeader}, LDR,]}
Player3=${If[${NamingSpawn.Mark},${NamingSpawn.Mark} - ,]}${If[${NamingSpawn.Trader},Trader ,]}${If[${NamingSpawn.Invis},(${NamingSpawn.DisplayName}),${NamingSpawn.DisplayName}]}${If[${NamingSpawn.Surname.Length}, ${NamingSpawn.Surname},]}${If[${NamingSpawn.AFK}, AFK,]}${If[${NamingSpawn.Linkdead}, LD,]}${If[${NamingSpawn.LFG}, LFG,]}${If[${NamingSpawn.GroupLeader}, LDR,]}${If[${NamingSpawn.Guild.Length},\n<${If[${NamingSpawn.GuildStatus.NotEqual[member]},${NamingSpawn.GuildStatus} of ,]}${NamingSpawn.Guild}>,]}
Player4=${If[${NamingSpawn.Mark},${NamingSpawn.Mark} - ,]}${If[${NamingSpawn.Trader},Trader ,]}${If[${NamingSpawn.AARank},${NamingSpawn.AATitle} ,]}${If[${NamingSpawn.Invis},(${NamingSpawn.DisplayName}),${NamingSpawn.DisplayName}]}${If[${NamingSpawn.Surname.Length}, ${NamingSpawn.Surname},]}${If[${NamingSpawn.AFK}, AFK,]}${If[${NamingSpawn.Linkdead}, LD,]}${If[${NamingSpawn.LFG}, LFG,]}${If[${NamingSpawn.GroupLeader}, LDR,]}${If[${NamingSpawn.Guild.Length},\n<${If[${NamingSpawn.GuildStatus.NotEqual[member]},${NamingSpawn.GuildStatus} of ,]}${NamingSpawn.Guild}>,]}
NPC=${If[${NamingSpawn.Mark},${NamingSpawn.Mark} - ,]}${If[${NamingSpawn.Assist},>> ,]}${NamingSpawn.DisplayName}${If[${NamingSpawn.Assist}, - ${NamingSpawn.PctHPs}%<<,]}${If[${NamingSpawn.Surname.Length},\n(${NamingSpawn.Surname}),]}
Corpse=${NamingSpawn.DisplayName}'s corpse
Pet=${If[${NamingSpawn.Mark},${NamingSpawn.Mark} - ,]}${If[${NamingSpawn.Assist},>> ,]}${NamingSpawn.DisplayName}${If[${NamingSpawn.Assist}, - ${NamingSpawn.PctHPs}%<<,]}${If[${NamingSpawn.Master.Type.Equal[PC]},\n(${NamingSpawn.Master}),]}

[Caption Colors]
PC=OFF
PC-Color=ff00ff
PCCon=OFF
PCPVPTeam=OFF
PCRaid=OFF
PCRaid-Color=ff7f
PCClass=OFF
PCGroup=OFF
PCGroup-Color=ffff00
PCTrader=ON
PCTrader-Color=ff7f00
NPC=OFF
NPC-Color=ff0000
NPCCon=ON
NPCClass=OFF
NPCMerchant=ON
NPCMerchant-Color=ff7f00
NPCBanker=ON
NPCBanker-Color=c800ff
NPCAssist=ON
NPCAssist-Color=ffff00
NPCMark=ON
NPCMark-Color=ffff00
PetNPC=OFF
PetNPC-Color=ff0000
PetPC=OFF
PetPC-Color=ffff00
PetClass=OFF
PetClass-Color=ff0000
Corpse=OFF
Corpse-Color=ff0000
CorpseClass=OFF
CorpseClass-Color=ff0000

3djoker
a hill giant
a hill giant
Posts: 167
Joined: Thu Jun 24, 2004 11:19 pm

Post by 3djoker » Mon Jun 28, 2004 7:06 pm

thank you mister peepers. i dont know if it was becuase of the not having macro folder defined or all one line, but that worked.

now to try to figure out why it was parsed like that lol.

once again, thanx a ton guys, it is now working the way it should.

Mister Peepers
a lesser mummy
a lesser mummy
Posts: 46
Joined: Mon Apr 19, 2004 8:10 pm

Post by Mister Peepers » Mon Jun 28, 2004 11:32 pm

Its defently caused by the ini being on one line. If you noticed there is no real defined end of the line unless you hit enter and start a new one. Like in other programs you use things like ";" to show the end of the statement. When the ini reads it looks at whats in the "[]" and then it looks at the next like after that for a name of some type followed by and equal sign. If its all on one line it will phrase it the first line all at once seeing the first part before the equal symbol and then think everything following is what that part is equal to. So it never saw the next line and never go to set the next variable right.

I belive thats how it works and it might be kinda hard to understand I am not the best person to explain sorry.