Nothing happens
Opened this issue · 16 comments
It starts loading and then nothing happens
try running on local server
Still does not work, but the code I found on his website, thebigcb.com worked perfectly when I used github pages, github.com/Sanjit1/hillClimbRacing
For me it works if I just load the index.html on my windows pc, but not if I put it on my (linux) server or on my friends macbook.
Is it possible that the code is just compatible with windows? Would be weird tho
Heh. I think it has something to do with WEB-GL
Ok your code has fixed it CB now has to merge it
I will close this issue once he merges the code, so that when he looks at issues, then he will find this one
How can i contact code bullet, i got an idea for him to try
How can i contact code bullet, i got an idea for him to try
He has twitter
While i understand the last post was about a year ago; however, considering I ran into this issue myself today, I thought I might share the solution here for other noobies like me....
-- if by 'Nothing happens' you mean it says 'Loading..... ' -- and never loads (tested chrome, firefox, edge), its cuz you need to run the index.html on a local webserver (as stated above). If using Win 10 - follow these steps to get it going:
- In Windows search bar (beside start button) - type: "turn windows features on or off" OR goto Control panel -> Programs and features (assuming small icons view is selected) and on the left hand side select "turn windows features on or off"
- Check box for "Internet Information Services" -> Let it install -- don't really need to reboot pc
- In Windows search bar (beside start button) - type: "IIS" -- select "Internet Information Services (IIS) manager"
- In the left panel expand ur PC -> right click 'sites' -> 'Add Website'
- Give it a name (anything really), for the Physical path - select the top level directory for the repo 'Hill-Climb-Racing-AI-master', for Binding sub-category -- leave it as type:http, IP address: 'All assigned', Port: 80, Hostname: 'localhost' -- u can change these to whatever u want tbh... but for sake of simplicity....
- Go back to chrome, enter localhost in url and press enter, give it a min to load and the 'Loading.....' will be replaced with the actual game graphics.
Woah that's a little bit fancy, but @Gorzoid fixed it in his pull request, but just on case you do not want to use his fork of the repository, all you need to do is change the file GENOME.JS
to Genome.js
- Tested changing GENOME.JS to Genome.js -- does not work on chrome, firefox, edge
- Tested Gorzoid's repo - which essentially appears to do the same thing as 1, unless he made changes in code - it also does not work.
Worked for me, are you running it via localhost?
Ahh - yes it works via localhost indeed, I was trying to run the index file in chrome (not localhost). The method I outlined above essentially is a complicated way of running a local webserver (localhost). If only I'd seen the fork first - would have saved me a couple hours. Thanks for your reply!
Well, glad to help :)
Simply run :
cd Hill-Climb-Racing-AI
python3 -m http.server&
open 'http://127.0.0.1:8000'
And if you're not on macOS or linux, and running windows - wtf is wrong with you..