qb-0 / pyMeow

Python Game Hacking Library
MIT License
355 stars 39 forks source link

gui_text_box() returns 200 null bytes after expected value #10

Closed xmrstickers closed 1 year ago

xmrstickers commented 1 year ago

test: hello = pm.gui_text_box(posX=20, posY=30, width=50, height=30, text="hello", id=0) print(len(hello)) expected: 5; returns: 205 temporary workaround: hello = hello.rstrip('\x00')

https://github.com/qb-0/pyMeow/blob/26f3ef161d7bf494cd4498a5dd45ab4e06b9a2d5/src/gui.nim#L95

I know nothing about nim, but it looks to be appending 200 null bytes to the given value - (some more info in discord when I first discovered bug)