Time |
Nick |
Message |
00:11 |
|
Animetrom joined #minetest-mods |
00:11 |
Animetrom |
Alguem pode me ajudar? |
01:33 |
|
Nitori joined #minetest-mods |
01:33 |
|
psedlak joined #minetest-mods |
01:43 |
|
Nitori joined #minetest-mods |
02:12 |
|
AllEvil669 joined #minetest-mods |
02:12 |
AllEvil669 |
I'm pulling my hair out here. |
02:15 |
AllEvil669 |
No matter what I do, I keep getting the same error: ServerError: Crafting definition is missing a recipe |
02:15 |
AllEvil669 |
(output="default:sandstone 1") |
02:22 |
|
dhasenan joined #minetest-mods |
02:41 |
|
phantombeta joined #minetest-mods |
02:42 |
LazyJ |
The "recipe" part is a different line. |
02:43 |
LazyJ |
recipe = {modname:nodename, modname:nodename, modname:nodename}, |
02:43 |
LazyJ |
Follows the grid pattern. |
02:44 |
LazyJ |
So if the recipe is 2 items in 2 specific slots, then you have to write the recipe to match. |
02:44 |
LazyJ |
{"", "", "",} |
02:45 |
LazyJ |
{"", "default:coal", "",}, |
02:45 |
LazyJ |
{"", "default:stick", "",}, |
02:46 |
LazyJ |
For better examples, look throught the minetest_game/mods/default/crafting.lua |
02:48 |
LazyJ |
Uh... yup. AllEvil left. |
03:03 |
|
AllEvil669 joined #minetest-mods |
03:06 |
AllEvil669 |
Crafting recpies, how do they work? |
03:07 |
AllEvil669 |
I simply cannot get one to output anything. |
03:12 |
LazyJ |
For better examples, look through the minetest_game/mods/default/crafting.lua |
03:14 |
AllEvil669 |
I have looked through those files. My entries are done in the exact same way. But, unlike minetest_game, my register_craft entries don't produce anything. I haven't a clue what in the world I'm missing/doing wrong. |
03:18 |
AllEvil669 |
Maybe I should give a better idea of what I'm trying to do... |
03:19 |
AllEvil669 |
I'm trying to define a crafting recpie that will take four sand nodes, placed in a 2x2 square, and crank out one stone node. |
03:21 |
AllEvil669 |
When I place the requsite sand nodes in the pattern, nothing shows up in the output window. |
03:22 |
LazyJ |
That sounds exactly the same as the default recipe. Conflict perhaps? |
03:23 |
AllEvil669 |
Shouldn't be. This isn't an add-on to a default game mode, but one that I have defined myself. At this time, the "sand to stone" recpie is the only crafting recpie in the game mode. |
03:25 |
LazyJ |
The default game uses 4 sand, as you describe, to produce sandstone. Then you're version is telling Minetest to do the same but produce stone instead. If you use Unified Inventory, the extra recipes appear as "alternate recipe" (button). |
03:27 |
LazyJ |
For an experiment, try changing your recipe to one sand in each of the far, four corners. |
03:30 |
LazyJ |
Even if you have no game installed, the Minetest engine comes with "Minimal" which also has the same recipe. |
03:30 |
AllEvil669 |
So, even if I define my own game mode, which I have, there are recpies "built into" the minetest engine itself? |
03:31 |
LazyJ |
Not built-in, pre-packaged. "Minimal" is found in the .../games directory. |
03:32 |
AllEvil669 |
Ok, are you telling me that gets loaded, even if I load a different game? |
03:33 |
LazyJ |
If you are trying to use your own game, then you will first have to manually create a world sub-directory in the ../worlds directory and then manually create your own "world.mt" file with the first line being "gameid = yourgame'sname". |
03:34 |
LazyJ |
The default is "gameid = minetest" |
03:35 |
LazyJ |
Your game, in the ../games directory, will also need a game.conf file. |
03:35 |
LazyJ |
Download other sub-games to study and compare. |
03:37 |
LazyJ |
The "game.conf" file identifies your game so it will show up under the list in the "Create" menu. |
03:39 |
LazyJ |
If your game doesn't appear in that menu, then that may be the root of the trouble as Minetest is either starting your test world with "Mininal" or whatever it can find with a game.conf file. |
03:41 |
AllEvil669 |
Right. I've gotten that far. I think my issue is related to the "shape" of the recpie I'm trying to make. If there is only one node in the recpie, it works. As soon as I try and add another nod, nothign doing. |
03:42 |
LazyJ |
This is a little thing, but easily overlooked, do you have enough commas in the right places? |
03:43 |
AllEvil669 |
Now that you have put that idea into my head, I'm going to checks. |
03:43 |
AllEvil669 |
*check |
03:45 |
|
zlsa joined #minetest-mods |
03:46 |
AllEvil669 |
Well, you're going to be amused by this. I missed a closing bracket. I guess staring at my code for 24 hours straight is bad for debugging. |
03:47 |
LazyJ |
Hehehe... been there myself and the bruises are still fresh. |
03:47 |
zlsa |
absolutely, I've done the stupidest things without even noticing them for hours on end |
03:47 |
AllEvil669 |
I feel like a rank noob now. I thought I was past these mistake. |
03:47 |
zlsa |
* mistakes :P |
03:47 |
AllEvil669 |
Yeah, mistakes. |
03:48 |
LazyJ |
Well, it's a good ending to the day then. G'night ;) |
04:05 |
|
Miner_48er joined #minetest-mods |
08:03 |
|
FR^2 joined #minetest-mods |
09:31 |
|
PilzAdam joined #minetest-mods |
13:15 |
|
Taoki joined #minetest-mods |
14:39 |
|
zlsa joined #minetest-mods |
16:40 |
|
rubenwardy joined #minetest-mods |
18:45 |
|
rubenwardy_ joined #minetest-mods |
19:02 |
|
blaise joined #minetest-mods |
19:08 |
|
Taoki joined #minetest-mods |
19:29 |
|
Miner_48er joined #minetest-mods |
21:39 |
|
dhasenan_ joined #minetest-mods |