UPBGE / UPBGE-logicnodes

A Node-based Logic system for UPBGE 2.8+
Other
52 stars 18 forks source link

Gate Node "AND" gives Error or not, based on the orientation the inputs are connected to the sockets #100

Open Snicelory opened 3 months ago

Snicelory commented 3 months ago

Hi, hope the Title is somewhat understandable. Please change it, if you know something better.

So I have a Node Tree which uses a gate with "And" which gave me an error. I eventually got the answer to why, but it seems to be a bug. Here is the Tree, in the state in which it WILL give the error. The fixed state would be to reverse the inputs on the gate. For clareity I will post still post an Image for that.

image

image

Blender Game Engine Started Debug: On-Screen Console active; Check System Console for Errors. [ERROR] KX_PythonComponent[ChangeTrack] - Failed to invoke the start callback. Traceback (most recent call last): File "C:\Users\Marce\Desktop\UPBGE\Eisenbahn 2.0\Eisenbahn 2.0 NEU.blend\nl_changetrack.py", line 95, in start File "C:\Users\Marce\Desktop\UPBGE\Eisenbahn 2.0\Eisenbahn 2.0 NEU.blend\nl_changetrack.py", line 76, in evaluate File "C:\Program Files\Blender Foundation\upbge-0.42.0-windows-x86_64\4.2\python\Lib\site-packages\uplogic\nodes\logictree.py", line 139, in evaluate cell.evaluate() File "C:\Program Files\Blender Foundation\upbge-0.42.0-windows-x86_64\4.2\python\Lib\site-packages\uplogic\nodes\actions\setproperty.py", line 20, in evaluate if not self.get_input(self.condition): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Blender Foundation\upbge-0.42.0-windows-x86_64\4.2\python\Lib\site-packages\uplogic\nodes__init.py", line 154, in get_input return param.get_value() ^^^^^^^^^^^^^^^^^ File "C:\Program Files\Blender Foundation\upbge-0.42.0-windows-x86_64\4.2\python\Lib\site-packages\uplogic\nodes\conditions\logicgate.py", line 32, in get_and ca = self.get_input(self.ca) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Blender Foundation\upbge-0.42.0-windows-x86_64\4.2\python\Lib\site-packages\uplogic\nodes__init__.py", line 154, in get_input return param.get_value() ^^^^^^^^^^^^^^^^^ File "C:\Program Files\Blender Foundation\upbge-0.42.0-windows-x86_64\4.2\python\Lib\site-packages\uplogic\nodes__init__.py", line 117, in get_value result = self._value_getter() ^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Blender Foundation\upbge-0.42.0-windows-x86_64\4.2\python\Lib\site-packages\uplogic\nodes\parameters\getproperty.py", line 18, in get_property game_object.getPropertyNames() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'getPropertyNames' --- Logging error --- Traceback (most recent call last): File "C:\Program Files\Blender Foundation\upbge-0.42.0-windows-x86_64\4.2\scripts\modules\bge_extras\logger.py", line 122, in emit bpy.ops.console.scrollback_append(context, text=line, type=msg_type) File "C:\Program Files\Blender Foundation\upbge-0.42.0-windows-x86_64\4.2\scripts\modules\bpy\ops.py", line 106, in call C_exec, C_undo = _BPyOpsSubModOp._parse_args(args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Blender Foundation\upbge-0.42.0-windows-x86_64\4.2\scripts\modules\bpy\ops.py", line 60, in _parse_args raise ValueError("1-2 args execution context is supported") ValueError: 1-2 args execution context is supported Call stack: File "C:\Program Files\Blender Foundation\upbge-0.42.0-windows-x86_64\4.2\python\Lib\logging__init.py", line 1518, in error self._log(ERROR, msg, args, **kwargs) File "C:\Program Files\Blender Foundation\upbge-0.42.0-windows-x86_64\4.2\python\Lib\logging__init.py", line 1634, in _log self.handle(record) File "C:\Program Files\Blender Foundation\upbge-0.42.0-windows-x86_64\4.2\python\Lib\logging\init__.py", line 1644, in handle self.callHandlers(record) File "C:\Program Files\Blender Foundation\upbge-0.42.0-windows-x86_64\4.2\python\Lib\logging\init__.py", line 1706, in callHandlers hdlr.handle(record) File "C:\Program Files\Blender Foundation\upbge-0.42.0-windows-x86_64\4.2\python\Lib\logging\init__.py", line 978, in handle self.emit(record) File "C:\Program Files\Blender Foundation\upbge-0.42.0-windows-x86_64\4.2\scripts\modules\bge_extras\logger.py", line 130, in emit self.handleError(record) Message: 'Failed to invoke the start callback.' Arguments: () Blender Game Engine Finished

Hope my Info is helpful! Kind Regards Marcel