Attn Mod Devs: Please update your mods to work with latest unstable..

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

Attn Mod Devs: Please update your mods to work with latest unstable..

by RAPHAEL » Sun Mar 18, 2012 21:28

I'm making a request for mod devs to update their mods for latest unstable dev build. Should be pretty quick for someone who knows how to do it. For the time being I suggest providing the old mod and the updated mod so users can use whichever based on their minetest version.
"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
IPushButton2653
Member
 
Posts: 666
Joined: Wed Nov 16, 2011 22:47

by IPushButton2653 » Mon Mar 19, 2012 00:44

The main problem I see is you need to change the "minetest.digprop" line to "groups = {type=0}"
Whereas type corresponds to the node/tool you are defining. And the number can be 0,2, or 3. (Look in default init.lua for more)
 

User avatar
RabbiBob
Member
 
Posts: 335
Joined: Sat Jan 28, 2012 22:40

by RabbiBob » Mon Mar 19, 2012 00:56

You can leave minetest.digprop in place if you want some backwards compatibility. I'm keeping it in there for a little bit.
 

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

by randomproof » Mon Mar 19, 2012 22:38

So it seems to me that there are not hardcoded groups, but the ones that are in the default init.lua file are:
fleshy
crumbly
snappy
cracky
choppy
bendy
dig_immediate
oddly_breakable_by_hand
Last edited by randomproof on Tue Mar 20, 2012 15:14, edited 1 time in total.
 

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

by Death Dealer » Mon Mar 19, 2012 22:42

i found this.. not like i know what it means but i know this is whats causing the mods to not work.
-- minetest.digprop_constanttime(time)
-- minetest.digprop_stonelike(toughness)
-- minetest.digprop_dirtlike(toughness)
-- minetest.digprop_gravellike(toughness)
-- minetest.digprop_woodlike(toughness)
-- minetest.digprop_leaveslike(toughness)
-- minetest.digprop_glasslike(toughness)
--
and that fleshly oddly_breakable by hand to.
so whats the problem exactly is there a new system to register the nodes or something?
Last edited by Death Dealer on Mon Mar 19, 2012 22:44, edited 1 time in total.
Keep calm and code python^_^
 

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

by randomproof » Tue Mar 20, 2012 15:18

All the "minetest.digprop_" functions are deprecated and do nothing now. Look at the default init.lua file to see how nodes are now defined. Also look at the tools to see how they are now interacting with the node groups.

See this example:
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_tool("default:shovel_steel", {
    description = "Steel Shovel",
    inventory_image = "default_tool_steelshovel.png",
    tool_capabilities = {
        max_drop_level=1,
        groupcaps={
            crumbly={times={[1]=0.50, [2]=0.35, [3]=0.30}, maxwear=0.1, maxlevel=2}  <---------------crumbly
        }
    },
})
minetest.register_node("default:sand", {
    description = "Sand",
    tile_images = {"default_sand.png"},
    is_ground_content = true,
    groups = {crumbly=3},     <-----------------crumbly
})


I can't say I fully understand what all the different numbers mean, though.
Last edited by randomproof on Tue Mar 20, 2012 15:19, edited 1 time in total.
 

User avatar
LorenzoVulcan
Member
 
Posts: 437
Joined: Mon Mar 12, 2012 06:46

by LorenzoVulcan » Tue Mar 20, 2012 16:00

Those new functions are really usefull for items,but so limitative for nodes.Is there any way for making new groups or new valours without using C++?
Developer of the BlockForge 2# Project!
Official thread: http://minetest.net/forum/viewtopic.php?pid=54290#p54290
 

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

by randomproof » Tue Mar 20, 2012 16:17

I think you can make any groups you want. For example you could edit the plant growing mods to have a 'plant' group on their nodes and tools.
 

User avatar
kddekadenz
Member
 
Posts: 323
Joined: Mon Jun 27, 2011 17:21
GitHub: tinyworlds

by kddekadenz » Tue Mar 20, 2012 16:29

I updated my desert mod :)
Cacti should be actually be destroyable in default mode with your fists.
 

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

by randomproof » Tue Mar 20, 2012 16:39

kddekadenz wrote:I updated my desert mod :)
Cacti should be actually be destroyable in default mode with your fists.

You can change nodes that have already been defined if you want. First, make sure that 'default' is in your depends.txt file, then you add this to your mod's init.lua file:
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.registered_nodes["default:cactus"].groups[oddly_breakable_by_hand]=2
Last edited by randomproof on Tue Mar 20, 2012 16:41, edited 1 time in total.
 

User avatar
kddekadenz
Member
 
Posts: 323
Joined: Mon Jun 27, 2011 17:21
GitHub: tinyworlds

by kddekadenz » Tue Mar 20, 2012 16:55

Nice, thank you for the tip :)
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 62 guests

cron