/char crash?

A forum for the general posts relating to MacroQuest. *DEPRECATED: This forum is no longer in public use, but remains here for your reading pleasure. Enjoy

Moderator: MacroQuest Developers

merkzu
a ghoul
a ghoul
Posts: 99
Joined: Wed May 14, 2003 2:08 pm

/char crash?

Post by merkzu » Thu Jun 12, 2003 12:49 pm

Can anyone confirm that /char is working for them? It dumped me to my desktop before I went to work. This is last nights CVS with Amadeus's struct mods and motd2k's offsets (with the one offset corrected). Everything else seems to work ok.

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

Post by Amadeus » Thu Jun 12, 2003 1:29 pm

I would advise against using /char.

I'm fairly certain that EQ is no longer storing "birth" information in the charinfo struct..or, if they are, they've moved it pretty significantly. So, I've left the values in the struct to allow for clean compilation..but, yea, anything that uses those float values is subject to crashing at the moment.

Once I am through with this camp, I will go through the struct very carefully and make the determination as to whether the /char command will need re-written.


For now, don't use it :)

]\[E()
a lesser mummy
a lesser mummy
Posts: 48
Joined: Mon Sep 30, 2002 10:13 pm
Location: Flint Michigan
Contact:

Post by ]\[E() » Fri Jun 13, 2003 3:42 pm

char just crashed me was comming hrere to post that its not working but it looks like someone beat me to the punch :P



-Josh

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

Post by Amadeus » Fri Jun 13, 2003 4:22 pm

I will fix this soon. My gut feeling is that the /char routine is going to be nerfed slightly that it will no longer display birth locations.

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Sat Jun 14, 2003 10:18 am

I think we can all live with that... after 50 levels do you really need a reminder of your starting city? "Oh my, I'm a wood elf, and I can't remember which city I started in..." :) Like you have soooo many choices.

Now, if you can get /char to tell me what cities I'm KOS in, THAT would be useful :)
MQ2: Think of it as Evolution in action.

User avatar
vzmule
Contributing Member
Contributing Member
Posts: 378
Joined: Thu Mar 13, 2003 11:56 pm

Post by vzmule » Sun Jun 15, 2003 8:53 pm

We could take out the birth info part of the command altogether. It was a novelty, but that's about it.

The change could also have something to do with them moving the initial spawn locs around again. While they were playing with the code, they probably just got rid of it from the charinfo struct.

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

Post by Amadeus » Sun Jun 15, 2003 8:59 pm

I have submitted fixes to DkAA, but I think he's been busy lately. Anyway, change your CharInfo() (in EQLib_Commands.cpp) to look like this:

Code: Select all

VOID CharInfo(PSPAWNINFO pChar, PCHAR szLine)
{
	CHAR szBuffer[MAX_STRING] = {0};
	bRunNextCommand = TRUE;

	if (gFilterMacro == FILTERMACRO_NONE) cmdCharInfo(pChar, szLine);
	PCHARINFO pCharInfo = NULL;
	if (NULL == (pCharInfo = GetCharInfo())) return;
	sprintf(szBuffer,"You are bound in %s at %1.2f, %1.2f, %1.2f", GetFullZone(pCharInfo->ZoneBoundId), pCharInfo->ZoneBoundX, pCharInfo->ZoneBoundY, pCharInfo->ZoneBoundZ);
	WriteChatColor(szBuffer,USERCOLOR_DEFAULT);
}
I am 95% sure that the birth information is no longer stored in CHARINFO. I havn't looked past the bank...but I doubt it's there....

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 » Mon Jun 16, 2003 4:30 am

Changes are in CVS.