Jeija wrote:I dont think it will be better. Torches are just attached to blocks, they aren't on them like redstone in minecraft.
hmmm wrote:I just realized something pretty cool. When chests are moved, all their items are deleted. And with a button you can make an easy way to get rid of excess blocks like dirt and cobble without having to make a bunch of chests to fill them up with. So if you can fix the bug without doing option 1 or 4 (because 4 cant be done since it deletes the itmes) it would be really awesome and everyone will love this mod even more!
05:48:33: ACTION[ServerThread]: Staffs places material 2146 at (3,10,-23)
05:48:34: ERROR[ServerThread]: ERROR: An unhandled exception occurred: LuaError: error: ...leron55-minetest-0.4/bin/../data/mods/jeija/init.lua:1730: attempt to call method 'get_objects_inside_radius' (a nil value)
05:48:34: ERROR[ServerThread]: stack traceback:
In thread aaff1b70:
/home/n/duno/bin/minetest/celeron55-minetest-0.4/src/server.cpp:113: virtual void* ServerThread::Thread(): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD a65d3b70:
#0 virtual void* EmergeThread::Thread()
#1 virtual MapBlock* ServerMap::emergeBlock(v3s16, bool): p=(3,3,0), allow_generate=0
#2 MapBlock* ServerMap::loadBlock(v3s16)
#3 void ServerMap::loadBlock(std::string*, v3s16, MapSector*, bool)
DEBUG STACK FOR THREAD aaff1b70:
#0 virtual void* ServerThread::Thread()
(Leftover data: #1 void Server::AsyncRunStep())
(Leftover data: #2 virtual void ServerEnvironment::step(float))
(Leftover data: #3 void BlockEmergeQueue::addBlock(irr::u16, v3s16, irr::u8))
(Leftover data: #4 void BlockEmergeQueue::addBlock(irr::u16, v3s16, irr::u8))
DEBUG STACK FOR THREAD acbf7b70:
#0 virtual void* MeshUpdateThread::Thread()
DEBUG STACK FOR THREAD b6934730:
#0 int main(int, char**)
#1 void ClientMap::renderMap(irr::video::IVideoDriver*, irr::s32)
(Leftover data: #2 virtual void ClientEnvironment::step(float))
(Leftover data: #3 void Client::Receive())
(Leftover data: #4 void Client::ProcessData(irr::u8*, irr::u32, irr::u16))
(Leftover data: #5 static InventoryItem* InventoryItem::deSerialize(std::istream&, IGameDef*))
zsh: abort ./minetest
n|bin %
Staffs wrote:I was going to make a furnace but when i putted 2 stones like this
x-stone
0-nothing
------
|000|
|000|
|xx0|
------
I made something like a pressure pad or something whatever. My point is when i putted that thing on ground the game crashed :(
Here are the last lines of my terminal.Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
05:48:33: ACTION[ServerThread]: Staffs places material 2146 at (3,10,-23)
05:48:34: ERROR[ServerThread]: ERROR: An unhandled exception occurred: LuaError: error: ...leron55-minetest-0.4/bin/../data/mods/jeija/init.lua:1730: attempt to call method 'get_objects_inside_radius' (a nil value)
05:48:34: ERROR[ServerThread]: stack traceback:
In thread aaff1b70:
/home/n/duno/bin/minetest/celeron55-minetest-0.4/src/server.cpp:113: virtual void* ServerThread::Thread(): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD a65d3b70:
#0 virtual void* EmergeThread::Thread()
#1 virtual MapBlock* ServerMap::emergeBlock(v3s16, bool): p=(3,3,0), allow_generate=0
#2 MapBlock* ServerMap::loadBlock(v3s16)
#3 void ServerMap::loadBlock(std::string*, v3s16, MapSector*, bool)
DEBUG STACK FOR THREAD aaff1b70:
#0 virtual void* ServerThread::Thread()
(Leftover data: #1 void Server::AsyncRunStep())
(Leftover data: #2 virtual void ServerEnvironment::step(float))
(Leftover data: #3 void BlockEmergeQueue::addBlock(irr::u16, v3s16, irr::u8))
(Leftover data: #4 void BlockEmergeQueue::addBlock(irr::u16, v3s16, irr::u8))
DEBUG STACK FOR THREAD acbf7b70:
#0 virtual void* MeshUpdateThread::Thread()
DEBUG STACK FOR THREAD b6934730:
#0 int main(int, char**)
#1 void ClientMap::renderMap(irr::video::IVideoDriver*, irr::s32)
(Leftover data: #2 virtual void ClientEnvironment::step(float))
(Leftover data: #3 void Client::Receive())
(Leftover data: #4 void Client::ProcessData(irr::u8*, irr::u32, irr::u16))
(Leftover data: #5 static InventoryItem* InventoryItem::deSerialize(std::istream&, IGameDef*))
zsh: abort ./minetest
n|bin %
Jeija wrote:Nope! Just take it if you want. The code is under the do-what-the-f***-you-want license.
But please tell me what you needed the code for... I'm just so curious ^^.
Staffs wrote:I think you should change "Object detector" crafting. Cause its SO hard to find iron :/
--INVERTER: add this to your init.lua file, near the bottom somewhere
minetest.register_node("jeija:mesecon_inverter_off", {
drawtype = "raillike",
paramtype = "light",
is_ground_content = true,
tile_images = {"jeija_mesecon_inverter.png"},
inventory_image = "jeija_mesecon_inverter.png",
material = minetest.digprop_constanttime(0.1),
walkable = false,
selection_box = {
type = "fixed",
},
})
minetest.register_node("jeija:mesecon_inverter_on", {
drawtype = "raillike",
paramtype = "light",
is_ground_content = true,
tile_images = {"jeija_mesecon_inverter.png"},
inventory_image = "jeija_mesecon_inverter.png",
material = minetest.digprop_constanttime(0.1),
walkable = false,
selection_box = {
type = "fixed",
},
dug_item='node "jeija:mesecon_inverter_off" 1',
})
--mesecon:register_on_signal_on(function(pos, node)
minetest.register_on_punchnode(function(pos, node)
if node.name=="jeija:mesecon_inverter_on" then
minetest.env:add_node(pos, {name="jeija:mesecon_inverter_off"})
nodeupdate(pos)
mesecon:receptor_off(pos)
end
end)
mesecon:register_on_signal_off(function(pos, node)
if node.name=="jeija:mesecon_inverter_off" then
minetest.env:add_node(pos, {name="jeija:mesecon_inverter_on"})
nodeupdate(pos)
mesecon:receptor_on(pos)
end
end)
minetest.register_on_dignode(
function(pos, oldnode, digger)
if oldnode.name == "jeija:mesecon_inverter_on" then
mesecon:receptor_off(pos)
end
end
)
mesecon:add_receptor_node("jeija:mesecon_inverter_on")
mesecon:add_receptor_node_off("jeija:mesecon_inverter_off")
minetest.register_craft({
output = 'node "jeija:mesecon_inverter_off" 2',
recipe = {
{'node "jeija:mesecon_off"'},
{'node "default:junglegrass"'},
{'node "jeija:mesecon_off"'},
}
})
Users browsing this forum: No registered users and 41 guests