translation problems...

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

Moderator: MacroQuest Developers

TarKitty
decaying skeleton
decaying skeleton
Posts: 3
Joined: Fri Aug 08, 2003 9:59 am

translation problems...

Post by TarKitty » Mon Aug 11, 2003 8:38 am

I'm converting offset from ENG version ( 2003/08/06 07:00 ) to FR version ( 2003/07/09 3:14 )

I have already processed about 25% of the offsets but i found that offsets for MemCheckAddr1 and MemCheckAddr2 point in the middle of functions, near the end of them.

I found the corresponding offsets in the FR game but i wonder if the ENG offset i use to translate is correct.

Anyone has an explaination abouty this?

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

Post by EqMule » Mon Aug 11, 2003 9:26 am

TarKitty wrote:offsets for MemCheckAddr1 and MemCheckAddr2 point in the middle of functions, near the end of them.
this is correct... but I cant explain why, I just know it works, so if you find the functions, and the code look the same, you have found the offsets... maybe DKAA can explain it I think he wrote the code that uses thoose offsets.

You should just go ahead and do the rest of the offsets, and when you have them, please post them so others that play the FR version can benefit as well...
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.

Rand
a lesser mummy
a lesser mummy
Posts: 44
Joined: Sun Jun 08, 2003 8:37 am

Post by Rand » Mon Aug 11, 2003 1:52 pm

TarKitty, as far as I know the FR and US version use the same offset.
I use a MQ version & offset from jully 08 and it works perfectly ( only /click fail for me )

Did you change a lot in the code or only the line that start MQ ?
Send me a PM, I would gladly help you.

Here is the offset I use :

Code: Select all

[Function Locations]
WriteChatColor=004e5ffb
GetRaceByID=004db51f
GetClassByID=004daeca
GetDeityByID=004dc9c1
LeftClick=004DF4CB
RightClick=004EF62F
ScreenItem=0045f042
ScreenSpawn=004efadf
NewUIINI=00449ca8
MaxMana=00467212
Commands=004ee9d0
CmdCleanup=
MemChecker=004ff6cd
MemChecker2=00502ef6
MemCheckAddr1=00502f64
MemCheckAddr2=00502f9c
MemChecker3=00500346

[DirectInput8]
Main=0077b6bc
Keyboard=0077b6c0
Mouse=0077b6c4

[Memory Locations]
Clicks=006FD5C4
Zoning=00760f90
Zones=00760fac
SpawnHeader=00760fb0
Items=00760fb4
Doors=00760fcc
SpawnFooter=00760fd8
Char=00760fec
CharInfo=00760ff4
Target=00760ff8
Guilds=006F505C
Packs=
OldAttack=
Mouse=0077b6c8
Attack=00732c48
Spells=0076e720
CommandList=005b3da8
DoAbilityList=00737968
DoAbilityAvailable=00732be4
Group=006b0e98
GroupCount=006b0d50
HSliderItems=
HSliderMoney=
PackPanel1=
PackPanel2=
clsMain=
clsItems=0076101c
clsSpawns=00760fa0
clsInvPanel=
clsMerchantPanelStatus=
clsMerchantItemBase=
clsMerchantSelectedItem=
clsMerchantSelectedSlotID=
clsMainNewUI=0077b858
clsMainSpellRefresh=
clsMainSpellMemId=
clsMainSpellMemBar=
clsMainSpellMemGem=

EncryptPad=005cdc60
EncryptPad3=005ce084
EncryptPad2=005ce8b0

ServerHost=006fd3ac

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

Re: translation problems...

Post by dont_know_at_all » Mon Aug 11, 2003 3:29 pm

TarKitty wrote:I have already processed about 25% of the offsets but i found that offsets for MemCheckAddr1 and MemCheckAddr2 point in the middle of functions, near the end of them.
SoE put in a routine that returns the return address and they call it from within a memory checker. Since our memchecker is in a different memory location, these addresses are hardcoded to the return address of the original memory checker routine.

I believe this was an attempt to prevent us from moving their code around but it didn't stop us.

TarKitty
decaying skeleton
decaying skeleton
Posts: 3
Joined: Fri Aug 08, 2003 9:59 am

thanks for offsets and now... other question

Post by TarKitty » Tue Aug 12, 2003 5:48 am

in ENG Version :

LeftClick=00499ea4 points also in a middle of a routine and, more, there are no calls to there...
if it's the right spot then the french offset should be 004D6C99 ( based on the 'push 00002F53' line )

i also found that some functions are INLINE in the FR code... quite surprising when trying to figure the match

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

Post by Valerian » Tue Aug 12, 2003 9:51 am

LeftClick is unimportant, as it's unused right now. I was using that for development, and probably will again if I figure out where the offset is again... don't worry about having it exactly right since it's not used anywhere in the live code.

FrankJScott
naggy
naggy
Posts: 2384
Joined: Sun Feb 19, 2023 7:11 am

Updated Interior Design Info

Post by FrankJScott » Thu Aug 10, 2023 8:36 pm

Why don't you Google it! before you post