Crash using $group(1)

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

Shocks
a ghoul
a ghoul
Posts: 101
Joined: Tue Feb 18, 2003 3:26 pm
Contact:

Crash using $group(1)

Post by Shocks » Sun Jun 01, 2003 5:40 pm

I was messing around just now trying to find a nice way to scan my groups life. I set a simple macro. It seems any time I try to access any other $group(1-5) it crashes me to the desktop.

Sub Main
/echo $group(0)
/return

That worked fine. The next macro was this.

Sub Main
/echo $group(1)
/return

This caused my eq to crash to desktop. There was me and another person in the group.

Thanks,
Shocks

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Sun Jun 01, 2003 9:29 pm

Does $group(count) work properly when you have you and another in a group?

Shocks
a ghoul
a ghoul
Posts: 101
Joined: Tue Feb 18, 2003 3:26 pm
Contact:

$group(count)

Post by Shocks » Mon Jun 02, 2003 12:10 am

Yes $group(count) works fine it re turns the value of 3. That is the correct number.

Howerver when I checked $group(2) it returned a value of 0 as if the member was not in the zone. I then did a $group(1) and crash.



Shocks

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Mon Jun 02, 2003 1:15 am

hmmm....the only thing I can imagine that might cause a problem with that code would be if the GROUP offset was incorrect. Right now it's listed as 006B010D ...before I test it myself, has anyone confirmed this is 100% correct (ie, confirmed, not just using old eqgame.exe's as reference)

deda
a lesser mummy
a lesser mummy
Posts: 33
Joined: Thu Apr 24, 2003 3:40 pm

Post by deda » Mon Jun 02, 2003 12:25 pm

i have the same problem, but maybe the GROUPCOUNT offset is wrong?
could some check both offsets please?

User avatar
MSBoy1
a lesser mummy
a lesser mummy
Posts: 57
Joined: Mon May 19, 2003 3:42 pm
Location: Mississippi

Post by MSBoy1 » Mon Jun 02, 2003 2:40 pm

I have been having problems with the various cleric macros. Everquest would crash to desktop after the cleric would join the group.

During lunch I changed the following value in eqgame.ini:

Group=006B010D

to

Group=006B0250

I got this info from the following thread:
http://macroquest2.com/phpBB2/viewtopic ... c&start=30



With the above eqgame.ini file modification, the cleric macros seem to work. I only tested it with one person in the group though. I will be sure everything else works when I get home tonight.

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Mon Jun 02, 2003 6:01 pm

Let us know if that fixes your problem Shocks so we can correct it in the CVS. The problem you described in your original post is a GROUP offset problem, not a GROUPCOUNT problem.

Shocks
a ghoul
a ghoul
Posts: 101
Joined: Tue Feb 18, 2003 3:26 pm
Contact:

Thats it

Post by Shocks » Tue Jun 03, 2003 12:42 am

Yes that fixes it. I was unaware it was a offset issue. Ill try not to make that mistake twice. Thanks again.

Shocks

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Tue Jun 03, 2003 2:44 am

Someone needs to change GROUP in the CVS, if it's not been done already, to make sure this is remedied for future releases.

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Tue Jun 03, 2003 4:05 am

Yeah, yeah.

It's fixed.