Need help with a macro you are writing? Ask here!
Moderator: MacroQuest Developers
-
stigmata
- orc pawn

- Posts: 13
- Joined: Fri May 28, 2004 6:46 pm
Post
by stigmata » Fri May 28, 2004 6:53 pm
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. :)
-
Turmoil Toad
- orc pawn

- Posts: 15
- Joined: Thu Jan 09, 2003 10:23 pm
Post
by Turmoil Toad » Fri May 28, 2004 7:03 pm
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!
-
Scarf
- decaying skeleton

- Posts: 5
- Joined: Fri May 28, 2004 5:12 pm
Post
by Scarf » Fri May 28, 2004 7:07 pm
are your macros in the correct folder?
-
stigmata
- orc pawn

- Posts: 13
- Joined: Fri May 28, 2004 6:46 pm
Post
by stigmata » Fri May 28, 2004 7:37 pm
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.
-
once
- decaying skeleton

- Posts: 9
- Joined: Mon May 17, 2004 8:26 pm
Post
by once » Fri May 28, 2004 8:35 pm
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.
-
stigmata
- orc pawn

- Posts: 13
- Joined: Fri May 28, 2004 6:46 pm
Post
by stigmata » Fri May 28, 2004 9:21 pm
Also tried saving them as .mac and they still arent working in eq for me.
-
stigmata
- orc pawn

- Posts: 13
- Joined: Fri May 28, 2004 6:46 pm
Post
by stigmata » Tue Jun 01, 2004 12:11 am
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
-
eqjoe
- a grimling bloodguard

- Posts: 984
- Joined: Sat Sep 28, 2002 12:26 pm
Post
by eqjoe » Tue Jun 01, 2004 12:25 am
Your macro is running.. then ending. Look at your macro again friend.
-j
-
Fuergrissa
- a grimling bloodguard

- Posts: 607
- Joined: Mon Dec 08, 2003 3:46 pm
- Location: UK
Post
by Fuergrissa » Tue Jun 01, 2004 2:07 am
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 )
[quote]"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."[/quote]
-
dman
- a hill giant

- Posts: 181
- Joined: Fri Dec 05, 2003 12:54 pm
Post
by dman » Tue Jun 01, 2004 5:48 am
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.
-
eqjoe
- a grimling bloodguard

- Posts: 984
- Joined: Sat Sep 28, 2002 12:26 pm
Post
by eqjoe » Tue Jun 01, 2004 10:51 am
Macroquest hijacking the what?
TextPad has the .mac association on my system.... donno what the heck your talking about.
-j
-
dman
- a hill giant

- Posts: 181
- Joined: Fri Dec 05, 2003 12:54 pm
Post
by dman » Tue Jun 01, 2004 12:56 pm
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.
-
Drumstix42
- a grimling bloodguard

- Posts: 808
- Joined: Mon May 03, 2004 4:25 pm
Post
by Drumstix42 » Tue Jun 01, 2004 3:24 pm
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 ?
-
stigmata
- orc pawn

- Posts: 13
- Joined: Fri May 28, 2004 6:46 pm
Post
by stigmata » Tue Jun 01, 2004 4:33 pm
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. :)