How to mod the game ?

SkRapidler
Member
 
Posts: 10
Joined: Sat Oct 18, 2014 18:47

How to mod the game ?

by SkRapidler » Sat Oct 18, 2014 21:02

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

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: How to mod the game ?

by kaeza » Sat Oct 18, 2014 21:22

Hello and welcome.

Check out the Modding Intro in the dev wiki.
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 | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

SkRapidler
Member
 
Posts: 10
Joined: Sat Oct 18, 2014 18:47

Re: How to mod the game ?

by SkRapidler » Sun Oct 19, 2014 09:54

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
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: How to mod the game ?

by Krock » Sun Oct 19, 2014 12:03

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.
Last edited by Krock on Sun Oct 19, 2014 12:07, edited 1 time in total.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

Re: How to mod the game ?

by Evergreen » Sun Oct 19, 2014 12:04

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.
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 

SkRapidler
Member
 
Posts: 10
Joined: Sat Oct 18, 2014 18:47

Re: How to mod the game ?

by SkRapidler » Sun Oct 19, 2014 14:35

Hello,

here is the init.lua :

Image


This is the error when I enter the game:

Image
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: How to mod the game ?

by rubenwardy » Sun Oct 19, 2014 14:58

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.
 

SkRapidler
Member
 
Posts: 10
Joined: Sat Oct 18, 2014 18:47

Re: How to mod the game ?

by SkRapidler » Sun Oct 19, 2014 15:21

Image

I have repaired this problem, however, it indicates if I this order gives:/giveme tutorial:decowood 99 that it is an unknown Item.
Last edited by SkRapidler on Sun Oct 19, 2014 15:37, edited 1 time in total.
 

Hashlime
Member
 
Posts: 12
Joined: Fri Oct 17, 2014 23:36

Re: How to mod the game ?

by Hashlime » Sun Oct 19, 2014 15:30

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
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: How to mod the game ?

by rubenwardy » Sun Oct 19, 2014 15:37

SkRapidler wrote:Image


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

SkRapidler
Member
 
Posts: 10
Joined: Sat Oct 18, 2014 18:47

Re: How to mod the game ?

by SkRapidler » Sun Oct 19, 2014 15:41

Image
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: How to mod the game ?

by rubenwardy » Sun Oct 19, 2014 15:43

create a texture for it in mods/tutorial/textures/ called tutorial_decowood.png
 

SkRapidler
Member
 
Posts: 10
Joined: Sat Oct 18, 2014 18:47

Re: How to mod the game ?

by SkRapidler » Sun Oct 19, 2014 16:05

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 -.-
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

Re: How to mod the game ?

by Evergreen » Sun Oct 19, 2014 16:34

Did you enable the mod in the world configuration?
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 

SkRapidler
Member
 
Posts: 10
Joined: Sat Oct 18, 2014 18:47

Re: How to mod the game ?

by SkRapidler » Sun Oct 19, 2014 16:40

Evergreen wrote:Did you enable the mod in the world configuration?


Image

Image

Image
 

SkRapidler
Member
 
Posts: 10
Joined: Sat Oct 18, 2014 18:47

Re: How to mod the game ?

by SkRapidler » Sun Oct 19, 2014 17:33

Please help me :(
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

Re: How to mod the game ?

by Evergreen » Sun Oct 19, 2014 17:36

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
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 

Hashlime
Member
 
Posts: 12
Joined: Fri Oct 17, 2014 23:36

Re: How to mod the game ?

by Hashlime » Sun Oct 19, 2014 17:38

What are the files in the `tutorial` folder(and subfolder) ?
 

SkRapidler
Member
 
Posts: 10
Joined: Sat Oct 18, 2014 18:47

Re: How to mod the game ?

by SkRapidler » Sun Oct 19, 2014 18:31

Hashlime wrote:What are the files in the `tutorial` folder(and subfolder) ?


Image
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: How to mod the game ?

by Krock » Sun Oct 19, 2014 18:45

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?
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

SkRapidler
Member
 
Posts: 10
Joined: Sat Oct 18, 2014 18:47

Re: How to mod the game ?

by SkRapidler » Sun Oct 19, 2014 19:00

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.
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

Re: How to mod the game ?

by Evergreen » Sun Oct 19, 2014 19:26

You might want to go on irc, we can probably help you there better. http://webchat.freenode.net/?channels=#minetest
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron