GithubHelp home page GithubHelp logo

Comments (13)

KaffinPX avatar KaffinPX commented on June 5, 2024 5

I think its useless

from prismarine-web-client.

K1FFDAME avatar K1FFDAME commented on June 5, 2024 3

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

from prismarine-web-client.

rom1504 avatar rom1504 commented on June 5, 2024 1

from prismarine-web-client.

rom1504 avatar rom1504 commented on June 5, 2024 1

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

from prismarine-web-client.

rom1504 avatar rom1504 commented on June 5, 2024

from prismarine-web-client.

rom1504 avatar rom1504 commented on June 5, 2024

How:

  • socketProvider option in nmp createServer
  • use it with a fake local socket for single player
  • use it with a simple-peer webrtc socket for crazy experiments

from prismarine-web-client.

rom1504 avatar rom1504 commented on June 5, 2024

anvil may need to be adapted by using indexeddb

from prismarine-web-client.

rom1504 avatar rom1504 commented on June 5, 2024

Another idea here is to use a reverse websocket proxy

from prismarine-web-client.

zardoy avatar zardoy commented on June 5, 2024

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):

  • localstorage - just hit & play (5mb cap) - can be exported with /export
  • ZIP loading - just dragndrop (not really effective, but still can load any size, though there is ~400mb limit on ios)
  • Folder loading - best option, but available only in Chrome: dragndrop or via folder picker (read/write to real fs)
  • Download & play from link - link example - downloads map from server & uses ZIP FS later

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, PrismarineJS/flying-squid#545)

Also will work to improve zipFS later.

from prismarine-web-client.

rom1504 avatar rom1504 commented on June 5, 2024

from prismarine-web-client.

dimaxiton-max avatar dimaxiton-max commented on June 5, 2024

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?

from prismarine-web-client.

zardoy avatar zardoy commented on June 5, 2024

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

from prismarine-web-client.

zardoy avatar zardoy commented on June 5, 2024

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)

from prismarine-web-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.