Offsets 26 August

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

motd2k
a ghoul
a ghoul
Posts: 141
Joined: Fri Oct 25, 2002 9:46 am

Offsets 26 August

Post by motd2k » Tue Aug 26, 2003 8:01 am

Code: Select all

[MacroQuest]
MacroQuestVersion=MQ-20030711-inprogress
ClientName=eqgame
ClientVersion=Tue Aug 26 02:31:xx 2003
ClientOverride=0
MacroQuestWinClassName=__MacroQuestTray
MacroQuestWinName=MacroQuest

[Function Locations]
WriteChatColor=0048FAEA
GetRaceByID=00485F93
GetClassByID=00485938
GetDeityByID=00487435
LeftClick=0049C5D9
RightClick=0049A128
ScreenItem=0040B133
ScreenSpawn=0048BC4A
NewUIINI=005008C3
MaxMana=00004655FC
Commands=00499B00
CmdCleanup=
MemChecker=004AAE45
MemChecker2=004B14FC
MemCheckAddr1=004B155F
MemCheckAddr2=004B158D
MemChecker3=004AF756
MemSpell=004Fe1a1
LoadSpells=004FE03E
StartTrader=004BFB05
BuyItem=004F093B
SellItem=004F0B13
GetFocusCastingTimeModifier=0046FCCA
GetAACastingTimeModifier=00470056
SelectItem=004F0FF6
CastSpell=00473AB7

[Class Locations]
SpellBookWnd=005F25CC
InventoryWindow=005F25D0
CastingWindow=005F25C4
LootWnd=005F25DC
ClassBazaarWnd=005F25F0
ClassMerchWnd=005F25E4
ClassTextureAnim=00770854
ClassBazaarSearchWnd=005F25F4
ClassCastSpellWnd=005F25C8
ClassHotButtonWnd=005F25A4
ClassAltAdvManager=

[DirectInput8]
Main=007670B4
Keyboard=007670B8
Mouse=007670BC

[Memory Locations]
slotlist=005F2644
ActiveMerchant=007089D0
HugeWindowList=0077B830
SpellFavorites=00705C9C
Clicks=006A5781
Zoning=00708960
Zones=0070897C
ZoneInfo=006A58F4
SpawnHeader=00708980
Items=00708984
Doors=005F6834
SpawnFooter=007089a4
Char=007089b8
CharInfo=007089c0
Target=007089c4
Guilds=0070D014
OldAttack=
Mouse=007670C0
Attack=006A65A8
Spells=00762D04
CommandList=005DF000
DoAbilityList=006DF358
DoAbilityAvailable=006A6544
Group=00707050
GroupCount=00706F08
clsItems=007089E4
clsSpawns=00708970
clsMainNewUI=00767228

EncryptPad=005E6E30
EncryptPad3=005E7230
EncryptPad2=005E7CA8

ServerHost=007062DC
Untested after my earlier brainfart. Some of the code has changed noticably - things like BuyItem for example... that will def. need checking


MOTD
Last edited by motd2k on Tue Aug 26, 2003 12:15 pm, edited 10 times in total.

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Tue Aug 26, 2003 8:33 am

mind checking this one too?

Code: Select all

[Function Locations]
CastSpell=00471C0B
It's for the new item effect casting code...

motd2k
a ghoul
a ghoul
Posts: 141
Joined: Fri Oct 25, 2002 9:46 am

Post by motd2k » Tue Aug 26, 2003 9:14 am

*removed*
Last edited by motd2k on Tue Aug 26, 2003 12:16 pm, edited 1 time in total.

YKW-28983
a hill giant
a hill giant
Posts: 252
Joined: Sun Dec 01, 2002 11:37 pm

Post by YKW-28983 » Tue Aug 26, 2003 9:16 am

Servers still down. when did they patch it?
motd2k wrote:ClientVersion=Wed Aug 26 02:31:xx 2003

today is tuesday btw...
Last edited by YKW-28983 on Tue Aug 26, 2003 9:23 am, edited 1 time in total.

spudgun
orc pawn
orc pawn
Posts: 17
Joined: Wed Mar 12, 2003 12:13 am

Re: Offsets 26 August

Post by spudgun » Tue Aug 26, 2003 9:23 am

motd2k wrote: ClientVersion=Wed Aug 26 02:31:xx 2003
should read Tue instead :P
Last edited by spudgun on Tue Aug 26, 2003 9:24 am, edited 1 time in total.

