Forum

first character control + speaker on = fast preview crashed

04 March 2018 00:30
You should create the file named as webpack.config.js in the root of the sdk and insert the content of the file from the link or from the listing bellow:
const path = require('path');
module.exports = [
    {
    entry: path.resolve(__dirname, './index.js'),
        output: {
            path: path.resolve(__dirname, "dist"),
            filename: 'b4w.js'
        }
    },
    {
    entry: path.resolve(__dirname, './uranium/index.js'),
        output: {
            path: path.resolve(__dirname, "uranium"),
            filename: 'ipc.js'
        }
    },

]
Alexander (Blend4Web Team)
twitter
05 March 2018 19:26
I got it now , do you see something wrong ? it's endless

iMacdelouturier:blend4web_ce Armand$ make compile_b4w
Compiling b4w javascript
Hash: e8fa5f81374340c492982ef90fc138e4d102e652
Version: webpack 3.9.1
Child
Hash: e8fa5f81374340c49298
Time: 2747ms
Asset Size Chunks Chunk Names
b4w.js 4.92 MB 0 [emitted] [big] main
[7] ./src/libs/gl_matrix/vec4.js 14.7 kB {0} [built]
[9] ./src/libs/gl_matrix/quat.js 16.6 kB {0} [built]
[21] ./src/libs/gl_matrix/mat4.js 37.1 kB {0} [built]
[24] ./src/extern/controls.js 37.1 kB {0} [built]
[26] ./src/extern/util.js 13.2 kB {0} [built]
[27] ./src/libs/gl_matrix/mat3.js 15.2 kB {0} [built]
[29] ./src/extern/scenes.js 63 kB {0} [built]
[32] ./src/util/b4w.js 7.78 kB {0} [built]
[33] ./src/extern/camera.js 81.9 kB {0} [built]
[39] ./src/extern/container.js 6.61 kB {0} [built]
[40] ./src/extern/transform.js 23.6 kB {0} [built]
[49] ./src/extern/input.js 37.1 kB {0} [built]
[50] ./src/extern/screen.js 16.8 kB {0} [built]
[77] ./src/extern/data.js 4.09 kB {0} [built]
[84] ./index.js 6.44 kB {0} [built]
+ 104 hidden modules
Child
Hash: 2ef90fc138e4d102e652
Time: 2735ms
Asset Size Chunks Chunk Names
ipc.js 261 kB 0 [emitted] [big] main
[0] ./src/libs/gl_matrix/vec4.js 14.7 kB {0} [built]
[1] ./src/util/register.js 1.62 kB {0} [built]
[2] ./src/util/b4w.js 7.78 kB {0} [built]
[3] ./src/libs/gl_matrix/mat3.js 15.2 kB {0} [built]
[4] ./src/libs/gl_matrix/vec3.js 19.8 kB {0} [built]
[5] ./src/util/assert.js 4.39 kB {0} [built]
[6] ./src/intern/print.js 4.69 kB {0} [built]
[7] ./uranium/index.js 101 bytes {0} [built]
[8] ./src/intern/ipc.js 21.1 kB {0} [built]
[9] ./src/intern/util.js 66.7 kB {0} [built]
[10] ./src/libs/gl_matrix/mat4.js 37.1 kB {0} [built]
[11] ./src/intern/math.js 13.5 kB {0} [built]
[12] ./src/libs/gl_matrix/quat.js 16.6 kB {0} [built]
[13] ./src/util/generator.js 5.02 kB {0} [built]
[14] ./src/util/path.js 2.21 kB {0} [built]
env: python3: No such file or directory
make: *** [compile_b4w] Error 127
iMacdelouturier:blend4web_ce Armand$


The webpack.config.js folder in the blender4web_ce folder look like this below:


05 March 2018 19:31
and I find this in the webplayer.html
Html Webpack Plugin:
<pre>
  Error: Child compilation failed:
  Entry module not found: Error: Can't resolve '/Users/Armand/Desktop/blend4web_  ce/deploy/apps/webplayer/es6_webplayer.html' in '/Users/Armand/Desktop/blend4w  eb_ce':
  Error: Can't resolve '/Users/Armand/Desktop/blend4web_ce/deploy/apps/webplayer  /es6_webplayer.html' in '/Users/Armand/Desktop/blend4web_ce'
  
  - compiler.js:76 
    [blend4web_ce]/[html-webpack-plugin]/lib/compiler.js:76:16
  
  - Compiler.js:300 compile
    [blend4web_ce]/[webpack]/lib/Compiler.js:300:11
  
  - Compiler.js:510 applyPluginsAsync.err
    [blend4web_ce]/[webpack]/lib/Compiler.js:510:14
  
  - Tapable.js:202 next
    [blend4web_ce]/[tapable]/lib/Tapable.js:202:11
  
  - CachePlugin.js:78 Compiler.<anonymous>
    [blend4web_ce]/[webpack]/lib/CachePlugin.js:78:5
  
  - Tapable.js:206 Compiler.applyPluginsAsyncSeries
    [blend4web_ce]/[tapable]/lib/Tapable.js:206:13
  
  - Compiler.js:507 compilation.seal.err
    [blend4web_ce]/[webpack]/lib/Compiler.js:507:11
  
  - Tapable.js:195 Compilation.applyPluginsAsyncSeries
    [blend4web_ce]/[tapable]/lib/Tapable.js:195:46
  
  - Compilation.js:680 self.applyPluginsAsync.err
    [blend4web_ce]/[webpack]/lib/Compilation.js:680:19
  
  - Tapable.js:195 Compilation.applyPluginsAsyncSeries
    [blend4web_ce]/[tapable]/lib/Tapable.js:195:46
  
  - Compilation.js:671 self.applyPluginsAsync.err
    [blend4web_ce]/[webpack]/lib/Compilation.js:671:11
  
  - Tapable.js:195 Compilation.applyPluginsAsyncSeries
    [blend4web_ce]/[tapable]/lib/Tapable.js:195:46
  
  - Compilation.js:666 self.applyPluginsAsync.err
    [blend4web_ce]/[webpack]/lib/Compilation.js:666:10
  
  - Tapable.js:195 Compilation.applyPluginsAsyncSeries
    [blend4web_ce]/[tapable]/lib/Tapable.js:195:46
  
  - Compilation.js:662 sealPart2
    [blend4web_ce]/[webpack]/lib/Compilation.js:662:9
  
  - Tapable.js:195 Compilation.applyPluginsAsyncSeries
    [blend4web_ce]/[tapable]/lib/Tapable.js:195:46
  
</pre>
05 March 2018 21:54
Well, I've rebuilt it for you. See the attachment. You should merge blend4web_ce directory (find it in the archive) with your SDK directory.

If you are still interested in how to do this manually, check your logs. You can see, that python is required. So you can download python 3.5.4 from https://www.python.org/downloads/mac-osx/, install it and continue your attempts .
Alexander (Blend4Web Team)
twitter
07 March 2018 10:59
Thanks a lot Alexander, it's working well !
I will download Python, because i will need it soon ( I've to change the movement function)
 
Please register or log in to leave a reply.