p-blomberg/yamosg — Issue #10: Server crash when moving station
Author: p-blomberg
Created: 2011-12-29 23:02:28+00:00
State: open

('127.0.0.1', 52834)::foo ['6 ENTACTION Station_0001 MOVE -61.2000048637 36.38 0.0'] -> ['6 OK']
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/Users/slafs/Sites/projekt-github/yamosg/server/__main__.py", line 22, in
server.Server("0.0.0.0", 1234).main()
File "/Users/slafs/Sites/projekt-github/yamosg/server/__init__.py", line 134, in main
self.tick()
File "/Users/slafs/Sites/projekt-github/yamosg/server/__init__.py", line 129, in tick
self.game.tick()
File "/Users/slafs/Sites/projekt-github/yamosg/server/__init__.py", line 339, in tick
o.tick(key_tick)
File "/Users/slafs/Sites/projekt-github/yamosg/server/entity.py", line 135, in tick
self._velocity = self._velocity.normalize() * self.max_speed
File "/Users/slafs/Sites/projekt-github/yamosg/common/vector.py", line 113, in __mul__
return self.__class__(self.x * scalar, self.y * scalar, self.z * scalar)
TypeError: unsupported operand type(s) for *: 'float' and 'NoneType'