Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Snicelory opened this issue Jun 19, 2024 · 0 comments

Comments

@Snicelory
Copy link

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.

  • Like this, there will be the error -

image

  • But here, for some reason, not -

image

  • The error in the Console -

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant