| Time |
Nick |
Message |
| 00:16 |
|
dizzyone joined #minetest-mods |
| 01:16 |
|
dizzyone joined #minetest-mods |
| 03:17 |
|
ecube joined #minetest-mods |
| 04:16 |
|
khonkhortisan joined #minetest-mods |
| 04:16 |
khonkhortisan |
what's CONTENT_IGNORE? |
| 04:18 |
marktraceur |
khonkhortisan: Something that isn't rendered |
| 04:18 |
marktraceur |
IIRC, used to signify nodes that aren't loaded yet |
| 04:18 |
khonkhortisan |
I guess I should register_abms after registering_nodes |
| 04:31 |
|
ecube joined #minetest-mods |
| 04:31 |
|
ecube joined #minetest-mods |
| 10:23 |
|
VanessaE joined #minetest-mods |
| 12:27 |
|
noone joined #minetest-mods |
| 12:29 |
|
noone joined #minetest-mods |
| 12:35 |
|
noone joined #minetest-mods |
| 13:03 |
|
nyuszika7h joined #minetest-mods |
| 13:56 |
|
NakedFury joined #minetest-mods |
| 16:39 |
|
khonkhortisan joined #minetest-mods |
| 17:06 |
|
triplei joined #minetest-mods |
| 19:10 |
|
khonkhortisan joined #minetest-mods |
| 19:11 |
khonkhortisan |
this can't really be the right syntax? player.get_player_name(player) |
| 19:11 |
khonkhortisan |
I have to give it itself in its own function? |
| 19:11 |
marktraceur |
khonkhortisan: You're right, that makes very little sense |
| 19:12 |
khonkhortisan |
it also doesn't agree with doc/lua_api.txt |
| 19:12 |
marktraceur |
lua_api is usually the authority, where are you seeing something different? |
| 19:12 |
khonkhortisan |
"- get_player_name(): returns "" if is not a player" |
| 19:13 |
khonkhortisan |
line 1002 |
| 19:13 |
khonkhortisan |
it doesn't mention any arguments |
| 19:13 |
marktraceur |
Right, why do you think there's a contradiction? What source gave you player.get_player_name(player)? |
| 19:14 |
khonkhortisan |
get_player_name(player) and player.get_player_name() don't work |
| 19:14 |
marktraceur |
Answer the question, please. |
| 19:16 |
khonkhortisan |
player.get_player_name() gives me "bad argument #1 to 'get_player_name''. get_player_name(player) gives me "attempt to call global 'get_player_name' (a nil value)". player.get_player_name(player) gives me the name of the player. |
| 19:16 |
marktraceur |
Answer the question, please. |
| 19:16 |
khonkhortisan |
I have no source other than the errors minetest gives me |
| 19:16 |
marktraceur |
Then why did you think "player.get_player_name(player)" would work? |
| 19:17 |
marktraceur |
Oh, you just tried it? |
| 19:17 |
marktraceur |
And it did work? |
| 19:17 |
khonkhortisan |
bad argument #1 to 'get_player_name' if I use player.get_player_name() |
| 19:17 |
marktraceur |
Hm. |
| 19:17 |
khonkhortisan |
so I put in an argument |
| 19:17 |
marktraceur |
Try player:get_player_name() |
| 19:18 |
marktraceur |
(I'm really not sure how that works, but if it's anything like Python, it might) |
| 19:18 |
khonkhortisan |
hey, it works! |
| 19:18 |
marktraceur |
Sweeeet |
| 19:18 |
khonkhortisan |
Is there something I missed in lua_api? |
| 19:19 |
marktraceur |
khonkhortisan: No, probably just "something you have to know" |
| 19:19 |
marktraceur |
Which sucks |
| 19:19 |
marktraceur |
But now we know for next time, eh? Spread the word. |
| 19:19 |
khonkhortisan |
that's very common |
| 19:19 |
khonkhortisan |
okay |
| 19:19 |
marktraceur |
'cause knowledge is power! |
| 19:19 |
* marktraceur |
jumps and punches the air above him |
| 20:29 |
|
VanessaE joined #minetest-mods |
| 23:21 |
|
khonkhortisan joined #minetest-mods |