subroutine not found

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

Diamondmine
a lesser mummy
a lesser mummy
Posts: 73
Joined: Mon Aug 23, 2004 3:14 pm

subroutine not found

Post by Diamondmine » Mon Aug 23, 2004 3:29 pm

I am new to macro quest and I have coppied a couple of macros from the depot and I cannot get them to work. I have read the manual and reread other problems and I cannot seem to find information on "subroutine main not found" errors. I copy the macro, into wordpad. Then I save as, macro named listed inside the macro. ie acorns.mac and then when I try and make it work I get
Subroutine Main not found.
would appreciate any help if possible.

Diamondmine

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Mon Aug 23, 2004 3:42 pm

I would suggest posting or linking to the macro you are using.

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Mon Aug 23, 2004 4:00 pm

/boggle

Questions about specific macro's should be put in the thread you found the macro in. If you have a general problem, and this just might fit that, then posting here would be appropriate.

Now, I really have to wonder, when you saved your macros after cut and paste, 1 did you change save as type, and 2 did you save them to the correct place for macros to work?
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!

Diamondmine
a lesser mummy
a lesser mummy
Posts: 73
Joined: Mon Aug 23, 2004 3:14 pm

Post by Diamondmine » Mon Aug 23, 2004 5:15 pm

http://macroquest2.com/phpBB2/viewtopic.php?t=7567

the afk cleric mac is one that I tried to save and did not work, It must be my fault for being retarded enough to try and figure this out with NO knowledge at all about writing any type of program. I thought that I would post here and see if there was some help.

1 when I save the macro I hit save as and then renamed the file Afkcleric.mac - when I did this the macro showed up as the exact same file type and icon as the other macros, in the macroquest2 folder that was given to me by a friend that compiled it for me. so the probem is I dont know how to copy and paste a macro and then make it work.

If there is someone out there that can show me where I get the information that I need to copy and paste and work the macros myself great! I would really appreciate that.

On the other hand if you just are looking to flame someone and you inturn end up flaming me please atleast make it a flame that will send me home crying, because I have seen some flames at people here on this website that 5 year old children could outflame. Their flames usally start with bone and end with head.!


sincerly yours,

Fucktard_4471

User avatar
Night Hawk
a grimling bloodguard
a grimling bloodguard
Posts: 590
Joined: Fri Aug 13, 2004 4:56 pm

Post by Night Hawk » Mon Aug 23, 2004 5:17 pm

A haha. Someone who acctually had people trying to help them and turns around to be a bigger ass.

Mimatas
a hill giant
a hill giant
Posts: 262
Joined: Wed Mar 10, 2004 4:22 pm

Post by Mimatas » Mon Aug 23, 2004 5:58 pm

If there is someone out there that can show me where I get the information that I need to copy and paste and work the macros myself great! I would really appreciate that.
wow. Holy crap. Are you actually serious, or is this a joke?
On the other hand if you just are looking to flame someone and you inturn end up flaming me please atleast make it a flame that will send me home crying, because I have seen some flames at people here on this website that 5 year old children could outflame. Their flames usally start with bone and end with head.!
Anyone who's read a lot of my posts on this board should be able to tell you that I try to be a fairly helpful person. If I can help someone, I will... My answer may be less than cordial if it's a retarded question... but the solution (or at least pointers, if that's all my ability allows) will be in there.

When I read the first 2 paragraphs of this post, I had the full intention of helping you. This final paragraph, however, has made me severly dislike you. Don't come looking for help and talking shit at the same time. It's a bad combo. Good luck figuring out the solution on your own.

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Mon Aug 23, 2004 6:43 pm

aChallenged1 wrote:Now, I really have to wonder, when you saved your macros after cut and paste, 1 did you change save as type, and 2 did you save them to the correct place for macros to work?
It's really messed up since I pretty much answered the question within my questions. Simple reading comprehension is all that is needed.
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!

Diamondmine
a lesser mummy
a lesser mummy
Posts: 73
Joined: Mon Aug 23, 2004 3:14 pm

Post by Diamondmine » Mon Aug 23, 2004 8:47 pm

Well now that I do reread my post I can understand where you see myself coming off as an ass. Truth be told I am an ass. My appoligy for offending those that I did.

I suppose I could just change my username make a new account with different email and be done with it. But I would rather try and make it right with you Mimates.

I havent had much of a chance to "play" around with certain things, mostly I use for a spawn tracker so I can see whats up in particular zones and then I go and kill if "loot" mobs are up. I understand that this program is more than just that and I would like to take advantage of the particular features in it that are generally helpful.

I play 4 characters at any given time and one of them is a cleric. I time my ch's very well and infact I dont need an afkcleric.mac with the shaman I load the dots and keep everything else up, but I do not maximize direct damage.

my problem is like my proofreading, right there infront of me I just do not know enough sense to fix it.


when I cut and pasted the information I added it to a "word document" then I saved the file as (file name) Afkcleric.mac.

When I get into the game I add the text

/mac afkcleric

after doing this, It tells me that the macro has ended in white text and then in red text I get the error *subroutine not found*


I am more than likely an idiot for even poisting here again, but its best to try and make amends than hide under another username a couple days down the road.

sorry,

Diamondmine

Mimatas
a hill giant
a hill giant
Posts: 262
Joined: Wed Mar 10, 2004 4:22 pm

Post by Mimatas » Mon Aug 23, 2004 8:55 pm

:) apology accepted.

