Page 1 of 9
[Mod] basic_machines [basic_machines]
Posted: Fri May 01, 2015 17:51
by rnd
Basic_machines is a lightweight minetest automation mod/logic/electronics building. It has little impact on server performance. Relies only on default game.
License:
Sourcecode: GPL
Textures: CC BY-SA
Dependence: default
download:
https://github.com/ac-minetest/basic_machines/
WIKI: https://github.com/ac-minetest/basic_machines/wiki
Where to play:
- Noob Academy
- The Sea is My Life - Build and survive in a water world based on Ocean Experiment
- Extreme Survival Minetest City - Try to build a city amid the hoards of mobs!
- T.T.Survival Server - A lightweight Survival Server
- Cash's World - A mobile device friendly world
----------------------------------------------------------------------------------------------------------------------------------------------
installation: copy "basic_machines" folder into your minetest /mods directory and add mod using menus (or edit /worlds/$WORLD/world.mt to include line "load_mod_basic_machines = true").
use instructions:
Craft mover (basic_machines:mover) with 6 mese crystals,2 stone, 1 wood. Set it up by punching (1. punch mover,2. punch source1, 3. punch source2, 4. punch target) to define box where to dig from and where to put.
Or set up by right click. For mover to work it needs nearby battery. Read ingame help (HELP button inside mover gui) for more info.
Craft keypad with stick and wood block. Set up by right click and enter target machine coordinate. Or setup interactively, by punch, then punch target machine.
Included machines
mover, keypad, detector, distributor, light block, recycler, grinder, battery, generator, clock generator, enviroment block, ball spawner
Examples:
factory complex powered solely by one generator, uses movers to transfer power crystals to batteries
and one detector to act as a clock for operations. It does: auto tree farming, lava stone generating, grinds stone into sand, smelts sand into glass
close up of tree farm ( one mover refuels battery from generator, one mover digs trees, one mover picks up saplings & apples, one mover plants saplings, distributor forwards activation signal from detector and activates all machines )
closeup of stone generator (one mover refuels battery from generator, one mover digs stone)
Re: basic_machines
Posted: Sat May 02, 2015 13:16
by programmingchicken
Is the keypad in the mod? Because your post only says movers are in the mod.
Re: basic_machines
Posted: Mon May 04, 2015 09:05
by rnd
Mod contains mover ( very versatile machine) and keypad ( used for activation and can work like blinky plant)
Update:
mover:
-updated texture: now with orientation compass on top
updated gui: with help and better messages, radio button using internal inventory to select mode of operation
-keypad:
better messages and shows how many cycles left when operating
Re: basic_machines
Posted: Wed May 06, 2015 09:58
by rnd
update:
-detector block can now detect nodes/players at specified location and trigger machines.It has
a customizable radius setting from 0 to 5. It has a builtin NOT mode. This is the only block with abm, its set to 5 seconds
- keypad can be set to turn machines on or off
- added light block, can be turned on or off
Re: basic_machines
Posted: Fri May 08, 2015 07:52
by rnd
updates:
-better detector, can look inside chests to check for materials
-markers that show up when you right click machines, they timeout after 10 seconds
Screenshots
Here detector is set up to detect any player near position ( marker 1) and open door at position (marker 2)
setup details
Re: basic_machines
Posted: Sun May 10, 2015 17:45
by rnd
update:
-distributor, passes input signal to up to 2 outputs. can negate signals
-ttl ( time to live ) for all signals, preventing problems like infinite recursion
Distributor setup (2 lights as output), input is keypad
Distributor passing signal from keypad onto 2 lights
Re: basic_machines
Posted: Sat May 23, 2015 06:33
by rnd
Use of mover as teleporter ( from "Sea is my life" ocean server)
Only admin can set up long range teleporters/machines ( range > 5 )
Exchange shop made only with basic_machines
Mover picking up 2 minegeld and putting it in shop storage chest is highlighted.
5 extra parts ( detector, 2 movers, 1 fuel chest, distributor) could be hidden away somewhere in 10 radius
Re: basic_machines
Posted: Sat Sep 12, 2015 21:08
by Fixer
Please add something like this
http://hgrm.sndimg.com/HGRM/2011/07/26/ ... 3x4_lg.jpg and even this
http://blomandblom.com/wp-content/uploa ... 08x513.jpg as switches, that detectors will use as input, could be cool.
Also, ability to
detect mobs by detector would be very handy! I got some very nice ideas about them :D
Re: basic_machines
Posted: Mon Sep 14, 2015 12:13
by Fixer
Also, I found a bug with two doors near each other (symmetrical) and two detectors, one door will turn correctly if used by detector or opened by hand, but another door on open by hand will rotate 180 deg and start turning spontaneously under detector control.
Re: basic_machines
Posted: Tue Sep 15, 2015 18:27
by rnd
added toggle mode (2) for keypads - punching keypad turns it on/off
ability for mover to pick up items and put in chest ( like sand tube in pipeworks). Now you can finally do proper tree farms that pick up saplings automatically.
I would add detect mobs by detector but i dont see yet how to distinguish mobs from items lying around, they are both lua entities as in local lua_entity = obj:get_luaentity() ...
about bug: how does detector open door? if detector is activated if will activate target machine ( maybe target and source were same?) not sure what you mean
Re: basic_machines
Posted: Tue Sep 15, 2015 19:32
by Fixer
I would add detect mobs by detector but i dont see yet how to distinguish mobs from items lying around,
Just add "Mob/objects" that will detect mobs and other lua entities.
Re: basic_machines
Posted: Thu Sep 17, 2015 08:12
by rnd
added:
- mover can dig blocks and return proper drops ( wheat plant drops seeds and wheat...)
- mover can exchange items between chests and blocks with inventory ( like furnaces, shops, ...)
- detector can detect mobs or objects lying on ground
Re: basic_machines
Posted: Fri Oct 09, 2015 03:45
by maikerumine
Recycler may be broken.
Re: basic_machines
Posted: Fri Oct 09, 2015 13:46
by Fixer
And please add more explanation into HELP buttons. And update your first post.
Re: basic_machines
Posted: Mon Oct 19, 2015 23:29
by rnd
added
- recycler: basically inverts crafting with a small loss of ingredients
- power outlet: power mover using free available power from nearby technic electric network
- several modifications of gui and functionality of machines (mover can move items between node inventories, ...)
for more info see first post and wiki
Re: basic_machines
Posted: Mon Oct 19, 2015 23:33
by kaadmy
rnd wrote:added
- recycler: basically inverts crafting with a small loss of ingredients
[...]
Finally! I have been waiting for that soo long :)
Re: basic_machines
Posted: Sun Nov 29, 2015 22:42
by Fixer
New problem with farming, maike changed default farming to farming by TenPlus1 on ESM City, and my machines are not working correctly with them for some reason, can you look at it? (seeds are not growing anymore)
Re: basic_machines
Posted: Sun Dec 27, 2015 13:54
by Fixer
Re: basic_machines
Posted: Sun Feb 28, 2016 17:06
by maikerumine
Grinder code is not in master. I had to comment out line 7 of init.
Re: basic_machines
Posted: Sat Apr 02, 2016 12:19
by rnd
updates (added screenshots to first post):
new machines: grinder, battery, generator
updated: mover, detector, distributor, recycler, lights
external machines: standard furnace ( unmodified code) can now be powered by battery with accelerated smelting speed ( 2x speed boost)
most machines can be upgraded ( expensive ) to enhance abilities, use less energy, add more range, ...
Re: basic_machines
Posted: Sat Apr 02, 2016 15:08
by maikerumine
rnd wrote:updates (added screenshots to first post):
new machines: grinder, battery, generator
updated: mover, detector, distributor, recycler, lights
external machines: standard furnace ( unmodified code) can now be powered by battery with accelerated smelting speed ( 2x speed boost)
most machines can be upgraded ( expensive ) to enhance abilities, use less energy, add more range, ...
+9*10^1000
THANK YOU for all the hard work you put into your mod, it is a server mist have for sure!
Re: basic_machines
Posted: Mon Apr 04, 2016 11:55
by rnd
performance update:
new machine: clock generator ( only active machine that works in background, expensive)
detector: no longer background active, must be activated, burn-out against too fast activation protection
keypad: can no longer be activated by signal, burn-out against too fast activation protection
Re: basic_machines
Posted: Sun Apr 24, 2016 18:49
by CWz
Code: Select all
2016-04-24 14:43:53: ERROR[Main]: ServerError: Runtime error from mod '' in callback environment_Step(): ...s/tt_survival/worldmods/basic_machines/technic_power.lua:157: attempt to call upvalue 'machines_activate_furnace' (a nil value)
2016-04-24 14:43:53: ERROR[Main]: stack traceback:
2016-04-24 14:43:53: ERROR[Main]: ...s/tt_survival/worldmods/basic_machines/technic_power.lua:157: in function 'action_on'
2016-04-24 14:43:53: ERROR[Main]: ...wz/worlds/tt_survival/worldmods/basic_machines/mover.lua:728: in function 'use_keypad'
2016-04-24 14:43:53: ERROR[Main]: ...wz/worlds/tt_survival/worldmods/basic_machines/mover.lua:694: in function 'func'
2016-04-24 14:43:53: ERROR[Main]: /home/cwz/minetest2/bin/../builtin/game/misc.lua:34: in function </home/cwz/minetest2/bin/../builtin/game/misc.lua:11>
2016-04-24 14:43:53: ERROR[Main]: /home/cwz/minetest2/bin/../builtin/game/register.lua:369: in function </home/cwz/minetest2/bin/../builtin/game/register.lua:349>
the battery + keypad + furnace combo causes this crash.
EDIT: heh seems i the issue is an unupdated minetest game. so just updated furnace.lua and now everything works
Re: basic_machines
Posted: Sun Apr 24, 2016 19:06
by rnd
problem is outdated furnace code used on server, its missing
"on_metadata_inventory_put" for node "default:furnace", hence the error caused by
Code: Select all
local machines_activate_furnace = minetest.registered_nodes["default:furnace"].on_metadata_inventory_put; -- this function will activate furnace
This is present in current 0.4.13dev. Added patch checks for presence, if not there furnaces wont auto start.
Re: basic_machines
Posted: Fri May 13, 2016 12:43
by rnd
updated:
- wiki
https://github.com/ac-minetest/basic_machines/wiki
keypad: can now work as a keyboard or text writer/setting changer device
enviroment block: can change physics settings & skybox for nearby players
ball_spawner: spawn an energy ball that can activate stuff and bounce around when moved with
https://github.com/ac-minetest/basic_ma ... wiki/mover mover