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

Remote debug output errors #67

Open
dawnrs opened this issue Aug 15, 2023 · 1 comment
Open

Remote debug output errors #67

dawnrs opened this issue Aug 15, 2023 · 1 comment

Comments

@dawnrs
Copy link

dawnrs commented Aug 15, 2023

for condition in transition.conditions.values():
if not ("value" in condition): # Ignore trigger
continue
var label = line.vbox.get_node_or_null(NodePath(condition.name))
tween_labels.tween_property(label, "self_modulate", editor_complementary_color, 0.01)
tween_labels.tween_property(label, "self_modulate", Color.WHITE, 1)
else:
tween_lines.tween_property(line, "self_modulate", Color.WHITE, 0.1)
# Revert color of TransitionLine condition labels
for condition in transition.conditions.values():
if not ("value" in condition): # Ignore trigger
continue
var label = line.vbox.get_node_or_null(NodePath(condition.name))
if label.self_modulate != Color.WHITE:
tween_labels.tween_property(label, "self_modulate", Color.WHITE, 0.5)

In the line 99, these code sometimes may result this error when I use the remote debug part of this plugin:
res://addons/imjp94.yafsm/scenes/StateMachineEditorLayer.gd:101 - Invalid get index 'self_modulate' (on base: 'null instance').

And there also have some other errors output like:
scene/animation/tween.cpp:103 - Parameter "p_target" is null.

I suppose there are some places in the codes forgetting the null condition.
But the godot editor just print the information from assertion in C++ Code of Tween. So, I cannot find which part of GDScript result it.
I think it must not happen in my script code, because I have not used the tween in my code.

Thanks for any help.

@imjp94
Copy link
Owner

imjp94 commented Aug 15, 2023

I tried to reproduce the bug with a simple state machine, but it works fine:

remote_debug.mp4

Can you provide a minimal project that can reproduce the bug?

@imjp94 imjp94 changed the title Some problems in StateMachineEditorLayer Remote debug output errors Aug 15, 2023
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

2 participants