Page 4 of 5

PostPosted: Sun Jan 12, 2014 22:42
by paramat
There are pyramids and ziggurats in many places without deserts :) I wouldn't be surprised if Czech republic has them hidden somewhere.

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.

PostPosted: Mon Jan 13, 2014 09:15
by Pitriss
paramat: Ehh I live in Czech republic more than 30 years, so please stop trying to be expert for everything:// There are no pyramids at all.. Even on internet there is no trusthworthy site that will say otherwise..

PostPosted: Mon Jan 13, 2014 10:10
by Landrover110
cool i will download it now

PostPosted: Tue Jan 14, 2014 14:18
by BlockMen
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.)



There will be jungle pyramids in the future, but i can't tell you when i will add them.
Czech pyramids? Nope, sry.

VanessaE 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)


Oh, should be fixed now. https://github.com/BlockMen/pyramids/commit/fd0d11df1cc8bdd73d95827e7fc8ed6965b4032f

PostPosted: Thu Feb 13, 2014 02:46
by timontreduffie
um hi i made my account on 2/12/14 and i wanna know hwre to go to make a mod. thx!! :D

PostPosted: Thu Feb 13, 2014 14:22
by Topywo
timontreduffie wrote:um hi i made my account on 2/12/14 and i wanna know hwre to go to make a mod. thx!! :D


http://dev.minetest.net/Intro

and just look at and copy from existing mods.


-- Posting under Mod Releases under a mod topic usually means you have a question/remark about that mod. First try to find a similar question and if not successful, for modding, post your question under modding general.

PostPosted: Mon Apr 07, 2014 12:22
by Achilles
Jungle Pyramids would be a really good idea... Could also make Small Castles In jungles even through this is a Pyramid mod :)

PostPosted: Mon Apr 07, 2014 13:44
by mcfan
For some reason I don't get the pyramid part when the pyramid generates. I just get the room and the pillars.

PostPosted: Mon Apr 07, 2014 13:47
by Krock
Achilles wrote:Jungle Pyramids would be a really good idea... Could also make Small Castles In jungles even through this is a Pyramid mod :)

Maya "pyramides"/temples would be nice.

PostPosted: Mon Apr 07, 2014 15:15
by Achilles
Krock wrote:
Achilles wrote:Jungle Pyramids would be a really good idea... Could also make Small Castles In jungles even through this is a Pyramid mod :)

Maya "pyramides"/temples would be nice.


I know... Have seen some pictures of them before... They look great.

PostPosted: Mon Apr 07, 2014 15:17
by Achilles
mcfan wrote:For some reason I don't get the pyramid part when the pyramid generates. I just get the room and the pillars.


I had the mod and It worked fine for me, Also works fine on some of the servers I've seen.

BTW nice nick :P

Re: [Mod] Pyramids [0.4 beta] [pyramids]

PostPosted: Sun Jun 15, 2014 00:35
by VanessaE
Another one for you, BlockMen. No idea how or why this happened, I just saw it in my logs while I was searching for an unrelated crash.

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

Re: [Mod] Pyramids [0.4 beta] [pyramids]

PostPosted: Wed Aug 05, 2015 02:04
by FreeLikeGNU
Hi, Blockmen!
I compiled minetest from git 7a6e4dc54a3eb4187e67a21c4ece60f39bb1d13b today and tried pyramids.

I've been getting:
Code: Select all
WARNING: Assignment to undeclared global "p2" inside a function at ../mods/pyramids/init.lua:137

which is part of
Code: Select all
minetest.register_on_generated(function(minp, maxp, seed)

and line 137 is:
Code: Select all
      p2 = minetest.find_node_near(mpos, 25, {"default:desert_sand"})


I really want to use this mod, but pyramids dont seem to spawn in deserts. I'm also using mapgen v7 incase that has something to do with the issue.

Re: [Mod] Pyramids [0.4 beta] [pyramids]

PostPosted: Wed Aug 05, 2015 03:33
by Napiophelios
add "local" to the beginning of line 137 and see if you still get the error
Code: Select all
local p2 = minetest.find_node_near(mpos, 25, {"default:desert_sand"})


with mapgen v7 the pyramids seem to generate under ground

Re: [Mod] Pyramids [0.4 beta] [pyramids]

PostPosted: Mon Aug 24, 2015 17:34
by swordpaint12
This is neat, I haven't come across a pyramid yet but it's a very nice mod!

Re: [Mod] Pyramids [0.4 beta] [pyramids]

PostPosted: Sun Nov 08, 2015 19:06
by bbaez
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.

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


Thanks!

Re: [Mod] Pyramids [0.4 beta] [pyramids]

PostPosted: Mon Nov 09, 2015 19:55
by BlockMen
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.

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


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


Those are shown since you have placed spawners but disabled at leat zombies and sheep of CME. You can "fix" that by using chat command /clearobjects but be aware that this command removes all objects from world (like dropped items and mobs).

And wich version of pyramids are you using, 0.4 or 0.4.1?

Re: [Mod] Pyramids [0.4 beta] [pyramids]

PostPosted: Wed Nov 11, 2015 15:54
by necron099
BlockMen, I downloaded 4.1? from github and got this:

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.

Re: [Mod] Pyramids [0.4 beta] [pyramids]

PostPosted: Thu Nov 12, 2015 01:47
by duane
necron099 wrote:BlockMen, I downloaded 4.1? from github and got this:


Those won't do any harm, but if you want to fix them, you can use this patch.

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

Re: [Mod] Pyramids [0.4 beta] [pyramids]

PostPosted: Thu Nov 12, 2015 13:20
by necron099
Thanks duane, appreciate it :)

Pyramids 0.4.2

PostPosted: Thu Nov 12, 2015 17:44
by BlockMen
Update Version 0.4.2 released

Changelog (0.4.1 + 0.4.2):
- Fix unhandled exception (by vitaminx)
- Fix global variable warnings (by duane)

Re: [Mod] Pyramids [0.4.2 beta] [pyramids]

PostPosted: Sat Nov 14, 2015 05:34
by bbaez
Sorry BlockMen that I didn't get back to you. Thanks for the tips about CME. There is something more strange going on there and I need to verify. As for the version, it was 0.4.1 beta (a git pull as of Jul 1 2015).

Re: [Mod] Pyramids [0.4.2 beta] [pyramids]

PostPosted: Sat Nov 14, 2015 17:00
by bbaez
Hi BlockMen,

I tried using /clearobjects but after a few minutes there is a core dump. Tried this several times. Not descriptive, sorry. Anyway of turning up logging without recompiling?

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


Thanks for the help!

Re: [Mod] Pyramids [0.4.2 beta] [pyramids]

PostPosted: Sat Nov 14, 2015 21:32
by Don
@bbaez - the same thing happened to me. I just kept loading the world a bunch of times and it finally cleared things.

Re: [Mod] Pyramids [0.4.2 beta] [pyramids]

PostPosted: Sun Nov 15, 2015 18:20
by bbaez
Thank you Bats! After 40 times or so clearing objects I implemented the clean mode posted on "Delete unknown blocks and objects" that prestidigitator posted. So far working great.