Post your modding questions here

Locked
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:

by kaeza » Post

Element wrote:i am looking for a mod that suppose to be some sort of pick ax that can break anything... does anyone know where it is
viewtopic.php?id=1882
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

SFFP
New member
Posts: 5
Joined: Sat Sep 28, 2013 01:12

by SFFP » Post

Nothing appears when i click on a world and then configure.
Ive installed some mods and the configure option is supposed to help you activate/deactivate them right? but none of them appear, do I need to put them on a specific folder??
Last edited by SFFP on Sat Sep 28, 2013 04:43, edited 1 time in total.

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

by philipbenr » Post

yes, You need to extract the mods into the mods folder. Try hitting configure then.

SFFP
New member
Posts: 5
Joined: Sat Sep 28, 2013 01:12

by SFFP » Post

philipbenr wrote:yes, You need to extract the mods into the mods folder. Try hitting configure then.
Yeah, I installed them in the mods folder inside minetest_game, and they work, but they dont appear when i click configure, and Id like to be able o turn them on/off

User avatar
LionsDen
Member
Posts: 530
Joined: Thu Jun 06, 2013 03:19

by LionsDen » Post

SFFP wrote:
philipbenr wrote:yes, You need to extract the mods into the mods folder. Try hitting configure then.
Yeah, I installed them in the mods folder inside minetest_game, and they work, but they dont appear when i click configure, and Id like to be able o turn them on/off
That isn't where the mod folder is supposed to be. That is a mod folder for a game mode. To be able to turn them on or off in the menu, you need to put them into the mods folder that is under the minetest folder. So if you want the throwing mod by PilzAdam the mod files and folders will be in the minetest\mods\throwing directory. The place you have been putting them are the mods that are always used by that particular game mode.

User avatar
fairiestoy
Member
Posts: 191
Joined: Sun Jun 09, 2013 19:25
Location: Germany

by fairiestoy » Post

Hey guys,

a little question:
Are NodeTimers persistent even after restart, or act they like the minetest.after() routine and vanish once the server has restarted?
Interesting about new things is, to figure out how it works ...

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:

by kaeza » Post

fairiestoy wrote:Hey guys,

a little question:
Are NodeTimers persistent even after restart, or act they like the minetest.after() routine and vanish once the server has restarted?
They are persistent.
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
fairiestoy
Member
Posts: 191
Joined: Sun Jun 09, 2013 19:25
Location: Germany

by fairiestoy » Post

Thanks for the answer :3
Interesting about new things is, to figure out how it works ...

SFFP
New member
Posts: 5
Joined: Sat Sep 28, 2013 01:12

by SFFP » Post

LionsDen wrote:
SFFP wrote:
philipbenr wrote:yes, You need to extract the mods into the mods folder. Try hitting configure then.
Yeah, I installed them in the mods folder inside minetest_game, and they work, but they dont appear when i click configure, and Id like to be able o turn them on/off
That isn't where the mod folder is supposed to be. That is a mod folder for a game mode. To be able to turn them on or off in the menu, you need to put them into the mods folder that is under the minetest folder. So if you want the throwing mod by PilzAdam the mod files and folders will be in the minetest\mods\throwing directory. The place you have been putting them are the mods that are always used by that particular game mode.
Thanks alot, it works now :D

User avatar
Pavel_S
Member
Posts: 131
Joined: Sat Apr 06, 2013 11:43

by Pavel_S » Post

Image
How to add formspec with fuel bar to entity ?
I need open formspec of helicopter and seat into heli using different keys or find another way to do it.
Another question : can I check any key is pressed? Or add keys to control player?

Image

User avatar
Evergreen
Member
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

by Evergreen » Post

Pavel_S wrote:http://s22.postimg.org/rf5bd39xt/line.png
How to add formspec with fuel bar to entity ?
I need open formspec of helicopter and seat into heli using different keys or find another way to do it.
Another question : can I check any key is pressed? Or add keys to control player?

