• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Incorrect Version - How do I compile this macro? And other new questions.

nijhal

Member
Joined
Feb 22, 2006
RedCents
10¢
A lot of the time us members here at the infamous RedGuides see these and many other questions being asked all the time by newer members. So, in an attempt to alievate this problem, I decided to make a post answering these questions.

How do I compile this macro?:

You do not compile a macro. If there is a download link and the macro is zipped. Download the macro and unzip it to your macros directory. When in game type /mac macronamehere or /macro macronamehere.
If it is not zipped and ready to download for you:

Open an instance of notepad. Highlight the code portion of the macro, usually in a box that looks like this...
Rich (BB code):
Sub Main
  :loop
  /macro stuff
  /doevents
  /more macro stuff
/goto :loop
A lot of the time you can put your cursor in the above box and press CTRL+A to highlight all of the macro if it is really big. Sometimes it will highlight the whole web page. If this happens, highlight just whats in the code box, right click on the BLUE highlighted text, choose COPY.

Now goto notepad, click on the empty space and choose PASTE.

Now click on FILE and then SAVE AS...
See the dropdown box that says "Save as Type"?
Change from "Text Documents (*.txt)" to "All Files"
Put the name of the macro in the FILE NAME area with the extension .MAC.
Click Save.
Now, in game type /macro FILENAME
Your macro should work.

How do I know what is a PLUGIN and what is a MACRO??

Plugins will often not have the source code in their post. This is completely upto the author. Plugins will quite often have a downloadable DLL. Macros will NEVER be in DLL format. If the source for a plugin is there you will see things like "bool" in the coded text.

Macros will ALWAYS have a "SUB MAIN" will almost always have a :start, :loop, and a /goto :start or a /goto :loop. There is no need to compile macros. Follow the instructions above.


When I have MQ2 running and I start EQ it says "Incorrect client version".
This happens when there is a patch and a new eqgame.exe is downloaded DO NOT post about "incorrect version". Just watch the Cheats section. You will see posts popping up about offsets and the patch date. Basicly, if there is a patch and a new eqgame.exe is downloaded in the patch, you will NEED to update Macroquest. Be patient, sometimes there are alot of changes and evryone must wait on a new source to be released from macroquest2.com.

To check on the current source, visit this link >>HERE<<

If the date is many months back for the source, that means that they are currently working on a new build. Just be patient.
 
Im new, i read them both. but im just a curious person. ive always been interested in the "how" things work. but this C++ stuff is beyond me (im sure there's a C++ for dummies...). ill try not to get no kitties killed
 
Once you've read through, if you have questions...ask. I will always answer a question that is asked by someone who appears to have genuinely tried to get an answer on their own (ie, the answer isn't easy to find in the MQ2 wiki or on these boards, or not there).
 
thez said:
Once you've read through, if you have questions...ask. I will always answer a question that is asked by someone who appears to have genuinely tried to get an answer on their own (ie, the answer isn't easy to find in the MQ2 wiki or on these boards, or not there).

Quick suggestion when asking for help... do the searches do the leg work and then ask after reading what ya can ......

And I for one will vouch for this Thez has helped me tons even with my stupid questions..... just put all the info you have in a clear post or PM and he will make sense of it ... a statement like "IT don't work" might not get you the response you want but if you say I want to add a GM check line in my something macro and here is what I have using CODE/CODE start and close an answer will come forth..

These guys are great at helping and if feed the right info even on plugins that are not working right you will be surprised at what happenes.
 
Oh yeah, and it *REALLY REALLY REALLY* helps your case on getting help if you are using proper grammar, spelling, spacing, capitalization, etc.
 
When I download a new release my plugins go out of date.. example MQ2Twist no longer works.. Do I need the raw file and just compile it with everything else? Or does the code actually need updating too?
 
Foregotten said:
When I download a new release my plugins go out of date.. example MQ2Twist no longer works.. Do I need the raw file and just compile it with everything else? Or does the code actually need updating too?

There's no easy answer. It depends on what changes SOE made to EQ itself and how those changes affect individual plugins. With the last big release, there were significant changes made to core EQ, and some of these changes had trickle-down impact to plugins (read: some plugins required code updates). Some plugins, due to the nature of the task they perform, rarely need to be updated.

While the source to most plugins is readily available (Red provides them as a separate link in his distribution), understanding all of them from a code maintenance perspective is a big undertaking. As a general rule, I do my own vanilla compile as early as possible to get rudimentary functionality, but as quickly as its available, I replace it with Red's full-featured distribution.
 
I think what he is refering to is he compiles his own MQ2. And the date and time check for plugins are not letting him load older plugins. There is a way to remove this check. I will find it for you. Its in the guides section.
 
Okay the answers to alot of compiling issues can be found in >>THIS<< thread. That thread is where I got the following info on removingthe date/time check for plugins.

Removing the date/time check:

Remove these bits of code from PluginHandler.cpp:

Rich (BB code):
DWORD checkme(char *module)
{
    char *p;
    PIMAGE_DOS_HEADER pd = (PIMAGE_DOS_HEADER)module;
    PIMAGE_FILE_HEADER pf;
    p = module + pd->e_lfanew;
    p += 4;  //skip sig
    pf = (PIMAGE_FILE_HEADER) p;
    return pf->TimeDateStamp;
}

