Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

GetFoundList() - struct.error: unpack requires a buffer of 6

Ask for help
Post Reply
bardobrado
Neophyte
Neophyte
Posts: 13
Joined: 29.03.2018 15:01

GetFoundList() - struct.error: unpack requires a buffer of 6

Post by bardobrado »

Code: Select all

20:23:24:125 [fmaya]:     listitem = GetFoundList()
20:23:24:125  fmaya]: struct.error: unpack requires a buffer of 6 bytes
how to solve this?

Thanks
nah nah
Developer
Developer
Posts: 414
Joined: 13.07.2011 11:23
Contact:

Re: GetFoundList() - struct.error: unpack requires a buffer

Post by nah nah »

fixed MegaUpload

edit: TargetPresent, UseSkill, GetFoundList, GetIgnoreList, GetTooltipRec fix
Last edited by nah nah on 31.03.2018 15:41, edited 3 times in total.
bardobrado
Neophyte
Neophyte
Posts: 13
Joined: 29.03.2018 15:01

Re: GetFoundList() - struct.error: unpack requires a buffer

Post by bardobrado »

Thanks, worked, But i have another error.

20:51:12:692 [fmaya]: ignorados = GetIgnoreList()
20:51:12:692 [fmaya]: struct.error: unpack requires a buffer of 1 bytes
bardobrado
Neophyte
Neophyte
Posts: 13
Joined: 29.03.2018 15:01

Re: GetFoundList() - struct.error: unpack requires a buffer

Post by bardobrado »

i changed Methods...

from this

def GetIgnoreList():
data = _get_ignore_list()
result = []
if data:
fmt = 'i' * str(len(data) / 4)
result += list(_struct.unpack_from(fmt, data))
return result

def GetIgnoreList():
result = []
data = _get_ignore_list()
if data:
fmt = str(len(data)//4) + 's'
result.extend(_struct.unpack(fmt, data))
return result


to this:

def GetIgnoreList():
data = _get_ignore_list()
result = []
if data:
fmt = str(len(data) // 4) + 'I'
result += list(_struct.unpack_from(fmt, data))
return result

#def GetIgnoreList():
# result = []
# data = _get_ignore_list()
# if data:
# fmt = str(len(data)//4) + 's'
# result.extend(_struct.unpack(fmt, data))
# return result
nah nah
Developer
Developer
Posts: 414
Joined: 13.07.2011 11:23
Contact:

Re: GetFoundList() - struct.error: unpack requires a buffer

Post by nah nah »

correctly MegaUpload

edit: TargetPresent, UseSkill, GetFoundList, GetIgnoreList, GetTooltipRec fix
Last edited by nah nah on 31.03.2018 15:41, edited 2 times in total.
bardobrado
Neophyte
Neophyte
Posts: 13
Joined: 29.03.2018 15:01

Re: GetFoundList() - struct.error: unpack requires a buffer

Post by bardobrado »

Thanks nah nah.

But i found 2 other problems

First, in methods.py.. is TargetPreset() when should be TargetPresent()., minor problem.

but the big problem is that UseSkill is not working in this version.

I tested UseSkill('Meditation') and the macro stop abruptly without showing error
bardobrado
Neophyte
Neophyte
Posts: 13
Joined: 29.03.2018 15:01

Re: GetFoundList() - struct.error: unpack requires a buffer

Post by bardobrado »

QuestRequest()
Is not working too
nah nah
Developer
Developer
Posts: 414
Joined: 13.07.2011 11:23
Contact:

Re: GetFoundList() - struct.error: unpack requires a buffer

Post by nah nah »

fixed MegaUpload

edit: TargetPresent, UseSkill, GetFoundList, GetIgnoreList, GetTooltipRec fix
Post Reply