Try this:
1. open notepad (not word).
2. Make a new document.
3. Copy/paste the macro into the notepad document.
4. choose save as
5. type the name of the macro (afkcleric.mac, in your case)
6. make sure 'save as type' says "all file types" instead of 'text documents'
7. click save

That's most of it. You may want to use notepad's replace function to make sure all of the > 's are replaced by > and the < 's are replaced by < (sometimes happens when code gets posted on the boards). Then get into game and type /macro <macro name> <args_if_any>

viola. Good luck

Goofmester1
a hill giant
a hill giant
Posts: 241
Joined: Thu Nov 06, 2003 4:26 am

Post by Goofmester1 » Mon Aug 23, 2004 8:56 pm

Well we all had our knocks starting out. I say go RTFM and when in doubt about what is going on RTFM. I will even help you get started but request in the futhur you RTFM, search the forums, think about your problem, reread the FULL Thread on the macro you copied TWICE then if you are still stuck ask nicely and accept the knocks with a smile.

Your problem on this one is #include spell_routines.inc this line in the macro adds a subroutine to the macro basically. Trust me it does so much more but that is why it pertains to your problem.

So to show you why you read the entire thread for the macro TWICE before you ask for help here is the exact line from the macro thread you linked.
Note: this uses spell_routines.inc from the snippets forum. (Nice one rusty~)
This is the Second line in the thread .. in the description before the actual macro is posted.

User avatar
Night Hawk
a grimling bloodguard
a grimling bloodguard
Posts: 590
Joined: Fri Aug 13, 2004 4:56 pm

Post by Night Hawk » Mon Aug 23, 2004 8:57 pm

Alternately you can copy a macro that comes in the directory with the zip, chance the name, and then put the macro you want in it, replacing the code of the copied file.

AndyZaft
orc pawn
orc pawn
Posts: 20
Joined: Thu Jun 24, 2004 1:42 pm

Post by AndyZaft » Wed Aug 25, 2004 1:47 pm

I always cry when I see people who claim they can use a computer but they don't take the 5 minutes to understand files and folders and how a tree structure works. Or don't know what copy&paste is, or how it works. But they can install kazaa and hotbar , thus download a dozen spyware if you leave them alone for 5 minutes.

eqjoe
a grimling bloodguard
a grimling bloodguard
Posts: 984
Joined: Sat Sep 28, 2002 12:26 pm

Post by eqjoe » Wed Aug 25, 2004 1:58 pm

Too bad reading is not a prerequisite to posting in these forums. Its obvious that half these noob retards would never get past the reading requirement.

-j

Diamondmine
a lesser mummy
a lesser mummy
Posts: 73
Joined: Mon Aug 23, 2004 3:14 pm

Post by Diamondmine » Thu Aug 26, 2004 1:31 pm

ohh, slain by a snow griffin.

Well still having the same problem, deleted Macroquest, and unzipped again, copied and pasted a new file and then put into the macroquest folder. I have a new errorr, cannot find c:/various directories/desktop/mq2/mq2/macros/macroname

that might now be the right path, but its something similiar, im at work and dont have access to it. but if its not in the right directory, and macroquest still loads. Is this just because I have a shortcut and thats going to work no matter where mq2 files are located?

Diamondmine

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Thu Aug 26, 2004 1:56 pm

By any chance do you also have spell_routines.inc from the Snippets forum in your macro directory? If not; there's your problem. The AFCleric post tells you that you need it, and one of the beginning lines of the macro is #include spell_routines.inc
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]