armory3d / armory3d/armory

"Uncaught TypeError: g.getFloat32" in run time, whith out config "Binary Scene Data"

Open
#2,376 10 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
C++
Stars
3.3k
Forks
353
Avg merge
3d 16h
Merged PRs (30d)
1

Description

**Description**

![image](https://user-images.githubusercontent.com/37361895/140295235-33f4386f-efd0-4dd9-995b-12c5f0f83e6c.png)
Error infomation:
```
Uncaught TypeError: g.getFloat32 is not a function
at armory_trait_physics_bullet_PhysicsWorld.createPhysics (kha.js:4826)
at new armory_trait_physics_bullet_PhysicsWorld (kha.js:4793)
at Function.Type.createInstance (kha.js:200)
at Function.iron_Scene.createTraitClassInstance (kha.js:8263)
at Function.iron_Scene.createTraits (kha.js:8175)
at kha.js:8411
at Function.iron_data_Data.getSceneRaw (kha.js:9213)
at iron_Scene.addScene (kha.js:8410)
at kha.js:7958
at Function.iron_data_Data.getWorld (kha.js:9149)
```
**To Reproduce**
**Step 1:** unchecked `Armory Exporter / Data / Binary Scene Data` like this:
![image](https://user-images.githubusercontent.com/37361895/140295730-7d1c5c2e-e19e-438f-bd5b-0d871001e8a9.png)

**Step 2:** `clean -> build -> Publish ` H5 game
**Step 3:** Run http-server in game root path, and open game in browser

**Expected behavior**
What you expected to happen.

**System**
Blender: 2.93.4
Armory: 202110
OS: Win10 Pro
Graphics card: GTX 1660

**Test File**
*(drag & drop the zipped .blend file here)*

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the HTML5 build with Armory Exporter’s Binary Scene Data option unchecked, following the clean, build, publish, and http-server steps. Start at kha.js:4826 in PhysicsWorld.createPhysics and trace the scene-loading path shown in the stack trace; done means the published game runs without the getFloat32 TypeError in this configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
blender, javascript
Domain
game-dev, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.