
neron, in MT 0.4.9 the dungeons are different in desert biomes and are now a type of 'desert temple', haven't seen them yet as i'm still using 0.4.8.
shaheerziya wrote:I have a request that is can you please add a different types of pyramids like:
Egyptian Pyramid with short mummies(the biggest and strongest pyramid)
Czech Pyramids with tall mummies(2nd most strongest)
Normal Pyramids with normal mummies(At last)
Egyptian pyramids would be gigantic and be having lots of treasure(spawning: super dooper rare)
Czech would be smaller and weaker(spawning: rare)
Normal would be normal(spawning:Moderate)
Tanks in advance i would really like it if you will add this in the next version
(My 2nd most favorite mod this is and i am a kid and do not know lua.)
Oh, should be fixed now. https://github.com/BlockMen/pyramids/co ... 6965b4032fVanessaE wrote:terminate called after throwing an instance of 'ServerError'
what(): ...t/worlds/Survival_World/worldmods/pyramids/mummy.lua:316: attempt
to index local 'p' (a nil value)
stack traceback:
...t/worlds/Survival_World/worldmods/pyramids/mummy.lua:316: in function
<...t/worlds/Survival_World/worldmods/pyramids/mummy.lua:182>
/home/minetest/Scripts/minetestserver-survival.sh: line 27: 21955 Aborted
(Minetest git pulled earlier this morning, pyramids mod is up-to-date also)
http://dev.minetest.net/Introtimontreduffie wrote:um hi i made my account on 2/12/14 and i wanna know hwre to go to make a mod. thx!!
Maya "pyramides"/temples would be nice.Achilles wrote:Jungle Pyramids would be a really good idea... Could also make Small Castles In jungles even through this is a Pyramid mod
I know... Have seen some pictures of them before... They look great.Krock wrote:Maya "pyramides"/temples would be nice.Achilles wrote:Jungle Pyramids would be a really good idea... Could also make Small Castles In jungles even through this is a Pyramid mod
I had the mod and It worked fine for me, Also works fine on some of the servers I've seen.mcfan wrote:For some reason I don't get the pyramid part when the pyramid generates. I just get the room and the pillars.
Code: Select all
terminate called after throwing an instance of 'ServerError'
what(): ...etest/worlds/Survival_World/worldmods/pyramids/nodes.lua:18: attempt to compare nil with number
stack traceback:
...etest/worlds/Survival_World/worldmods/pyramids/nodes.lua:18: in function <...etest/worlds/Survival_World/worldmods/pyramids/nodes.lua:13>
/home/minetest/Scripts/minetestserver-survival.sh: line 25: 17201 Aborted
/usr/bin/minetestserver --worldname Survival_World --config /home/minetest/.minetest/minetest-server-survival.conf --gameid dreambuilder_game --port 30001 --disable-unittests --logfile $DEBUG
Code: Select all
WARNING: Assignment to undeclared global "p2" inside a function at ../mods/pyramids/init.lua:137
Code: Select all
minetest.register_on_generated(function(minp, maxp, seed)
Code: Select all
p2 = minetest.find_node_near(mpos, 25, {"default:desert_sand"})
Code: Select all
local p2 = minetest.find_node_near(mpos, 25, {"default:desert_sand"})
Code: Select all
2015-11-08 01:04:18: ERROR[ServerThread]: LuaEntity name "creatures:dummy_zombie" not defined
2015-11-08 01:04:19: ERROR[ServerThread]: LuaEntity name "creatures:dummy_sheep" not defined
2015-11-08 01:04:19: ERROR[ServerThread]: LuaEntity name "creatures:dummy_sheep" not defined
2015-11-08 01:04:20: ERROR[main]: UNRECOVERABLE error occurred. Stopping server. Please fix the following error:
2015-11-08 01:04:20: ERROR[main]: Lua: Runtime error from mod 'pyramids' in callback LuaABM::trigger(): .../minetest/minetest-0.4.13/bin/../mods/pyramids/mummy.lua:398: attempt to index a nil value
2015-11-08 01:04:20: ERROR[main]: stack traceback:
2015-11-08 01:04:20: ERROR[main]: .../minetest/minetest-0.4.13/bin/../mods/pyramids/mummy.lua:398: in function <.../minetest/minetest-0.4.13/bin/../mods/pyramids/mummy.lua:391>
In thread 7fc8bed217c0:
/home/aa0001/minetest/minetest-0.4.13/src/server.cpp:511: void Server::step(float): A fatal error occurred: Lua: Runtime error from mod 'pyramids' in callback LuaABM::trigger(): .../minetest/minetest-0.4.13/bin/../mods/pyramids/mummy.lua:398: attempt to index a nil value
stack traceback:
.../minetest/minetest-0.4.13/bin/../mods/pyramids/mummy.lua:398: in function <.../minetest/minetest-0.4.13/bin/../mods/pyramids/mummy.lua:391>
Debug stacks:
DEBUG STACK FOR THREAD 7fc8b572f700:
#0 virtual void* EmergeThread::Thread()
(Leftover data: #1 MapBlock* ServerMap::loadBlock(v3s16))
(Leftover data: #2 void ServerMap::loadBlock(std::string*, v3s16, MapSector*, bool))
(Leftover data: #3 void ItemStack::deSerialize(std::istream&, IItemDefManager*))
DEBUG STACK FOR THREAD 7fc8b5f30700:
#0 virtual void* CurlFetchThread::Thread()
DEBUG STACK FOR THREAD 7fc8b6731700:
#0 virtual void* ServerThread::Thread()
#1 void Server::AsyncRunStep(bool)
#2 virtual void ServerMap::save(ModifiedState)
(Leftover data: #3 void Server::SendPlayerHP(irr::u16))
(Leftover data: #4 void Server::SendHP(irr::u16, irr::u8))
(Leftover data: #5 bool getCraftingResult(Inventory*, ItemStack&, std::vector<ItemStack>&, bool, IGameDef*))
(Leftover data: #6 void ServerMap::loadBlock(std::string*, v3s16, MapSector*, bool))
DEBUG STACK FOR THREAD 7fc8bed217c0:
#0 int main(int, char**)
#1 Dedicated server branch
#2 void dedicated_server_loop(Server&, bool&)
#3 void Server::step(float)
(Leftover data: #4 void Server::SendAccessDenied_Legacy(irr::u16, const wstring&))
./Neuromancerserver.sh: line 3: 406 Aborted (core dumped) ./minetestserver --gameid Neuromancer --world neuromancerworld --port 30001 --config neuromancerworld.conf
bbaez wrote:Hi,
I added local as above to fix that error but now get the following. I also added an error from CME that preceded it. I don't think it is related since I see that error often, but just in case.
Thanks!Code: Select all
2015-11-08 01:04:18: ERROR[ServerThread]: LuaEntity name "creatures:dummy_zombie" not defined 2015-11-08 01:04:19: ERROR[ServerThread]: LuaEntity name "creatures:dummy_sheep" not defined 2015-11-08 01:04:19: ERROR[ServerThread]: LuaEntity name "creatures:dummy_sheep" not defined 2015-11-08 01:04:20: ERROR[main]: UNRECOVERABLE error occurred. Stopping server. Please fix the following error: 2015-11-08 01:04:20: ERROR[main]: Lua: Runtime error from mod 'pyramids' in callback LuaABM::trigger(): .../minetest/minetest-0.4.13/bin/../mods/pyramids/mummy.lua:398: attempt to index a nil value 2015-11-08 01:04:20: ERROR[main]: stack traceback: 2015-11-08 01:04:20: ERROR[main]: .../minetest/minetest-0.4.13/bin/../mods/pyramids/mummy.lua:398: in function <.../minetest/minetest-0.4.13/bin/../mods/pyramids/mummy.lua:391> In thread 7fc8bed217c0: /home/aa0001/minetest/minetest-0.4.13/src/server.cpp:511: void Server::step(float): A fatal error occurred: Lua: Runtime error from mod 'pyramids' in callback LuaABM::trigger(): .../minetest/minetest-0.4.13/bin/../mods/pyramids/mummy.lua:398: attempt to index a nil value stack traceback: .../minetest/minetest-0.4.13/bin/../mods/pyramids/mummy.lua:398: in function <.../minetest/minetest-0.4.13/bin/../mods/pyramids/mummy.lua:391> Debug stacks: DEBUG STACK FOR THREAD 7fc8b572f700: #0 virtual void* EmergeThread::Thread() (Leftover data: #1 MapBlock* ServerMap::loadBlock(v3s16)) (Leftover data: #2 void ServerMap::loadBlock(std::string*, v3s16, MapSector*, bool)) (Leftover data: #3 void ItemStack::deSerialize(std::istream&, IItemDefManager*)) DEBUG STACK FOR THREAD 7fc8b5f30700: #0 virtual void* CurlFetchThread::Thread() DEBUG STACK FOR THREAD 7fc8b6731700: #0 virtual void* ServerThread::Thread() #1 void Server::AsyncRunStep(bool) #2 virtual void ServerMap::save(ModifiedState) (Leftover data: #3 void Server::SendPlayerHP(irr::u16)) (Leftover data: #4 void Server::SendHP(irr::u16, irr::u8)) (Leftover data: #5 bool getCraftingResult(Inventory*, ItemStack&, std::vector<ItemStack>&, bool, IGameDef*)) (Leftover data: #6 void ServerMap::loadBlock(std::string*, v3s16, MapSector*, bool)) DEBUG STACK FOR THREAD 7fc8bed217c0: #0 int main(int, char**) #1 Dedicated server branch #2 void dedicated_server_loop(Server&, bool&) #3 void Server::step(float) (Leftover data: #4 void Server::SendAccessDenied_Legacy(irr::u16, const wstring&)) ./Neuromancerserver.sh: line 3: 406 Aborted (core dumped) ./minetestserver --gameid Neuromancer --world neuromancerworld --port 30001 --config neuromancerworld.conf
Code: Select all
2015-11-08 01:04:18: ERROR[ServerThread]: LuaEntity name "creatures:dummy_zombie" not defined
2015-11-08 01:04:19: ERROR[ServerThread]: LuaEntity name "creatures:dummy_sheep" not defined
2015-11-08 01:04:19: ERROR[ServerThread]: LuaEntity name "creatures:dummy_sheep" not defined
Code: Select all
10:43:16: WARNING: Assignment to undeclared global "p2" inside a function at ...test0413-dev/bin/../games/my_game/mods/pyramids/init.lua:137.
2015-11-11 10:43:28: ACTION[Server]: singleplayer granted (fly) privileges to singleplayer
2015-11-11 10:43:32: ACTION[Server]: Created pyramid at (95,1,-188)
10:43:32: WARNING: Undeclared global variable "default_model_def" accessed at ...est0413-dev/bin/../games/my_game/mods/pyramids/mummy.lua:63
10:43:32: WARNING: Assignment to undeclared global "visual" inside a function at ...est0413-dev/bin/../games/my_game/mods/pyramids/mummy.lua:63.
10:43:32: WARNING: Assignment to undeclared global "prop" inside a function at ...est0413-dev/bin/../games/my_game/mods/pyramids/mummy.lua:70.
Those won't do any harm, but if you want to fix them, you can use this patch.necron099 wrote:BlockMen, I downloaded 4.1? from github and got this:
Code: Select all
diff --git a/init.lua b/init.lua
index 5a8d89c..03e26ca 100644
--- a/init.lua
+++ b/init.lua
@@ -134,7 +134,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
if noise1 > 0.25 or noise1 < -0.26 then
local mpos = {x=math.random(minp.x,maxp.x), y=math.random(minp.y,maxp.y), z=math.random(minp.z,maxp.z)}
- p2 = minetest.find_node_near(mpos, 25, {"default:desert_sand"})
+ local p2 = minetest.find_node_near(mpos, 25, {"default:desert_sand"})
while p2 == nil and cnt < 5 do
cnt = cnt+1
mpos = {x=math.random(minp.x,maxp.x), y=math.random(minp.y,maxp.y), z=math.random(minp.z,maxp.z)}
diff --git a/mummy.lua b/mummy.lua
index 0c4d611..96d1ec2 100644
--- a/mummy.lua
+++ b/mummy.lua
@@ -47,23 +47,23 @@ local ANIM_WALK_MINE = 5
local ANIM_MINE = 6
function hit(self)
- prop = {
+ local prop = {
mesh = mummy_mesh,
textures = {"pyramids_mummy.png^pyramids_hit.png"},
}
self.object:set_properties(prop)
minetest.after(0.4, function()
- prop = {textures = mummy_texture,}
+ local prop = {textures = mummy_texture,}
self.object:set_properties(prop)
end)
end
function mummy_update_visuals_def(self)
--local name = get_player_name()
- visual = default_model_def
+ --visual = default_model_def
npc_anim = 0 -- Animation will be set further below immediately
--npc_sneak[name] = false
- prop = {
+ local prop = {
mesh = mummy_mesh,
textures = mummy_texture,
--visual_size = {x=1, y=1, z=1},
@@ -257,8 +257,8 @@ MUMMY_DEF.on_step = function(self, dtime)
for _,object in ipairs(minetest.env:get_objects_inside_radius(self.object:getpos(), 4)) do
if object:is_player() then
self.yawwer = false
- NPC = self.object:getpos()
- PLAYER = object:getpos()
+ local NPC = self.object:getpos()
+ local PLAYER = object:getpos()
self.vec = {x=PLAYER.x-NPC.x, y=PLAYER.y-NPC.y, z=PLAYER.z-NPC.z}
self.yaw = math.atan(self.vec.z/self.vec.x)+math.pi^2
if PLAYER.x > NPC.x then
Code: Select all
2015-11-14 05:18:44: ACTION[ServerThread]: Benjamin clears all objects.
./Neuromancerserver.sh: line 3: 6382 Segmentation fault (core dumped) ./minetestserver --gameid Neuromancer --world neuromancerworld --port 30001 --config neuromancerworld.conf
Users browsing this forum: TenPlus1 and 6 guests