Minetest logo

IRC log for #minetest-mods, 2012-11-09

| Channels | #minetest-mods index | Today | | Google Search | Plaintext

All times shown according to UTC.

Time Nick Message
13:51 PilzAdam joined #minetest-mods
17:22 rubenwardy joined #minetest-mods
17:46 nyuszika7h joined #minetest-mods
18:12 PilzAdam no activity for 21 days in this channel
18:14 VanessaE heh
18:14 VanessaE now you went and blew our record.
18:14 PilzAdam *evil laugh*
18:14 * VanessaE adjusts the tote board.  "Days without activity:  0"
18:15 * PilzAdam hits VanessaE
18:15 VanessaE ow.
18:15 PilzAdam "Days without violence:  0"
19:29 triplei joined #minetest-mods
19:50 PilzAdam_ joined #minetest-mods
20:30 MrDJK joined #minetest-mods
20:30 MiJyn joined #minetest-mods
20:34 MrDJK Quick advice question: I've recently found minetest (approx 20-30 minutes ago), now I'm also a LUA newbie (again approx 20-30 minutes ago), but I'm tinkering around, by looking at this guide that's on the forums along with the default mods via Minetest, my little test mod, basically creates to blocks, marble and cracked marble (I like RedPower), now my plan was to check if "marble" is placed next to water, if so turn it into "cracked marble",
20:34 MrDJK I have it working, I am just wondering if this is the correct way (or the most efficient way) to do it. Code: http://pastie.org/private/szwmqjfj1bss9xs9xwtrq
20:35 MrDJK Thanks in advance to anyone that answers. :)
20:36 MrDJK Ps: This is just me tinkering like I say, so it's not going to be an actual mod, which is why Marble has no use, other than to look pretty (though my texturing could use some work), and cracked can be just turned back into marble with 2 of them. :)
20:41 PilzAdam you should read this: https://github.com/celeron55/mine​test/blob/master/doc/lua_api.txt
20:41 MrDJK I have it open. :)
20:45 PilzAdam okay, what do you want exactly?
20:46 PilzAdam and keep it short
20:46 MrDJK Don't specifically want anything, was just wondering if I was on the right track. ;)
20:46 PilzAdam is_ground_content has no effect to anything; you can just remove it
20:47 MrDJK Okay thank you, I also notice flammable shouldn't be there (stone should be fire resisten) :)
20:47 MrDJK resisten/resistent
20:49 PilzAdam neighbors = { 'water', 'group:liquid' }, <- the name "water" does not exist
20:49 PilzAdam it is default:water_source and default:water_flowinf
20:49 PilzAdam *flowing
20:49 PilzAdam but you dont need that if you have group:liquid
20:49 MrDJK Oh, so it's working because in-game water is part of group:liquid.
20:50 PilzAdam yep
20:50 MrDJK I think I misunderstood neighbors.
20:50 PilzAdam but also lava is in liquid
20:50 MrDJK Ideally I just want water, rather than any liquid, flowing or still no preference there.
20:50 MrDJK So anyway to achieve that? - water adjecent to the block.
20:51 MrDJK Also thanks for the advice.
20:51 PilzAdam neighbours means: one of the 8 surrounding nodes has one of this names/is in one of this groups
20:51 MrDJK Right.
20:52 PilzAdam neighbors = { 'default:water_source', 'default:water_flowing' },
20:52 PilzAdam this would be correct
20:53 PilzAdam wait... look here: https://github.com/PilzAdam/minetest_game​/blob/master/mods/default/init.lua#L1022
20:53 PilzAdam the group "water" exists
20:53 PilzAdam and the default water uses it
20:53 MrDJK Okay, I assume this is just a list, rather than a placement (example recipe is mapped to the crafting slot), which is why I assumed this was the same, but this applies to all 8 surrounding.
20:53 PilzAdam so you can use "group:water"
20:53 MrDJK Oh great, thank you.
20:54 PilzAdam do you want it to turn slowly into the cracked one?
20:54 MrDJK Yes, I assumed with a 100 chance, it would turn slowly?
20:55 PilzAdam i would rather use interval = 30; chance = 8
20:55 PilzAdam this is less CPU intensive
20:56 MrDJK I see, okay I shall do that, thank you.
20:56 PilzAdam your code looks realy good
20:57 MrDJK Thank you, experience, although none with Lua. :)
20:57 PilzAdam what language?
20:59 MrDJK I dabble really, so a little Python, little C# (.NET), To much PHP (I'm a web developer)
21:00 PilzAdam have you visited the forums? http://minetest.net/forum/index.php
21:01 MrDJK I have, yes and I've seen you're an active (real active) developer, so thanks for taking the time to help urm well a newbie like me. ;)
21:02 PilzAdam thats why Im here :-)
21:03 MrDJK :)
21:03 PilzAdam and you have done all this in 20-30 minutes?
21:03 MrDJK Maybe less.
21:03 MrDJK Including poor textures.
21:04 PilzAdam thats fast
21:04 MrDJK But I really just opened up the init.lua file for default, and looked how it was done there (and assumed it was the way to go), along with that handy guide by urm...
21:04 MrDJK 'Jeija'
21:05 PilzAdam hes a great modder
21:05 MrDJK :)
21:06 PilzAdam he made this: http://minetest.net/forum/viewtopic.php?id=628
21:06 PilzAdam one of the best mods for MT
21:06 MrDJK Awesome!
21:08 MrDJK Those edits you suggested are working fine. :D
21:08 MrDJK Time for more tinkering around. :D
21:09 PilzAdam you should browse the forum and look at the code of other mods
21:09 PilzAdam Lua has way more potential then most people think
21:09 PilzAdam s/Lua/the Lua APO
21:09 PilzAdam *API
21:09 MrDJK I think I shall.
21:10 PilzAdam and give you more time than 20 minutes ;-)
21:11 MrDJK Hehe.
21:11 MrDJK Like I say I've only just found it, and thought it looked cool, then started to tinker.
21:12 MrDJK I like the fact this actually has a mod api, opposed to well community created apis.
21:12 PilzAdam this is the only reason i stay here
21:13 PilzAdam i code more than i play
21:13 MrDJK Oooh, I play more than I code... :P
21:14 MrDJK Which is probably why I get nothing done.
21:14 PilzAdam the default game without mods it boring
21:15 PilzAdam I and the other devs want to change that
21:15 MrDJK I have one mod installed, that crafting-guide thing.
21:16 PilzAdam you dont need that if you have this: http://minetest.net/wiki/doku.php?id=crafting
21:16 MrDJK But either way, the whole idea of games is there's a community developing addons.
21:16 MrDJK Well if a game has a modding community, it makes the game just that more fun and longer-lasting in terms of gameplay.
21:17 MrDJK Oh that's handy, I didn't notice that. >_< thanks.
21:17 PilzAdam this is from 0.3, but to get the basics its enough
21:17 PilzAdam most people dont look at the developer wiki
21:18 MrDJK I found it, I just didn't look at the crafting section >_< went straight to global functions.
21:19 PilzAdam lol
21:19 PilzAdam theres also a crafting page in the normal wiki: http://wiki.minetest.com/wiki/Crafting
21:20 PilzAdam its up-to-date
21:20 PilzAdam (more or less)
21:20 MrDJK Okay, thanks.
21:20 MrDJK lol
21:21 MrDJK Brb
21:50 mrtux joined #minetest-mods

| Channels | #minetest-mods index | Today | | Google Search | Plaintext