motd2k
a ghoul
a ghoul
Posts: 141
Joined: Fri Oct 25, 2002 9:46 am

Post by motd2k » Tue Aug 26, 2003 9:24 am

Servers still down. when did they patch it?
Patch started at 0300 PST, 3.5 hours ago. Exe was posted about 0430 PST. ETA is 1000 PST.



MOTD

YKW-28983
a hill giant
a hill giant
Posts: 252
Joined: Sun Dec 01, 2002 11:37 pm

Post by YKW-28983 » Tue Aug 26, 2003 9:26 am

thx motd. =)


Btw thx on the speedy offset findings. you do a great job.

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

Post by Mckorr » Tue Aug 26, 2003 12:38 pm

I'm sure we'll be finding a number of problems with MQ due to struct changes. Also I anticipate problems with locations.txt until the XML files can be rescanned and the mouse locations adjusted. Will work on that tomorrow... assuming I can find where I left the scan code.
MQ2: Think of it as Evolution in action.

eqjoe
a grimling bloodguard
a grimling bloodguard
Posts: 984
Joined: Sat Sep 28, 2002 12:26 pm

Bummer!!

Post by eqjoe » Tue Aug 26, 2003 1:00 pm

Looks like our DLL is crashing right up front...

Code: Select all

EQGAME caused an exception 03H in module EQLIB.DLL at 016f:0302d199.
Registers:
EAX=00000000 CS=016f EIP=0302d199 EFLGS=00000246
EBX=81d84fa0 SS=0177 ESP=0250ed28 EBP=0250ed2c
ECX=00000000 DS=0177 ESI=0250f784 FS=13ef
EDX=bffc9490 ES=0177 EDI=0250f544 GS=0000
Bytes at CS:EIP:
83 7d 08 00 74 09 c7 45 fc 08 57 05 03 eb 07 c7 
Stack dump:
cccccccc 0250f77c 0300f080 00000001 0250ff90 0250f784 cccccccc 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
NM... one of my custom functions... sorry

motd2k
a ghoul
a ghoul
Posts: 141
Joined: Fri Oct 25, 2002 9:46 am

Post by motd2k » Tue Aug 26, 2003 1:33 pm

Any chance of getting a PC Trade accept location into locations.txt whilst you're at it Mckorr?? Apologies if its there already... just couldnt see it!


MOTD

boredom
a lesser mummy
a lesser mummy
Posts: 49
Joined: Thu Jun 19, 2003 3:45 pm

/who

Post by boredom » Tue Aug 26, 2003 2:33 pm

Doing a /who of / of the zone crashes client.

/Bored

*edit*

updated ini seems to have fixed this
Last edited by boredom on Tue Aug 26, 2003 2:53 pm, edited 1 time in total.

motd2k
a ghoul
a ghoul
Posts: 141
Joined: Fri Oct 25, 2002 9:46 am

Post by motd2k » Tue Aug 26, 2003 2:43 pm

/click appears to be broken.


/who works just fine for me however.




MOTD

EqMule
Developer
Developer
Posts: 2697
Joined: Fri Jan 03, 2003 9:57 pm
Contact:

there was structure changes in this patch

Post by EqMule » Tue Aug 26, 2003 3:33 pm

there was structure changes in this patch _CHARINFO for example was changed.

This means that even if the offsets are ok, and I think they are, we wont be able to run most mq commands, until new structs are posted, Im working on _CHARINFO right now.

Please be patient (go donate to the devs or something :), I will keep you updated on the progress and soon post a fix. Going over the other structs as well when Im done with that one. If it makes you feel better magelo, and showeq broke as well... good job by SOE.


This is what I have so far. Alot of unknowns and I havent byte counted yet. I havent been in game testing this yet either, so DO NOT USE YET.
I post this as a attempt to let you all know Im making progress.

Code: Select all

 #define      NUM_BANK_SLOTS         18
