A village with towntest buildings in winter, using minetest_game:
Another towntest village, using ethereal:
Code: Select all
output = 'towntest_chest:chest',
recipe = {
{'default:mese_crystal', 'default:chest_locked', 'default:mese_crystal'},
{'default:book', 'default:diamond', 'default:book'},
{'default:mese_crystal', 'default:chest_locked', 'default:mese_crystal'},
}
Code: Select all
2016-09-24 19:17:23: ACTION[Server]: singleplayer places node towntest_chest:chest at (-602,29,107)
2016-09-24 19:17:23: ACTION[Server]: facedir: 3
2016-09-24 19:17:23: [Server]: >> === FATAL ERROR ===
2016-09-24 19:17:23: [Server]: >> Unknown exception (Exception 0xC0000029) at 0x77370F4E
2016-09-24 19:17:23: [Server]: >> Saved dump to C:\Users\M\Desktop\d\testinggrounds\minetest_160918\minetest_release\bin\..\minetest.dmp
Code: Select all
git checkout f8813e3
Code: Select all
2016-09-25 10:47:33: ACTION[Server]: singleplayer places node towntest_chest:chest at (5,4,1)
2016-09-25 10:47:33: ACTION[Server]: facedir: 1
2016-09-25 10:47:33: ERROR[Main]: ServerError: Lua: Runtime error from mod 'towntest_chest' in callback item_OnPlace(): Runtime error from mod 'towntest_chest' in callback node_on_construct(): ...st/bin/../mods/minetest-towntest/towntest_chest/init.lua:24: module 'lfs' not found:
2016-09-25 10:47:33: ERROR[Main]: no field package.preload['lfs']
2016-09-25 10:47:33: ERROR[Main]: no file './lfs.lua'
2016-09-25 10:47:33: ERROR[Main]: no file '/usr/share/luajit-2.0.4/lfs.lua'
2016-09-25 10:47:33: ERROR[Main]: no file '/usr/local/share/lua/5.1/lfs.lua'
2016-09-25 10:47:33: ERROR[Main]: no file '/usr/local/share/lua/5.1/lfs/init.lua'
2016-09-25 10:47:33: ERROR[Main]: no file '/usr/share/lua/5.1/lfs.lua'
2016-09-25 10:47:33: ERROR[Main]: no file '/usr/share/lua/5.1/lfs/init.lua'
2016-09-25 10:47:33: ERROR[Main]: no file './lfs.so'
2016-09-25 10:47:33: ERROR[Main]: no file '/usr/local/lib/lua/5.1/lfs.so'
2016-09-25 10:47:33: ERROR[Main]: no file '/usr/lib/x86_64-linux-gnu/lua/5.1/lfs.so'
2016-09-25 10:47:33: ERROR[Main]: no file '/usr/local/lib/lua/5.1/loadall.so'
2016-09-25 10:47:33: ERROR[Main]: stack traceback:
2016-09-25 10:47:33: ERROR[Main]: [C]: in function 'require'
2016-09-25 10:47:33: ERROR[Main]: ...st/bin/../mods/minetest-towntest/towntest_chest/init.lua:24: in function 'get_files'
2016-09-25 10:47:33: ERROR[Main]: ...st/bin/../mods/minetest-towntest/towntest_chest/init.lua:317: in function 'formspec'
2016-09-25 10:47:33: ERROR[Main]: ...st/bin/../mods/minetest-towntest/towntest_chest/init.lua:355: in function <...st/bin/../mods/minetest-towntest/towntest_chest/init.lua:348>
2016-09-25 10:47:33: ERROR[Main]: [C]: in function 'add_node'
2016-09-25 10:47:33: ERROR[Main]: /home/m/Desktop/test/minetest/bin/../builtin/game/item.lua:285: in function </home/m/Desktop/test/minetest/bin/../builtin/game/item.lua:197>
2016-09-25 10:47:33: ERROR[Main]: stack traceback:
2016-09-25 10:47:33: ERROR[Main]: [C]: in function 'add_node'
2016-09-25 10:47:33: ERROR[Main]: /home/m/Desktop/test/minetest/bin/../builtin/game/item.lua:285: in function </home/m/Desktop/test/minetest/bin/../builtin/game/item.lua:197> [C]: in function 'add_node'
2016-09-25 10:47:33: ERROR[Main]: /home/m/Desktop/test/minetest/bin/../builtin/game/item.lua:285: in function </home/m/Desktop/test/minetest/bin/../builtin/game/item.lua:197>
2016-09-25 10:47:33: ERROR[Main]: stack traceback:
2016-09-25 10:47:33: ERROR[Main]: [C]: in function 'add_node'
2016-09-25 10:47:33: ERROR[Main]: /home/m/Desktop/test/minetest/bin/../builtin/game/item.lua:285: in function </home/m/Desktop/test/minetest/bin/../builtin/game/item.lua:197>
Code: Select all
module 'lfs' not found
Code: Select all
[I] dev-lua/luafilesystem
Verfügbare Versionen: 1.5.0 ~1.6.2
Installierte Versionen: 1.5.0(23:06:08 07.09.2016)
Startseite: https://keplerproject.github.com/luafilesystem/
Beschreibung: File System Library for the Lua Programming Language
My daughter asked me already for this feature. A second thing that I intend is to take flatten the building place in both directions, remove existing blocks from building inside and to flat the ground bellow the building. Currently in most cases the building is hanging in the air at the one site and is built in in the hill at the other site. But currently I plan to get stabilized the current state, there are some bugs like the NPC runs away for unknown reason or does not like to accept already placed blocks. And for now I have less time to work on the mod.EDIT - I noticed they try to build in already existing blocks, would it be possible for them to mine away stuff that is in the way?
I seen that too the looking direction is not right. But it is low-priority for me.I also noticed when they return to the chests they are facing 90 degrees to the right
Already implemented ;) Just remove the chest and set the chest again at the same place and select the same building. In the first calculation what should be done the there is a search for already existing nodes that will be removed from building plan. Each "inactive" is not meaningful because of automatic changes like the dirt is changed to dirt_with_grass or something likeAlso maybe a "repair" option would be nice especially if you accidentally break an area or for me when making the factory the lava dumped all over the place and burned the chests and signs haha. Maybe when it goes inactive it could do a check to see if any blocks need adjustment/replacement?
The lumberjack inventory was already implemented by cornernote but there is no functionality at the place. It will be nice to get other helpers, but first the builder should work as exepected,Also I see he was trying to get lumberjacks in gear. Maybe farmers and miners would be cool too? Maybe even hunters!
My idea is to do it on demand. But in detail I need to play with them how is the best way to do it. It is the next point on my roadmap as soon as I am satisfied with builders building skills.Perhaps the first thing the NPCs would do is to clear away the area that the blueprint space would occupy?
I thinked already about that. But currently there is an other issue with bigger buildings. MT disable nodes and entitys if no player is nearly. The mod works currently only if the builder AND the chest are active. For some building it is enough to place the player between the chest and the builder position. For other you need 2 players, one nearly the chest and the second one runs with NPC.I have noticed that with some of the bigger structures they take forever. Would it be hard to add a second or third worker to help? If it is then it isn't a big deal.
There is no rotation implemented. The building is always to the same direction, relative to the coordinates in the WE file (in most files +x/+y/+z direction). The chest position corresponds to the 0,0,0 node in the file.Is the building always supposed to be built relative to the direction the chest is facing?
Forgotten to say, try to deposit apples to the chest ;-) (Thanks to cornernote for this)I have noticed that with some of the bigger structures they take forever.
Guess the NPC's afraid of all the time it would take him to build some of the larger structures :-)bell07 wrote: One of my personal goals is to get viewtopic.php?p=121294#p121294 buildable with this mod. If the NPC does the first node placed from this building I like to think about optimizations like more NPC's. Currently the NPC just runs away after looking to the building plan and is hidding so I cannot find them ;(
The build-chest in my handle_schematics mod takes care of rotation and can import a wide variety of schematic formats. The chest was inspired by cornernotes towntest chest. There's no npc associated with my chest, and building takes (or would take, if it where enabled) diffrent steps - i.e. stone and tree materials are requested first in order to build the frame, after that wood is added, then a roof, last a garden. I think that looks more natural than a building "raising" out of the ground. The downside is that all those blocks from the previous steps would block the NPC from reaching inside locations; moving the bed in after the house has been built requires more intelligence than those mobs usually come with ,-) But then, watching the NPC actually build something is only fun for a limited time. He ought to "continue" while you're away gathering further materials.bell07 wrote: There is no rotation implemented. The building is always to the same direction, relative to the coordinates in the WE file (in most files +x/+y/+z direction). The chest position corresponds to the 0,0,0 node in the file.
Users browsing this forum: No registered users and 3 guests