Headless client seems not emulate html

Hi, all.

I want to play around with the headless client and have followed the instructions to setup the dev environment.

The web server was up and the database has loaded.

However, when I try to simulate a one game via simulate.coffee script, I meet the following error:

loading /Users/cyyuen/projects/coco/app/lib/simulator/Simulator

loading /Users/cyyuen/projects/coco/app/models/SuperModel

loading /Users/cyyuen/projects/coco/app/core/CocoClass

loading ./../core/utils


TypeError: Object #<Object> has no method 'createElement'
  at Object.<anonymous> (/Users/cyyuen/projects/coco/app/core/utils.coffee:148:20)
  at Object.<anonymous> (/Users/cyyuen/projects/coco/app/core/utils.coffee:1:1)
  at Module._compile (module.js:456:26)
  at Object.loadFile (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:16:19)
  at Module.load (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
  at Module._load (module.js:312:12)
  at Function.hookedLoader [as _load] (/Users/cyyuen/projects/coco/headless_client.coffee:74:3)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at Object.<anonymous> (/Users/cyyuen/projects/coco/app/core/CocoClass.coffee:2:9)
  at Object.<anonymous> (/Users/cyyuen/projects/coco/app/core/CocoClass.coffee:2:1)
  at Module._compile (module.js:456:26)
  at Object.loadFile (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:16:19)
  at Module.load (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
  at Module._load (module.js:312:12)
  at Function.hookedLoader [as _load] (/Users/cyyuen/projects/coco/headless_client.coffee:74:3)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at Object.<anonymous> (/Users/cyyuen/projects/coco/app/lib/simulator/Simulator.coffee:2:13)
  at Object.<anonymous> (/Users/cyyuen/projects/coco/app/lib/simulator/Simulator.coffee:1:1)
  at Module._compile (module.js:456:26)
  at Object.loadFile (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:16:19)
  at Module.load (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
  at Module._load (module.js:312:12)
  at Function.hookedLoader [as _load] (/Users/cyyuen/projects/coco/headless_client.coffee:74:3)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at Object.$.ajax.success (/Users/cyyuen/projects/coco/headless_client.coffee:117:17)
  at fire (/Users/cyyuen/projects/coco/node_modules/JQDeferred/lib/jquery-deferred.js:212:30)
  at Object.self.fireWith [as resolveWith] (/Users/cyyuen/projects/coco/node_modules/JQDeferred/lib/jquery-deferred.js:324:7)
  at Object.deferred.(anonymous function) [as resolve] (/Users/cyyuen/projects/coco/node_modules/JQDeferred/lib/jquery-deferred.js:73:33)
  at Request._callback (/Users/cyyuen/projects/coco/headless_client/jQlone.coffee:43:18)
  at Request.self.callback (/Users/cyyuen/projects/coco/node_modules/request/main.js:122:22)
  at Request.EventEmitter.emit (events.js:98:17)
  at Request.<anonymous> (/Users/cyyuen/projects/coco/node_modules/request/main.js:661:16)
  at Request.EventEmitter.emit (events.js:117:20)
  at IncomingMessage.<anonymous> (/Users/cyyuen/projects/coco/node_modules/request/main.js:623:14)
  at IncomingMessage.EventEmitter.emit (events.js:117:20)
  at _stream_readable.js:920:16
  at process._tickCallback (node.js:415:13)

It seems the html is not emulated in server side. Is there any steps I have missed?

Thanks
Tony

The headless client has not been updated for a very long time. Currently, it is not working, and even if it was working, it simulates games incorrectly. I’ve tried decoding it, go talk to me on HipChat if you want to go fix it.

Hi Popey. I am interesting in fix it. Can I send email to you for communication? I am in HK. It might hard to find you in HipChat but I would try my best.

You can join our HipChat even without an account via the linked webinterface. You will be asked to provide a name. While it is of course not required, most people use their real name or some derivate of it.

Popey is pretty easily to find when he is online (and impossible if he is offline, kinda makes sense).
There are also a lot of other people sticking around, most of which worked with the DevEnvironment themselves and which can help you with any problem that might arise (probably).

Also, I did fix the headless client, so it should be working now. Try it out and let me know how it goes.