Heramb89 Posted October 1, 2018 Share Posted October 1, 2018 Hi, I have HTML source code for a board game. I don't know anything about game development. From last few days, I am trying many other softwares construct 2, Unity, Gamemaker, Android Studio but didn't work it at all. Kindly tell me in which software I will able to open and play this game? When I double-click it, it opens in my web browser but can't go ahead of that. The game isn't playing. Please help!!! Quote Link to comment Share on other sites More sharing options...
dude78 Posted October 1, 2018 Share Posted October 1, 2018 Html usually runs in your browser. Please show console when you open the game in a browser. Heramb89 1 Quote Link to comment Share on other sites More sharing options...
Heramb89 Posted October 2, 2018 Author Share Posted October 2, 2018 It is actually not even running in the browser. How should I show console in the browser? Quote Link to comment Share on other sites More sharing options...
Milton Posted October 2, 2018 Share Posted October 2, 2018 You probably need a web server. Download Mongoose and point it to your source directory. Then it will tell you where to browse to. Heramb89 1 Quote Link to comment Share on other sites More sharing options...
Heramb89 Posted October 2, 2018 Author Share Posted October 2, 2018 But I want to edit, manipulate the code. Which software should I use for that? I have downloaded android studio, construct 2, gamemaker. The code contains html5, java & css. Quote Link to comment Share on other sites More sharing options...
Milton Posted October 2, 2018 Share Posted October 2, 2018 Html5 and css you can edit with your favorite text editor. Even notepad. Java needs to compile, and won't run on any browser these days. Android studio is a good choice. This probably means it's a Java project, and you need to run a jar. Maybe you can list the directory (tree) here, so we can try to recognize how it was made, and what jar to run. Heramb89 1 Quote Link to comment Share on other sites More sharing options...
Heramb89 Posted October 2, 2018 Author Share Posted October 2, 2018 Thanks Milton I have attached whatever I have. Please check. isto.zip Quote Link to comment Share on other sites More sharing options...
Milton Posted October 2, 2018 Share Posted October 2, 2018 You haven't zipped the tree recursively. It's missing a nowjs directory, with file now.js. So far it's pure javascript (nodejs), I don't see any Java. So you can just edit this with notepad or whatever (maybe google a 'javascript IDE'). It loads fine, but then hangs on now.js: Failed to load resource: the server responded with a status of 404 (Not Found) To run this you need a webserver like mongoose. Heramb89 1 Quote Link to comment Share on other sites More sharing options...
Heramb89 Posted October 2, 2018 Author Share Posted October 2, 2018 I have Apache24. Is it gonna help? I am afraid I don't have now.js I downloaded this code from here: https://github.com/mansoorelahi/chowka-bhara It doesn't have anything like now.js Quote Link to comment Share on other sites More sharing options...
Heramb89 Posted October 2, 2018 Author Share Posted October 2, 2018 Is this gonna help? now-master.zip Quote Link to comment Share on other sites More sharing options...
Milton Posted October 2, 2018 Share Posted October 2, 2018 It should. Just copy a client version of now.js to the isto/nowjs directory. To use apache, just copy your directory to your WWW directory (look it up) and then browse to localhost/isto If it doesn't work, press CTRL-Shift-J for the error. Heramb89 1 Quote Link to comment Share on other sites More sharing options...
mattstyles Posted October 4, 2018 Share Posted October 4, 2018 Unfortunately the git repo you posted for chowka-bhara does not contain a package.json, which it should. To make matters worse now.js no longer exists, there is a git repo for it here but looks like the author has kindly donated the npm name to a project which is maintained (now.js was last touched, in github at least, 7 years ago). You can get around this as you have the zip (I used your zip for now, haven't looked at the other) or you could grab and build it yourself from the above repo link. I managed to get it running (see attached screenshot) using the following slightly awkward process: * Make sure you are using an old version of node, this project is old and won't even fire up. I used 6.14.3. * install socket and node-proxy (npm i socket.io node-proxy) * unzip now-master and copy in to node_module/now (this is almost like installing from npm) * run the main.js file using node (node main.js) This fires up the server and starts it serving up the stuff it needs. Unfortunately there is also a problem in the repo with the client code so it errors and the program does not work as expected (it is unplayable), see error screenshot. Heramb89 1 Quote Link to comment Share on other sites More sharing options...
Heramb89 Posted October 4, 2018 Author Share Posted October 4, 2018 Thanks for the detailed info. I got it, it's not gonna work. I probably have to make this game through scratch. Quote Link to comment Share on other sites More sharing options...
mattstyles Posted October 4, 2018 Share Posted October 4, 2018 You always use that project as source material. I expect I ended up installing a newer version of socket.io and that is probably over a major version hence it is broken. So, yeah, maybe that project will help you get started. Either way, good luck getting something up and running. Multiplayer is hard so keep at it! Heramb89 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.