Page 1 of 1

Iron not spawning try this

PostPosted: Thu Feb 16, 2012 05:57
by Death Dealer
Things needed-
Minetest ver.0.4 - ver.0.3
Load a map in ver 3 then copy world file over.
Posted this already but it seems to have run off;D

PostPosted: Thu Feb 16, 2012 06:05
by sfan5
Iron is very rare <- A Bug
If you search for a long time you can find it

PostPosted: Thu Feb 16, 2012 10:12
by Calinou
The Itemdef changes (january 22nd, latest snapshot) seem to have fixed this bug, no?
Also, only the chunks generated in 0.3 will contain the proper amount of iron, not newly generated ones.

PostPosted: Tue Feb 21, 2012 21:09
by Death Dealer
sfan5 wrote:Iron is very rare <- A Bug
If you search for a long time you can find it

No man I searched literally for days. This is what worked for me. Instantly started spawning iron where I loaded up it was fantastic.

PostPosted: Mon Feb 27, 2012 13:12
by cosarara97
I said it doesn't count as a solution because the bug still has to be fixed, but yes, it works...

PostPosted: Thu Mar 01, 2012 02:23
by Death Dealer
The bug no longer exists with this FIX dudeXD people.....

PostPosted: Thu Mar 01, 2012 04:12
by RAPHAEL
Death Dealer wrote:The bug no longer exists with this FIX dudeXD people.....

I just created a new world on latest minetest and after over 3000 blocks dug, I found in total about 16 lumps of iron. Found over 30 mese. The "bug" still hasn't been fixed.

PostPosted: Thu Mar 01, 2012 12:16
by sdzen
yes iron was a very common ore in the old versions i looked at one of my old clients it was crazy full of iron

PostPosted: Thu Mar 01, 2012 15:19
by Death Dealer
The bug is not being able to find iron at all.

PostPosted: Thu Mar 01, 2012 17:24
by sdzen
you can find it its just crazy rare :)

PostPosted: Thu Mar 01, 2012 18:23
by Death Dealer
This is just how I do it. And it works makes just a little less rare.

PostPosted: Thu Mar 22, 2012 14:52
by randomproof
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
/*
            Add iron
        */
        u16 iron_amount = 8;

Here is the code in server.cpp (search for 'Add iron'). Just change the 8 to a bigger number and start a new world.
Edit: Opps, that is supposed to be mapgen.cpp not server.cpp

PostPosted: Thu Mar 22, 2012 14:55
by Death Dealer
randomproof wrote:
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
/*
            Add iron
        */
        u16 iron_amount = 8;

Here is the code in server.cpp (search for 'Add iron'). Just change the 8 to a bigger number and start a new world.

hey thats good to know. thanks

PostPosted: Wed Mar 28, 2012 10:19
by thj01
Sorry - new guy here.

Where is server.cpp located?

I'm using Ubuntu 11.10

Is the same hack poissible for MESE?

PostPosted: Wed Mar 28, 2012 11:50
by Death Dealer
thj01 wrote:Sorry - new guy here.

Where is server.cpp located?

I'm using Ubuntu 11.10

Is the same hack poissible for MESE?

*facepalm*
ya try reading around the forum guy, it would be "t" in game then type, "/giveme mese 9999"
BAM!! but ya seriously try reading some next time.

PostPosted: Thu Mar 29, 2012 12:37
by thj01
@Death Dealer

Sorry - used to Ubuntu forum, where beginner questions (even stupid ones) are welcome and accepted. So i'm sorry that i have had this bad habit since 2006, where i startede helping out on Denmark LOCO teams page.

If you noticed - my question were about finding the server.cpp file, so i could hack it - and in the same time make mese more common in new worlds by default.

I havn't seen any guides in the wiki that explains how to find/hack the server.cpp file - so i tried asking all the experienced users. I didn't ask how to apply cheat codes directly (actually knew that).

Sorry for having this way of thinking.





So if *facepalms* is the standard answer to new people - then the best of luck with it.

PostPosted: Thu Mar 29, 2012 12:53
by jordan4ibanez
thj01 wrote:@Death Dealer

Sorry - used to Ubuntu forum, where beginner questions (even stupid ones) are welcome and accepted. So i'm sorry that i have had this bad habit since 2006, where i startede helping out on Denmark LOCO teams page.

If you noticed - my question were about finding the server.cpp file, so i could hack it - and in the same time make mese more common in new worlds by default.

I havn't seen any guides in the wiki that explains how to find/hack the server.cpp file - so i tried asking all the experienced users. I didn't ask how to apply cheat codes directly (actually knew that).

Sorry for having this way of thinking.





So if *facepalms* is the standard answer to new people - then the best of luck with it.

hello, i am sorry for DD's rudeness, you will find server.cpp in minetest-src-server.cpp

PostPosted: Thu Mar 29, 2012 13:26
by thj01
@jordan4ibanez

Thanks for the answer. But i'm still having trouble locating the file. - or is it a file that i myself have to make.

I've located the program files to /usr/share/minetest, but there aren't any *.cpp files anywhere. And neither in the hidden /home/*user*/.mintetest directory.

Do i have to get the sourcecode to do it - or is there something i just have missed?

btw. as a 41 year old man i've been around the internet for a lot of years, so i have experiencenced worse than this - but i just had to retort gg

AND btw - running daily builds from the developer ppa

PostPosted: Thu Mar 29, 2012 13:54
by jordan4ibanez
thj01 wrote:@jordan4ibanez

Thanks for the answer. But i'm still having trouble locating the file. - or is it a file that i myself have to make.

I've located the program files to /usr/share/minetest, but there aren't any *.cpp files anywhere. And neither in the hidden /home/*user*/.mintetest directory.

Do i have to get the sourcecode to do it - or is there something i just have missed?

