armory3d / armory3d/armory_examples

Broken example projects

Open
#27 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
Haxe
Stars
67
Forks
38
PR merge metrics
No merged PRs in 30d

Description

There are several issues with building the example projects.
The results below are from https://github.com/tong/armory_examples_browser/actions building for the html5 target
It uses my [fork of armory_examples](https://github.com/tong/armory_examples/tree/examples-browser-compat) where every project is flattened to repo root, but beside that unchanged.

Also this doesn't mean that the projects run correctly, these are just the build time errors.

Fail to build:
```

✖ input_mouselock: 255, 2022ms
✖ logic_callgroup: 255, 3202ms
✖ logic_camera_pan: 255, 1895ms
✖ logic_camera_zoom: 255, 1954ms
✖ logic_event_global: 255, 2155ms
✖ logic_event_object: 255, 2039ms
✖ logic_hello_world: 255, 2988ms
✖ logic_object_rotate: 255, 1853ms
✖ logic_object_scale: 255, 2080ms
✖ logic_object_translate: 255, 1986ms
✖ logic_pause_trait: 255, 2089ms
✖ logic_pong: 255, 2054ms
✖ logic_scenes: 255, 2540ms
✖ logic_script: 255, 2504ms
✖ logic_set_property: 255, 3898ms
✖ logic_toy_car: 255, 4163ms
✖ logic_triggers: 255, 3656ms
✖ logic_watch_variable: 255, 3229ms
✖ material_params: 255, 2946ms
✖ material_shaders: 255, 5199ms
✖ mesh_terrain: 1, 4791ms
✖ particle_mesh: 255, 2754ms
✖ physics_raycast: 255, 3169ms
✖ tilesheet_walkcycle: 255, 3119ms
```

The complete results:
```
✔ animation_actions: 0, 6832ms
✔ animation_blend: 0, 6071ms
✔ animation_bonechild: 0, 4408ms
✔ animation_instanced: 0, 5626ms
✔ animation_movebone: 0, 5401ms
✔ animation_timeline: 0, 4254ms
✔ animation_uv: 0, 3331ms
✔ basic: 0, 4438ms
✔ call_hx: 0, 4386ms
✔ call_js: 0, 3586ms
✔ debug_draw: 0, 3588ms
✔ dev_logicnode: 0, 4401ms
✔ file_read: 0, 3540ms
✔ file_storage: 0, 3563ms
✔ file_write: 0, 3317ms
✔ game_bowling: 0, 4488ms
✔ graphics_settings: 0, 3661ms
✔ input_gamepad: 0, 3348ms
✖ input_mouselock: 255, 2022ms
✔ input_multitouch: 0, 3436ms
✔ input_sensor: 0, 4363ms
✔ instancing: 0, 3875ms
✔ light_area: 0, 3698ms
✔ light_ies: 0, 3659ms
✔ light_probes_cubemap: 0, 3740ms
✔ light_probes_plane: 0, 4233ms
✔ light_volumetric: 0, 3632ms
✔ linked_proxy: 0, 3247ms
✔ load_screen: 0, 3140ms
✔ lod: 0, 5999ms
✔ logic_break: 0, 3256ms
✖ logic_callgroup: 255, 3202ms
✖ logic_camera_pan: 255, 1895ms
✖ logic_camera_zoom: 255, 1954ms
✔ logic_canvas: 0, 4434ms
✔ logic_event_fromhaxe: 0, 4186ms
✖ logic_event_global: 255, 2155ms
✖ logic_event_object: 255, 2039ms
✔ logic_gate: 0, 3543ms
✔ logic_get_contacts: 0, 4244ms
✖ logic_hello_world: 255, 2988ms
✔ logic_keyboard: 0, 4549ms
✔ logic_linked_variable: 0, 4148ms
✔ logic_loadurl: 0, 4174ms
✖ logic_object_rotate: 255, 1853ms
✖ logic_object_scale: 255, 2080ms
✖ logic_object_translate: 255, 1986ms
✖ logic_pause_trait: 255, 2089ms
✖ logic_pong: 255, 2054ms
✖ logic_scenes: 255, 2540ms
✔ logic_scenetree: 0, 4258ms
✖ logic_script: 255, 2504ms
✖ logic_set_property: 255, 3898ms
✖ logic_toy_car: 255, 4163ms
✔ logic_transform: 0, 4545ms
✖ logic_triggers: 255, 3656ms
✖ logic_watch_variable: 255, 3229ms
✔ material_bake: 0, 3029ms
✔ material_batch: 0, 3408ms
✔ material_billboard: 0, 3678ms
✔ material_bump: 0, 3233ms
✔ material_decal: 0, 3296ms
✔ material_displace: 0, 4308ms
✔ material_movie: 0, 1805ms
✖ material_params: 255, 2946ms
✔ material_shadeless: 0, 3679ms
✖ material_shaders: 255, 5199ms
✔ material_translucent: 0, 4352ms
✔ mesh_generate: 0, 4246ms
✔ mesh_import: 0, 4306ms
✖ mesh_terrain: 1, 4791ms
✔ navmesh: 0, 5797ms
✔ particle_bunny: 0, 3307ms
✔ particle_hair: 0, 3502ms
✔ particle_info: 0, 4376ms
✖ particle_mesh: 255, 2754ms
✔ particle_smoke: 0, 3253ms
✔ physics_break: 0, 4255ms
✔ physics_collision_groups: 0, 4417ms
✔ physics_drag: 0, 4257ms
✔ physics_ragdoll: 0, 4103ms
✖ physics_raycast: 255, 3169ms
✔ physics_softbody: 0, 4280ms
✔ render_bloom: 0, 4212ms
✔ render_colorgrading: 0, 3390ms
✔ render_to_texture: 0, 3250ms
✔ render_voxelao_teapots: 0, 3658ms
✔ scene_stream: 0, 20281ms
✔ screentex: 0, 1055ms
✔ script_camera_lerp: 0, 1019ms
✔ script_linkedgroup: 0, 4371ms
✔ script_properties: 0, 4168ms
✔ script_properties_global: 0, 4136ms
✔ script_rigidbody_trigger: 0, 3352ms
✔ script_spawnobject: 0, 4213ms
✔ script_transform: 0, 4202ms
✔ server_stream: 0, 4149ms
✔ sound: 0, 3426ms
✔ spawn_from_scene: 0, 4224ms
✔ split_screen: 0, 4132ms
✔ tilesheet: 0, 2936ms
✔ tilesheet_2d: 0, 1658ms
✖ tilesheet_walkcycle: 255, 3119ms
✔ tween: 0, 3221ms
✔ ui_canvas: 0, 4328ms
✔ ui_events: 0, 4453ms
✔ ui_script2d: 0, 4386ms
✔ ui_script3d: 0, 3748ms
✔ wasm_call: 0, 4476ms
✔ wasm_trait_c: 0, 4542ms
✔ wasm_trait_rust: 0, 4478ms
✔ world_sun_direction: 0, 3394ms
```

The complete build log: [examples.log](https://github.com/armory3d/armory_examples/files/6772711/examples.log)

Most logic nodes examples fail to upgrade the blend files to the actual armory version, for example:
```
blender -b armory_examples/logic_event_object/logic_event_object.blend --python blender/build_project.py
Blender 2.93.1 (hash 1b8d33b18c2f built 2021-07-02 18:38:38)
Read prefs: /home/tong/.config/blender/2.93/config/userpref.blend
Armory: Proxy objects synchronized
Read blend: /home/tong/dev/ARMORY/armory_examples_browser/armory_examples/logic_event_object/logic_event_object.blend
ERROR: There were errors in the node update procedure, a detailed report has been written to /home/tong/dev/ARMORY/armory_examples_browser/armory_examples/logic_event_object/node_update_failure.2021-07-08T14-37-28+0200.txt
```
```
# Python backtrace
File "/usr/share/blender/2.93/scripts/modules/bpy_types.py", line 177 in popover
File "/home/tong/dev/ARMORY/armory_examples_browser/armsdk//armory/blender/arm/props_ui.py", line 2346 in execute
File "/usr/share/blender/2.93/scripts/modules/bpy/ops.py", line 132 in __call__
File "/home/tong/dev/ARMORY/armory_examples_browser/armsdk//armory/blender/arm/logicnode/replacement.py", line 276 in replace_all
File "/home/tong/dev/ARMORY/armory_examples_browser/armsdk//armory/blender/arm/props.py", line 505 in update_armory_world
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by rerunning the Blender command shown for logic_event_object and review examples.log alongside the generated node_update_failure report. Trace the upgrade path through blender/build_project.py, armsdk/armory/blender/arm/logicnode/replacement.py, and armsdk/armory/blender/arm/props.py; done means the listed failing example projects build for the html5 target without the reported errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
blender
Domain
build-system, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.