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

NoneType error on linebuild #533

Open
1AmYF opened this issue Aug 10, 2019 · 0 comments
Open

NoneType error on linebuild #533

1AmYF opened this issue Aug 10, 2019 · 0 comments
Labels
bug This issue reports a bug in piqueserver code and/or docs priority:normal This issue has a limited impact or is only noticable in specific circumstances

Comments

@1AmYF
Copy link
Contributor

1AmYF commented Aug 10, 2019

Joining a server and instantly switching to block tool and linebuilding can result in:

[stderr#error] File "-/piqueserver/pyspades/player.py", line 586, in on_block_line_recieved
[stderr#error] if not collision_3d(start_pos.x, start_pos.y, start_pos.z, x1, y1, z1,
[stderr#error] AttributeError: 'NoneType' object has no attribute 'x'

Seems that in player.py line_build_start_pos is None because on_weapon_input_recieved was not called yet, where it receives the position data. I also managed to get the error several times in a row, not only after joining, but not entirely sure how to reproduce it. Tested with Voxlap.

@1AmYF 1AmYF added bug This issue reports a bug in piqueserver code and/or docs triage The Priority of this Bug has not been decided yet. labels Aug 10, 2019
@NotAFile NotAFile added priority:normal This issue has a limited impact or is only noticable in specific circumstances and removed triage The Priority of this Bug has not been decided yet. labels Aug 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue reports a bug in piqueserver code and/or docs priority:normal This issue has a limited impact or is only noticable in specific circumstances
Projects
None yet
Development

No branches or pull requests

2 participants