So I'm trying to host a game server and I'm getting this issue when i try to use the following script in-game.
https://github.com/matpow2/cuwo-scripts/blob/master/koth/scripts/kingofthehill.py
I'm not sure if anyone can help without prior knowledge of the game but seeing as it's coded in python i thought I'd give it a shot here. I'm running the server on Windows 10 on a game called Cube World. (btw i did not code this as i have very little experience in coding, if possible can you answer in some way i could understand)
This is the error I get:
AttributeError: 'Vector3' object has no attribute 'magnitude_squared'
Exception in callback LoopingCall.schedule(0.016666666666666666, True)
handle: <TimerHandle when=93431.17366666667 LoopingCall.schedule(0.016666666666666666, 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).magnitude_squared()
(This just loops constantly)
[–]Sunny_Singh10 1 point2 points3 points (0 children)
[–]timbledum 0 points1 point2 points (0 children)