| Time |
Nick |
Message |
| 03:13 |
|
Miner_48er joined #minetest-mods |
| 04:25 |
|
diemartin joined #minetest-mods |
| 05:24 |
|
OWNSyouAll joined #minetest-mods |
| 12:04 |
|
bas080 joined #minetest-mods |
| 15:09 |
|
kaeza joined #minetest-mods |
| 16:34 |
OWNSyouAll |
Is the example here http://dev.minetest.net/minetest.get_craft_result bad? I can't get it to work just returns nil for the output variable |
| 16:59 |
|
PilzAdam joined #minetest-mods |
| 17:09 |
kaeza |
OWNSyouAll, seems to work here |
| 17:09 |
kaeza |
print(dump(output)) --> {["time"] = 0, ["item"] = <userdata>} |
| 17:10 |
kaeza |
OWNSyouAll, can you paste your code? |
| 17:14 |
|
bas080 joined #minetest-mods |
| 17:16 |
OWNSyouAll |
kaeza, http://pastebin.com/eXr2CR70 |
| 17:17 |
kaeza |
OWNSyouAll, looks like your mod is being loaded before the recipe is registered |
| 17:18 |
kaeza |
this does not happen if you query the recipe at runtime instead of load time |
| 17:18 |
kaeza |
because at that point, all mods have been initialized and all recipes registered |
| 17:19 |
kaeza |
in your case, simply depending on the mod that registers the recipe (add "default" to depends.txt) should allow you to test |
| 17:20 |
kaeza |
but to answer your question, looks like there's a "gotcha" with the example on the wiki :) |
| 17:22 |
OWNSyouAll |
Yep that depends.txt makes it return what it says on the wiki. |
| 17:22 |
OWNSyouAll |
Thanks |
| 17:22 |
kaeza |
no probs :) |
| 18:00 |
|
rubenwardy joined #minetest-mods |
| 19:04 |
|
Miner_48er joined #minetest-mods |
| 20:07 |
|
Wuzzy joined #minetest-mods |
| 21:40 |
|
loggingbot_ joined #minetest-mods |
| 21:40 |
|
Topic for #minetest-mods is now Welcome to #minetest-mods, a channel dedicated to Minetest modding. | http://minetest.net | http://tinyurl.com/mt-lua-api |