clan_tag
Posted: Sun Oct 11, 2015 6:31 pm
Good evening.
I tried to identify clantag player. I found the value of offset, added them to the data\source-python\entities\csgo\cssplayer.ini:
If you use the following code, an error.
Code:
I added a couple of print about the error and found what causes it:
packages\source-python\memory\manager.py:
Function fget (line 402):
Error:
http://hostingkartinok.com/show-image.php?id=8882856cf89a98d0245e9c4c98a78888
I tried to identify clantag player. I found the value of offset, added them to the data\source-python\entities\csgo\cssplayer.ini:
Syntax: Select all
[instance_attribute]
[[clan_tag]]
offset_linux = 29
offset_windows = 12
type = STRING_ARRAY
If you use the following code, an error.
Code:
Syntax: Select all
@Event('player_say')
def player_say(event):
player = PlayerEntity(index_from_userid(event.get_int('userid')))
# player.set_clan_tag("test")
print(player.clan_tag)
I added a couple of print about the error and found what causes it:
packages\source-python\memory\manager.py:
Function fget (line 402):
Syntax: Select all
def fget(ptr):
"""Return the instance attribute value."""
# Handle custom type
if not native_type:
return self.convert(type_name, ptr + offset)
# Handle native type
print(ptr)
print('get_' + type_name)
print(offset)
print(getattr(ptr, 'get_' + type_name))
print(getattr(ptr, 'get_' + type_name)(offset))
return getattr(ptr, 'get_' + type_name)(offset)
Error:
http://hostingkartinok.com/show-image.php?id=8882856cf89a98d0245e9c4c98a78888