BKcore / HexGL

Source code of HexGL, a futuristic HTML5 racing game

Home Page:http://hexgl.bkcore.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to make it work...

vsethuooo opened this issue · comments

I've downloaded the project. I'm getting an error like
Uncaught exception: TypeError: Cannot convert 'k' to object
Error thrown at line 346, column 204 in (a) in file://localhost/E:/Projects/HexGL/HexGL-master/js/Three.dev.js:
throw"Error creating WebGL context.";
called from line 248, column 1 in () in file://localhost/E:/Projects/HexGL/HexGL-master/bkcore/hexgl/HexGL.js:
var renderer = new THREE.WebGLRenderer({
called from line 65, column 1 in (opts) in file://localhost/E:/Projects/HexGL/HexGL-master/bkcore/hexgl/HexGL.js:
this.initRenderer();
called from line 78, column 4 in init() in file://localhost/E:/Projects/HexGL/HexGL-master/index.html:
hexGL = new bkcore.hexgl.HexGL({
called from line 106, column 3 in file://localhost/E:/Projects/HexGL/HexGL-master/index.html:
init();

Error initially occurred at line 346, column 270 in (a) in file://localhost/E:/Projects/HexGL/HexGL-master/js/Three.dev.js:
a=k.getExtension("OES_texture_float");
called from line 248, column 1 in () in file://localhost/E:/Projects/HexGL/HexGL-master/bkcore/hexgl/HexGL.js:
var renderer = new THREE.WebGLRenderer({
called from line 65, column 1 in (opts) in file://localhost/E:/Projects/HexGL/HexGL-master/bkcore/hexgl/HexGL.js:
this.initRenderer();
called from line 78, column 4 in init() in file://localhost/E:/Projects/HexGL/HexGL-master/index.html:
hexGL = new bkcore.hexgl.HexGL({
called from line 106, column 3 in file://localhost/E:/Projects/HexGL/HexGL-master/index.html:
init(); Inline script thread index.html:346
Uncaught exception: TypeError: Cannot convert 'k' to objectError thrown at line 7549, column 3 in (a) in file://localhost/E:/Projects/HexGL/HexGL-master/js/Three.dev.js:
throw "Error creating WebGL context.";
called from line 173, column 1 in () in file://localhost/E:/Projects/HexGL/HexGL-master/bkcore/hexgl/HexGL.js:
var renderer = new THREE.WebGLRenderer({
called from line 46, column 1 in (opts) in file://localhost/E:/Projects/HexGL/HexGL-master/bkcore/hexgl/HexGL.js:
this.initRenderer();
called from line 78, column 4 in init() in file://localhost/E:/Projects/HexGL/HexGL-master/index.html:
hexGL = new bkcore.hexgl.HexGL({
called from line 106, column 3 in file://localhost/E:/Projects/HexGL/HexGL-master/index.html:
init();

Error initially occurred at line 7554, column 1 in (a) in file://localhost/E:/Projects/HexGL/HexGL-master/js/Three.dev.js:
a = k.getExtension("OES_texture_float");
called from line 173, column 1 in () in file://localhost/E:/Projects/HexGL/HexGL-master/bkcore/hexgl/HexGL.js:
var renderer = new THREE.WebGLRenderer({
called from line 46, column 1 in (opts) in file://localhost/E:/Projects/HexGL/HexGL-master/bkcore/hexgl/HexGL.js:
this.initRenderer();
called from line 78, column 4 in init() in file://localhost/E:/Projects/HexGL/HexGL-master/index.html:
hexGL = new bkcore.hexgl.HexGL({
called from line 106, column 3 in file://localhost/E:/Projects/HexGL/HexGL-master/index.html:
init();

I'm running it on opera.. Win 7 64 bit, 6gb ram, nvidia 210... game works fine on the web... But not for the local machine

Make sure you're either running a local http server in HexGL's directory, or have local file access enabled in your browser. Also make sure WebGL context is not blocked in local files.

Will Apache work in that case as a local http server?

It should, but if you have python available, simply python -m SimpleHTTPServer in the directory and you're good.

Works. THanks! :)