Page 1 of 1

Request to help update cement mod

PostPosted: Mon Dec 03, 2012 04:33
by RAPHAEL
First off it has been awhile since I've been around these forums (since about April of this year) and got around to updating mods I use and mods I wrote. However I am a little baffled at how to update this cement mod. Could someone offer some advice or help on this?

Download:
http://www.filedropper.com/cement

I'll also say my oh my how much has minetest changed since April lol

PostPosted: Mon Dec 03, 2012 05:33
by jordan4ibanez
Ohai

PostPosted: Mon Dec 03, 2012 08:06
by Jordach
RAPHAEL wrote:First off it has been awhile since I've been around these forums (since about April of this year) and got around to updating mods I use and mods I wrote. However I am a little baffled at how to update this cement mod. Could someone offer some advice or help on this?

Download:
http://www.filedropper.com/cement

I'll also say my oh my how much has minetest changed since April lol

Sure, I will help out.

Also, welcome back.

PostPosted: Mon Dec 03, 2012 10:42
by RAPHAEL
Hello there jordan4ibanez and Jordach. Long time no talk lol. Thank you Jordach for your help :)

PostPosted: Mon Dec 03, 2012 16:38
by Jordach
RAPHAEL wrote:Hello there jordan4ibanez and Jordach. Long time no talk lol. Thank you Jordach for your help :)

I'm still around. :)

Also, I removed the Home_Mod uses, since that mod is now long dead, since the author has left it.

P.S. Head onto IRC, #minetest -- same name there too!

Oh, btw, done the mod: https://github.com/Jordach/Concrete

NOTE: There already is a folder in there, just drag and drop the folder into minetest from the archiver.
N.B. Not all of them do this!

PostPosted: Tue Dec 04, 2012 05:31
by RAPHAEL
Jordach wrote:
RAPHAEL wrote:Hello there jordan4ibanez and Jordach. Long time no talk lol. Thank you Jordach for your help :)

I'm still around. :)

Also, I removed the Home_Mod uses, since that mod is now long dead, since the author has left it.

P.S. Head onto IRC, #minetest -- same name there too!

Oh, btw, done the mod: https://github.com/Jordach/Concrete

NOTE: There already is a folder in there, just drag and drop the folder into minetest from the archiver.
N.B. Not all of them do this!


Theres some issues with the mod. First off crafting recipes need the " instead of ' so the recipes work. Once that's done it seems when placing bucket of cement it doesn't "flow".

HAND TYPED: Map::setNode(): not allowing to place CONTENT_IGNORE while trying to replace cement:cement_source

I've fixed the crafting issue but not sure how to do the flowing issue:
minetest.register_craft({
output = "cement:aggregate_cement",
recipe = {
{"default:sand", "default:sand", "default:sand"},
{"default:gravel" ,"default:gravel", "default:gravel"},
{"default:clay_lump" ,"default:clay_lump", "default:clay_lump"},
}
})

minetest.register_node("cement:aggregate_cement", {
description = "Cement Aggregate Block",
tiles = {'cement_aggregate.png'},
groups = {cracky=3, falling_node=1},
})

minetest.register_craft({
output = "cement:bucket_cement",
recipe = {
{"cement:aggregate_cement"},
{"cement:aggregate_cement"},
{"bucket:bucket_water"},
}
})

minetest.register_craft({
output = "concrete:concrete 4",
recipe = {
{"cement:cement", "default:stone"},
{"default:stone", "cement:cement"},
}
})

minetest.register_node("cement:cement", {
description = "Cement Block",
tiles = {"cement_block.png"},
groups = {cracky=3},
})

minetest.register_node(":concrete:concrete", {
description = "Conecrete Block",
tiles = {"cement_concrete.png"},
groups = {cracky=3},
})

-- registering cement buckets
bucket.register_liquid(
"cement:cement_source",
"cement:cement_flowing",
"cement:bucket_cement",
"cement_bucket.png"
)
-- registering cement buckets end


CEMENT_VISC = 20

minetest.register_node("cement:cement_flowing", {
description = "Flowing Cement",
inventory_image = minetest.inventorycube("cement_cement.png"),
drawtype = "flowingliquid",
tiles = {"cement_cement.png"},
special_tiles = {
{name="cement_cement.png", backface_culling=false},
{name="cement_cement.png", backface_culling=true},
},
paramtype = "light",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
liquidtype = "flowing",
liquid_alternative_flowing = "cement:cement_flowing",
liquid_alternative_source = "cement:cement_source",
liquid_viscosity = CEMENT_VISC,
groups = {water=3, liquid=3, not_in_creative_inventory=1},
})

minetest.register_node("cement:cement_source", {
description = "Cement Source",
inventory_image = minetest.inventorycube("cement_cement.png"),
drawtype = "liquid",
tiles = {"cement_cement.png"},
special_tiles = {
-- New-style water source material (mostly unused)
{name="cement_cement.png", backface_culling=false},
},
paramtype = "light",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
liquidtype = "source",
liquid_alternative_flowing = "cement:cement_flowing",
liquid_alternative_source = "cement:cement_source",
liquid_viscosity = WATER_VISC,
groups = {water=3, liquid=3,},
})

-- registering cement abms source
minetest.register_abm({
nodenames = {"cement:cement_source"},
interval = 60,
chance = 1,
action = function(pos)
minetest.env:add_node(pos, {name="cement:cement"})
end
})

minetest.register_abm({
nodenames = {"cement:cement_flowing"},
interval = 55,
chance = 1,
action = function(pos)
minetest.env:add_node(pos, {name="cement:cement"})
end
})
print("Cement by Jordach / RAPHEAL Loaded!")

PostPosted: Tue Dec 04, 2012 08:12
by Jordach
That's odd, I used it before and it works fine on my local server.

However, I'm sure that the crafting system is correct, because minetest failed to throw an error at me.

I dunno what to do now, however, I have the feeling that the new abm I used is better.

As soon as I get home tonight, I will take a look into it.

P.s the liquids should work because I copy and pasted them from the default mod, also, I tested this in the win32 build of 0.4.3. Hope this helps.

-jordach

PostPosted: Tue Dec 04, 2012 09:42
by RAPHAEL
Jordach wrote:That's odd, I used it before and it works fine on my local server.

However, I'm sure that the crafting system is correct, because minetest failed to throw an error at me.

I dunno what to do now, however, I have the feeling that the new abm I used is better.

As soon as I get home tonight, I will take a look into it.

P.s the liquids should work because I copy and pasted them from the default mod, also, I tested this in the win32 build of 0.4.3. Hope this helps.

-jordach

I tested it in the latest daily unstable under Linux Mint. (updated about two days ago)