LabyStudio / js-minecraft

A browser sandbox that provides all basic features to understand the render and physics engine of Minecraft.
Other
76 stars 31 forks source link

Multiplayer #11

Closed CrazyH2 closed 8 months ago

CrazyH2 commented 11 months ago

@LabyStudio how do i setup a server? I would love to carry on this project but this is a major block

CrazyH2 commented 10 months ago

I set it up properly. In a few weeks I will issue a pull request with all details. Some server side commands needed to be additionally implemented. But it works flawlessly. But I needed to do more than 50 commits to get it right. Now the final step missing is saving the state in singleplayer mode in indexdb. But I think I should get it running in the next few days. I also implemented a blocklike programming language. So you can have tnt exploding. Why I am not yet opening the pull request is that i need to search for possible copyright and trademark issues and also fix the history if necessary.

how is it going? @kiliansinger

CrazyH2 commented 10 months ago

Great news, the project is under non-commercial creative common license. X-mas time is great to do the final fixes. So stay tuned.

good? @kiliansinger

CrazyH2 commented 10 months ago

Done.

@kiliansinger It looks great :) Im going to add a world select menu and do the same for servers but imma add a limit of saved servers and saved worlds you can have what should it be? I'm thinking 20 servers and 4 worlds. I could save the worlds in a server somewhere else

CrazyH2 commented 10 months ago

also checkout the programming environment: https://mintrobi.de/block and press c. if you have functions you can use them in the chat dialog... here are some programs e.g. tnt: https://mintrobi.de/teach/mintblockprogramme/ but you need a patched server. I put the patch also on git: https://github.com/kiliansinger/mintblock/blob/master/websocketproxy/cuberite_blockly_patch_from_git_hash_ca705be2649a205caac2a449704b55dd029ea13b.patch

@kiliansinger this is so cool I'm going to improve it but i realised that every second there is a flash where you can see the splash screen. do you have any idea on how to fix it?

CrazyH2 commented 10 months ago

ppens on your git clone. You need to have python environment and do npm i, npm run build in the blockly_git folder. But we should discuss theses things

it happens when using mintblock @kiliansinger I use chrome latest

kiliansinger commented 10 months ago

Oh I reproduced it. you need as shortly described above do: start python environment (e.g miniconda) then:

cd blockly_git npm i npm run build

CrazyH2 commented 10 months ago

Oh I reproduced it. you need as shortly described above do: start python environment (e.g miniconda) then:

cd blockly_git npm i npm run build

I know but when I use the public hosted version of mintblock it still happens :/ @kiliansinger

CrazyH2 commented 10 months ago

lets continue this on my github as an issue, I do not want to hijack this channel...

i cant open issues on your github and the issue I'm talking about also happens with the original

CrazyH2 commented 10 months ago

@kiliansinger the issue seems to be with the background as the main menu doesn't have the problem as it has a panorama and all the buttons and text on other menus still show while it flickers.

CrazyH2 commented 10 months ago

Oh I need to figure out how to allow issue posting. But with original you mean: https://labystudio.de/page/minecraft/

Which OS are you using. Does it also happen on other computers you might have access to? It might be something that cannot dynamically load. There is a cool method called git bisect. It is binary search and one can find the commit that introduced the incompatbility even if it just affects one specific constellation of system.

Did you try running the code locally? I am using vs-code with the live-server plugin: https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer

you can do a: git clone https://https://github.com/kiliansinger/mintblock then checkout the version without blockly (the pullrequest) git checkout labystudio_pullrequest

then open vs-code and start the live-server. and do a git bisect to find the commit that introduced the problem. No worries as it is binary search it takes only about 8 tries to find the one. Here is a tutorial: https://www.metaltoad.com/blog/beginners-guide-git-bisect-process-elimination

@kiliansinger don't worry I have fixed it with a work around.

Screenshot 2024-01-12 at 21 37 19

I have started making a world select menu

CrazyH2 commented 10 months ago

looks great, i allowd for issues on my git now.

@kiliansinger do you have discord? I think it will be easier to contact each other. Don't worry if not ill just use an issue

CrazyH2 commented 9 months ago

Oh I reproduced it. you need as shortly described above do: start python environment (e.g miniconda) then:

cd blockly_git npm i npm run build

@kiliansinger, yo what happened? I have finish the world page by the way.