http://s22.postimg.org/rf5bd39xt/line.png
There is no way of getting a pressed key at the moment
Back from the dead!

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

by Esteban » Post

How 2D mobs work? Is there limits on animations?
I want to make a minetest game inspired by the early first-person games( ex. Doom, Catacomb 3d,etc.)
Spoiler
Catacomb 3DImage
Scan avatar or click here to read a Message of Hope (PDF)

tinoesroho
Member
Posts: 570
Joined: Fri Feb 17, 2012 21:55
Location: Canada

by tinoesroho » Post

Esteban wrote:How 2D mobs work? Is there limits on animations?
I want to make a minetest game inspired by the early first-person games( ex. Doom, Catacomb 3d,etc.)
Spoiler
Catacomb 3Dhttp://i.emezeta.com/weblog/videojuegos-shooters-fps/catacomb-3d.png
Before you contributed 3d models to Simple Mobs, it made use of 2D Mobs. The repo's here. Take a look at the earlier revisions with the 2D mobs; I don't think there are too many limitations.

EDIT:
You might also want to look at how the torch animation is done. If you can unite the two techniques, the world'll be a better place.
We are what we create.

I tinker and occasionally make (lousy) mods. Currently building an MMO subgame and updating mods. Pirate Party of Canada member. Sporadic author. 21 years old.

My github:
https://github.com/tinoesroho/

BC2013
New member
Posts: 4
Joined: Sun Sep 29, 2013 19:32

by BC2013 » Post

Hello,Can anyone Help Me Create Mods Myself,??


Any Answers appreciated Thnx BC2013

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

BC2013 wrote:Hello,Can anyone Help Me Create Mods Myself,??


Any Answers appreciated Thnx BC2013
You could take a look at:

- the developers wiki (develop a mod and api)

http://dev.minetest.net/Main_Page

- a mod that already exists, for example minetest_game/mods/default

For the images you'll need a graphic/painting program. Most of the time you have one already installed on your computer. An easy start is taking an existing .png that looks a bit like the one you want to create from an existing mod, edit it to your wishes and then save it under a new name.