typedef struct _CHARINFO {
	BYTE Unknown00000;
	BYTE Unknown00001;
	CHAR Name[64];
	CHAR Lastname[70];
	DWORD Gender;
	DWORD Race;
	DWORD Class;
	DWORD Unknown0x0094;
	DWORD Level;
	DWORD Exp;
	DWORD PracticePoints;
	DWORD Mana;
	DWORD BaseHP;
	DWORD Stunned;
	DWORD BaseSTR;
	DWORD BaseSTA;
	DWORD BaseCHA;
	DWORD BaseDEX;
	DWORD BaseINT;
	DWORD BaseAGI;
	DWORD BaseWIS;
	DWORD Face;
	DWORD unknown00002[19];
	struct       _SPELLBUFF    Buff[15];
	DWORD SpellBook[512];  // List of the Spells in spellbook
	DWORD MemorizedSpells[8];
	DWORD unknown00003[9];
	FLOAT y;
	FLOAT x;
	FLOAT z;
	FLOAT heading;
	DWORD standstate;
	DWORD Plat;
	DWORD Gold;
	DWORD Silver;
	DWORD Copper;
	DWORD BankPlat;
	DWORD BankGold;
	DWORD BankSilver;
	DWORD BankCopper;
	DWORD unknown00004[4];
	DWORD BankSharedPlat;
	DWORD unknown00004a[5];
	DWORD Skill[127];
	DWORD unknown00005;
	FLOAT unknown00006[4];
	DWORD unknown00007[16];
	DWORD unknown00008[2];
	DWORD unknown00009[3];
	DWORD unknown00010;
	DWORD unknown00011;
	DWORD unknown00012;
	DWORD unknown00013[2];
	DWORD unknown00014;
	DWORD unknown00015[5];
	DWORD pholder;
	DWORD unknown00016;
	DWORD unknown00017;
	DWORD unknown00018;
	DWORD pNext;
	DWORD unknown00019[3];
	DWORD HungerLevel;
	DWORD ThirstLevel;
	DWORD unknown00020;
	DWORD unknown00021[4];
	DWORD zoneId;
	DWORD pSpawn;
	DWORD Inventory[30];
	DWORD Cursor;
	DWORD unknown00022;
	DWORD		STR;
	DWORD		STA;
	DWORD		CHA;
	DWORD		DEX;
	DWORD		INT;
	DWORD		AGI;
	DWORD		WIS;
	DWORD       Unknown23;
	DWORD       SaveMagic;
	DWORD       SaveCold;
	DWORD       SaveFire;
	DWORD       SavePosion;
	DWORD       SaveDisease;
	DWORD       CurrWeight;
	DWORD		unknown00024[285];
	DWORD       ZoneBoundId; 
	FLOAT		Unknown00025[4];
	FLOAT       ZoneBoundX; 
	FLOAT		Unknown00026[4];
	FLOAT		ZoneBoundY;
	FLOAT		Unknown00027[4];
	FLOAT       ZoneBoundZ; 
	FLOAT		Unknown00028[10];
	DWORD		Unknown00028a;
	DWORD		ZoneBirthId;//im just guessing here
	WORD		Unknown00029[8];
	DWORD		Unknown00030[845];
	CHAR		Server[40];
	DWORD		Unknown00031[7885];
	*PITEMINFO   Bank[NUM_BANK_SLOTS];
} CHARINFO, *PCHARINFO; 
update: Got some sleep and is at it again but there is a patch so i will resume work after that is done... Found the bankinfo btw... _ITEMINFO is broken as well...
Last edited by EqMule on Wed Aug 27, 2003 9:15 am, edited 8 times in total.
My status o/
If you like MQ2 and would like to contribute, please do. My goal is 25 donations per month.
So far I've received Image donations for this month's patches.

Bitcoin: 1Aq8ackjQ4f7AUvbUL7BE6oPfT8PmNP4Zq
Krono: PM me.
I can always use characters for testing, PM me if you can donate one.

ThatOtherGuy
a lesser mummy
a lesser mummy
Posts: 41
Joined: Tue Aug 05, 2003 6:12 pm

Post by ThatOtherGuy » Tue Aug 26, 2003 3:41 pm

But, they are only broken for a couple days, tops, thanks to the dedication of wonderful people at all 3 projects :P

<3 Macroquest, SEQ, magelo devs~!
-TOG

lostinspace
decaying skeleton
decaying skeleton
Posts: 5
Joined: Wed Apr 09, 2003 7:42 am

Post by lostinspace » Tue Aug 26, 2003 3:42 pm

some offsets that are changed that i use - most offsets were not changed btw, but i do not use MQ and not using all offsets.

siOfs_x= 76
siOfs_y= 72
siOfs_z= 80
siOfs_dir= 100
siOfs_speed= 96