Ran into a problem with memblocks. Used this code to fill a memblock with the value 0xff00ffff, but I get an error.
for i in range(12,agk.get_memblock_size(image_buffer),4):
agk.set_memblock_int(image_buffer,i,0xff00ffff)
The error reported is
OverflowError: Python int too large to convert to C long
Python ver 3.8.3 64 bit
AGK for python ver 2020.04.30
Edit:
Found a solution by building an int from bytes, there has to be a faster way though.
for i in range(12,agk.get_memblock_size(image_buffer),4):
agk.set_memblock_int(image_buffer,i,int.from_bytes([0xff,0x00,0xff,0xff],byteorder = 'big', signed = True))