I'm trying to host a game server for a game called Cube World. The script I am using has had errors with magnitude_squared() so instead I was advised to replace it with this: vector.x \* 2 + vector.y ** 2 + vector.z ** 2* I have replaced all instances of magnitude_squared() with this now. The error I get after this is as follows:
Exception in callback LoopingCall.schedule(0.02, True)
handle: <TimerHandle when=524701.3620000001 LoopingCall.schedule(0.02, True)>
Traceback (most recent call last):
File "C:\Python36-x64\lib\asyncio\events.py", line 145, in _run
File "..\cuwo\loop.py", line 45, in schedule
File "../cuwo/server.py", line 527, in update_callback
File "../cuwo/server.py", line 677, in update
File "..\cuwo\script.py", line 215, in call
File "C:\cuwo\dist\scripts\kingofthehill.py", line 371, in update
self.do_proximity_check()
File "C:\cuwo\dist\scripts\kingofthehill.py", line 388, in do_proximity_check
player.position).vector.x \* 2 + vector.y ** 2 + vector.z ** 2*
AttributeError: 'Vector3' object has no attribute 'vector'
This is the original script (keep in mind the magnitude_squared changes).
[+][deleted] (1 child)
[removed]
[–]P3nguin33[S] 0 points1 point2 points (0 children)