Time |
Nick |
Message |
00:00 |
|
Fixer_ joined #minetest-hub |
00:03 |
|
Sokomine joined #minetest-hub |
00:35 |
|
ssieb joined #minetest-hub |
00:54 |
Natechip |
rubenwardy nice |
02:12 |
|
ThomasMonroe joined #minetest-hub |
04:06 |
|
bwarden joined #minetest-hub |
05:48 |
|
nerzhul joined #minetest-hub |
07:48 |
|
nerzhul joined #minetest-hub |
08:39 |
|
Megaf joined #minetest-hub |
08:43 |
|
TommyTreasure joined #minetest-hub |
08:43 |
|
TommyTreasure joined #minetest-hub |
08:44 |
|
Amaz joined #minetest-hub |
09:30 |
|
Megaf joined #minetest-hub |
10:19 |
|
Krock joined #minetest-hub |
10:55 |
|
Megaf joined #minetest-hub |
10:59 |
|
IhrFussel joined #minetest-hub |
11:13 |
|
Megaf joined #minetest-hub |
11:20 |
|
Jordach joined #minetest-hub |
11:58 |
|
Fixer joined #minetest-hub |
12:09 |
|
Fixer_ joined #minetest-hub |
12:11 |
|
ThomasMonroe joined #minetest-hub |
12:25 |
|
RobbieF joined #minetest-hub |
13:29 |
|
CalebDavis joined #minetest-hub |
13:43 |
|
CalebDavis joined #minetest-hub |
13:46 |
|
sniper570 joined #minetest-hub |
13:57 |
|
bwarden joined #minetest-hub |
14:01 |
IhrFussel |
Does minetest.set_node() call the on_place callback of the node? |
14:01 |
jas_ |
everything, i think. |
14:01 |
sfan5 |
you mean on_construct |
14:02 |
IhrFussel |
I mean will set_node/swap_node call minetest.register_on_placenode(function(pos, newnode, placer) ? |
14:02 |
jas_ |
and/or maybe after_place_node |
14:02 |
jas_ |
that's for players, methinks. |
14:03 |
jas_ |
(or whatever objectref 'placer' is?) |
14:04 |
IhrFussel |
jas_, that's what I hope since I want a certain node remove as soon as a player tries to place it but still allow it via WE |
14:04 |
jas_ |
using that method is discouraged in lua_api.txt |
14:05 |
jas_ |
i might try on_construct or after_place_node |
14:05 |
jas_ |
probably not after_place_node |
14:05 |
sfan5 |
IhrFussel: even if it does you can just check placer:is_player() |
14:07 |
IhrFussel |
I don't see why it's discouraged...what if I just want to remove certain nodes inside certain positions? I will definitely not add a on_construct callbacl to each of them |
14:08 |
jas_ |
this method is more for protection mods i guess |
14:08 |
jas_ |
there are multiple ways to skin a cat |
14:08 |
jas_ |
but if it's between only these two - there might be more - and your way works them who am i to say? |
14:08 |
jas_ |
i still have to figure out how to do mod profiling |
14:09 |
sfan5 |
register_on_placenode is not just for protection mods |
14:09 |
IhrFussel |
sfan5, I'll do that in case set_node really runs that callback |
14:09 |
sfan5 |
is_protected however is |
14:09 |
sfan5 |
IhrFussel: set_node might, but WE's //set uses vmanips anyway which are definitely don't |
14:10 |
jas_ |
that's how i imagined it, as a more general, or global method that specialized mods would utilize, and per the doc i tried to use node def callbacks |
14:10 |
jas_ |
is there a reason why the use of that method is discouraged? i better look, it's been a bit |
14:10 |
IhrFussel |
sfan5, lua api says "**Not recommended**; use `on_construct` or `after_place_node` in node definition" though ... but that's a cumbersome work if you just want to disallow a various nodes in certain areas |
14:11 |
sfan5 |
oh right |
14:11 |
jas_ |
lua_api.txt: **Not recommended**; use `on_construct` or `after_place_node` in node definition whenever possible |
14:11 |
jas_ |
oh shoot sorry |
14:11 |
sfan5 |
you have no other choice though |
14:11 |
sfan5 |
on_place_node can't be used to prevent placement |
14:13 |
IhrFussel |
This is easier than adding a callback to each node https://pastebin.com/Ppb0USSR |
14:14 |
sfan5 |
you forgot to give the player his item back |
14:14 |
sfan5 |
and what if previous on_placenode callbacks had side-effects? |
14:14 |
jas_ |
yeah that's the only reason i can think -- the order of things between mods |
14:14 |
IhrFussel |
That was an example code, my actual code is a bit longer |
14:17 |
IhrFussel |
In my case it is a walkable, unbreakable light node above the player's head that's never supposed to be placed...some players seem to have found a way to drop those with falling nodes |
14:18 |
Krock |
what if you define `on_place` in the node definition? |
14:18 |
IhrFussel |
I mean 1 of the cases is that...another case is that I don't want my lucky block arena spammed with all kinds of blocks so I only allow a few nodes inside the area |
14:18 |
Krock |
then you could abuse is_protected, which definitely will work |
14:19 |
Krock |
work, as in placement prevention for all nodes. but if you want to allow certain nodes, then that's a suboptimal suggestion |
14:20 |
IhrFussel |
With ~ 1,900 nodes I will definitely not go into each definition an add a callback for a certain radius ... in such cases the register_on_placenode() callback is perfect |
14:22 |
Krock |
overwriting minetest.item_place is a possibility too. return the itemstack if it shall not be allowed - ensures that no node is ever placed or replaced |
14:23 |
Krock |
^ IMO better than on_placenode with a remove_node() call |
14:27 |
shivajiva |
I agree Krock |
14:28 |
Krock |
o/ |
14:28 |
shivajiva |
o/ |
14:29 |
IhrFussel |
Krock, is it basically just a register_on_* function? |
14:30 |
Krock |
IhrFussel, no, it's is_protected with the itemstack and pointed_thing given |
14:30 |
Krock |
https://github.com/Bremaweb/landrush/blob/master/protection.lua#L155 as an example |
14:42 |
|
Natechip joined #minetest-hub |
14:42 |
|
Natechip joined #minetest-hub |
15:12 |
|
nerzhul joined #minetest-hub |
15:42 |
|
Megaf joined #minetest-hub |
16:33 |
Megaf |
Anyone playing Terasology? |
16:33 |
Megaf |
I'm joining the official unstable server right now |
16:38 |
Megaf |
Ok, Official Unstable is not working, stable seems fine |
16:39 |
Megaf |
I running the game directly with Java. /path/to/bin/java -jar /path/to/game.jar |
16:45 |
Megaf |
Nevermind, lets just play Mientest, its much betta |
16:46 |
rubenwardy |
yay |
17:06 |
IhrFussel |
Minetest is what you make it... I am turning my server into a MMO-esque survival server |
17:07 |
benrob0329 |
And I'm planning a steampunk series with a few other people |
17:07 |
rubenwardy |
I'd love to see that |
17:09 |
benrob0329 |
Customized gamemode is the plan |
17:10 |
benrob0329 |
Anyone who knows of a good steampunk texture pack... |
17:11 |
Megaf |
"Don't Worry, We All Forget Things |
17:11 |
Megaf |
I forgot my keys yesterday. Enter your email and we'll send you a reset link |
17:11 |
Megaf |
" |
17:11 |
Megaf |
Nice recover password message |
17:41 |
IhrFussel |
Found a nice 404 page https://www.kualo.co.uk/404 |
17:53 |
lisac |
YAY ITS WEEKEND |
17:54 |
lisac |
Megaf, I find terasology to be extremely bad performance-wise. |
18:02 |
Calinou |
it is, but it is pretty bloated overall |
18:02 |
Calinou |
I rarely complain about software bloat, but some softwares just take it to an extreme :P |
18:03 |
sfan5 |
e l e c t r o n |
18:07 |
lisac |
https://www.reddit.com/r/PrequelMemes/comments/793tqf/you_have_declared_independence_but_do_not_grant/ |
18:07 |
lisac |
sfan5, I noticed Atom is getting slower and slower. |
18:07 |
sfan5 |
that's why i use gedit |
18:08 |
lisac |
https://www.reddit.com/r/politicalprequelmemes/comments/793wtt/spanish_senate_invokes_article_155/ |
18:08 |
lisac |
I should switch to vim |
18:08 |
lisac |
probably after I finish linking latest SW memes. |
18:10 |
Calinou |
VSCode is much faster than Atom |
18:10 |
Calinou |
Atom got better performance lately, but is still slower |
18:10 |
lisac |
VSCode? Is that... legal? |
18:10 |
lisac |
*linux native |
18:10 |
lisac |
I had to add a prequel reference, though |
18:10 |
lisac |
I've done nothing but browse r/prequelmemes for the whole day |
18:11 |
lisac |
oh, VSCode is visual studio |
18:11 |
lisac |
it's actually a full IDE |
18:11 |
lisac |
how can it be faster then atom? |
18:12 |
lisac |
oh VSCode is linux native. |
18:13 |
lisac |
Calinou, what text editor do you use for Lua? |
18:13 |
lisac |
https://www.reddit.com/r/PrequelMemes/comments/793s64/everyone_in_the_spanish_government_now_that/ |
18:13 |
* lisac |
stops posting prequelmemes. |
18:19 |
Calinou |
lisac: VSCode |
18:19 |
lisac |
hmm |
18:19 |
Calinou |
it's just an edtior, not an IDE (like Atom) |
18:19 |
lisac |
atom just got an ide packet |
18:19 |
Calinou |
it can still do a lot of things |
18:19 |
lisac |
atom-ide |
18:19 |
lisac |
I'd rather learn vim |
18:19 |
lisac |
I heard it's nice. |
18:20 |
benrob0329 |
lisac: vim is bae |
18:20 |
benrob0329 |
hjkl ALL the things! |
18:20 |
lisac |
hmm https://www.urbandictionary.com/define.php?term=Bae |
18:21 |
lisac |
I played a lot of nethack |
18:21 |
lisac |
should help. |
18:21 |
Calinou |
DEFEND THE BAE |
18:21 |
Calinou |
AND GET THE FLAG |
18:22 |
lisac |
and the new contract update, Calinou: https://www.reddit.com/r/tf2/comments/7921kj/literally_every_map_contract/ |
18:22 |
Megaf |
lisac, It's shaders are quite awesome and impressive |
18:22 |
Megaf |
yet practically useless |
18:23 |
lisac |
Megaf, vims? |
18:23 |
lisac |
oh, terasology |
18:23 |
lisac |
I was confused for a moment there |
18:23 |
lisac |
and it's also in java. |
18:23 |
benrob0329 |
Vim with shaders, i'd pay to see that |
18:25 |
lisac |
I'm sure there is an emacs command for it |
18:25 |
lisac |
https://xkcd.com/378/ |
18:25 |
lisac |
oh well https://www.reddit.com/r/dontdeadopeninside/comments/78z6sf/john_f_kennedy_killed_by_wikipedia/ |
18:26 |
benrob0329 |
lisac: there is actually an M-x butterfly command |
18:26 |
benrob0329 |
Its a joke, but still |
18:27 |
Megaf |
Hah! that xkcd |
18:27 |
lisac |
http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/misc.el#n110 |
18:59 |
|
ThomasMonroe joined #minetest-hub |
19:05 |
Megaf |
Oh boy, I miss the good old Opera Browser, with built in Web Server, IRC, EMail Client, RSS reader, Torrent Downloader, full customization, Widgets, all that being 1/10 of the size of a now a days web browser and much faster |
19:06 |
|
RobbieF left #minetest-hub |
19:35 |
|
LazyJ joined #minetest-hub |
19:37 |
lisac |
Megaf, maybe you should come to Serbia |
19:37 |
lisac |
90% of computers use outdated opera browser here |
19:37 |
Raven262 |
They do? |
19:37 |
Raven262 |
I thought IE was still in use here. |
19:38 |
Raven262 |
At least on WinXp computers. |
19:38 |
benrob0329 |
IE is still in ues everywhere |
19:38 |
benrob0329 |
unfortunately |
19:39 |
|
CalebDavis joined #minetest-hub |
19:39 |
|
IhrFussel joined #minetest-hub |
19:45 |
Megaf |
lisac, give me a decent job with decent salary and a Visa and I go |
19:46 |
Megaf |
The thing is, there's still nothing even remotely close to what Opera used to be |
19:46 |
Megaf |
Maybe SeaMonkey with plenty of addons |
19:47 |
lisac |
Megaf, I don't think you need a Visa |
19:47 |
lisac |
as for the job, you could probably invest into the ruling party |
19:47 |
lisac |
and get a well-paying do-nothing job |
19:48 |
Megaf |
lisac, I'm Brazilian, I think I do |
19:49 |
lisac |
https://en.wikipedia.org/wiki/Visa_requirements_for_Brazilian_citizens#/media/File:Visa_requirements_for_Brazilian_citizens.png |
19:49 |
lisac |
nope, visa-free |
19:50 |
lisac |
we only require visas from Africa https://en.wikipedia.org/wiki/Visa_policy_of_Serbia#/media/File:Visa_policy_of_Serbia.png |
19:50 |
lisac |
and some asia, alright. |
19:52 |
Megaf |
lisac, I can stay 90 days in Serbia without visa, not work nor live |
19:52 |
lisac |
well, I guess you could add 20% more to your ruling party bribe for a visa |
19:52 |
Megaf |
Brazilian don't need Visa almost everywhere. |
19:53 |
lisac |
yay I can visit Brazil |
19:53 |
lisac |
no visas to there |
19:53 |
lisac |
or russia. |
19:53 |
lisac |
Guess that works, too |
21:21 |
IhrFussel |
Did someone report that bug yet? Falling nodes can make unbreakable nodes drop themselves if the falling node's height matches the one of the unbreakable one |
21:22 |
IhrFussel |
Basically if you have an unbreakable node above your head an you are standing against a wall the unbreakable node will drop when you let several nodes fall so that they stack until they reach the unbreakable one and it drops just like any other item |
21:23 |
IhrFussel |
It doesn't need to be above your head it can also just float mid-air against a wall |
22:40 |
|
Natechip joined #minetest-hub |