.CPP (source) files for MQ2 plugins

Third party software discussion goes here.
Stickybuds
Posts: 883

.CPP (source) files for MQ2 plugins

Post#1 » Tue Oct 11, 2016 8:57 pm

Where can i find the source files for MQ2 plugins? The one I am looking for right now is a current version of MQ2NETBOTS.CPP

I found a few on people's githubs but they are several years old and I while I can get them to compile after correcting some stuff they are so old they are missing some of the newer features.

It looks like you can get them from MQ2 VIP forums but id rather not have to pay for it if it's out there for free already.
Image

User avatar
moguay
Posts: 170

Re: .CPP (source) files for MQ2 plugins

Post#2 » Tue Oct 11, 2016 10:25 pm

The first problem is the server does not support the latest release of EQ.
So you can only work with an older version of mq2 compliant UT, ditto for plugins.

below the EqMule master dev explanation on this subject:
I have added all the exclusions needed to build a perfect rof2 build.
I don't want to go further back than that, because well as you said it will punch to many holes in mq

The mq2netbots 1.23 work perfectly with the mq2 UT source.

Stickybuds
Posts: 883

Re: .CPP (source) files for MQ2 plugins

Post#3 » Tue Oct 11, 2016 10:45 pm

i have a copy of ver 1.23 but it doesn't have the value "Attacking" to use in the below example

Code: Select all

/if (!${NetBots[Mary].Attacking}) {


The mq2netbots.dll that I got from the mqemulator.net download does contain this Attacking value as it is what I'm currently using on THF and works when using referencing the "Attacking" value.

I have a copy of Visual Studio I got from work so I have been messing around with compiling MQ2 myself and messing with plugins. Just for fun and learning.
Image

Stickybuds
Posts: 883

Re: .CPP (source) files for MQ2 plugins

Post#4 » Tue Oct 11, 2016 11:01 pm

Well, it looks like maybe 1.23 does have attacking after-all, it just isn't documented at the top. i'll try to compile this when i get home! thanks!
Image

User avatar
moguay
Posts: 170

Re: .CPP (source) files for MQ2 plugins

Post#5 » Tue Oct 11, 2016 11:06 pm

I have make a quick test and with my custom based on this version work. While I do not use this TLO through eqbcs, and use only ${Me.Combat} locally.
Can be can i find a workaround !

I noticed other worries about {Netbots[].Class} after-relog from the character select.
Attachments
NetbotsAttacking.png
NetbotsAttacking.png (20.8 KiB) Viewed 2032 times

Stickybuds
Posts: 883

Re: .CPP (source) files for MQ2 plugins

Post#6 » Wed Oct 12, 2016 1:38 am

well, its working sorta.

If i do it locally

/echo ${NetBots[Mary].Attacking}

in the MQ2 window i get TRUE or FALSE

but if i do it on another character it just returns NULL.

I do have /netbots on, grab on, send on
Image

Stickybuds
Posts: 883

Re: .CPP (source) files for MQ2 plugins

Post#7 » Wed Oct 12, 2016 1:51 am

Hmm, i seem to found the issue but I'm not sure how to fix it.

/echo ${NetBots.Counts}

returns 1

meaning its not picking up the other clients. Never had that issue before.
Image

User avatar
moguay
Posts: 170

Re: .CPP (source) files for MQ2 plugins

Post#8 » Wed Oct 12, 2016 7:54 am

In fact you have communication problems with eqbcs or plugin not initialised on all toons.

You need to have on EQBCS the client connection: fd ID and Name has joind the server.
tips, use the eqbcs.cpp v 1.2.i2 (20070116) in this version they are a patch to prevent data link freeze.

trying with my init script or adapts, its the best way to configure i think. viewtopic.php?f=204&t=13420&p=79400#p79400
add this script in the MQ2EmuAutoMacro.ini
manally if eqbcs work good :

Code: Select all

/noparse /bcaa //if (!${Plugin[MQ2NetBots].Name.Equal[MQ2NetBots]}) /plugin MQ2NetBots
/bcaa //netbot on grab=on send=on

send a simple echo in eqbs to check each return :

Code: Select all

/bcaa //bct ${Me.CleanName} receive and send OK (NetBots:${NetBots}, List(${NetBots.Counts}): ${NetBots.Client})
Attachments
EqbcsReturn.png
EqbcsReturn.png (9.42 KiB) Viewed 2023 times
EqbcsNetBotsChecker.png
EqbcsNetBotsChecker.png (21.2 KiB) Viewed 2023 times

Stickybuds
Posts: 883

Re: .CPP (source) files for MQ2 plugins

Post#9 » Wed Oct 12, 2016 12:46 pm

I have the EQBC plugin and it is working correctly as i can send /bct commands without any issues. I'll mess around with it later today when i get back home from work.
Image

Stickybuds
Posts: 883

Re: .CPP (source) files for MQ2 plugins

Post#10 » Wed Oct 12, 2016 2:15 pm

I remember having to delete some stuff out of the netbots source code to get it to compile without errors so I went back and downloaded it fresh and tried to compile again. One of the errors is dealing with a chunk of code dealing with connecting to EQBC and I don't understand what the error even means. At this point I think I'm in over my head.
Image

Return to “Third party software”

Who is online

Users browsing this forum: No registered users and 2 guests