|
You last visited: Today at 23:20
Advertisement
crashes after June 6, 2018 Update
Discussion on crashes after June 6, 2018 Update within the GW Bots forum part of the Guild Wars category.
06/15/2018, 11:21
|
#1
|
elite*gold: 0
Join Date: Jan 2013
Posts: 46
Received Thanks: 23
|
crashes after June 6, 2018 Update
Hey,
after the June 6 Update some Bots that use Xunlai/merchant crash, everything worked fine before. I don't know what to look for to fix it, maybe some of you have the same issue and know how to fix it.
Also weird is, that the crash report comes 2 times.
I've added a bot for example, as soon as the inventory is full, it travels to gh and crashes instant.
|
|
|
06/15/2018, 14:50
|
#2
|
elite*gold: 0
Join Date: May 2014
Posts: 269
Received Thanks: 328
|
For now you can comment out Line 6 in inventory.au3 (within gwAPI).
Should solve this Problem.
|
|
|
06/15/2018, 15:07
|
#3
|
elite*gold: 0
Join Date: Jan 2013
Posts: 46
Received Thanks: 23
|
Thanks it works now
But whats wrong with that funciton, that it doesn't work anymore?
|
|
|
06/15/2018, 15:32
|
#4
|
elite*gold: 0
Join Date: May 2014
Posts: 269
Received Thanks: 328
|
Not sure as i dont have Information about what Function exactly got hooked.
As it is not really necessary for a bot to open the xunlai windows i've limited motivation to fix it ^^
|
|
|
06/15/2018, 16:12
|
#5
|
elite*gold: 0
Join Date: Jan 2013
Posts: 46
Received Thanks: 23
|
Yea i understand that, maybe i'll try to figure out myself what's wrong with that
Hmm i commented all OpenStorageWindow() calls out and it still doesn't work, it crashes right after the StoreItems function is called.
I think it has to do with one of these functions:
Func UpdateEmptyStorageSlot(ByRef $aBagNr, ByRef $aSlot)
If $aBagNr = 0 Then
$lBagNr = 8
Else
$lBagNr = $aBagNr
EndIf
If $aSlot = 0 Then
$lSlot = 1
Else
$lSlot = $aSlot
EndIf
$aBagNr = 0
$aSlot = 0
For $bag = $lBagNr To 16
$lBagPtr = GetBagPtr($bag)
If $lBagPtr = 0 Then Return 0 ; no bag
For $slot = $lSlot To 20
$lSlotPtr = GetItemPtrBySlot($lBagPtr, $slot)
If $lSlotPtr = 0 Then
$aBagNr = $bag
$aSlot = $slot
Return True
EndIf
Next
$lSlot = 1
Next
EndFunc ;==>UpdateEmptyStorageSlot
Func MoveItem($aItem, $aBag, $aSlot)
If IsPtr($aItem) <> 0 Then
Local $lItemID = MemoryRead($aItem, 'long')
ElseIf IsDllStruct($aItem) <> 0 Then
Local $lItemID = DllStructGetData($aItem, 'ID')
Else
Local $lItemID = $aItem
EndIf
If IsPtr($aBag) <> 0 Then
Local $lBagID = MemoryRead($aBag + 8, 'long')
ElseIf IsDllStruct($aBag) <> 0 Then
Local $lBagID = DllStructGetData($aBag, 'ID')
Else
Local $lBagID = MemoryRead(GetBagPtr($aBag) + 8, 'long')
EndIf
Return SendPacket(0x10, $HEADER_ITEM_MOVE, $lItemID, $lBagID, $aSlot - 1)
EndFunc ;==>MoveItem
and the StoreItems function:
Func StoreItems()
$mStoreMaterials = true
UpdateEmptyStorageSlot($mEmptyBag, $mEmptySlot)
Update("Empty Spot: " & $mEmptyBag & ", " & $mEmptySlot)
If $mEmptySlot = 0 Then Return ; no more empty slots found
;~ OpenStorageWindow()
For $bag = 1 To 4 ; inventory only
$lBagPtr = GetBagPtr($bag)
If $lBagPtr = 0 Then ContinueLoop ; empty bag slot
$lItemArrayPtr = MemoryRead($lBagPtr + 24, 'ptr')
For $slot = 0 To MemoryRead($lBagPtr + 32, 'long') - 1
$lItemPtr = MemoryRead($lItemArrayPtr + 4 * ($slot), 'ptr')
If $lItemPtr = 0 Then ContinueLoop ; empty slot
$lItemID = MemoryRead($lItemPtr, 'long')
$lItemType = MemoryRead($lItemPtr + 32, 'byte')
$lItemQuantity = MemoryRead($lItemPtr + 75, 'byte')
$lItemMID = MemoryRead($lItemPtr + 44, 'long')
If $lItemType = 11 And $lItemQuantity = 250 And $mStoreMaterials Then ; materials
If $lItemMID = 948 or $lItemMID = 929 or $lItemMID = 933 or $lItemMID = 934 or $lItemMID = 921 Then
Update("Store Materials: " & $bag & ", " & $slot & " -> " & $mEmptyBag & ", " & $mEmptySlot)
MoveItem($lItemID, $mEmptyBag, $mEmptySlot)
Do
Sleep(250)
Until MemoryRead($lItemArrayPtr + 4 * ($slot), 'ptr') = 0
UpdateEmptyStorageSlot($mEmptyBag, $mEmptySlot)
If $mEmptySlot = 0 Then Return
ContinueLoop
EndIf
EndIf
If StackableItems($lItemMID) And $lItemQuantity = 250 Then ; only full stacks
Update("Store Stack: " & $bag & ", " & $slot & " -> " & $mEmptyBag & ", " & $mEmptySlot)
MoveItem($lItemID, $mEmptyBag, $mEmptySlot)
Do
Sleep(250)
Until MemoryRead($lItemArrayPtr + 4 * ($slot), 'ptr') = 0
UpdateEmptyStorageSlot($mEmptyBag, $mEmptySlot)
If $mEmptySlot = 0 Then Return
ContinueLoop
EndIf
If Keepers($lItemMID) Then
Update("Store Keepers: " & $bag & ", " & $slot & " -> " & $mEmptyBag & ", " & $mEmptySlot)
MoveItem($lItemID, $mEmptyBag, $mEmptySlot)
Do
Sleep(250)
Until MemoryRead($lItemArrayPtr + 4 * ($slot), 'ptr') = 0
UpdateEmptyStorageSlot($mEmptyBag, $mEmptySlot)
If $mEmptySlot = 0 Then Return ; no more empty slots
ContinueLoop
EndIf
If $mStoreGold And GetRarity($lItemPtr) = 2624 Then ; store unident golds if possible
Update("Store Golds: " & $bag & ", " & $slot & " -> " & $mEmptyBag & ", " & $mEmptySlot)
MoveItem($lItemID, $mEmptyBag, $mEmptySlot)
Do
Sleep(250)
Until MemoryRead($lItemArrayPtr + 4 * ($slot), 'ptr') = 0
UpdateEmptyStorageSlot($mEmptyBag, $mEmptySlot)
If $mEmptySlot = 0 Then Return ; no more empty slots
ContinueLoop
EndIf
Next
Next
EndFunc ;==>StoreItems
|
|
|
06/15/2018, 18:34
|
#6
|
elite*gold: 0
Join Date: May 2014
Posts: 269
Received Thanks: 328
|
Not sure ... make sure that $HEADER_ITEM_MOVE is 0x77.
I've never used this Functions as there is a better way to move **** into storage ^^
|
|
|
06/15/2018, 20:21
|
#7
|
elite*gold: 0
Join Date: Jan 2013
Posts: 46
Received Thanks: 23
|
The headers are right, what is the better way to move items?
|
|
|
06/16/2018, 03:52
|
#8
|
elite*gold: 0
Join Date: Jan 2018
Posts: 46
Received Thanks: 14
|
Quote:
Originally Posted by zoidberg1337
Thanks it works now
But whats wrong with that funciton, that it doesn't work anymore?
|
OpenStorageWindow uses some ASM code injected into the game to open the chest for you. In the last few months there have been changes to the GW code meaning that some of these functions don't work or crash GW when called.
I don't think this function has been fixed because there isn't much need for bots.
I also don't think gwAPI is being worked on as much as GWA2 so you'll probably get more issues later down the line with new game updates.
The best thing to do is to migrate whatever bot you're using to use GWA2 instead of gwAPI, but you'll need to spend some time reading and understanding the code that you're trying to run to be able to do that. Search around on these forums to find a good version of the GWA2 library if you're up to the task.
|
|
|
 |
