Updated Headers 11/14/2024 - Fixes latest Updates

11/14/2024 16:53 Zilvermoon#16
Quote:
Originally Posted by MrObvious83 View Post
@[Only registered and activated users can see links. Click Here To Register...] it runs, maps to location, then crashes GW

Update the LDoA Pre script gets shut down, crashed GW
Doesn't look like you used the GWA2.au3 I uploaded, line 400 is blank in my script, have nothing with chat there.
11/14/2024 16:57 MrObvious83#17
@[Only registered and activated users can see links. Click Here To Register...] I used the 2 files you linked.
11/14/2024 17:05 MrObvious83#18
@[Only registered and activated users can see links. Click Here To Register...] this is what happens. I used both files you supplied. The script does engage, and it moves to the outpost but when taking the quest or going outside, it dumps.
11/14/2024 17:06 Zilvermoon#19
Quote:
Originally Posted by MrObvious83 View Post
@[Only registered and activated users can see links. Click Here To Register...] I used the 2 files you linked.
Hmm. not sure what you did....

Here is my current version of OmniFarmer_Presearing V2.4.1.4 ... there might be other issues with this version, simply tested that it worked after updating GWA2 & Header ... like i said LDoA2-10 & LDoA10-20 should run.

You can upload the bot that you can't get to work, and then i can have a look at it .... but my time is limited, so might take some time.

Edit: Charrs Boss, looks to be working too.

Edit2: Added code section
Code:
Func GetGWBase()
	Local $lGwBase = ScanForProcess() -4096
	$lGwBase = "0x"&Hex($lGwBase)
	Return $lGwBase
EndFunc
Code:
	$mPing = '0x' & Hex(GetGWBase() + 0x62B3F4, 8) ; Updated 14-11-2024
	$mMapLoading = '0x' & Hex(GetGWBase() + 0xAACC88, 8) ; Updated 14-11-2024
	$mLoggedIn = '0x' & Hex(GetGWBase() + 0x63C500, 8) ; Updated 14-11-2024
11/14/2024 17:11 MrObvious83#20
@[Only registered and activated users can see links. Click Here To Register...] Thanks, trying to figure out the logic on the Omnifarmer for NORN etc right now
11/14/2024 17:29 Underavelvetmoon#21
Quote:
Originally Posted by MrObvious83 View Post
after staring at it, I can say @[Only registered and activated users can see links. Click Here To Register...] it is not. I came to this platform from a old school script style and I am still learning, unfortunately..
No worries mate, we all start from somewhere.

Basically the script you was using had at line 400:

Code:
Blah blah blah($mSendChat, 2, $HEADER_SEND_CHAT)
Where as the new header is stylized as:

Code:
$HEADER_SEND_CHAT_MESSAGE
You need to change the naming convention one way or the other.

For example, when I updated my headers, rather than use the logic kindly provided in this thread, I just took the header values and added them to my own file since I have quite a few custom functions that would need to be re-written, which is more hassle than changing a few values.

I would imagine that if you are using public bots, there are a number of naming conventions that people have used, so that could be the issue you are running into.

I just started up a few of my own bots with the new header values and so far so good, similar with the public TOC bot on the working bots thread with the same updated header file.
11/14/2024 17:40 MrObvious83#22
@[Only registered and activated users can see links. Click Here To Register...]

so this then:

#Region ;=CHAT=
;GAME_CMSG_SEND_CHAT_MESSAGE
; Uncomfirmed 11/01-2023)
Global Const $HEADER_SEND_CHAT_MESSAGE = 0x0063 ;Needed for sending messages in chat
; End of Uncomfirmed 11/01-2023)
#EndRegion ;=CHAT=

Where does that sync with the GWA2 though
11/14/2024 18:12 MrObvious83#23
DllStructSetData($mBuyItem, 1, GetValue('CommandBuyItem'))
DllStructSetData($mSendChat, 1, GetValue('CommandSendChat'))
DllStructSetData($mSendChat, 2, $HEADER_SEND_CHAT_MESSAGE)
DllStructSetData($mWriteChat, 1, GetValue('CommandWriteChat'))
DllStructSetData($mRequestQuote, 1, GetValue('CommandRequestQuote'))
DllStructSetData($mRequestQuoteSell, 1, GetValue('CommandRequestQuoteSell'))
DllStructSetData($mTraderBuy, 1, GetValue('CommandTraderBuy'))
DllStructSetData($mTraderSell, 1, GetValue('CommandTraderSell'))
DllStructSetData($mSalvage, 1, GetValue('CommandSalvage'))
DllStructSetData($mIncreaseAttribute, 1, GetValue('CommandIncreaseAttribute'))
DllStructSetData($mDecreaseAttribute, 1, GetValue('CommandDecreaseAttribute'))
DllStructSetData($mMakeAgentArray, 1, GetValue('CommandMakeAgentArray'))
DllStructSetData($mChangeStatus, 1, GetValue('CommandChangeStatus'))
11/14/2024 18:37 MrObvious83#24
So line 418 the code Send_CHAT/SEND_CHAT_MESSAGE has been fixed.


Now it seems its getting stuck on switching to hard mode.
@[Only registered and activated users can see links. Click Here To Register...]

GWA2_Header
Global Const $HEADER_PARTY_SET_DIFFICULTY = 0x009A

GWA2

