blockexchange / blockexchange Goto Github PK
View Code? Open in Web Editor NEWminetest blockexchange mod
License: Other
minetest blockexchange mod
License: Other
Minetest schematics tend to be bloated in terms of bytes and data, to save on bandwidth, have you considered integrating .zip compression? minetest has this built-in, though I don't think it's exposed to the lua api yet.
That said, there's also work ongoing to put better compression via zstd in, so be on the lookout for that. Great work! Just wanted to share something that might help:)
schema -> star -> user
Goal:
-- Digiline Decoder\
-- Reads an 8 bit binary number (signed or unsigned) from the bus, and converts it to decimal notation\13-- by So.Po.Coder for Minetest Mesecons Lua Controller\13-- A: Clock, B: Digiline Out 1, C: Input 2, D: Input 1\13\13if (event.type == \"program\") then\
mem.decoder = 1\13end\
\
-- create the bus array, insert the first two bits and pass to the next decoder in sequence\13if (event.type == \"on\" and event.pin.name == \"A\") then\13 bus = {}\13 table.insert(bus, pin.d and 1 or 0)\
table.insert(bus, pin.c and 1 or 0)\13 digiline_send(\"decoder\" .. tonumber(mem.decoder + 1), bus) -- send to the next decoder\13end
CC0 != "public domain" apparently
two arrows with blocks in the middle
Survival-compatible, upload-only
minetest_1 | 2020-04-16 15:57:39: ERROR[Main]: ModError: Failed to load and run script from /data/world//worldmods/blockexchange/init.lua:
minetest_1 | 2020-04-16 15:57:39: ERROR[Main]: ...ocal/share/minetest/builtin/profiler/instrumentation.lua:146: attempt to index local 'def' (a nil value)
minetest_1 | 2020-04-16 15:57:39: ERROR[Main]: stack traceback:
minetest_1 | 2020-04-16 15:57:39: ERROR[Main]: ...ocal/share/minetest/builtin/profiler/instrumentation.lua:146: in function 'register_chatcommand'
minetest_1 | 2020-04-16 15:57:39: ERROR[Main]: /data/world//worldmods/blockexchange/chat_pos.lua:44: in main chunk
minetest_1 | 2020-04-16 15:57:39: ERROR[Main]: [C]: in function 'dofile'
minetest_1 | 2020-04-16 15:57:39: ERROR[Main]: /data/world//worldmods/blockexchange/init.lua:50: in main chunk
profiler.load = true
+ worldedit
minetest_1 | 2020-04-16 18:07:41: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'blockexchange' in callback on_chat_message(): /usr/local/share/minetest/builtin/game/chat.lua:69: attempt to call field 'func' (a nil value)
minetest_1 | 2020-04-16 18:07:41: ERROR[Main]: stack traceback:
minetest_1 | 2020-04-16 18:07:41: ERROR[Main]: /usr/local/share/minetest/builtin/game/chat.lua:69: in function </usr/local/share/minetest/builtin/game/chat.lua:48>
minetest_1 | 2020-04-16 18:07:41: ERROR[Main]: /usr/local/share/minetest/builtin/game/register.lua:429: in function </usr/local/share/minetest/builtin/game/register.lua:413>
minetest_1 | 2020-04-16 18:09:51: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'blockexchange' in callback on_chat_message(): .../world//worldmods/blockexchange/commands/upload_chat.lua:12: attempt to index field 'pos1' (a nil value)
minetest_1 | 2020-04-16 18:09:51: ERROR[Main]: stack traceback:
minetest_1 | 2020-04-16 18:09:51: ERROR[Main]: .../world//worldmods/blockexchange/commands/upload_chat.lua:12: in function 'func'
minetest_1 | 2020-04-16 18:09:51: ERROR[Main]: /usr/local/share/minetest/builtin/game/chat.lua:69: in function </usr/local/share/minetest/builtin/game/chat.lua:48>
minetest_1 | 2020-04-16 18:09:51: ERROR[Main]: /usr/local/share/minetest/builtin/game/register.lua:429: in function </usr/local/share/minetest/builtin/game/register.lua:413>
à la jumpdrive (nodeid's, param1/2, mapping, meta)
bx_save_area [id]
Should be the exact size, not max_x
(always +1)
As far as I know, the HUD element cannot remove. I suggest storing area info in metadata to avoid marking non-imported or exported blocks as Blockexcharge blocks.
/bx_license
Is there way to undo last changes and return changed area?
I was using your mod (which is great!) and it took me a while to understand how I could allocate and load schematics directly from the website, as info are quite scattered. I suggest to make them available in game as well, either:
/bx_allocate
visible as well even if the mod is not in the insecure enviroment list (and print an error message when trying executing them, telling the player to enable the insecure env for the mod)/bx_allocate_local
), telling players that they can use the online version if they put the mod in the insecure env list/home/thomas/.minetest/mods/blockexchange/token.lua:46: bad argument #1 to 'find' (string expected, got nil)
stack traceback:
[C]: in function 'find'
/home/thomas/.minetest/mods/blockexchange/token.lua:46: in function 'parse_token'
...me/thomas/.minetest/mods/blockexchange/chat_user.lua:55: in function 'func'
/usr/local/share/minetest/builtin/game/chat.lua:69: in function '?'
/usr/local/share/minetest/builtin/game/register.lua:429: in function </usr/local/share/minetest/builtin/game/register.lua:413>
Swagger doc (too bloated)
Add accessors for pos1 and pos2
Hello,
My association is working on a decentralized datacenter based on ScutlleButt, IPFS and G1 Libre Money... Only Libre Softwares!!
To prepare promotion to the system, we are willing to open a "Metaverse" interface.
We choose minetest, and found blockexchange that is close to what will need to do...
Quickly, every player will be in charge of it's own "datacenter" and "digital consumption".
To remember confinment time, each build a 100 cube size world (local) where he makes his ideal "natural living place".
Every 10 minutes, worlds replicates through IPFS (cyphered by a shared key), then any one in the swarm can arrange every "litlle worlds" into a bigger one. Using friendship relation a a graph for distance between them...
I would be really grateful if you could indicate in your code where this patch could be done...
Send email to [email protected] if you wish to participate.
minetest_1 | 2020-05-22 19:04:32: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'blockexchange' in callback on_chat_message(): /data/world//worldmods/blockexchange/commands/ps.lua:10: attempt to perform arithmetic on field 'start_time' (a function value)
minetest_1 | 2020-05-22 19:04:32: ERROR[Main]: stack traceback:
minetest_1 | 2020-05-22 19:04:32: ERROR[Main]: /data/world//worldmods/blockexchange/commands/ps.lua:10: in function 'func'
minetest_1 | 2020-05-22 19:04:32: ERROR[Main]: /usr/local/share/minetest/builtin/game/chat.lua:69: in function </usr/local/share/minetest/builtin/game/chat.lua:48>
minetest_1 | 2020-05-22 19:04:32: ERROR[Main]: /usr/local/share/minetest/builtin/game/register.lua:429: in function </usr/local/share/minetest/builtin/game/register.lua:413>
Minetest>New>mapgen>singlenode
Enter the world
/bx_world
[username] [schemaname]
by user temp
/bx_save temp name
temp
user (no or common password)temp
userNeeds #2
Rate schemas
TODO: test downloading
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.