Similar Threads
|
TradEmArk D3D [After Winter Update] *New Style,No Laggs and Crashes!*
12/21/2011 - WarRock Hacks, Bots, Cheats & Exploits - 30 Replies
Old Hack, New Version:
http://www.elitepvpers.com/forum/warrock-hacks-bo ts-cheats-exploits/1607210-18-12-trademark-big-hoo k-invisible-unlammo-cqcprone-chams-binder-more-upd ated.html
http://www.fotos-hochladen.net/uploads/trademarkd 3dj56z3ink0l.png
Download:
Halt! Es wäre Nett wenn du Thanks Drückst.
TradEmArk D3D.rar
Virustotal: (Packed, dont flame Virus!)
|
[10.08.11] McMy's Public Hook V.3.1[Updated][None Crashes][#Works After HS Update]
08/14/2011 - WarRock Hacks, Bots, Cheats & Exploits - 33 Replies
Screen:
http://img841.imageshack.us/img841/1341/sadsaased 3q.png
Downloaden:
Multiupload.com - upload your files to multiple file hosting sites!
Virustotal:
VirusTotal - Free Online Virus, Malware and URL Scanner
|
Crashes after update - why?
05/02/2010 - Dekaron - 2 Replies
Hey :)
Before last update I gave my friend working .ct file. And everything was ok. After update I send him new ct file, but he have problem: When he lure mobs and get more than 10 he get DC. Before update he dont get any crash, he have same graphic settings in game. I change player and mob speed , but he still get dc. Can someone tell why is this so, and how fix this problem?
|
All times are GMT +1. The time now is 23:20.
|
|