;~ Description: Switches to/from Hard Mode.
Func SwitchMode($aMode)
Return SendPacket(0x8, $HEADER_MODE_SWITCH, $aMode)
EndFunc ;==>SwitchMode
11/14/2024 18:53 Zilvermoon#25
Quote:
Originally Posted by MrObvious83 View Post
So line 418 the code Send_CHAT/SEND_CHAT_MESSAGE has been fixed.


Now it seems its getting stuck on switching to hard mode? Im not sure on how to resolve that.
Hard mode probably is wrong in the header, wasn't one of the updated ones (haven't got the right one yet)

If you still have the un-modified version, please try to upload it here, or tell me where you got it, I can have a look at it and see if i can fix it.

Edit: Might have to +1 to Hard Mode header
11/14/2024 19:14 MrObvious83#26
@[Only registered and activated users can see links. Click Here To Register...] here is the most current Omnifarmer with EOTN/Lux/Kurz
11/14/2024 19:19 Young Signorino#27
Quote:
Originally Posted by Zilvermoon View Post
Hard mode probably is wrong in the header, wasn't one of the updated ones (haven't got the right one yet)

If you still have the un-modified version, please try to upload it here, or tell me where you got it, I can have a look at it and see if i can fix it.

Edit: Might have to +1 to Hard Mode header
The header is already updated.

Quote:
Global Const $HEADER_PARTY_SET_DIFFICULTY = 0x009A
Quote:
Originally Posted by MrObvious83 View Post
So line 418 the code Send_CHAT/SEND_CHAT_MESSAGE has been fixed.


Now it seems its getting stuck on switching to hard mode.
@[Only registered and activated users can see links. Click Here To Register...]

GWA2_Header
Global Const $HEADER_PARTY_SET_DIFFICULTY = 0x009A

GWA2

;~ Description: Switches to/from Hard Mode.
Func SwitchMode($aMode)
Return SendPacket(0x8, $HEADER_MODE_SWITCH, $aMode)
EndFunc ;==>SwitchMode
Just update the code. The MsgBox tells you whats is wrong already.

The header in your code is called $HEADER_MODE_SWITCH. The header you copied is called $HEADER_PARTY_SET_DIFFICULTY.
$HEADER_MODE_SWITCH <> $HEADER_PARTY_SET_DIFFICULTY. Gotta update either one.
11/14/2024 19:39 MrObvious83#28
@[Only registered and activated users can see links. Click Here To Register...]

So map travel from GH to outposts are not working and the code to communicate with the NPC is not working either

GWA2
;~ Description: Travel to your guild hall.
Func TravelGH()
Local $lOffset[3] = [0, 0x18, 0x3C]
Local $lGH = MemoryReadPtr($mBasePointer, $lOffset)
SendPacket(0x18, $HEADER_GUILDHALL_TRAVEL, MemoryRead($lGH[1] + 0x64), MemoryRead($lGH[1] + 0x68), MemoryRead($lGH[1] + 0x6C), MemoryRead($lGH[1] + 0x70), 1)
Return WaitMapLoading()
EndFunc ;==>TravelGH

;~ Description: Leave your guild hall.
Func LeaveGH()
SendPacket(0x8, $HEADER_GUILDHALL_LEAVE, 1)
Return WaitMapLoading()
EndFunc ;==>LeaveGH
#EndRegion Travel

HEADER
Global Const $HEADER_PARTY_ENTER_GUILD_HALL = 0x00AF
Global Const $HEADER_PARTY_TRAVEL = 0x00B0
Global Const $HEADER_PARTY_LEAVE_GUILD_HALL = 0x00B1
11/14/2024 20:26 Zilvermoon#29
Quote:
Originally Posted by MrObvious83 View Post
@[Only registered and activated users can see links. Click Here To Register...]

So map travel from GH to outposts are not working and the code to communicate with the NPC is not working either

GWA2
;~ Description: Travel to your guild hall.
Func TravelGH()
Local $lOffset[3] = [0, 0x18, 0x3C]
Local $lGH = MemoryReadPtr($mBasePointer, $lOffset)
SendPacket(0x18, $HEADER_GUILDHALL_TRAVEL, MemoryRead($lGH[1] + 0x64), MemoryRead($lGH[1] + 0x68), MemoryRead($lGH[1] + 0x6C), MemoryRead($lGH[1] + 0x70), 1)
Return WaitMapLoading()
EndFunc ;==>TravelGH

;~ Description: Leave your guild hall.
Func LeaveGH()
SendPacket(0x8, $HEADER_GUILDHALL_LEAVE, 1)
Return WaitMapLoading()
EndFunc ;==>LeaveGH
#EndRegion Travel

HEADER
Global Const $HEADER_PARTY_ENTER_GUILD_HALL = 0x00AF
Global Const $HEADER_PARTY_TRAVEL = 0x00B0
Global Const $HEADER_PARTY_LEAVE_GUILD_HALL = 0x00B1
Red'ed out some stuff, the names have to match ... oh and btw, you uploaded an edited version (edited today), what i asked for was an Un-Modified version or a link to where you got it from...

Edit: found it [Only registered and activated users can see links. Click Here To Register...]
11/14/2024 20:40 Porello18#30
i have zero coding or computing knowledge and i was able to figure it out by changing the headers and then replacing @[Only registered and activated users can see links. Click Here To Register...] files thank you very much! great job quick work