Code-Bullet / Hill-Climb-Racing-AI

Using neat to train an AI to play the classic hill climb racing game
97 stars 65 forks source link

Nothing happens #1

Open Sanjit1 opened 5 years ago

Sanjit1 commented 5 years ago

It starts loading and then nothing happens

Quillbert commented 5 years ago

try running on local server

Sanjit1 commented 5 years ago

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

Samuel-Kowatschek commented 5 years ago

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

Sanjit1 commented 5 years ago

Heh. I think it has something to do with WEB-GL

Gorzoid commented 5 years ago

I believe this is fixed by #3

Sanjit1 commented 5 years ago

Ok your code has fixed it CB now has to merge it

Sanjit1 commented 5 years ago

I will close this issue once he merges the code, so that when he looks at issues, then he will find this one

yosiisof commented 5 years ago

How can i contact code bullet, i got an idea for him to try

Sanjit1 commented 5 years ago

How can i contact code bullet, i got an idea for him to try

He has twitter

devilsnare007 commented 4 years ago

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:

  1. 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"
  2. Check box for "Internet Information Services" -> Let it install -- don't really need to reboot pc
  3. In Windows search bar (beside start button) - type: "IIS" -- select "Internet Information Services (IIS) manager"
  4. In the left panel expand ur PC -> right click 'sites' -> 'Add Website'
  5. 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....
  6. 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.
Sanjit1 commented 4 years ago

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

devilsnare007 commented 4 years ago
  1. Tested changing GENOME.JS to Genome.js -- does not work on chrome, firefox, edge
  2. 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.
Sanjit1 commented 4 years ago

Worked for me, are you running it via localhost?

devilsnare007 commented 4 years ago

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!

Sanjit1 commented 4 years ago

Well, glad to help :)

greggjaskiewicz commented 1 year ago

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..