xela <-- looks guiltyPyTom wrote:funnys*
Could you fix panning demo error in Jake's battle engine? Just try it to replicate, it would seem that something that was returning an integer even in early 6.18 prereleases now results in a None.
*Couple of other demos are not working either but the errors are very, very similar.
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/scroll_demo.rpy", line 13, in script
python:
File "game/scroll_demo.rpy", line 122, in <module>
battle.Start()
File "game/engine.rpy", line 320, in Start
self.RunBattle()
File "game/engine.rpy", line 646, in RunBattle
self.RunBattleRound()
File "game/engine.rpy", line 654, in RunBattleRound
self._mechanic.RunBattleRound()
File "game/engine-schema.rpy", line 258, in RunBattleRound
self.RunFighterTurn(fighter)
File "game/engine-schema.rpy", line 236, in RunFighterTurn
fighter._battle.PointOfInterest(position=fighter.Position, fighter=fighter)
File "game/engine.rpy", line 623, in PointOfInterest
subscriber.PointOfInterest(position=position, fighter=fighter)
File "game/engine-extras.rpy", line 134, in PointOfInterest
self.PanTo(fighter.Position)
File "game/engine-extras.rpy", line 140, in PanTo
newX = position.Transform.xpos - (config.screen_width / 2)
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "D:\Coding\Dropbox\Dev\RenPy\renpy\bootstrap.py", line 289, in bootstrap
renpy.main.main()
File "D:\Coding\Dropbox\Dev\RenPy\renpy\main.py", line 357, in main
run(restart)
File "D:\Coding\Dropbox\Dev\RenPy\renpy\main.py", line 77, in run
renpy.execution.run_context(True)
File "D:\Coding\Dropbox\Dev\RenPy\renpy\execution.py", line 531, in run_context
context.run()
File "game/scroll_demo.rpy", line 13, in script
python:
File "D:\Coding\Dropbox\Dev\RenPy\renpy\ast.py", line 778, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "D:\Coding\Dropbox\Dev\RenPy\renpy\python.py", line 1382, in py_exec_bytecode
exec bytecode in globals, locals
File "game/scroll_demo.rpy", line 122, in <module>
battle.Start()
File "game/engine.rpy", line 320, in Start
self.RunBattle()
File "game/engine.rpy", line 646, in RunBattle
self.RunBattleRound()
File "game/engine.rpy", line 654, in RunBattleRound
self._mechanic.RunBattleRound()
File "game/engine-schema.rpy", line 258, in RunBattleRound
self.RunFighterTurn(fighter)
File "game/engine-schema.rpy", line 236, in RunFighterTurn
fighter._battle.PointOfInterest(position=fighter.Position, fighter=fighter)
File "game/engine.rpy", line 623, in PointOfInterest
subscriber.PointOfInterest(position=position, fighter=fighter)
File "game/engine-extras.rpy", line 134, in PointOfInterest
self.PanTo(fighter.Position)
File "game/engine-extras.rpy", line 140, in PanTo
newX = position.Transform.xpos - (config.screen_width / 2)
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
Windows-7-6.1.7601-SP1
Ren'Py 6.18.0.634