Coder Social home page Coder Social logo

octacian / digicompute Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 5.0 236 KB

A Minetest mod providing computer nodes that can function on their own or work as a network.

License: MIT License

Lua 100.00%
lua minetest mod operating-system sandboxed simulation wip

digicompute's People

Contributors

octacian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

digicompute's Issues

Sandbox...

  1. The sandbox code is obviously copied from one mod I know too well, so notices are mandatory.
  2. I currently work on a more powerful sandbox, you can find it at https://gitlab.com/numzero/libluabox. Currently it works in the same stateless mode as this one, but that may be changed if wanted. I may also add multithread support to it (but that would complicate API a lot).

Possible to create really big files, and thus take up all the space on hard disk

I was able to do this, with help from a random word generator and copy + paste:
screenshot_2017-02-06_21-37-52
(Ignore the usage, just the size of the folder.)

I was able to do this by making a big file by copying and pasting this code a few times, so I ended up with a file ~200mb. (Using clear fixed any lag caused by the large amount of characters on screen.) When I had a suitably large file, using this code, I was able to make copies of it: for i = 1, 50 do fs.copy("test", "test" .. i) end That made ~10gb of files. I don't think there's a maximum limit to the number of files you can copy in one go. (I'm surprised it doesn't time out.) Also, while copying the files, the game hangs completely.

Maybe a size limit needs to be added either to individual files, or to the computer folder as a whole, to prevent computers being abused in this way. (Even with a size limit on individual files (or even computers), a player could still make a huge amount of them, it would just take a bit longer. And even if players had their own size limit, they could still make multiple accounts...)

I'm really enjoying playing around with the mod - great work!

Use mod storage

Nowadays, Minetest provides a key-value storage for mods. It should be safer and more reliable than separate files.

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.