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

Error while importing worldspawn-layers example map #3

Open
EMBYRDEV opened this issue Jan 21, 2023 · 1 comment · Fixed by #6
Open

Error while importing worldspawn-layers example map #3

EMBYRDEV opened this issue Jan 21, 2023 · 1 comment · Fixed by #6
Labels
bug Something isn't working example content Related to example scenes, entities, assets.

Comments

@EMBYRDEV
Copy link
Collaborator

Importing worldspawn-layers example map produces the following errors.

  modules/mono/glue/runtime_interop.cpp:1223 - System.NullReferenceException: Object reference not set to an instance of an object.
     at Qodot.Qodot.SetWorldspawnLayers(Array worldspawnLayers) in C:\Users\Embyr\Repos\Qodot\addons\qodot\src\core\Qodot.cs:line 70
     at Qodot.Qodot.InvokeGodotClassMethod(godot_string_name& method, NativeVariantPtrArgs args, godot_variant& ret) in C:\Users\Embyr\Repos\Qodot\Godot.SourceGenerators\Godot.SourceGenerators.ScriptMethodsGenerator\Qodot.Qodot_ScriptMethods.generated.cs:line 74
     at Godot.Bridge.CSharpInstanceBridge.Call(IntPtr godotObjectGCHandle, godot_string_name* method, godot_variant** args, Int32 argCount, godot_variant_call_error* refCallError, godot_variant* ret) in /root/godot/modules/mono/glue/GodotSharp/GodotSharp/Core/Bridge/CSharpInstanceBridge.cs:line 24
  Can't add child 'entity_0_worldspawn' to 'WorldspawnLayers', already has a parent 'QodotMap'.
  res://addons/qodot/src/nodes/qodot_map.gd:209 - Invalid type in function 'add_sibling' in base 'Node3D (QodotMap)'. Cannot convert argument 2 from Object to bool.
  Can't add child 'entity_0_worldspawn' to 'WorldspawnLayers', already has a parent 'QodotMap'.
  res://addons/qodot/src/nodes/qodot_map.gd:209 - Invalid type in function 'add_sibling' in base 'Node3D (QodotMap)'. Cannot convert argument 2 from Object to bool.
  Can't add child 'entity_0_worldspawn' to 'WorldspawnLayers', already has a parent 'QodotMap'.
  res://addons/qodot/src/nodes/qodot_map.gd:209 - Invalid type in function 'add_sibling' in base 'Node3D (QodotMap)'. Cannot convert argument 2 from Object to bool.
@EMBYRDEV
Copy link
Collaborator Author

This is only partially fixed. The C# null reference still persists.

@EMBYRDEV EMBYRDEV reopened this Jan 23, 2023
@DeerTears DeerTears added bug Something isn't working example content Related to example scenes, entities, assets. labels Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working example content Related to example scenes, entities, assets.
Development

Successfully merging a pull request may close this issue.

2 participants