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

Online examples severly broken #4

Open
StrandedAlien opened this issue Mar 29, 2022 · 5 comments
Open

Online examples severly broken #4

StrandedAlien opened this issue Mar 29, 2022 · 5 comments

Comments

@StrandedAlien
Copy link

StrandedAlien commented Mar 29, 2022

Too many to list... Almost looks like they have been generated automatically and nobody cared to check. Animation examples do not react to key presses, pause trait example does not pause... and so on. My guess

Animation examples: Traits not dedicated to object
pause trait examples: Did you set the checkbox for the pause trait in scene settings? Does not look like.

Would recommend to check them all.
You might want to also consider to remove examples from the web version, which may not be fully compatible with this target.
Like the material parameters example (third cube completely black)

Not very important, but it makes a bad impression when newbies check out Armory3D. My 2 cents.

@rpaladin
Copy link
Collaborator

Hello.
The mentioned Animation & Pause Trait examples all work for me.

I believe you forgot to click into your browser window to enable input checking. 🙂
Else input checking is disabled by default.

A few of the examples are known to be broken and are being fixed behind-the-scenes I believe.
If you would like to still double-check, feel free to state the ones you still believe to be broken so that others can verify.

Thanks.

@onelsonic
Copy link

I installed the examples using this process and over the 130 available examples 51 of them
do not compile correctly with a correct html5 output.
In those cases the "kha.js" that should be produced along with the other files is missing.
When testing the index.html all you will get is a white screen.

I listed below the examples that do no compile correctly and need review when using this process.

  • animation_bonechild
  • animation_movebone
  • archery
  • call_hx
  • call_js
  • debug_draw
  • ease
  • first_person
  • game_bowling
  • graphics_settings
  • input_multitouch
  • input_sensor
  • linked_proxy
  • logic_event_fromhaxe
  • logic_gamepad
  • macro_armpack
  • material_params
  • material_shaders
  • mesh_generate
  • mesh_import
  • platformer
  • playground
  • race_track
  • raycast_objects
  • render_splitscreen
  • render_to_texture
  • screentex
  • script_camera_lerp
  • script_linkedgroup
  • script_properties
  • script_properties_global
  • script_rigidbody_trigger
  • script_spawnobject
  • script_transform
  • server_stream
  • sound
  • spawn_from_scene
  • tanks_networking
  • tanks_script
  • third_person
  • third_person_terrain
  • tilesheet
  • tilesheet_2d
  • top_down
  • twin_stick
  • ui_canvas
  • ui_script2d
  • ui_script3d
  • vr_dino
  • wasm_call
  • world_sun_direction

@StrandedAlien
Copy link
Author

StrandedAlien commented May 30, 2022

Hi, what OS, Armory version and examples version have you been using? I used Manjaro, Amory3D 22/05 and a fresh git clone of the examples. I tried a few of the above mentioned examples and had no such troubles as kha.js not generated for browser target.

@tong
Copy link
Collaborator

tong commented May 31, 2022

Most of these fail only in blender background mode.
You can build in non-background mode by changing the argument passed to Project.buildGroup in the hxml files.

static function buildGroup( src : String, dst : String, forceRebuild = false, ignoreErrors = false, backgroundMode = true, ?ignoreProject : Array<String> ) {

@QuantumCoderQC
Copy link

QuantumCoderQC commented May 31, 2022

From what I understand, there are 3 reasons why an error might occur in building an example in background mode:

  1. If the Blend file is old and is no longer compatible with the current version of Armory. For example the vr_dino in this case. These examples must be ignored for build if not fixable.

  2. The blend file has logic nodes that did not / cannot auto-update to the newest version(faulty node-replacement). These can be fixed manually by simple replacing the respective logic nodes in each blend file.

  3. The example has a canvas or traits and the working directory is wrong. A part of this PR: Update Submodules and fix cwd for build process #2 was to fix this issue by changing the current working directory CWD before building the example (Changes made to the project.hx file). This solved most of my compilation issues with examples and is quite important.

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

5 participants