From d4d904d56fce077f43d304e293f637589d26d494 Mon Sep 17 00:00:00 2001 From: Anne Ogborn Date: Sat, 18 Feb 2017 19:51:09 -0800 Subject: [PATCH] updated for protocol change in game.js. Now getting bad data from server on line 39 of game.js but I dont know whats bad about it --- README.md | 4 ++++ js/game.js | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 814f93b..d77f2a0 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,10 @@ Our Ludum Dare entry ## Installing Francs Tireurs +Install pack plchatscript with + +pack_install(plchatscript). + You'll need to install chatscript from chatscript.sourceforge.net It comes with binaries for linux 32 and 64 and windows.exe diff --git a/js/game.js b/js/game.js index 483aa0b..3d3c804 100644 --- a/js/game.js +++ b/js/game.js @@ -35,7 +35,7 @@ function makeQuery(goal) { ask: goal, template: "X", onsuccess: function() { - var js = this.data[0].functor; + var js = this.data[0]; eval(js); }, onerror: function() { @@ -142,3 +142,4 @@ function clearAll() { $("#invList").empty(); } +