WebCraft icon indicating copy to clipboard operation
WebCraft copied to clipboard

singleplayer does not work

Open mrpi64 opened this issue 12 years ago • 14 comments

when i play singleplayer, i just get a black floor and the blocks on the top. that's it. i use google chrome.

mrpi64 avatar Jun 24 '13 11:06 mrpi64

yeah I've got the same problem..! and I use chrome too

ksrichard avatar Jul 12 '13 14:07 ksrichard

Does this work for you?

http://dev.vertinode.nl/WebCraft/singleplayer.html

I think the problem is that you're just opening singleplayer.html directly. The code won't work unless you put it on a local webserver.

Overv avatar Jul 12 '13 14:07 Overv

Nope.

mrpi64 avatar Jul 13 '13 14:07 mrpi64

Please tell me if you see any error messages in the developer console, because it works fine here with the latest Chrome and Firefox.

Overv avatar Jul 13 '13 16:07 Overv

The link you posted worked for me but it was terribly laggy compared to the normal one (same issue, everything except block selector is black)

ghost avatar Jul 13 '13 17:07 ghost

@mrpi64 @Quarynn I'm afraid I have no idea what causes this.

Overv avatar Jul 13 '13 17:07 Overv

on my local webserver works fine the multiplayer too :) so thank you! :)

ksrichard avatar Jul 13 '13 19:07 ksrichard

my other question is how can i add more blocks to use? :)

ksrichard avatar Jul 13 '13 19:07 ksrichard

Learn Javascript and go through the code?

ghost avatar Jul 14 '13 16:07 ghost

On 14 July 2013 17:59, Quarynn [email protected] wrote:

Learn Javascript and go through the code?

— Reply to this email directly or view it on GitHubhttps://github.com/Overv/WebCraft/issues/9#issuecomment-20939511 .

I think the problem is webGL. I'm using an ARM 32-bit linux machine.

mrpi64 avatar Jul 30 '13 10:07 mrpi64

Hey when I opened the game everything was just black! Is there something wrong with the lighting? If you could help that would be great, but so far good job on the game, just need to fix some minor issues!

LublubXT avatar Nov 13 '20 11:11 LublubXT

@LublubXT If you just open the html file in a browser, textures will be missing and look black. If you use any simple web server (e.g. python3 -m http.server) singleplayer.html will work correctly. Multiplayer.html needs the custom server.js script: https://github.com/Overv/WebCraft/issues/46#issuecomment-605383125

cymno avatar Nov 13 '20 13:11 cymno

Thanks!

LublubXT avatar Nov 14 '20 13:11 LublubXT

Also check this out:

https://github.com/Cobra-Tec-Inc/Number_Line_1.0

It the app we made. It does have some bugs but should be fixed by next week.

LublubXT avatar Nov 14 '20 13:11 LublubXT