Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

worldfs - shared drives between all computers #568

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timia2109
Copy link
Contributor

Worldfs brings you additional shared drives between all computers which a running at the same Minecraft world. It mounts the worldfs drive as a folder into the computer of your choice.

The files are located at .../saves/{worldname}/computer/worldfs/{channelname_hash}

Only when you know the channelname you can mount the drive, because the name is hashed with SHA-256 and some string transformation. "Test" would be "vUyfT26nd4jk0abSGCur9QIPxn8Wp0GL"

worldfs is disabled by default and can enabled in the config file.

New API:

  • worldfs.list() : returns table, contains WorldFSWrapper classes
  • worldfs.mount( channelname: string, mountpath: string )
  • worldfs.unmount( channelname: string )

New Program:

  • worldfs.lua

WorldFSWrapper contains the following Lua methods:

  • getChannel() : returns string with the channelname
  • getPath() : returns string, the local path to this worldfs drive on this computer
  • getKey() : returns string, the hash of the channelname

I'm open for comments and improvements.

@SquidDev
Copy link
Contributor

This seems something which would be better done as an external mod (using something like #491 ). I'd personally consider a little too "magical" to be part of base CC - it rather overshadows any existing system, such as rednet - you don't even need a modem!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants