Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type range error #4

Open
poltpolt opened this issue Sep 17, 2024 · 1 comment
Open

type range error #4

poltpolt opened this issue Sep 17, 2024 · 1 comment

Comments

@poltpolt
Copy link

I am not familiar with python but i get an error

and here is the command with its result

python3 parse_heightmap_xyz.py ../rincon50m.xyz
rincon50m.xyz
min: (-479502, 4398604) height: 24
max: (-469602, 4406004) height: 255
size: (9901, 7401)
0
0
Traceback (most recent call last):
File "/home/mintest/world2minetest/parse_heightmap_xyz.py", line 48, in
out.write(to_bytes(min_x, 4))
File "/home/mintest/world2minetest/_util.py", line 5, in to_bytes
x = [None, np.uint8, np.uint16, None, np.uint32]length
OverflowError: Python integer -479502 out of bounds for uint32

@poltpolt
Copy link
Author

poltpolt commented Sep 17, 2024

I was able to engage AI to fix the errors but the heightmap is basically 0
when i generated world with it it was plain as table

here are the changes done to stop the errors, @fyrk are you able to see if it makes sense?:
https://pastebin.com/xiWGMGNL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant