Page 1 of 1

How to mod the game ?

PostPosted: Sat Oct 18, 2014 21:02
by SkRapidler
Hello,

I want to modify my game (Minetest) .
I will create cubes with a other Design , or Items . How can I do it ?

Thanks for help :)

Re: How to mod the game ?

PostPosted: Sat Oct 18, 2014 21:22
by kaeza
Hello and welcome.

Check out the Modding Intro in the dev wiki.

Re: How to mod the game ?

PostPosted: Sun Oct 19, 2014 09:54
by SkRapidler
Hello kaeza,

thanks for your answer !
I'm became every day the same error : Cannot give an unkown item.

I despair at the :(

Pictures of my folders :

http://img1.myimg.de/error12e43a.jpg

http://img1.myimg.de/error21b58c.jpg

http://img1.myimg.de/error380bdd.jpg

http://img1.myimg.de/error4f7832.jpg

http://img1.myimg.de/error577111.jpg

Re: How to mod the game ?

PostPosted: Sun Oct 19, 2014 12:03
by Krock
Did you enable the mod "tutorial" in the world (main menu)?

Also, the node (= block in minecraft) must be defined in the "tutorial" mod (init.lua).
Put the mods' textures into mods\my-mod\textures\ if you want to use them.

Re: How to mod the game ?

PostPosted: Sun Oct 19, 2014 12:04
by Evergreen
SkRapidler wrote:Hello kaeza,

thanks for your answer !
I'm became every day the same error : Cannot give an unkown item.

I despair at the :(

Pictures of my folders :

http://img1.myimg.de/error12e43a.jpg

http://img1.myimg.de/error21b58c.jpg

http://img1.myimg.de/error380bdd.jpg

http://img1.myimg.de/error4f7832.jpg

http://img1.myimg.de/error577111.jpg

Pictures are nice, but we can't really help you without the contents of your init.lua
If there is a problem, it's there.

Re: How to mod the game ?

PostPosted: Sun Oct 19, 2014 14:35
by SkRapidler
Hello,

here is the init.lua :

Image


This is the error when I enter the game:

Image

Re: How to mod the game ?

PostPosted: Sun Oct 19, 2014 14:58
by rubenwardy
There should be a black box which opens with minetest.

There will be text like this:

========== ERROR FROM LUA =======
stuff here
==================================

Post that to see the problem.

Make sure init.lua is inside a folder called tutorial.

Re: How to mod the game ?

PostPosted: Sun Oct 19, 2014 15:21
by SkRapidler
Image

I have repaired this problem, however, it indicates if I this order gives:/giveme tutorial:decowood 99 that it is an unknown Item.

Re: How to mod the game ?

PostPosted: Sun Oct 19, 2014 15:30
by Hashlime
You wrote
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_node  (...)

but there is no need of space. So your code should look like this
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_node(...)


Note you can use [ code ] and [ /code ] (without space) and place your code between them

Re: How to mod the game ?

PostPosted: Sun Oct 19, 2014 15:37
by rubenwardy
SkRapidler wrote:Image


Capital letters are not allowed. Rename the folder to just "tutorial".

Re: How to mod the game ?

PostPosted: Sun Oct 19, 2014 15:41
by SkRapidler
Image

Re: How to mod the game ?

PostPosted: Sun Oct 19, 2014 15:43
by rubenwardy
create a texture for it in mods/tutorial/textures/ called tutorial_decowood.png

Re: How to mod the game ?

PostPosted: Sun Oct 19, 2014 16:05
by SkRapidler
rubenwardy wrote:create a texture for it in mods/tutorial/textures/ called tutorial_decowood.png


Yes I did it exactly as you wrote it, there is always that it does not give this item -.-

Re: How to mod the game ?

PostPosted: Sun Oct 19, 2014 16:34
by Evergreen
Did you enable the mod in the world configuration?

Re: How to mod the game ?

PostPosted: Sun Oct 19, 2014 16:40
by SkRapidler
Evergreen wrote:Did you enable the mod in the world configuration?


Image

Image

Image

Re: How to mod the game ?

PostPosted: Sun Oct 19, 2014 17:33
by SkRapidler
Please help me :(

Re: How to mod the game ?

PostPosted: Sun Oct 19, 2014 17:36
by Evergreen
SkRapidler wrote:Please help me :(

I really don't know what is wrong. Also, don't use notepad, use notepad++. http://www.notepad-plus-plus.org

Re: How to mod the game ?

PostPosted: Sun Oct 19, 2014 17:38
by Hashlime
What are the files in the `tutorial` folder(and subfolder) ?

Re: How to mod the game ?

PostPosted: Sun Oct 19, 2014 18:31
by SkRapidler
Hashlime wrote:What are the files in the `tutorial` folder(and subfolder) ?


Image

Re: How to mod the game ?

PostPosted: Sun Oct 19, 2014 18:45
by Krock
Okay. To clear this:

1) The mod is activate in the current world.
2) You fixed the codes
3) You can enter the world without an error.
4) /giveme tutorial:decowood works.
5) The folder structure is correct, (see example)
6) since your "tutorial" mod is not a texture pack, you can delete it from minetest_folder\textures\

What's the exact problem now?

Re: How to mod the game ?

PostPosted: Sun Oct 19, 2014 19:00
by SkRapidler
The problem I have is that the block will not appear in the game. I give the / giveme command but either one shows it to which the item does not exist, or nothing happens.

Re: How to mod the game ?

PostPosted: Sun Oct 19, 2014 19:26
by Evergreen
You might want to go on irc, we can probably help you there better. http://webchat.freenode.net/?channels=#minetest