A standard mod-folder exists of:
- a textures folder (where you put your textures (mostly .png's))
- an depends.txt file for when you use code of other mods (for example sound of glass)
- an init.lua file where most of the time you put all your code in
- a readme.txt file, in which you put the license under which your code and textures fall and where you can give more info


Edit: Improving the text
Last edited by Topywo on Thu Oct 03, 2013 19:34, edited 1 time in total.

User avatar
Gambit
Member
Posts: 453
Joined: Sat Oct 29, 2011 19:31
Location: United States

by Gambit » Post

Can anyone explain the L-system to me in an almost elementary way? I've read the api and I can't understand it very much, if not at all. I just need a breakdown especially the terms they use.

Code: Select all

L-system trees
---------------
treedef={
  axiom, - string initial tree axiom
  rules_a, - string rules set A
  rules_b, - string rules set B
  rules_c, - string rules set C
  rules_d, - string rules set D
  trunk, - string trunk node name
  leaves, - string leaves node name
  leaves2, - string secondary leaves node name
  leaves2_chance,- num chance (0-100) to replace leaves with leaves2
  angle, - num angle in deg
  iterations, - num max # of iterations, usually 2 -5
  random_level, - num factor to lower nr of iterations, usually 0 - 3
  trunk_type, - string single/double/crossed) type of trunk: 1 node, 2x2 nodes or 3x3 in cross shape
  thin_branches, - boolean true -> use thin (1 node) branches
  fruit, - string fruit node name
  fruit_chance, - num chance (0-100) to replace leaves with fruit node
  seed, - num random seed
  }

Key for Special L-System Symbols used in Axioms
  G - move forward one unit with the pen up
  F - move forward one unit with the pen down drawing trunks and branches
  f - move forward one unit with the pen down drawing leaves (100% chance)
  T - move forward one unit with the pen down drawing trunks only
  R - move forward one unit with the pen down placing fruit
  A - replace with rules set A
  B - replace with rules set B
  C - replace with rules set C
  D - replace with rules set D
  a - replace with rules set A, chance 90%
  b - replace with rules set B, chance 80%
  c - replace with rules set C, chance 70%
  d - replace with rules set D, chance 60%
  + - yaw the turtle right by angle parameter
  - - yaw the turtle left by angle parameter
  & - pitch the turtle down by angle parameter
  ^ - pitch the turtle up by angle parameter
  / - roll the turtle to the right by angle parameter
  * - roll the turtle to the left by angle parameter
  [ - save in stack current state info
  ] - recover from stack state info

Example usage: spawn small apple tree
apple_tree={
  axiom="FFFFFAFFBF",
  rules_a="[&&&FFFFF&&FFFF][&&&++++FFFFF&&FFFF][&&&----FFFFF&&FFFF]",
  rules_b="[&&&++FFFFF&&FFFF][&&&--FFFFF&&FFFF][&&&------FFFFF&&FFFF]",
  trunk="default:tree",
  leaves="default:leaves",
  angle=30,
  iterations=2,
  random_level=0,
  trunk_type="single",
  thin_branches=true,
  fruit_chance=10,
  fruit="default:apple"
  }
minetest.spawn_tree(pos,apple_tree)
Current Projects: MineToon | PixelBOX
Gambit's Checkmate Server - 43.65.296.232 - port: 30001

User avatar
Casimir
Member
Posts: 1206
Joined: Fri Aug 03, 2012 16:59
GitHub: CasimirKaPazi

by Casimir » Post

Have you read the wikipedia on L-Systems?

User avatar
Gambit
Member
Posts: 453
Joined: Sat Oct 29, 2011 19:31
Location: United States

by Gambit » Post

Casimir wrote:Have you read the wikipedia on L-Systems?
Yes I have and it's not very easy for someone like me to understand.
Current Projects: MineToon | PixelBOX
Gambit's Checkmate Server - 43.65.296.232 - port: 30001

User avatar
Evergreen
Member
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

by Evergreen » Post

Gambit wrote:
Casimir wrote:Have you read the wikipedia on L-Systems?
Yes I have and it's not very easy for someone like me to understand.
I second the question, I have wanted to experiment with trees.
Back from the dead!

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

Most elementary way I can think of:

Imagine you're in a futuristic skywriting ship. You start out pointing straight up with your plane's tail sitting on the ground. You have totally free movement, zero gravity, zero wind, and really good inertial dampeners. ;-)

You're given a list of movements to draw a pattern in the sky, each entry consisting of a single letter telling you how to turn and move, and what buttons to press on your console. Your list has exactly 5 pages, but some of pages 2 through 4 might be completely blank.

You start reading and performing the maneuvers written on page 1 - this is your axiom page. At the top of the axiom page is "angle: m degrees" and "max. n iterations" with some small values of m and n, say 10 and 3.

You can move forward in 1 meter steps and you can adjust your yaw, pitch, and roll in small but fixed increments of the above angle amount, and you have three colors of smoke at your disposal.

The f, T, and R are the smoke colors; F uses f's color and causes the plane to make a large puff of color T when the smoke turns off. Each letter moves you forward one meter and emits that color of smoke. G moves forward one meter without leaving any smoke.

Each use of [ means you need to write down a bookmark somewhere of your current position and heading and then continue with the stated maneuvers. Each use of ] means to turn off your smoke (and leave a puff of T if you had F turned on), teleport back and reset your heading to whatever the last bookmark says, and erase that bookmark from the list. You'll always step backward through the list of bookmarks.

Each use of A through D (capitals) means to flip to one of pages 2 through 5, respectively, and perform the maneuvers written there. At the end of the page, flip back to the page you were just on, and continue from where you left off.

Each use of a through d (lower case) means to flip to one of pages 2 through 5, and roll a pair of dice. If you get a number greater than the page number you just flipped to, execute the maneuvers on that page. Otherwise, just go back to where you were before and continue performing your maneuvers.

