Open Sanjit1 opened 5 years ago
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
I believe this is fixed by #3
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:
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
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..
It starts loading and then nothing happens