Thanks! (I had heard of it before but was too lazy to download)...cx384 wrote:Use gimp!Lone_Wolf wrote:I edited the texture for the nyancat sword (nyancatsplus mod) in windows Paint and in the game there's white in the place of the transparent background I was aiming for. I've been able to get transparent backrounds with paint before (Making a skin for MineBlocks). Any suggestions?
https://www.gimp.org/
Post your modding questions here
- Lone_Wolf
- Member
- Posts: 2578
- Joined: Sun Apr 09, 2017 05:50
- GitHub: LoneWolfHT
- IRC: LandarVargan
- In-game: LandarVargan
Re: Post your modding questions here
- Lone_Wolf
- Member
- Posts: 2578
- Joined: Sun Apr 09, 2017 05:50
- GitHub: LoneWolfHT
- IRC: LandarVargan
- In-game: LandarVargan
Re: Post your modding questions here
One more question for now: What is fleshy dmg? I set it to 9999999999999 on the nyancat sword and it wouldn't deal dmg at all. (I have NO idea how to code in 'lua')
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: Post your modding questions here
please post the nyansword code, i'll show you what to modify. and this value exceeds binary capacity
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
- Lone_Wolf
- Member
- Posts: 2578
- Joined: Sun Apr 09, 2017 05:50
- GitHub: LoneWolfHT
- IRC: LandarVargan
- In-game: LandarVargan
Re: Post your modding questions here
Here's the whole thing, I couldn't figure out how to separate it without ruining something. I modified the other tools too the pickaxe heals 392841 or something before bringing the health to zero.
Someone needs to make a mod that lets you turn the nyancat into poptarts that restore hunger, max out health, and give you some permanent special abilities.
[Edit] How do I change the mining rate for the tools? I want them to immediately mine the nodes they are tasked to mine.
Code: Select all
minetest.register_craftitem("nyancats_plus:rainbow_shard", {
description = "Rainbow shard",
inventory_image = "rainbow_shard.png",
})
minetest.register_craft({
output = 'nyancats_plus:rainbow_shard 9',
recipe = {
{"default:nyancat_rainbow"},
}
})
minetest.register_tool("nyancats_plus:rainbow_pick",{
description = "Rainbow Pickaxe",
inventory_image = "rainbow_pick.png",
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level=3,
groupcaps={
cracky = {times={[1]=1.0, [2]=0.7, [3]=0.25}, uses=0},
},
damage_groups = {fleshy=-9999},
},
})
minetest.register_tool("nyancats_plus:rainbow_shovel", {
description = "Rainbow Shovel",
inventory_image = "rainbow_shovel.png",
wield_image = "rainbow_shovel.png^[transformR90",
tool_capabilities = {
full_punch_interval = 0.8,
max_drop_level=1,
groupcaps={
crumbly = {times={[1]=0.8, [2]=0.3, [3]=0.1}, uses=0, maxlevel=5},
},
damage_groups = {fleshy=9},
},
})
minetest.register_tool("nyancats_plus:rainbow_axe", {
description = "Rainbow Axe",
inventory_image = "rainbow_axe.png",
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level=1,
groupcaps={
choppy={times={[1]=1.9, [2]=0.70, [3]=0.30}, uses=0, maxlevel=5},
},
damage_groups = {fleshy=9},
},
})
minetest.register_tool("nyancats_plus:rainbow_sword", {
description = "Diamond Sword",
inventory_image = "rainbow_sword.png",
tool_capabilities = {
full_punch_interval = 0.6,
max_drop_level=1,
groupcaps={
snappy={times={[1]=1.70, [2]=0.70, [3]=0.10}, uses=0, maxlevel=5},
},
damage_groups = {fleshy=15},
}
})
farming.register_hoe("nyancats_plus:rainbow_hoe", {
description = "Rainbow Hoe",
inventory_image = "rainbow_hoe.png",
max_uses = 0,
recipe = {
{"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard"},
{"", "group:stick"},
{"", "group:stick"},
}
})
minetest.register_craft({
output = "nyancats_plus:rainbow_pick",
recipe = {
{"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard"},
{'', 'group:stick', ''},
{'', 'group:stick', ''},
}
})
minetest.register_craft({
output = "nyancats_plus:rainbow_shovel",
recipe = {
{"", "nyancats_plus:rainbow_shard", ""},
{'', 'group:stick', ''},
{'', 'group:stick', ''},
}
})
minetest.register_craft({
output = "nyancats_plus:rainbow_shovel",
recipe = {
{"", "nyancats_plus:rainbow_shard", ""},
{'', 'group:stick', ''},
{'', 'group:stick', ''},
}
})
minetest.register_craft({
output = "nyancats_plus:rainbow_axe",
recipe = {
{"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard", ""},
{"nyancats_plus:rainbow_shard", 'group:stick', ''},
{'', 'group:stick', ''},
}
})
minetest.register_craft({
output = "nyancats_plus:rainbow_sword",
recipe = {
{"", "nyancats_plus:rainbow_shard", ""},
{'', "nyancats_plus:rainbow_shard", ''},
{'', 'group:stick', ''},
}
})
[Edit] How do I change the mining rate for the tools? I want them to immediately mine the nodes they are tasked to mine.
- Lone_Wolf
- Member
- Posts: 2578
- Joined: Sun Apr 09, 2017 05:50
- GitHub: LoneWolfHT
- IRC: LandarVargan
- In-game: LandarVargan
Re: Post your modding questions here
I downloaded GIMP and edited the NyanCat sword texture but Mintest couldn't read the file...
Re: Post your modding questions here
You have to export the image as ".png". I think the hotkey is ctrl + e.Lone_Wolf wrote:I downloaded GIMP and edited the NyanCat sword texture but Mintest couldn't read the file...
Can your read this?
- Lone_Wolf
- Member
- Posts: 2578
- Joined: Sun Apr 09, 2017 05:50
- GitHub: LoneWolfHT
- IRC: LandarVargan
- In-game: LandarVargan
Re: Post your modding questions here
Yes I saw that but didn't see a setting in the optionssoI assumed It couldn't do '.png'cx384 wrote:You have to export the image as ".png". I think the hotkey is ctrl + e.Lone_Wolf wrote:I downloaded GIMP and edited the NyanCat sword texture but Mintest couldn't read the file...
Re: Post your modding questions here
How can I force or simulate server lag? I want to test something in extreme situations
- Lone_Wolf
- Member
- Posts: 2578
- Joined: Sun Apr 09, 2017 05:50
- GitHub: LoneWolfHT
- IRC: LandarVargan
- In-game: LandarVargan
Re: Post your modding questions here
Download nssm and AITechI's NPC mod and use them both at the same time. I go at 0 FPS when I do that, (For me anyway) although I felt like it was -10 FPS.burli wrote:How can I force or simulate server lag? I want to test something in extreme situations
- Lone_Wolf
- Member
- Posts: 2578
- Joined: Sun Apr 09, 2017 05:50
- GitHub: LoneWolfHT
- IRC: LandarVargan
- In-game: LandarVargan
Re: Post your modding questions here
Or you could try spamming the chat for a few minutes. (I personally don't think it works that well but others have said it does, NOTE I never spam unless it's to get myself read over the chat flooding of other players)burli wrote:How can I force or simulate server lag? I want to test something in extreme situations
Re: Post your modding questions here
You can do this without pissing off everyone on the server, with `netem`burli wrote:How can I force or simulate server lag? I want to test something in extreme situations
`netem` allows you to insert a `fake lag` between you and the server. It works on Linux, obviously, only.
https://wiki.linuxfoundation.org/networ ... ork-delays
Re: Post your modding questions here
I don't want to piss off everyone because I just want to piss off myself on my local machine. And I think more about a delay function in a globalstep or something, so something that really acts like too many heavy installed mods, but more reliable.
Re: Post your modding questions here
netem *is* reliable lag. It even works on the `lo` interface so you can play on your local machine as if the machine is on the other side of the world through a satellite uplink with 2.0 seconds of lag.burli wrote:I don't want to piss off everyone because I just want to piss off myself on my local machine. And I think more about a delay function in a globalstep or something, so something that really acts like too many heavy installed mods, but more reliable.
You can even program it to give *random* lag, too.
Re: Post your modding questions here
But there is a difference between connection lag and execution lag. Or is that the same?
But thanks for the link. It's interesting anyway
But thanks for the link. It's interesting anyway
-
- Member
- Posts: 818
- Joined: Tue Apr 14, 2015 01:59
- GitHub: raymoo
- IRC: Hijiri
- In-game: Raymoo + Clownpiece
Re: Post your modding questions here
You could run a big loop in a global step. Like increment a variable a billion times or something.burli wrote:But there is a difference between connection lag and execution lag. Or is that the same?
But thanks for the link. It's interesting anyway
Every time a mod API is left undocumented, a koala dies.
Re: Post your modding questions here
execution lag is when the server is too busy. If you have execution lag, you've basically lost already, because at that point your server is just unplayable, and players will leave. If you have execution lag, there's not much you could do except spend more money.Byakuren wrote:You could run a big loop in a global step. Like increment a variable a billion times or something.burli wrote:But there is a difference between connection lag and execution lag. Or is that the same?
But thanks for the link. It's interesting anyway
network lag is real, though, and unavoidable.
Execution lag is really hard, because stuff happens in various points in time. Try adding sleeps if that is really what you want:
http://lua-users.org/wiki/SleepFunction
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: Post your modding questions here
Code: Select all
minetest.register_craftitem("nyancats_plus:rainbow_shard", {
description = "Rainbow shard",
inventory_image = "rainbow_shard.png",
})
minetest.register_craft({
output = 'nyancats_plus:rainbow_shard 9',
recipe = {
{"default:nyancat_rainbow"},
}
})
minetest.register_tool("nyancats_plus:rainbow_pick",{
description = "Rainbow Pickaxe",
inventory_image = "rainbow_pick.png",
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level=3,
groupcaps={
cracky = {times={[1]=1.0, [2]=0.7, [3]=0.25}, uses=0},
},
damage_groups = {fleshy=9999},
},
})
minetest.register_tool("nyancats_plus:rainbow_shovel", {
description = "Rainbow Shovel",
inventory_image = "rainbow_shovel.png",
wield_image = "rainbow_shovel.png^[transformR90",
tool_capabilities = {
full_punch_interval = 0.8,
max_drop_level=1,
groupcaps={
crumbly = {times={[1]=0.8, [2]=0.3, [3]=0.1}, uses=0, maxlevel=5},
},
damage_groups = {fleshy=9},
},
})
minetest.register_tool("nyancats_plus:rainbow_axe", {
description = "Rainbow Axe",
inventory_image = "rainbow_axe.png",
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level=1,
groupcaps={
choppy={times={[1]=1.9, [2]=0.70, [3]=0.30}, uses=0, maxlevel=5},
},
damage_groups = {fleshy=9},
},
})
minetest.register_tool("nyancats_plus:rainbow_sword", {
description = "Diamond Sword",
inventory_image = "rainbow_sword.png",
tool_capabilities = {
full_punch_interval = 0.6,
max_drop_level=1,
groupcaps={
snappy={times={[1]=1.70, [2]=0.70, [3]=0.10}, uses=0, maxlevel=5},
},
damage_groups = {fleshy=15},
}
})
farming.register_hoe("nyancats_plus:rainbow_hoe", {
description = "Rainbow Hoe",
inventory_image = "rainbow_hoe.png",
max_uses = 0,
recipe = {
{"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard"},
{"", "group:stick"},
{"", "group:stick"},
}
})
minetest.register_craft({
output = "nyancats_plus:rainbow_pick",
recipe = {
{"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard"},
{'', 'group:stick', ''},
{'', 'group:stick', ''},
}
})
minetest.register_craft({
output = "nyancats_plus:rainbow_shovel",
recipe = {
{"", "nyancats_plus:rainbow_shard", ""},
{'', 'group:stick', ''},
{'', 'group:stick', ''},
}
})
minetest.register_craft({
output = "nyancats_plus:rainbow_shovel",
recipe = {
{"", "nyancats_plus:rainbow_shard", ""},
{'', 'group:stick', ''},
{'', 'group:stick', ''},
}
})
minetest.register_craft({
output = "nyancats_plus:rainbow_axe",
recipe = {
{"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard", ""},
{"nyancats_plus:rainbow_shard", 'group:stick', ''},
{'', 'group:stick', ''},
}
})
minetest.register_craft({
output = "nyancats_plus:rainbow_sword",
recipe = {
{"", "nyancats_plus:rainbow_shard", ""},
{'', "nyancats_plus:rainbow_shard", ''},
{'', 'group:stick', ''},
}
})
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
- Lone_Wolf
- Member
- Posts: 2578
- Joined: Sun Apr 09, 2017 05:50
- GitHub: LoneWolfHT
- IRC: LandarVargan
- In-game: LandarVargan
Re: Post your modding questions here
Ok I was just testing. Is that the edited code? I'd also like to switch the sticks with steel ingots when crafting the tools, do I switch the 'group:stick's with 'group:steel_ingot'?azekill_DIABLO wrote:damage value must be positive to damage things!Code: Select all
minetest.register_craftitem("nyancats_plus:rainbow_shard", { description = "Rainbow shard", inventory_image = "rainbow_shard.png", }) minetest.register_craft({ output = 'nyancats_plus:rainbow_shard 9', recipe = { {"default:nyancat_rainbow"}, } }) minetest.register_tool("nyancats_plus:rainbow_pick",{ description = "Rainbow Pickaxe", inventory_image = "rainbow_pick.png", tool_capabilities = { full_punch_interval = 0.7, max_drop_level=3, groupcaps={ cracky = {times={[1]=1.0, [2]=0.7, [3]=0.25}, uses=0}, }, damage_groups = {fleshy=9999}, }, }) minetest.register_tool("nyancats_plus:rainbow_shovel", { description = "Rainbow Shovel", inventory_image = "rainbow_shovel.png", wield_image = "rainbow_shovel.png^[transformR90", tool_capabilities = { full_punch_interval = 0.8, max_drop_level=1, groupcaps={ crumbly = {times={[1]=0.8, [2]=0.3, [3]=0.1}, uses=0, maxlevel=5}, }, damage_groups = {fleshy=9}, }, }) minetest.register_tool("nyancats_plus:rainbow_axe", { description = "Rainbow Axe", inventory_image = "rainbow_axe.png", tool_capabilities = { full_punch_interval = 0.7, max_drop_level=1, groupcaps={ choppy={times={[1]=1.9, [2]=0.70, [3]=0.30}, uses=0, maxlevel=5}, }, damage_groups = {fleshy=9}, }, }) minetest.register_tool("nyancats_plus:rainbow_sword", { description = "Diamond Sword", inventory_image = "rainbow_sword.png", tool_capabilities = { full_punch_interval = 0.6, max_drop_level=1, groupcaps={ snappy={times={[1]=1.70, [2]=0.70, [3]=0.10}, uses=0, maxlevel=5}, }, damage_groups = {fleshy=15}, } }) farming.register_hoe("nyancats_plus:rainbow_hoe", { description = "Rainbow Hoe", inventory_image = "rainbow_hoe.png", max_uses = 0, recipe = { {"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard"}, {"", "group:stick"}, {"", "group:stick"}, } }) minetest.register_craft({ output = "nyancats_plus:rainbow_pick", recipe = { {"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard"}, {'', 'group:stick', ''}, {'', 'group:stick', ''}, } }) minetest.register_craft({ output = "nyancats_plus:rainbow_shovel", recipe = { {"", "nyancats_plus:rainbow_shard", ""}, {'', 'group:stick', ''}, {'', 'group:stick', ''}, } }) minetest.register_craft({ output = "nyancats_plus:rainbow_shovel", recipe = { {"", "nyancats_plus:rainbow_shard", ""}, {'', 'group:stick', ''}, {'', 'group:stick', ''}, } }) minetest.register_craft({ output = "nyancats_plus:rainbow_axe", recipe = { {"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard", ""}, {"nyancats_plus:rainbow_shard", 'group:stick', ''}, {'', 'group:stick', ''}, } }) minetest.register_craft({ output = "nyancats_plus:rainbow_sword", recipe = { {"", "nyancats_plus:rainbow_shard", ""}, {'', "nyancats_plus:rainbow_shard", ''}, {'', 'group:stick', ''}, } })
- orwell
- Member
- Posts: 958
- Joined: Wed Jun 24, 2015 18:45
- GitHub: orwell96
- IRC: orwell96_mt
- In-game: orwell
- Location: Raxacoricofallapatorius
Re: Post your modding questions here
If you look for something simpler, try Paint.NETLone_Wolf wrote:Thanks! (I had heard of it before but was too lazy to download)...cx384 wrote:Use gimp!Lone_Wolf wrote:I edited the texture for the nyancat sword (nyancatsplus mod) in windows Paint and in the game there's white in the place of the transparent background I was aiming for. I've been able to get transparent backrounds with paint before (Making a skin for MineBlocks). Any suggestions?
https://www.gimp.org/
http://getpaint.net
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: Post your modding questions here
no it's default:steel_ingotLone_Wolf wrote:Ok I was just testing. Is that the edited code? I'd also like to switch the sticks with steel ingots when crafting the tools, do I switch the 'group:stick's with 'group:steel_ingot'?azekill_DIABLO wrote:damage value must be positive to damage things!Code: Select all
minetest.register_craftitem("nyancats_plus:rainbow_shard", { description = "Rainbow shard", inventory_image = "rainbow_shard.png", }) minetest.register_craft({ output = 'nyancats_plus:rainbow_shard 9', recipe = { {"default:nyancat_rainbow"}, } }) minetest.register_tool("nyancats_plus:rainbow_pick",{ description = "Rainbow Pickaxe", inventory_image = "rainbow_pick.png", tool_capabilities = { full_punch_interval = 0.7, max_drop_level=3, groupcaps={ cracky = {times={[1]=1.0, [2]=0.7, [3]=0.25}, uses=0}, }, damage_groups = {fleshy=9999}, }, }) minetest.register_tool("nyancats_plus:rainbow_shovel", { description = "Rainbow Shovel", inventory_image = "rainbow_shovel.png", wield_image = "rainbow_shovel.png^[transformR90", tool_capabilities = { full_punch_interval = 0.8, max_drop_level=1, groupcaps={ crumbly = {times={[1]=0.8, [2]=0.3, [3]=0.1}, uses=0, maxlevel=5}, }, damage_groups = {fleshy=9}, }, }) minetest.register_tool("nyancats_plus:rainbow_axe", { description = "Rainbow Axe", inventory_image = "rainbow_axe.png", tool_capabilities = { full_punch_interval = 0.7, max_drop_level=1, groupcaps={ choppy={times={[1]=1.9, [2]=0.70, [3]=0.30}, uses=0, maxlevel=5}, }, damage_groups = {fleshy=9}, }, }) minetest.register_tool("nyancats_plus:rainbow_sword", { description = "Diamond Sword", inventory_image = "rainbow_sword.png", tool_capabilities = { full_punch_interval = 0.6, max_drop_level=1, groupcaps={ snappy={times={[1]=1.70, [2]=0.70, [3]=0.10}, uses=0, maxlevel=5}, }, damage_groups = {fleshy=15}, } }) farming.register_hoe("nyancats_plus:rainbow_hoe", { description = "Rainbow Hoe", inventory_image = "rainbow_hoe.png", max_uses = 0, recipe = { {"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard"}, {"", "group:stick"}, {"", "group:stick"}, } }) minetest.register_craft({ output = "nyancats_plus:rainbow_pick", recipe = { {"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard"}, {'', 'group:stick', ''}, {'', 'group:stick', ''}, } }) minetest.register_craft({ output = "nyancats_plus:rainbow_shovel", recipe = { {"", "nyancats_plus:rainbow_shard", ""}, {'', 'group:stick', ''}, {'', 'group:stick', ''}, } }) minetest.register_craft({ output = "nyancats_plus:rainbow_shovel", recipe = { {"", "nyancats_plus:rainbow_shard", ""}, {'', 'group:stick', ''}, {'', 'group:stick', ''}, } }) minetest.register_craft({ output = "nyancats_plus:rainbow_axe", recipe = { {"nyancats_plus:rainbow_shard", "nyancats_plus:rainbow_shard", ""}, {"nyancats_plus:rainbow_shard", 'group:stick', ''}, {'', 'group:stick', ''}, } }) minetest.register_craft({ output = "nyancats_plus:rainbow_sword", recipe = { {"", "nyancats_plus:rainbow_shard", ""}, {'', "nyancats_plus:rainbow_shard", ''}, {'', 'group:stick', ''}, } })
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
- Lone_Wolf
- Member
- Posts: 2578
- Joined: Sun Apr 09, 2017 05:50
- GitHub: LoneWolfHT
- IRC: LandarVargan
- In-game: LandarVargan
Re: Post your modding questions here
I'll go for the simple one lol.orwell wrote: If you look for something simpler, try Paint.NET
http://getpaint.net
thanks!
- Lone_Wolf
- Member
- Posts: 2578
- Joined: Sun Apr 09, 2017 05:50
- GitHub: LoneWolfHT
- IRC: LandarVargan
- In-game: LandarVargan
Re: Post your modding questions here
Thanks for your help!azekill_DIABLO wrote:
no it's default:steel_ingot
(Understanding of Mintest has gone up 1% :D)
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: Post your modding questions here
Great!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
Re: Post your modding questions here
Is the collision box of objects an example or the default value if no value is given?
https://github.com/minetest/minetest/bl ... .txt#L3681
https://github.com/minetest/minetest/bl ... .txt#L3681
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: Post your modding questions here
it's the default value, it's same as a node.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
Who is online
Users browsing this forum: No registered users and 9 guests