Recursion:
If you flipped to one of those four pages, and you found a spot where it says to flip to some other page (say page 2, "A", says to go to page 4, "C"), do so and start executing the instructions there. Then go back to the page you were just on and proceed with the next instruction.

If you keep flipping back to the start of the page you're already on (e.g. page 3 keeps instructing you to go to page 3), keep a count of how many times you did that. Each of the four rules pages gets its own counter. If you reach a spot that says to jump back to the same page, and you've exceeded "n iterations" for this page, reset yur count to 0, ignore the jump and just continue with the next instruction. When you're done with this page, flip back to the page that sent you here and pick up where you left off.

Eventually you'll end up back on page 1. Continue executing your maneuvers until you finally get to the end of page 1. Stop moving and turn off your smoke.

Imagine that for any cubic meter of air that has smoke, that whole cubic meter is filled completely with the smoke. Now, translate the colors into node names for trunks (F/f), leaves (T) and fruit (R).
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

VanessaE wrote:Most elementary way I can think of: ...
lol you lost me even more
Last edited by jojoa1997 on Fri Oct 04, 2013 23:16, edited 1 time in total.
Coding;
1X coding
3X debugging
12X tweaking to be just right

User avatar
Chinchow
Member
Posts: 684
Joined: Tue Sep 18, 2012 21:37

by Chinchow » Post

Is it possible to restrict an object so it can only be crafted by a certain surface for example

{}{}{} {}

thats the area but as you can see you could craft with the normal craft is there a way to stop that?
Sometimes, it's harder to think up a mod than it is to create it.
Mods: Orichalcum Stonebricks Extra Chests

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

by Esteban » Post

tinoesroho wrote: Before you contributed 3d models to Simple Mobs, it made use of 2D Mobs. The repo's here. Take a look at the earlier revisions with the 2D mobs; I don't think there are too many limitations.

EDIT:
You might also want to look at how the torch animation is done. If you can unite the two techniques, the world'll be a better place.
Thanks for the repo, but is there some guide or advanced information about mobs? I would like to understand rather than copying code.
Scan avatar or click here to read a Message of Hope (PDF)

User avatar
hoodedice
Member
Posts: 1374
Joined: Sat Jul 06, 2013 06:33
GitHub: hoodedice
IRC: hoodedice
In-game: hoodedice
Location: world
Contact:

by hoodedice » Post

Any way of getting the HUD covered by a huge semi-transparent image? If yes, how do I go about achieving it?
7:42 PM - Bauglio: I think if you go to staples you could steal firmware from a fax machine that would run better than win10 does on any platform
7:42 PM - Bauglio: so fudge the stable build
7:43 PM - Bauglio: get the staple build

User avatar
Casimir
Member
Posts: 1206
Joined: Fri Aug 03, 2012 16:59
GitHub: CasimirKaPazi

by Casimir » Post

Here an example Kochcurve.
Image

Code: Select all

tree={
    axiom="A-T-TA-T-TA",
    rules_a="A+TA-T-TA+TA",
    trunk="default:tree",
    leaves="default:leaves",
    angle=60,
    iterations=2,
    random_level=0,
    trunk_type="single",
    thin_branches=true,
    fruit_chance=10,
    fruit="default:apple"
    }

minetest.register_craftitem("tree:spawner", {
    description = "Treespawner",
    inventory_image = "default_stick.png",
    on_use = function(itemstack, user, pointed_thing)
        local pos = pointed_thing.under
        minetest.spawn_tree(pos,tree)
        print("[tree] New tree at "..pos.x..", "..pos.y..", "..pos.z.."")
    end
})
Normally you would write the axiom as "F--F--F" and the rule as "F+F--F+F" but we have to use ABCD for the rules and write "-T" instead of "-". Because the -+*/^& don't include the step forward here. For the step forward you have the options GFfTR as written in the API.

Locked

Who is online

Users browsing this forum: No registered users and 6 guests