btw. as a 41 year old man i've been around the internet for a lot of years, so i have experiencenced worse than this - but i just had to retort gg

AND btw - running daily builds from the developer ppa

you're using the normal game...you need to get the source code

PostPosted: Thu Mar 29, 2012 14:14
by thj01
yekes - always try to avoid that - but one time has to be the first.

Thanx for the answers

PostPosted: Thu Mar 29, 2012 15:06
by Death Dealer
jordan4ibanez wrote:
thj01 wrote:@Death Dealer

Sorry - used to Ubuntu forum, where beginner questions (even stupid ones) are welcome and accepted. So i'm sorry that i have had this bad habit since 2006, where i startede helping out on Denmark LOCO teams page.

If you noticed - my question were about finding the server.cpp file, so i could hack it - and in the same time make mese more common in new worlds by default.

I havn't seen any guides in the wiki that explains how to find/hack the server.cpp file - so i tried asking all the experienced users. I didn't ask how to apply cheat codes directly (actually knew that).

Sorry for having this way of thinking.





So if *facepalms* is the standard answer to new people - then the best of luck with it.

hello, i am sorry for DD's rudeness, you will find server.cpp in minetest-src-server.cpp

F**k you! hows that for rudeness. at least i dont spam the forum with CRAP.

PostPosted: Thu Mar 29, 2012 15:15
by Death Dealer
thj01 wrote:Sorry - new guy here.

Where is server.cpp located?

I'm using Ubuntu 11.10

Is the same hack poissible for MESE?


thats my bad i skimmed through this fast and only saw hack possible for mese? im sure th ore generation code would work with mese. Jordan4ibanez is nothing but a big bitch trying to badmouth me every chance he gets. but i dont care i misinterpreted what you said it happens and I will say sorry:D because like i said i "accidentally misinterprited " what you said.

PostPosted: Thu Mar 29, 2012 15:21
by Death Dealer
hey jordan t(-.-)t

PostPosted: Thu Mar 29, 2012 15:36
by Jordach
Death Dealer wrote:
jordan4ibanez wrote:
thj01 wrote:@Death Dealer

Sorry - used to Ubuntu forum, where beginner questions (even stupid ones) are welcome and accepted. So i'm sorry that i have had this bad habit since 2006, where i startede helping out on Denmark LOCO teams page.

If you noticed - my question were about finding the server.cpp file, so i could hack it - and in the same time make mese more common in new worlds by default.

I havn't seen any guides in the wiki that explains how to find/hack the server.cpp file - so i tried asking all the experienced users. I didn't ask how to apply cheat codes directly (actually knew that).

Sorry for having this way of thinking.





So if *facepalms* is the standard answer to new people - then the best of luck with it.

hello, i am sorry for DD's rudeness, you will find server.cpp in minetest-src-server.cpp

F**k you! hows that for rudeness. at least i dont spam the forum with CRAP.

Hey, sisters! CAN YOU BOTH STOP FIGTHING. IT'S NOW ANNOYING, SFAN5 MAKES THIS ALL THE TIME ( \o/ ) JUST LEAVE IT NOW. Jeez. Play spleef or something.

PostPosted: Thu Mar 29, 2012 15:42
by Death Dealer
Jordach wrote:
Death Dealer wrote:
jordan4ibanez wrote:hello, i am sorry for DD's rudeness, you will find server.cpp in minetest-src-server.cpp

F**k you! hows that for rudeness. at least i dont spam the forum with CRAP.

Hey, sisters! CAN YOU BOTH STOP FIGTHING. IT'S NOW ANNOYING, SFAN5 MAKES THIS ALL THE TIME ( \o/ ) JUST LEAVE IT NOW. Jeez. Play spleef or something.

funny spleef, thats minecraft tho, witch im sure you know. if someone bad mouths me i will respond. its my nature.

PostPosted: Thu Mar 29, 2012 15:43
by Jordach
I think everyone defends themselves, of course, it is human behaviour.

(I like to think much like another species rather than human, I seem to get things better.)

PostPosted: Thu Mar 29, 2012 16:01
by Death Dealer
here we can all chill to this:D no profane language in this
http://www.youtube.com/watch?v=JqU7MFtiFz8
: 3

PostPosted: Thu Mar 29, 2012 16:54
by bgsmithjr
I don't know if this works but it is more iron ore without hacking the server.cpp
http://c55.me/minetest/forum/viewtopic.php?id=1280

by: sdzen

PostPosted: Thu Mar 29, 2012 22:16
by randomproof
Sorry I had the wrong file it is supposed to be mapgen.cpp not server.cpp.
And yes you must compile the source code to affect this change and make a new map.

You can also just add this to the default/init.lua file if you don't want to mess with the source code. It will add a little more iron around natural iron.
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
minetest.register_on_generated(
function(minp, maxp)
    max_add = 200
    for x = minp.x,maxp.x do
    for y = minp.y,maxp.y do
    for z = minp.z,maxp.z do
        pos = {x=x, y=y, z=z}
        if minetest.env:get_node(pos).name == "default:stone_with_iron" then
            max_check = 5
            while max_check do
                pos_i = {x=pos.x + math.random(-1, 1), y=pos.y + math.random(-1, 1), z=pos.z + math.random(-1, 1)}
                if minetest.env:get_node(pos_i).name == "default:stone" then
                    minetest.env:set_node(pos_i, {name="default:stone_with_iron"})
                    max_add = max_add - 1
                    break
                end
                max_check = max_check - 1
            end
        end
       
        if max_add == 0 then
            return
        end
    end
    end
    end
   
end)


Also you can change it so that you get more than 1 iron_lump from digging an iron ore node by changing
drop = 'default:iron_lump 2'
to
drop = 'default:iron_lump 2'
in the default/init.lua file