| Time |
Nick |
Message |
| 01:14 |
|
Taoki joined #minetest-mods |
| 07:06 |
|
restcoser joined #minetest-mods |
| 07:07 |
|
asie joined #minetest-mods |
| 07:08 |
|
Mimilus joined #minetest-mods |
| 07:47 |
|
restcoser joined #minetest-mods |
| 08:23 |
|
diemartin joined #minetest-mods |
| 08:48 |
|
restcoser joined #minetest-mods |
| 09:20 |
|
asie joined #minetest-mods |
| 09:26 |
|
PilzAdam joined #minetest-mods |
| 09:36 |
|
Glunggi joined #minetest-mods |
| 09:40 |
Glunggi |
hi (test) |
| 09:40 |
Glunggi |
it works :D |
| 10:07 |
|
nore joined #minetest-mods |
| 10:16 |
|
Taoki joined #minetest-mods |
| 12:04 |
|
LazyJ joined #minetest-mods |
| 12:16 |
LazyJ |
I'd like to combine two functions. When I tried "on_place = minetest.item_place .. minetest.rotate_node" Minetest crashed with an error saying that functions cant' be concatenated. |
| 12:17 |
LazyJ |
I'm adding stairsplus compatibility to a mod. In stairsplus (MoreBlocks) on_place = minetest.rotate_node is already being used. |
| 12:19 |
LazyJ |
The problem I'm trying to solve is getting Minetest to record in the logs when a stairsplus node is placed "[Action] server thread: singleplayer places moreblocks:stairs_oakwood at (110,23,114)") |
| 12:21 |
LazyJ |
I've tried minetest.log("action", placer:get_player_name().." places " ..minetest.get_node(pos).." at "..minetest.pos_to_string(pos)) but then Minetest crashes saying there is an error in the error handling and reffers to misc_register.lua in "builtin". |
| 12:22 |
LazyJ |
After some experimenting I found that the problem is with getting the player name. |
| 12:22 |
LazyJ |
I was testing in singleplayer mode and according to the terminal the list of players was blank. |
| 12:23 |
LazyJ |
Because "on_place" was already used by MoreBlocks, I was put minetest.log under the "on_construct = function(pos)" |
| 12:25 |
LazyJ |
I see by the example in minetest_game/stair/init.lua, return minetest.item_place() is under the "on_place = function (stuff, I, don't, remember). |
| 12:25 |
LazyJ |
Any ideas? |
| 12:27 |
|
asie joined #minetest-mods |
| 12:31 |
LazyJ |
Rebooting |
| 12:45 |
|
LazyJ joined #minetest-mods |
| 12:54 |
Zefram_Fysh |
to compose functions you want to write a small wrapper function that calls both of the functions you want |
| 12:56 |
Zefram_Fysh |
on_place = function (i, p, t) minetest.item_place(i, p, t, 0) minetest.rotate_node(i, p, t) end |
| 13:02 |
LazyJ |
Thanks, Zefram_Fysh. I'll give it a try and study the book some more. But now I have to take care of other responsibilities. Timing... :/ |
| 13:32 |
|
Wuzzy joined #minetest-mods |
| 13:50 |
|
asie joined #minetest-mods |
| 14:18 |
|
asie joined #minetest-mods |
| 15:18 |
|
asie joined #minetest-mods |
| 15:18 |
|
asie joined #minetest-mods |
| 15:26 |
|
asie joined #minetest-mods |
| 16:39 |
|
phantombeta joined #minetest-mods |
| 17:32 |
|
asie joined #minetest-mods |
| 19:16 |
|
asie joined #minetest-mods |
| 20:17 |
|
asie joined #minetest-mods |
| 20:34 |
|
asie joined #minetest-mods |
| 22:06 |
|
kaeza joined #minetest-mods |
| 22:39 |
|
Taoki joined #minetest-mods |