GodotECS / godex

Godex is a Godot Engine ECS library.
MIT License
1.2k stars 68 forks source link

Mesh rendering issues + shared_component initialization #312

Open jonasbhjulstad opened 3 months ago

jonasbhjulstad commented 3 months ago

I've built Godex and Godot (on recommended master tag 35cfaafda8073f700c9d2fe42a43d3d81eaaea67) This results in the following terminal output when launching and opening a newly created project:

Component: Child registered with ID: 16
Component: Disabled registered with ID: 17
WARNING: The component MeshComponent is not trivial copyable
     at: register_component (/home/deb/Documents/Godot/godex/modules/godot/components/../../../components/../ecs.h:608)
WARNING: The component MeshComponent is not trivial destructible
     at: register_component (/home/deb/Documents/Godot/godex/modules/godot/components/../../../components/../ecs.h:610)
WARNING: The component MeshComponent is not trivial copy assignable
     at: register_component (/home/deb/Documents/Godot/godex/modules/godot/components/../../../components/../ecs.h:612)
WARNING: The component MeshComponent is not trivial move assignable
     at: register_component (/home/deb/Documents/Godot/godex/modules/godot/components/../../../components/../ecs.h:614)
WARNING: The component MeshComponent is not trivial move constructible
     at: register_component (/home/deb/Documents/Godot/godex/modules/godot/components/../../../components/../ecs.h:616)
Component: MeshComponent registered with ID: 18
Component: TransformComponent registered with ID: 19
Component: InterpolatedTransformComponent registered with ID: 20
WARNING: The component Shape3DComponent is not trivial copyable
     at: register_component (/home/deb/Documents/Godot/godex/modules/godot/components/../../../components/../ecs.h:608)
WARNING: The component Shape3DComponent is not trivial destructible
     at: register_component (/home/deb/Documents/Godot/godex/modules/godot/components/../../../components/../ecs.h:610)
WARNING: The component Shape3DComponent is not trivial copy assignable
     at: register_component (/home/deb/Documents/Godot/godex/modules/godot/components/../../../components/../ecs.h:612)
WARNING: The component Shape3DComponent is not trivial move assignable
     at: register_component (/home/deb/Documents/Godot/godex/modules/godot/components/../../../components/../ecs.h:614)
WARNING: The component Shape3DComponent is not trivial move constructible
     at: register_component (/home/deb/Documents/Godot/godex/modules/godot/components/../../../components/../ecs.h:616)
Component: Shape3DComponent registered with ID: 21
Databag: SceneTreeDatabag registered with ID: 13
Databag: SceneTreeInfoDatabag registered with ID: 14
Databag: OsDatabag registered with ID: 15
Databag: EngineDatabag registered with ID: 16
Databag: MessageQueueDatabag registered with ID: 17
Databag: RenderingServerDatabag registered with ID: 18
Databag: RenderingScenarioDatabag registered with ID: 19
Databag: Physics3D registered with ID: 20
Databag: InputDatabag registered with ID: 21
Databag: TimersDatabag registered with ID: 22
SystemBundle: Rendering 3D registered with ID: 2
System: ScenarioManagerSystem registered with ID: 15
System: InterpolatesTransform registered with ID: 16
System: MeshUpdaterSystem registered with ID: 17
System: MeshTransformUpdaterSystem registered with ID: 18

SystemBundle: Physics registered with ID: 3
System Dispatcher: Physics registered with ID: 19
System: physics_init_frame registered with ID: 20
System: CallPhysicsProcess registered with ID: 21
System: StepPhysicsServer3D registered with ID: 22
System: physics_finalize_frame registered with ID: 23
SystemBundle: Utilities registered with ID: 4
System: TimerUpdaterSystem registered with ID: 24
System: TimerEventLauncherSystem registered with ID: 25
ERROR: This shared component is not init. So you can't use it.
   at: _get_property_list (/home/deb/Documents/Godot/godex/modules/godot/nodes/shared_component_resource.cpp:32)
WARNING: FBX file import is enabled, but no FBX2glTF path is configured. FBX files will not be imported.
     at: _editor_init (modules/gltf/register_types.cpp:92)

When I create a mesh entity3D in the editor it does not render:

no_render

(Same applies for 2D)

OS: Linux deb 6.5.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 7 09:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux