Post your modding questions here

Locked
User avatar
Nathan.S
Member
Posts: 1147
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: Post your modding questions here

by Nathan.S » Post

Hi again, does anybody know how to setup sound for a node. I have a campfire and I want it to have a burning sound. I've looked at everything in the wiki and can't figure it out. I was able to get the fire to have sound, but it only was activated when you placed the node, so loading worlds lost all the sound, and then the sound kept playing even after the node was destroyed. I tried using the sound_stop but that always threw up a fatal error and crashed the world.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

User avatar
benedict424
Member
Posts: 29
Joined: Thu Oct 02, 2014 06:24
IRC: ostec
In-game: ostec

Re: Post your modding questions here

by benedict424 » Post

How would I go about making a copy of a furnace with it's own recipes?

Reason: I'm making an alchemy furnace.
Terra, Aqua, Ignus, Air, Ather, and Incognitus.

User avatar
benedict424
Member
Posts: 29
Joined: Thu Oct 02, 2014 06:24
IRC: ostec
In-game: ostec

Re: Post your modding questions here

by benedict424 » Post

What would be a good name for an element themed magic mod?
Terra, Aqua, Ignus, Air, Ather, and Incognitus.

User avatar
philipbenr
Member
Posts: 1897
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

Re: Post your modding questions here

by philipbenr » Post

modname: magichem
Name: Magichem: elemental magic

User avatar
benedict424
Member
Posts: 29
Joined: Thu Oct 02, 2014 06:24
IRC: ostec
In-game: ostec

Re: Post your modding questions here

by benedict424 » Post

philipbenr wrote:modname: magichem
Name: Magichem: elemental magic
I meant Air, Ingnus, Aqua, Terra as elements.
Terra, Aqua, Ignus, Air, Ather, and Incognitus.

User avatar
hunterdelyx1
Member
Posts: 27
Joined: Fri Aug 10, 2012 02:14

Re: Post your modding questions here

by hunterdelyx1 » Post

*deleted*

User avatar
Esteban
Member
Posts: 873
Joined: Sun Sep 08, 2013 13:26
In-game: Esteban
Contact:

Re: Post your modding questions here

by Esteban » Post

benedict424 wrote:
philipbenr wrote:modname: magichem
Name: Magichem: elemental magic
I meant Air, Ingnus, Aqua, Terra as elements.
What do you think about the name "Aether"?

Aristotle proposed a fifth element, aether, in addition to the four proposed earlier by Empedocles.

Earth, which is cold and dry; this corresponds to the modern idea of a solid.
Water, which is cold and wet; this corresponds to the modern idea of a liquid.
Air, which is hot and wet; this corresponds to the modern idea of a gas.
Fire, which is hot and dry; this corresponds to the modern ideas of plasma and heat.
Aether, which is the divine substance that makes up the heavenly spheres and heavenly bodies (stars and planets).

Each of the four earthly elements has its natural place. All that is earthly tends toward the center of the universe, i.e., the center of the Earth. Water tends toward a sphere surrounding the center. Air tends toward a sphere surrounding the water sphere. Fire tends toward the lunar sphere (in which the Moon orbits). When elements are moved out of their natural place, they naturally move back towards it. This is "natural motion"—motion requiring no extrinsic cause. So, for example, in water, earthy bodies sink while air bubbles rise up; in air, rain falls and flame rises.
Scan avatar or click here to read a Message of Hope (PDF)

User avatar
benedict424
Member
Posts: 29
Joined: Thu Oct 02, 2014 06:24
IRC: ostec
In-game: ostec

Re: Post your modding questions here

by benedict424 » Post

Esteban wrote:
benedict424 wrote:
philipbenr wrote:modname: magichem
Name: Magichem: elemental magic
I meant Air, Ingnus, Aqua, Terra as elements.
What do you think about the name "Aether"?

Aristotle proposed a fifth element, aether, in addition to the four proposed earlier by Empedocles.

Earth, which is cold and dry; this corresponds to the modern idea of a solid.
Water, which is cold and wet; this corresponds to the modern idea of a liquid.
Air, which is hot and wet; this corresponds to the modern idea of a gas.
Fire, which is hot and dry; this corresponds to the modern ideas of plasma and heat.
Aether, which is the divine substance that makes up the heavenly spheres and heavenly bodies (stars and planets).

Each of the four earthly elements has its natural place. All that is earthly tends toward the center of the universe, i.e., the center of the Earth. Water tends toward a sphere surrounding the center. Air tends toward a sphere surrounding the water sphere. Fire tends toward the lunar sphere (in which the Moon orbits). When elements are moved out of their natural place, they naturally move back towards it. This is "natural motion"—motion requiring no extrinsic cause. So, for example, in water, earthy bodies sink while air bubbles rise up; in air, rain falls and flame rises.

For now, the 5th element is called Incognitus, but that's a great idea!
Terra, Aqua, Ignus, Air, Ather, and Incognitus.

User avatar
hunterdelyx1
Member
Posts: 27
Joined: Fri Aug 10, 2012 02:14

Re: Post your modding questions here

by hunterdelyx1 » Post

Hello! For some reason string.char() takes "|" in regexp as char. So i can't realize alternative choosing in capturing group. Is there way to fix it?

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

Re: Post your modding questions here

by kaeza » Post

hunterdelyx1 wrote:Hello! For some reason string.char() takes "|" in regexp as char. So i can't realize alternative choosing in capturing group. Is there way to fix it?
I think you mean `string.match` (or `string.gsub`).

Unfortunately, no. Regexp support in Lua is pretty limited. If you need more comprehensive support, you will need an external library.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
Esteban
Member
Posts: 873
Joined: Sun Sep 08, 2013 13:26
In-game: Esteban
Contact:

Re: Post your modding questions here

by Esteban » Post

I have a doubt, does mods like pipeworks/technic work fine in multiplayer? Or they can cause lag? Im trying to make a subgame and I want to add technology, but I want that the game can be used in a server. Finally, if these are too much for a multiplayer game, is there other options out there?
Thanks in advance

EDIT: oops, this question is supposed to be on modding requests, sorry.
Last edited by Esteban on Thu Oct 30, 2014 15:08, edited 1 time in total.
Scan avatar or click here to read a Message of Hope (PDF)

User avatar
hunterdelyx1
Member
Posts: 27
Joined: Fri Aug 10, 2012 02:14

Re: Post your modding questions here

by hunterdelyx1 » Post

kaeza wrote:
hunterdelyx1 wrote:Hello! For some reason string.char() takes "|" in regexp as char. So i can't realize alternative choosing in capturing group. Is there way to fix it?
I think you mean `string.match` (or `string.gsub`).

Unfortunately, no. Regexp support in Lua is pretty limited. If you need more comprehensive support, you will need an external library.
Oh. Yeah. Right. string.match. It's pity to hear thant. But thanks for answering.

User avatar
benedict424
Member
Posts: 29
Joined: Thu Oct 02, 2014 06:24
IRC: ostec
In-game: ostec

a nil value on players

by benedict424 » Post

Code: Select all

minetest.register_tool("alchemtinker:light_wand", {
    description = "light_wand",
    inventory_image = "tinker_light_wand.png",

	on_use = function(itemstack, user, pointed_thing)
		local playerpos = minetest.player:getpos()
		itemstack:add_wear(1) -- To do: Look up how the hech this thing works.
		minetest.place_node({playerpos}, {name="alchemtinker:light_node"})
		return itemstack
		end
})
Why is this code bringing up this error:
21:14:45: ERROR[main]: ServerError: /home/jack/.minetest/mods/alchemtinker/spells.lua:22: attempt to index field 'player' (a nil value)
This code should place a node right where you stand, but instead it crashes.
Terra, Aqua, Ignus, Air, Ather, and Incognitus.

User avatar
benedict424
Member
Posts: 29
Joined: Thu Oct 02, 2014 06:24
IRC: ostec
In-game: ostec

Re: Post your modding questions here

by benedict424 » Post

Esteban wrote:I have a doubt, does mods like pipeworks/technic work fine in multiplayer? Or they can cause lag? Im trying to make a subgame and I want to add technology, but I want that the game can be used in a server. Finally, if these are too much for a multiplayer game, is there other options out there?
Thanks in advance

EDIT: oops, this question is supposed to be on modding requests, sorry.
This works fine in multi-player. I've been on servers where I was suppose to test this, the contraptions break if they cause too much lag.
Terra, Aqua, Ignus, Air, Ather, and Incognitus.

User avatar
Esteban
Member
Posts: 873
Joined: Sun Sep 08, 2013 13:26
In-game: Esteban
Contact:

Re: Post your modding questions here

by Esteban » Post

benedict424 wrote:
Esteban wrote:I have a doubt, does mods like pipeworks/technic work fine in multiplayer? Or they can cause lag? Im trying to make a subgame and I want to add technology, but I want that the game can be used in a server. Finally, if these are too much for a multiplayer game, is there other options out there?
Thanks in advance

