Minetest logo

IRC log for #minetest-hub, 2018-07-11

| Channels | #minetest-hub index | Today | | Google Search | Plaintext

All times shown according to UTC.

Time Nick Message
00:48 garywhite Are there any mods that add fruit trees?
01:02 paramat joined #minetest-hub
01:02 paramat yes :)
01:11 lumberJ joined #minetest-hub
02:07 ANAND joined #minetest-hub
02:32 garywhite paramat: Is it ethereal?
02:42 ManElevation joined #minetest-hub
02:44 paramat that and many others i'm sure
02:45 tumeninodes paramat, you really need some metatonin
02:45 tumeninodes melatonin
02:47 paramat oh that :)
02:47 paramat that occurs around dawn for me currently
02:48 tumeninodes meh, actually not a bad thing to wake around 4am... but when you don't get to sleep until around 1 or 2 am... can get to be a problem
02:58 tumeninodes left #minetest-hub
03:41 paramat joined #minetest-hub
05:15 ssieb joined #minetest-hub
05:31 Ruslan1 joined #minetest-hub
06:14 ClobberDX joined #minetest-hub
06:15 ClobberDX joined #minetest-hub
06:15 ClobberDX joined #minetest-hub
06:16 ANAND_ I've been trying to expose player FOV to the Lua API
06:16 ANAND_ As that would open up a ton of new possibilities
06:18 ANAND_ I've discussed about this (albeit minimally) on #-dev yesterday evening (UTC)
06:19 ANAND_ I tried setFov() from content_sao.h
06:19 ANAND_ Which did not work; it just sets a server-side variable
06:20 ANAND_ I'd like to know if this is possible, and if yes, how? :)
06:21 sofar Needs a new packet, possibly two
06:21 ANAND_ ah..
06:22 ANAND_ Time to dig deeper :D
06:22 sofar Send fov params to client, maybe back too (client fov change)
06:23 ANAND_ Good idea, will look into it when I get back home
06:23 sofar E.g. max, min, set
06:23 sofar To client
06:23 ANAND_ Right
06:23 sofar And to server just the value chosen by the client
06:23 sofar And add csm Lua for it too
06:24 ANAND_ Why CSM tho?
06:24 sofar So a can could change fov for like a special item
06:24 sofar So a csm*
06:24 sofar If permitted, of course
06:25 ANAND_ I'm planning to add ObjectRef:set_fov(int) and ObjectRef:get_fov()
06:25 ANAND_ to the SSM API
06:26 ANAND_ Adding the same methods to CSM would be unnecessary IMO
06:26 ANAND_ But please do share your thoughts on this
06:26 ANAND_ If required, I'll implement them within the same PR
06:27 sofar You'll get a better client experience if you allow csm to choose within an acceptable range
06:27 sofar A simple start may be sufficient for now
06:28 ANAND_ Ah I see... You mean set_fov should send min max and default values, and CSM should be able to modify FOV within the provided range, am I right?
06:29 sofar Yes
06:30 ANAND_ Nice, will see what I can do
06:30 * sofar dozes off
06:30 ANAND_ o/ :)
06:41 ANAND_ scene::ICameraSceneNode::setFOV() is the function that actually (re)sets the FOV
06:41 ANAND_ Am I correct?
06:42 ANAND_ Sorry for using #-hub, I can't chat on #-dev as I'm using a web client :)
06:49 ANAND_ the various packet types are defined in {server|client}opcodes.{h|cpp}
06:49 ANAND_ But where are they actually defined?
06:49 ANAND_ i.e. Where are the packet contents defined?
07:05 ssieb joined #minetest-hub
07:05 ANAND_ All null_command_handler entries in to{Server|Client}CommandTable are just placeholders reserved for future new packets, right?
07:05 ANAND_ new packets in the future*
07:08 twoelk joined #minetest-hub
07:44 ANAND_ {Server|Client}::handleCommands_ receive and handle the packets, that part is clear...
07:44 ANAND_ But I still can't figure out where the packet contents are defined :/
07:54 ANAND_ Aha!
07:55 ANAND_ {Server|Client}::Send()! :D
07:56 ANAND_ Only when one actually takes the time to study the how networking works do they realize that it's not so complicated... ;)
08:02 ANAND_ So for FOV, 2 packets need to be defined: TOSERVER_FOV and TOCLIENT_FOV
08:05 ANAND_ TOCLIENT_FOV is sent by the server, with min max and default values
08:05 ANAND_ TOSERVER_FOV is sent by the client, with the current FOV, whenever it changes
08:06 ANAND_ everytime it changes*
08:20 ANAND_ Hmm... why isn't NetworkPacket::operator << overloaded for f16 and f32 datatypes?
08:23 jluc joined #minetest-hub
08:28 ANAND_ << has been overloaded for float though. I'll guess I'll go with that
08:39 RichardTheTurd joined #minetest-hub
09:04 ANAND_ left #minetest-hub
09:26 Fixer joined #minetest-hub
09:40 CWz joined #minetest-hub
09:44 ManElevation joined #minetest-hub
10:16 Krock joined #minetest-hub
10:16 Krock hello *
10:17 ANAND o/ Krock :)
10:17 * Krock was kicked by tenplus1 (Do not highlight everyone)
10:17 ANAND hehehe :P
10:22 lhofhansl joined #minetest-hub
10:24 xerox123_ Hello
10:31 Krock oh hello lhofhansl, xerox123_
10:38 ManElevation joined #minetest-hub
10:54 Krock joined #minetest-hub
11:19 Fixer {OFF} HEY< LITTLE DRUM!
11:53 Ruslan1 joined #minetest-hub
12:03 lumberJ joined #minetest-hub
12:19 entuland joined #minetest-hub
12:29 ManElevation joined #minetest-hub
12:48 rubenwardy Come on Croatia  ??
14:34 lhofhansl joined #minetest-hub
14:43 Krock boom. cheapie's mail/inbox mod is busted now too. needs a fix
14:43 Fuchs poor cheapie
14:44 Fuchs oh, why are they no longer in here
14:48 Krock were they here? If so, then inactive all the time
14:49 Fixer Krock: what happened? formspec exploit?
14:50 Krock yes
14:50 Fuchs well, I can poke them on $othernet I guess
14:50 Krock one missing nil check again
14:50 Krock Fuchs: I hope they'll notice my PR as soon it's done
14:50 rubenwardy Busted is good!
14:50 Fuchs oh, they probably will :)
14:51 * rubenwardy needs to finish his chapter on busted
14:53 Ruslan1 joined #minetest-hub
14:59 IhrFussel joined #minetest-hub
15:00 lumberJ joined #minetest-hub
15:00 IhrFussel !tell tenplus1 Regarding on_activate() of carts... the issue was that data.placets wasn't set yet in first on_activate() ... I fixed that by adding if not self.placets then self.placets = os.time() + 120 end in get_staticdata()
15:00 MinetestBot IhrFussel: I'll pass that on when tenplus1 is around
15:00 Gael-de-Sailly joined #minetest-hub
15:10 xerox123 what causes these errors? https://paste.ubuntu.com/p/K69PQQjS7c/
15:10 xerox123 so confused, there's only latin chars in the signs
15:11 Darcidride joined #minetest-hub
15:11 sfan5 xerox123: did you copy-paste anything to the signs?
15:11 xerox123 possibly, they're controlled from a luac
15:13 xerox123 literally every one just timed out
15:13 xerox123 https://paste.ubuntu.com/p/KfJwbv9m7P/
15:16 ANAND Whoa...
15:19 xerox123 updating minetest_game to see if that fixes it
15:20 Krock > updating minetest_game when the error lies in signs
15:21 Krock much logic. much good very helpful
15:25 lhofhansl Any interest in a simple change that allows for an optional 2nd-ary readonly database for maps? That way the primary DB could be a dummy backend and each iteration would start from the readonly base DB.
15:27 xerox123 Krock: signs ins't part of mtg?
15:27 xerox123 isn't*
15:27 Corvus_ joined #minetest-hub
15:27 xerox123 oh, thought it was. my bad
15:28 Krock signs are, but not the signs mod.
15:29 Krock lhofhansl: so, like read-only maps but with an active mapgen around?
15:29 Krock then why not directly read-only maps?
15:30 Krock also the mapblock loading speed will reduce when it's not found due to another lookup iteration in a 2nd database
15:30 lhofhansl Krock: The game should still be able to proceed. I.e. should still be able to dig blocks, etc. Is that possible already?
15:31 Krock readonly maps are currently not supported but there's a PR pending for it
15:32 Krock I see the usecase of your idea. Static maps which can then be recycled by undoing the user changes (without rollback)
15:32 lhofhansl Yep. The temporary changes still have to be stored somewhere.
15:32 lhofhansl Although I do not have a lua API that goes with it.
15:32 Krock server RAM in this case, unless something else is specified
15:33 Krock maybe our discussion fits better into #minetest-dev since it's a core modification
15:42 IhrFussel Does find_nodes_in_area() support floats as value (radius)?
15:42 IhrFussel nodes_near()*
15:42 entuland joined #minetest-hub
15:43 Krock no. https://github.com/minetest/minetest/blob/master/src/script/lua_api/l_env.cpp#L753
15:45 IhrFussel Alright...also shouldn't it be find_nodes_near() not find_node_near() ?
15:45 IhrFussel It accepts, like find_nodes_in_area() a table with node names
15:46 IhrFussel Oh wait...I see now...node makes sense
15:47 Krock one return value, yes.
15:52 lhofhansl Lemme find that PR. (yes, -dev is probably more appropriate)
15:52 Krock xerox123: u_i in LS-* is outdates
15:52 Krock *outdated
15:54 xerox123 is the minetest-mods one the official one?
16:34 garywhite joined #minetest-hub
16:46 xerox123 https://paste.ubuntu.com/p/ZnRcQH5G79/
16:47 xerox123 asking the guy what happened for the crash
16:48 ManElevation joined #minetest-hub
16:49 xerox123 something about "placing a rail on the inside"
16:50 xerox123 <Logan55> place dispenser put rail inside and power it and boom server crashes
16:55 Krock update pipeworks
16:55 Krock if there's nothing to update, apply the open PR from gitlab
17:07 IhrFussel Is a race condition in MT possible when something runs in globalstep() and on_use() at the same time?
17:18 Krock no
17:18 Krock lua is single-threaded
17:28 TommyTreasure quick question. preferences for VPS OS?
17:29 TommyTreasure minetestserver, of course  :)
17:29 Krock windows. 100/100
17:31 rubenwardy xerox123: the minetest-mods one isn't official
17:35 IhrFussel Krock, so on_use() of any item runs before/after globalstep?
17:35 ssieb joined #minetest-hub
17:35 Krock yes
17:38 IhrFussel I thought item callbacks would happen in realtime..I guess not
17:59 Fixer_ joined #minetest-hub
18:21 Amaz joined #minetest-hub
18:30 Guest25750 joined #minetest-hub
18:38 rubenwardy lol
18:38 rubenwardy IhrFussel: that's not how code works
18:38 rubenwardy on_use is triggered by a player callback
18:39 rubenwardy -callbck
18:39 rubenwardy the server is told of this by the player sending a packet
18:40 IhrFussel rubenwardy, but I thought on_use() could possibly trigger the exact same moment as globalstep() runs ... I didn't know that the engine has to wait for the globalstep to be done to execute on_use()
18:40 rubenwardy how would it?
18:42 rubenwardy it doesn't wait for it to be done
18:43 rubenwardy it just doesn't know that the player has sent a packet until it checks to see if it has received any packets
18:49 IhrFussel If globalstep and on_use() would run async then it would certainly be possible to run at the exact same time
18:50 IhrFussel I know that lua is singlethreaded but I wasn't sure if item callbacks also just wait to run like globalstep()
18:54 rubenwardy that would essentially be the same as multithreading
19:45 IhrFussel I thought mapgen v7 has no rivers?
19:45 IhrFussel But I found one just now
19:54 paramat joined #minetest-hub
19:59 paramat 'rivers', but they're at sea level, more like estuaries
20:14 Krock nore: would you please be so nice and (re-)review the pipeworks PR? It works well and combining these fake player generating code parts seems rather important to reduce the error rate
20:15 Krock gtg now
20:33 ManElevation joined #minetest-hub
20:40 entuland joined #minetest-hub
20:51 AndroBuilder joined #minetest-hub
21:09 aerozoic joined #minetest-hub
21:51 rubenwardy Yay, Croatia won!
21:58 ManElevation joined #minetest-hub
22:01 paramat joined #minetest-hub
22:07 lisac rubenwardy: aren't you English lol
22:07 rubenwardy yes
22:07 rubenwardy so?
22:07 * lisac doesn't know what to think about that game.
22:07 rubenwardy didn't even watch it
22:08 rubenwardy overly cocky English fans just annoy me
22:08 lisac well, you'd see overly cocky Croatian fans if you were in Croatia
22:08 rubenwardy probably
22:08 rubenwardy further away
22:08 rubenwardy not my problem
22:08 lisac or half dead cocky English fans. :P
22:09 lisac I'm guessing I should go with 'sad' for that game then
22:17 Ruslan1 joined #minetest-hub
22:20 paramat i'm english too, my city was a little noisy tonight and i guessed it was football
22:20 paramat anyway serves them right for trashing ikea :)
22:24 * paramat dislikes everything about football
22:36 rubenwardy I agree, paramat
22:36 rubenwardy Fuck England
22:36 rubenwardy Fuck brexit
22:37 rubenwardy I guess that's the real reason I'm salty
22:45 ANAND joined #minetest-hub
22:57 rubenwardy paramat: https://metrouk2.files.wordpress.com/2018/07/sei_20868092.jpg?quality=80&amp;strip=all&amp;strip=all
22:57 rubenwardy (mature content, are)
22:58 rubenwardy *sfw
22:58 rubenwardy Maybe
22:58 rubenwardy It's a domestic abuse poster
23:04 paramat (i also think brexit is a disaster)
23:06 IhrFussel Is it intended that the console (F10) font is different to the font in "T"?
23:08 IhrFussel I just realized that cause the 0 in the console got a dot in the middle while it's missing in T-mode
23:16 ANAND joined #minetest-hub
23:23 paramat probably not intended, just how it is for some reason
23:42 IhrFussel Does minetest.add_node() clear meta?
23:43 IhrFussel Ahh it's the same as set_node() so it should
23:50 lhofhansl joined #minetest-hub

| Channels | #minetest-hub index | Today | | Google Search | Plaintext