PrismarineJS / prismarine-web-client

Minecraft web client running in your browser
https://prismarinejs.github.io/prismarine-web-client/
MIT License
443 stars 137 forks source link

Singleplayer Mode #47

Open AwesomestCode opened 3 years ago

AwesomestCode commented 3 years ago
  1. Browserify flying-squid for a singleplayer server
  2. Use WebRTC to open to LAN
rom1504 commented 3 years ago

Webrtc doesn't open to LAN. It does open to internet though.

On Wed, Mar 3, 2021, 00:46 AwesomestCode notifications@github.com wrote:

  1. Browserify flying-squid for a singleplayer server
  2. Use WebRTC to open to LAN

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PrismarineJS/prismarine-web-client/issues/47, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437XTY2IMXP3CSIAO5XDTBV2HBANCNFSM4YP6M5SQ .

rom1504 commented 3 years ago

How:

rom1504 commented 3 years ago

anvil may need to be adapted by using indexeddb

KaffinPX commented 3 years ago

I think its useless

rom1504 commented 3 years ago

Another idea here is to use a reverse websocket proxy

zardoy commented 1 year ago

Hey! I'm currently working on this feature and wanted to report the progress. Currently, support implemented for the following backends (this all is possible only with the latest version of browserFS):

I have used PeerJS previously for small projects and I think I'll also use it here for multiplayer.

I could test almost any 1.8 save, however, it seems that saves for 1.14+ are not supported by prismarine-chunk? (https://github.com/PrismarineJS/flying-squid/issues/632, https://github.com/PrismarineJS/flying-squid/issues/545)

Also will work to improve zipFS later.

rom1504 commented 1 year ago

P-chunk support up to 1.20

On Mon, Sep 4, 2023, 15:30 Vitaly @.***> wrote:

Hey! I'm currently working on this feature and wanted to report the progress. Currently, support implemented for the following backends (this all is possible only with the latest version of browserFS):

I have used PeerJS previously for small projects and I think I'll also use it here for multiplayer.

I could test almost any 1.8 save, however, it seems that saves for 1.14+ are not supported by prismarine-chunk? (PrismarineJS/flying-squid#632 https://github.com/PrismarineJS/flying-squid/issues/632, PrismarineJS/flying-squid#545 https://github.com/PrismarineJS/flying-squid/issues/545)

Also will work to improve zipFS later.

— Reply to this email directly, view it on GitHub https://github.com/PrismarineJS/prismarine-web-client/issues/47#issuecomment-1705279726, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437SA4UVBBN5APIJU44DXYXJWTANCNFSM4YP6M5SQ . You are receiving this because you commented.Message ID: @.***>

rom1504 commented 1 year ago

Great you're working on this!

On Mon, Sep 4, 2023, 15:33 Romain Beaumont @.***> wrote:

P-chunk support up to 1.20

On Mon, Sep 4, 2023, 15:30 Vitaly @.***> wrote:

Hey! I'm currently working on this feature and wanted to report the progress. Currently, support implemented for the following backends (this all is possible only with the latest version of browserFS):

I have used PeerJS previously for small projects and I think I'll also use it here for multiplayer.

I could test almost any 1.8 save, however, it seems that saves for 1.14+ are not supported by prismarine-chunk? (PrismarineJS/flying-squid#632 https://github.com/PrismarineJS/flying-squid/issues/632, PrismarineJS/flying-squid#545 https://github.com/PrismarineJS/flying-squid/issues/545)

Also will work to improve zipFS later.

— Reply to this email directly, view it on GitHub https://github.com/PrismarineJS/prismarine-web-client/issues/47#issuecomment-1705279726, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437SA4UVBBN5APIJU44DXYXJWTANCNFSM4YP6M5SQ . You are receiving this because you commented.Message ID: @.***>

dimaxiton-max commented 1 year ago

finally found it! though i wonder why it wasnt done before? btw do you have any plans to improve support like chests? i was looking for mcedit on mobile and couldnt find absolutely anything on the web,, also any plans for it?

zardoy commented 1 year ago

though i wonder why it wasnt done before?

IMO it's weird to ask why something wasn't done before, however I can actually explain why I had to do it now. I've been using pojav to play mc on ios (I don't really like bedrock version, also had to load java worlds, mods etc) on jb idevice, without jb it requires JIT on the air (to be connected to anything), and I don't think jb it's coming to new devices.

btw do you have any plans to improve support like chests?

I think this is off-topic to ask here what is planned and what is not, but yes this will be done eventually (will first try to resolve rendering issues when have time). The current priority is command blocks to make adventure maps playable, only then survival things...

mcedit...

I'm really not sure about this one. I don't really need it, but still would be great to have! If I don't come up with any ideas in other projects, I think world edit mode will be added here eventually (I was thinking about it a week ago)...

zardoy commented 1 year ago

Great you're working on this!

hey! added peerjs (p2p wan) multiplayer support (feels more like actual flying-squid server in the browser). I thought it would be harder to do, though it was fun. However, I noticed a few issues with minecraft-protocol package (there are definitely issues with handling disconnect and keepAlive packages)

rom1504 commented 1 year ago

@zardoy could you please open pull requests to add features from your fork here ?

K1FFDAME commented 11 months ago

Great you're working on this!

hey! added pee Usdollar100front rjs (p2p wan) multiplayer support (feels more like actual flying-squid server in the browser). I thought it would be harder to do, though it was fun. However, I noticed a few issues with minecraft-protocol package (there are definitely issues with handling disconnect and keepAlive packages)

who asked bobby? its your yearly salary