Iron not spawning try this

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

Iron not spawning try this

by Death Dealer » Thu Feb 16, 2012 05:57

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
Keep calm and code python^_^
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Thu Feb 16, 2012 06:05

Iron is very rare <- A Bug
If you search for a long time you can find it
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Thu Feb 16, 2012 10:12

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.
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Tue Feb 21, 2012 21:09

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.
Keep calm and code python^_^
 

cosarara97
Member
 
Posts: 180
Joined: Tue Nov 01, 2011 18:53

by cosarara97 » Mon Feb 27, 2012 13:12

I said it doesn't count as a solution because the bug still has to be fixed, but yes, it works...
:D
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Thu Mar 01, 2012 02:23

The bug no longer exists with this FIX dudeXD people.....
Keep calm and code python^_^
 

User avatar
RAPHAEL
Member
 
Posts: 627
Joined: Tue Nov 01, 2011 09:09

by RAPHAEL » Thu Mar 01, 2012 04:12

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.
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
 

User avatar
sdzen
Member
 
Posts: 1170
Joined: Fri Aug 05, 2011 22:33

by sdzen » Thu Mar 01, 2012 12:16

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
[h]Zen S.D.[/h] The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Thu Mar 01, 2012 15:19

The bug is not being able to find iron at all.
Keep calm and code python^_^
 

User avatar
sdzen
Member
 
Posts: 1170
Joined: Fri Aug 05, 2011 22:33

by sdzen » Thu Mar 01, 2012 17:24

you can find it its just crazy rare :)
[h]Zen S.D.[/h] The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Thu Mar 01, 2012 18:23

This is just how I do it. And it works makes just a little less rare.
Keep calm and code python^_^
 

randomproof
Member
 
Posts: 214
Joined: Thu Nov 17, 2011 06:31

by randomproof » Thu Mar 22, 2012 14:52

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
Last edited by randomproof on Thu Mar 29, 2012 22:09, edited 1 time in total.
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Thu Mar 22, 2012 14:55

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
Keep calm and code python^_^
 

thj01
New member
 
Posts: 4
Joined: Wed Mar 28, 2012 10:17

by thj01 » Wed Mar 28, 2012 10:19

Sorry - new guy here.

Where is server.cpp located?

I'm using Ubuntu 11.10

Is the same hack poissible for MESE?
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Wed Mar 28, 2012 11:50

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.
Keep calm and code python^_^
 

thj01
New member
 
Posts: 4
Joined: Wed Mar 28, 2012 10:17

by thj01 » Thu Mar 29, 2012 12:37

@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.
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Thu Mar 29, 2012 12:53

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
If you can think it, you can make it.
 

thj01
New member
 
Posts: 4
Joined: Wed Mar 28, 2012 10:17

by thj01 » Thu Mar 29, 2012 13:26

@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
Last edited by thj01 on Thu Mar 29, 2012 13:28, edited 1 time in total.
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Thu Mar 29, 2012 13:54

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
If you can think it, you can make it.
 

thj01
New member
 
Posts: 4
Joined: Wed Mar 28, 2012 10:17

by thj01 » Thu Mar 29, 2012 14:14

yekes - always try to avoid that - but one time has to be the first.

Thanx for the answers
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Thu Mar 29, 2012 15:06

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.
Keep calm and code python^_^
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Thu Mar 29, 2012 15:15

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.
Last edited by Death Dealer on Thu Mar 29, 2012 15:43, edited 1 time in total.
Keep calm and code python^_^
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Thu Mar 29, 2012 15:21

hey jordan t(-.-)t
Keep calm and code python^_^
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Thu Mar 29, 2012 15:36

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.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Thu Mar 29, 2012 15:42

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.
Keep calm and code python^_^
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Thu Mar 29, 2012 15:43

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

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Thu Mar 29, 2012 16:01

here we can all chill to this:D no profane language in this
http://www.youtube.com/watch?v=JqU7MFtiFz8
: 3
Keep calm and code python^_^
 

User avatar
bgsmithjr
Member
 
Posts: 436
Joined: Thu Mar 08, 2012 23:21

by bgsmithjr » Thu Mar 29, 2012 16:54

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
 

randomproof
Member
 
Posts: 214
Joined: Thu Nov 17, 2011 06:31

by randomproof » Thu Mar 29, 2012 22:16

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
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 12 guests

cron