Page 1 of 1

Macros wont open for some reason.

Posted: Fri May 28, 2004 6:53 pm
by stigmata
I keep getting the following error when i try to open up the macros that came with mq2 after i installed it, 'Cannot find the file C:\Program Files\Macroquest\Release\Macros\Arrows.mac.' {or one of its components}. Make sure the path and filename are correct and that all required libraries are available. Also when i click anywhere in that folder and try to create a new macroquest macro i get , "Problem creating object. The system cannot find the file specified."
I tried searching through the forums to find someone who had this same problem to avoid reposting something that was allready addressed, but I didnt see anyone with this problem. Any help would be greatly appreciated. Thanks guys. :)

Posted: Fri May 28, 2004 7:03 pm
by Turmoil Toad
Are you double-clicking the arrows.mac file in explorer or something? This really doesn't sound like a MQ2 issue.

You should be able to create a new macro using any simple text editor (Notepad, for instance) and saving said macro as a .mac file (IE, switch the .txt drop down to All Files and manually type in MyMacroName.mac in the file name field). You should also be able to edit any macro file with a simple text editor (right-click, open with...).

Spend some time going through the readme!

Posted: Fri May 28, 2004 7:07 pm
by Scarf
are your macros in the correct folder?

Posted: Fri May 28, 2004 7:37 pm
by stigmata
C:\Program Files\MacroQuest\Release\Macros is where im putting them. Also I am saving them as all files with the drop down menu and they still dont work in eq. It just says the name of the macro i am trying to run in red on the mq chatbar.

Posted: Fri May 28, 2004 8:35 pm
by once
C:\Program Files\MacroQuest\Release\Macros is where im putting them. Also I am saving them as all files with the drop down menu and they still dont work in eq. It just says the name of the macro i am trying to run in red on the mq chatbar.
There's your problem. Saving a macro as "all files" from dropdown menu is wrong. You should be saving them as "Arrows.mac" or "Tradeskill.mac" etc etc. Red name in MQ chat box simply means...macro doesn't exist. To run it use /mac arrows.

Posted: Fri May 28, 2004 9:21 pm
by stigmata
Also tried saving them as .mac and they still arent working in eq for me.

Posted: Fri May 28, 2004 10:24 pm
by dont_know_at_all
Delete, redownload, rebuild.

Posted: Tue Jun 01, 2004 12:11 am
by stigmata
I deleted, i redownloaded, and i rebuilt it. Mq2 works in eq but when I try to run a macro it just says the name of the macro in red. I named the following macro stick.mac and tried to run it and when i run it in eq it just says "stick.mac" in red text and it doesnt do anything. Why wont any macros work for me? All the features of mq2 work, but the macros wont run.

| Stick.mac
#include spellcast.inc
#Event rageon "#*#has become ENRAGED#*#"
#Event rageoff "#*#is no longer enraged#*#"
#Event stunned "#*#while stunned#*#"
#Event STOP "#*#Stop A#*#"
sub main

/echo STICK MAC STARTED
/declare mytimer timer outer 0
/varset mytimer 4s

:Loop
/if (${Target.Distance}>15) /keypress forward hold
/if (${Target.Distance}<10) /keypress forward
/face fast
/doevents
/varset mytimer 80s
}
/if (${Me.AbilityReady[bash]} && ${Target.Distance}<15) /doability "bash"
/if (${Me.AbilityReady[Disarm]} && ${Target.Distance}<15) /doability "Disarm"
/if (${Me.AbilityReady[begging]} && ${Target.Distance}<15) {
/attack off
/face fast
/delay 1
/doability "begging"
/attack on
}
/if (${Target.ID}) /goto :loop
/keypress back
/attack off
/end
/return

sub event_rageon
/if (${Target.CurrentHPs}>10) /return
/popup ENRAGED ATTACK OFF
/attack off
/return

sub event_rageoff
/if (${Target.CurrentHPs}>10) /return
/popup Rage OFF, ATTACKING NOW
/attack on
/return

sub event_stunned
/popup STUNNED STUNNED STUNNED
/return

sub event_Stop
/popup Stop ATTACKING
/attack off
/end

Posted: Tue Jun 01, 2004 12:25 am
by eqjoe
Your macro is running.. then ending. Look at your macro again friend.


-j

Posted: Tue Jun 01, 2004 2:07 am
by Fuergrissa
ok first off save this macro as t.mac please, then run it in MQ2 by typing /mac t.mac. (I know we dont need the .mac but lets make sure its not a PEBKAS error)

Code: Select all

Sub Main
  :loop
  /echo this macro is working fine
  /delay 3s
  /goto :loop
if in your MQ window you see the text "this macro is working fine" then all is well, if not please post your error text here as a reply. if you get the cant find macro error text please go to the directory where the mac is saved and goto TOOLS:FOLDER OPTIONS:VIEW and make sure "Hide extensions for known file types" is NOT ticked. ( if your using WinXP )

Posted: Tue Jun 01, 2004 5:48 am
by dman
I keep getting the following error when i try to open up the macros that came with mq2 after i installed it, 'Cannot find the file C:\Program Files\Macroquest\Release\Macros\Arrows.mac.' {or one of its components}. Make sure the path and filename are correct and that all required libraries are available.
I get this error every once in a while when clicking on my macroes to edit them, its caused by macroquest hyjacking the *.mac file association and setting the path to notepad as "/%systemroot32%/system/notepad.exe %1 " or something close, as far as I can tell %systemroot32% doesn't resolve in at least WinMe, as thats the OS on the affected PC. Easy fix is to just go change the file association and fix it. :)
...Now to figure out what causes macroquest to just randomly decide it needs to set that association even with it set already.

Posted: Tue Jun 01, 2004 10:51 am
by eqjoe
Macroquest hijacking the what?

TextPad has the .mac association on my system.... donno what the heck your talking about.


-j

Posted: Tue Jun 01, 2004 12:56 pm
by dman
A while ago, they added it into Macroquest that if it doesn't find a default file association it will create one to notepad, unfortunately, the default file association it creates doesn't seem to work on one of my pc's and causes that windows error. As to hijacking it, for some reason it doesn't see the .mac extention has a default already and will just randomly create a new default association for the file type when it seems to want to.

Posted: Tue Jun 01, 2004 3:24 pm
by Drumstix42
Have you tried right-clicking one -> Open with...

Check off notepad or w/e your text editor is. And at the bottom check "always open with this program" or similar to that ?

Posted: Tue Jun 01, 2004 4:33 pm
by stigmata
Thanks guys. All my problems were because the "hide file extensions" box was checked and it kept saving my macros as .mac.txt as the file extension and it stopped them from working from inside eq. I really appreciate all your help. Thanks again for taking the time to help me out. :)