EDIT: oops, this question is supposed to be on modding requests, sorry.
This works fine in multi-player. I've been on servers where I was suppose to test this, the contraptions break if they cause too much lag.
Thanks for clarifying! Anyways, I will use a simpler version known as Itest for the subgame, I will try to add missing textures and fork it to work with the industry pack. I got to say technic is awesome, but each time I try to make a simple machine (solar panel - wire - battery) It does not work. Prob I am missing a component since I made sure everything was using the same V.
Scan avatar or click here to read a Message of Hope (PDF)

User avatar
AMMOnym
Member
Posts: 682
Joined: Tue Sep 10, 2013 14:18
IRC: AMMOnym
In-game: AMMOnym
Location: Slovakia

Re: Post your modding questions here

by AMMOnym » Post

Can someone explain me what is wrong on this mod ?
Attachments
slender.zip
(6.84 KiB) Downloaded 53 times

User avatar
Hybrid Dog
Member
Posts: 2834
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

Re: Post your modding questions here

by Hybrid Dog » Post

AMMOnym wrote:Can someone explain me what is wrong on this mod ?
what is api.lua good for?

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

User avatar
Esteban
Member
Posts: 873
Joined: Sun Sep 08, 2013 13:26
In-game: Esteban
Contact:

Re: Post your modding questions here

by Esteban » Post

AMMOnym wrote:Can someone explain me what is wrong on this mod ?
you forgot to add a "dofile" to the api.lua at the beginning of the init.lua so the mob is defined. It should fix the problem. By the afternoon I will test. :)

Example:

Code: Select all

dofile(minetest.get_modpath("slender").."/api.lua")

minetest.register_node("slender:slenderwater_flowing", {
	description = "Flowing Fear",
...
EDIT:
Hybrid Dog wrote: what is api.lua good for?
The api is the monster(mobs api) its purpose is to define the slender mob.

EDIT2: I took a look at the textures, that slenderman sprite looks good! :D
Scan avatar or click here to read a Message of Hope (PDF)

User avatar
AMMOnym
Member
Posts: 682
Joined: Tue Sep 10, 2013 14:18
IRC: AMMOnym
In-game: AMMOnym
Location: Slovakia

Re: Post your modding questions here

by AMMOnym » Post

It was gif :)
Thanks Esteban

User avatar
Krock
Developer
Posts: 4650
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: a nil value on players

by Krock » Post

benedict424 wrote:

Code: Select all

on_use = function(itemstack, user, pointed_thing)
		local playerpos = minetest.player:getpos()
Use the given 'user' variable.

Code: Select all

local playerpos = user:getpos()
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
AMMOnym
Member
Posts: 682
Joined: Tue Sep 10, 2013 14:18
IRC: AMMOnym
In-game: AMMOnym
Location: Slovakia

Re: Post your modding questions here

by AMMOnym » Post

Is any way, how to make an invisible water ?

User avatar
DeepGaze
Member
Posts: 332
Joined: Fri May 10, 2013 00:49
GitHub: DeepGaze
IRC: DeepGaze
In-game: DeepGaze
Location: Take your best guess

Re: Post your modding questions here

by DeepGaze » Post

textures, or do you mean whilst you are inside?
there's no place like 127.0.0.1
The deep life Minetest text page
minetest cards

User avatar
Hybrid Dog
Member
Posts: 2834
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

Re: Post your modding questions here

by Hybrid Dog » Post

AMMOnym wrote:Is any way, how to make an invisible water ?
do you mean more realistic water like in sauerbraten?
Image
Attachments
watra.png
watra.png (452.28 KiB) Viewed 923 times

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

User avatar
AMMOnym
Member
Posts: 682
Joined: Tue Sep 10, 2013 14:18
IRC: AMMOnym
In-game: AMMOnym
Location: Slovakia

Re: Post your modding questions here

by AMMOnym » Post

DeepGaze wrote:textures, or do you mean whilst you are inside?
Just textures. When I use an invisible texture, its white or black ...

User avatar
AMMOnym
Member
Posts: 682
Joined: Tue Sep 10, 2013 14:18
IRC: AMMOnym
In-game: AMMOnym
Location: Slovakia

Re: Post your modding questions here

by AMMOnym » Post

Hybrid Dog wrote:
AMMOnym wrote:Is any way, how to make an invisible water ?
do you mean more realistic water like in sauerbraten?
Image
No, I mean something like this
Image

Locked

Who is online

Users browsing this forum: Google [Bot] and 7 guests