Unable to detect macro

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

shadowgloww
Noob
Noob
Posts: 4
Joined: 19 Apr 2014, 04:57
Noob?: Yes

Unable to detect macro

#1 Post by shadowgloww »

Hi everyone,

First and foremost i do apologize if the format to post here is wrong, I know this could be a noob question for some , let me js share my macro concern.

I have been doing my macro work and yes it's my first time doing macro.


i followed exactly like in the guide to download and put those folders properly.


E:\Program Files (x86)\openkore_ready\openkore_ready\plugins\macro

in that folder contains the macro.pl file and Macro folders with script.pm, utilities.pm in it

E:\Program Files (x86)\openkore_ready\openkore_ready\plugins\macro\Macro

Next i have the macro.txt file in the control folders along with other config.txt here like;

E:\Program Files (x86)\openkore_ready\openkore_ready\control



In my config.txt file, i have entered this.

Code: Select all

macro_nowarn 1
macro_file macros.txt
macro_allowDebug 0
macro_orphans terminate
In my macro.txt , i had these codes here.

Code: Select all

#find master
automacro findMaster {
   timeout 3
   console /^I lost my master/
   call {
   $master = @config (followTarget)
   do pm "$master" x $.map $.pos
   }
}
automacro findMaster2 {
   timeout 3
   console /^Calculating route to find master/
   call {
   $master = @config (followTarget)
   do pm "$master" x $.map $.pos
   }
}
#goto master
automacro gotoMaster {
   pm /x (.*) (.*) (.*)/
   call {
   $pm = $.lastpm
   if ($pm != $master) stop
   do move $.lastMatch1 $.lastMatch2 $.lastMatch3
   }
}
#when master is found
automacro foundMaster {
   console /^Found my master!/
   call {
   do pm "$master" clear
   }
}
Then when i run openkore, i type the command in that console , macro findMaster

msg displayed "macro findMaster not found or error in queue

i typed macro list in the console,

it displayed
---macros---
--automacros--
--PearlSub--
I have no idea what went wrong as i dont even get any error code..and i have been searching through the forum for hours to no avail...

I appreciate the reply and positive response to solve this issue.
User avatar
4epT
Developers
Developers
Posts: 627
Joined: 30 Apr 2008, 14:17
Noob?: No
Discord: ya4ept#8494
Location: Moskow (Russia)

Re: Unable to detect macro

#2 Post by 4epT »

command "macro findMaster" - not correct.
You do not have macros!

You have automacros. They can not run a on command, they are executed automatically.
Сommand "macro list" should show:
----------macros---------
--------automacros-------
foundMaster
findMaster2
findMaster
gotoMaster
---------Perl Sub--------
-------------------------
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image
shadowgloww
Noob
Noob
Posts: 4
Joined: 19 Apr 2014, 04:57
Noob?: Yes

Re: Unable to detect macro

#3 Post by shadowgloww »

How should i fix it then?


appreciate the assistance..

regards,
User avatar
4epT
Developers
Developers
Posts: 627
Joined: 30 Apr 2008, 14:17
Noob?: No
Discord: ya4ept#8494
Location: Moskow (Russia)

Re: Unable to detect macro

#4 Post by 4epT »

rename your file to "macros.txt"
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image
shadowgloww
Noob
Noob
Posts: 4
Joined: 19 Apr 2014, 04:57
Noob?: Yes

Re: Unable to detect macro

#5 Post by shadowgloww »

ok i did that, so now in the control folder;

config.txt
macros.txt

but still can't detect marcos..
User avatar
4epT
Developers
Developers
Posts: 627
Joined: 30 Apr 2008, 14:17
Noob?: No
Discord: ya4ept#8494
Location: Moskow (Russia)

Re: Unable to detect macro

#6 Post by 4epT »

maybe you need correct to install the macro plugin?
All my posts are made by machine translator!
¤ Manual ¤ Anti BotKiller ¤ Packet Extractor v3 ¤
Image
Image
shadowgloww
Noob
Noob
Posts: 4
Joined: 19 Apr 2014, 04:57
Noob?: Yes

Re: Unable to detect macro

#7 Post by shadowgloww »

hmm alright, correct me if im wrong, from what i understood from the macro tutorisl.. to keep the macro files


openkore/plugins/

i only have 1 plugin which is macro
so only 1 folder here

inside macro which is openkore/plugin/macro

I have 2 things here
First is the macro pl file
Second is another folder which is title as Macro

now in openkore/plugin/macro/Macro

i have 5 items here which is the automacro pm, data.pm e.t.c

or is something wrong here?

in command console when i type plugins, it does show macro....
forgotpzwrd
Noob
Noob
Posts: 16
Joined: 07 May 2014, 12:57
Noob?: Yes

Re: Unable to detect macro

#8 Post by forgotpzwrd »

im Upping this because i hit the same problem just now. Searched. ReDownload. Tweaked my set up time and time again. And my program doesn't/ couldn't read the macros i put in there. when i type macro list in the console, it just shows up as blank. :?: :?:
User avatar
SkylorD
Moderators
Moderators
Posts: 1197
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil

Re: Unable to detect macro

#9 Post by SkylorD »

forgotpzwrd wrote:im Upping this because i hit the same problem just now. Searched. ReDownload. Tweaked my set up time and time again. And my program doesn't/ couldn't read the macros i put in there. when i type macro list in the console, it just shows up as blank. :?: :?:
Could be 2 problems :

Plugin installed improperly.
macros.txt is not saved in UTF-8 Format or this file doesn't exists. Check if the name of file is "macros.txt" and not "macro.txt"

macros.txt should be inside of your control folder.
and the macro plugin on your plugins folder.

You only need to do this.
Learn rules
forgotpzwrd
Noob
Noob
Posts: 16
Joined: 07 May 2014, 12:57
Noob?: Yes

Re: Unable to detect macro

#10 Post by forgotpzwrd »

macros.txt is not saved in UTF-8 Format
idk what this means. or how to check it if its in that format. i just copy macros all over the internet, idk anything about coding and all that.

Idk what to tell you man, my macros.txt is same as it is. spelling and all and it is in notepad form.

Macros.txt is inside my folder, yes. so as the plugins. i did however made multiple macros.txt in my different bot folders, which i read somewhere to do so.

what about the OP's latest post. we did the same thing with the folders and such but nobody has confirmed if we are doing it right.