MQ2Data GenBot, 99% Complete

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Sun Apr 18, 2004 6:51 pm

I'm getting all sorts of errors when I start the macro, and it hasa somethinG to do with the ini file.

Could someone post an ini file that works with this? I want to see what is going on here.

theafkxper
a hill giant
a hill giant
Posts: 207
Joined: Sun Sep 08, 2002 6:41 pm

Post by theafkxper » Sun Apr 18, 2004 11:49 pm

got MQ2Data active Wassup?

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Sun Apr 18, 2004 11:56 pm

Yes, which is why I was asking for an ini that someone has if they have this version of genbot working.

Diggler
> Oid
Posts: 120
Joined: Thu Oct 09, 2003 3:28 pm
Location: Lexington, KY

Post by Diggler » Mon Apr 19, 2004 1:11 pm

UPDATE: Changed all /sendkey and /press to /keypress. Made some more cleanups in the code. Added support for auto-frenzy for berserkers same way as backstab/fk/etc.

TRex
decaying skeleton
decaying skeleton
Posts: 5
Joined: Mon Apr 19, 2004 6:14 am

Post by TRex » Mon Apr 19, 2004 3:32 pm

After this last update 04-19-04, I crash to desktop when attack command is given.

Diggler
> Oid
Posts: 120
Joined: Thu Oct 09, 2003 3:28 pm
Location: Lexington, KY

Post by Diggler » Mon Apr 19, 2004 7:32 pm

UPDATE #2 -- 4/19/04: Changed last $parms that I knew of to ${} data types for Phase 2. Please assist and report any problems with the macro here so I can investigate them.

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Mon Apr 19, 2004 9:01 pm

Still looking for an ini file... someone post one that works for them please. Need to do some comparing against what I get generated/use.

Waxxedazz
a lesser mummy
a lesser mummy
Posts: 47
Joined: Sat May 31, 2003 7:09 pm

ummmmm...

Post by Waxxedazz » Mon Apr 19, 2004 10:02 pm

ok so I got drunk last night and decided to get the new code for genbot... Im not sure If i messed up or if its still broken. I get an error saying advpath.inc is missing but I never needed it b4. any help would be nice thx.

edit : I also tried to get the advpath.inc from the snippets but it didnt work for me. gives me another error. maybe i got a wrong advpath.inc file?
The error I get with the advpath.inc from the snippets is :

Code: Select all

Ending macro: Failed to parse /newif condition
'$(Ini[genbot_$(Me.Name).ini,core,rangemin]}==0',non-numeric encountered
botcore.inc@143 (setupcorevars): /newif @rangemin==0 {genbot.mac@36 (main):: /call setupcorevars
I get a diff error with my other computer.

Fixed first error was my bad. New error is
Ending macro: failed to parse /newif condition 'UNDEFINED-GLOBAL_v==0', non-numeric encounterd
personal.inc@255 (setuppersonalvars): /newif @advpath_v==o {genbot.mac@44 (main): /call setuppersonalvars
Ill redo all my files just to make sure its not that. Thx for the help btw.
I got it working thx for your time.
/em puts the booze away, as u wuz soldier!!!
Last edited by Waxxedazz on Mon Apr 19, 2004 11:36 pm, edited 3 times in total.

Diggler
> Oid
Posts: 120
Joined: Thu Oct 09, 2003 3:28 pm
Location: Lexington, KY

Post by Diggler » Mon Apr 19, 2004 11:14 pm

Make sure you have the latest files copied from the first page. Your problem there is that for some reason your genbot.mac has $(Me.Name) instead of ${Me.Name}. It works for me (I just played 5 chars with 4 bots seamlessly) heh so if you're using the newest files should have no probs.

chickenisgoot
a ghoul
a ghoul
Posts: 84
Joined: Tue Oct 07, 2003 10:52 am

MoveTo error

Post by chickenisgoot » Tue Apr 20, 2004 9:36 am

MoveTo gives an error because it is missing a closing } in the line

Code: Select all

   /newif ${String[${Target.CleanName}].Equal[@ParamString]==0 /target "@ParamString"

Diggler
> Oid
Posts: 120
Joined: Thu Oct 09, 2003 3:28 pm
Location: Lexington, KY

Post by Diggler » Tue Apr 20, 2004 12:14 pm

Chicken -- fixed, thank you ;)

Wassup -- PM me the INI file that it creates for you. Works fine for me /shrug

nald
orc pawn
orc pawn
Posts: 15
Joined: Sat Dec 20, 2003 9:30 am

Post by nald » Tue Apr 20, 2004 1:11 pm

I guess I am just dense :) I have read and searched and can not find the syntax to start the bot up with I have tried

/mac genbot
/mac genbot master

but I keep getting the error like the one listed below.

CCommandHook::Detour(/mac genbot nald)

Macro - Loading macro: C:\Program Files\MQ2-Latest\Release\Macros\genbot.mac

Macro - Starting macro with '/call Main nald'

WriteChatColor(Ending macro: Failed to parse /newif condition '${Ini[genbot_${Me.Name}.ini,Core,RangeMin]}==0', non-numeric encountered)

WriteChatColor(botcore.inc@143 (SetupCoreVars): /newif @RangeMin==0 {)

WriteChatColor(genbot.mac@38 (Main): /call SetupCoreVars)

WriteChatColor(Cleared the following: Timers Arrays)

WriteChatColor(The current macro has ended.)

LordGiddion
a snow griffon
a snow griffon
Posts: 352
Joined: Sat Sep 13, 2003 6:12 pm
Contact:

Post by LordGiddion » Tue Apr 20, 2004 2:48 pm

If you erase your current INI files the system will build new blank ones for you.

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Tue Apr 20, 2004 2:59 pm

Some changes you could make to genbot.mac:

Example:

Code: Select all

   /newif ${Me.Combat}==1 {
      /newif ${Bool[${Target}]}==1 {
         /newif ${String[${Target.CleanName}].Equal[${Me.Name}]}==0 {
            /newif @AutoEngage==1 /varset Combatstatus 1
         }
      }
   }
Can be changed to:

Code: Select all

   /newif (${Me.Combat} && ${Target.ID} {
         /newif ${Target.CleanName.NotEqual[${Me.Name}]} {
            /newif @AutoEngage==1 /varset Combatstatus 1
         }
   }
- ${Me.Combat} returns a Boolean, so no need to use ==1
- ${Target.ID} is numeric, so if ${Target.ID} is anything other than 0, it is TRUE
- ${Target.CleanName} returns a string, so you don't need to convert it to a string since it already is a string.

LordGiddion
a snow griffon
a snow griffon
Posts: 352
Joined: Sat Sep 13, 2003 6:12 pm
Contact:

Post by LordGiddion » Tue Apr 20, 2004 3:20 pm

Wassap,
Those changes as well all the other places tehy can happen, and some other clean ups and new functions are coming in my version.