InvisibleSoldiers wrote:Syntax: Select all
@PreHook(GameMovement.AIRACCELERATE)
def pre_airaccelerate(stack_data):
game_movement = make_object(GameMovement, stack_data[0])
index = index_from_pointer(game_movement.player_pointer)
player = PLAYERS[index]
[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/plugins/jumpstats/jumpstats.py", line 38, in pre_airaccelerate
index = index_from_pointer(game_movement.player_pointer)
ValueError: Conversion from "Pointer" (<_memory.Pointer object at 0xe81ddd10>) to "Index" failed.Syntax: Select all
'pointer_attribute': {
'player_pointer': {
'type': 'POINTER',
'offset': 4
}
}
Full code?
InvisibleSoldiers wrote:L'In20Cible wrote:Try without _srv suffix.
Still the error.
Well, are you trying that on windows? Remember, .so = linux, .dll = windows.