static unsigned int mq2mainstamp = 0;

Rich (BB code):
 if (!mq2mainstamp) {
        mq2mainstamp = checkme((char*)GetModuleHandle("mq2main.dll"));
    }

Rich (BB code):
	return 0;
	}
    if (mq2mainstamp > checkme((char*)hmod)) {
        DebugSpew("Please recompile %s %d %d", FullFilename, mq2mainstamp, checkme((char*)hmod));
        FreeLibrary(hmod);

I assume no credit for this as it was all Cade's post. But if that is what you were talking about, that should fix it. As well as NoAuth compile and other listed in that thread.
 
Yup.. Didn't expect this fast of a response. Thanks all. And I do my own compiles. Since I am a new subscriber there is a lot I don't know. I was always given the updates for MQ2Twist.. So I wasn't sure if they were updating the code as needed or if it was just the timestamp...

Also One other question... I got MQ2BardSwap given to me from here. But the ini is blank. Anyone have the code for switching offhand / mainhand with instruments? I had it once before I had to reinstall windows.

Thanks for the time..
 
A Brand new question. About the same thing... Almost..

Also from reading that code you posted couldn't I just edit one and keep a copy and replace the other ones with that edited one you think? Or is that one of those things I would have to edit every release?


<<< insert motivational quote here >>>
 
I keep a Redguides codeset separate from the MQ2 Codeset, then usually transfer in the header files, then run compares to see if anything else major has changed in the sources. Beyond Compare does a great job of listing changes, and showing you differences in Directory structures and such, then letting you drill down into the files to see the differences, then copy the differences if you want to merge them into your codebase. I mainly play around with it, then use the compile from here with a few plugins I have added from gathering them up. If it is a very extensive change, sometimes i will just dump the new source on top of mine to give me a fresh start. It all depends on what you want to accomplish, and how much time you have to play with it.
 
incoming 20 million morons posting, "ok, it saved a file called mysupermacro.mac.txt" because they're using xp home edition, don't have file extensions shown to them, and are running into 100 other foolproof "safe guards" MS is protecting them with.
 
Bardswap for a non-coding dummy..

I was wondering. When i ran MQ2BardSwap it made by default an ini we are supposed to edit where you add in the code for switching the weapons in off hand and main hand with instruments. By any chance does anyone have that code? It should look something like:

Brass Mainhand <weapon name> offhand <weapon name>

and some other stuff listing each weapon.. Not sure exactly. It's been a while since I had to reboot and lost it. Any help would be appreciated.

[email protected]
 
Last edited:
If you read the entire thread where you got Redquest, it gives all the plugin commands and what to do. Do some searching my friend, you will usually find what your looking for, then if you dont, then ask.

And, I didnt get sick of anything, just woke up lol.

As for your question, I dont have a bard so never used that plugin. I think maybe once, but found out the ini configuration here on Redguides via search.
 
I wasn't hoping for someone to retype everything just to toss a link to me. I am new to the threads and havedn't had much time to explore yet. But I'll get there.
 
Foregotten said:
I wasn't hoping for someone to retype everything just to toss a link to me. I am new to the threads and havedn't had much time to explore yet. But I'll get there.

I am going to tell you right now and this is as a helper and friend, I am not trying to be rude, so keep that in mind.

What you just said there makes you look incredibly lazy. And if that wasent your intent, you should really watch how you say things. To say that you want us to just give you a link, when I already told you where you can find it makes you look lazy.

Also, alot of members if they see that the same way I did, would choose not to help you simply because, if your not willing to help your self, why should we help you?

And its not wrong for them to feel that way. We are all here to help eachother, but you have to do a little research and searching on your own for the answers you seek, then if you still have a question, then ask.

Welcome to Redguides, I am here to help, but only if you help yourself first. I cannot and will not hold your hand all the way through everything.

Again, this is not a flame, I am merely letting you know how your post will be perceived by others.
 
It wasn't that at all. I was having a hard time trying to find something that worked. Here is what I do have:

[Settings]
Drum=/exchange "Trueborn Drum of Dark Rites" offhand
Lute=/exchange "Aged Muramite Lute" offhand
Wind=/exchange "Bloodstained Flute" offhand
Horn=/exchange "Drachnid Soother" mainhand
Singing=/exchange "Singing Short Sword" mainhand
Weapons=/exchange "Silk Handled Hammer" mainhand : "Fabled Exquisite Vleium Warswword" offhand
Delay=21

I have tried changing some things in that but it keeps telling me that it can't find the items in my inventory. I have more then triple checked the spelling and making sure the stuff is there. I am thinking my coding is wrong. I have changed the delay. Or maybe my seperator is wrong. I tried using : and ; and I tried adding it to the other instruments as well as adding both weapon slots and even moving the mainhand in front of offhand. Nothing I do seems to work.. It's why I was hoping you would have a link. Not that I am lazy. But that i have tried everything and looked everywhere and can't seem to find an answer. I am very sorry if you misunderstood me. I was in a hurry and didn't have time to write in more detail.. Oh and I do have all the necessary plugins loaded. BardSwap... Twist.. Exchange...
 
Incorrect Version - How do I compile this macro? And other new questions.

Users who are viewing this thread

Back
Top
Cart