Minetest logo

IRC log for #minetest-hub, 2018-10-23

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

All times shown according to UTC.

Time Nick Message
00:21 Tmanyo joined #minetest-hub
00:56 ssieb joined #minetest-hub
01:13 Ruslan1 joined #minetest-hub
01:25 ANAND joined #minetest-hub
01:37 garywhite joined #minetest-hub
01:53 GreenDimond joined #minetest-hub
03:14 jas_ joined #minetest-hub
05:12 CWz joined #minetest-hub
05:15 bwarden joined #minetest-hub
05:43 jas_ hi
06:08 DeathrunMaker joined #minetest-hub
06:15 benrob0329 joined #minetest-hub
08:46 nrzkt2 joined #minetest-hub
09:46 BuckarooBanzai Has anyone experience (server-wise) with the forceload setting and technic? My setting for forceload-blocks is currently at 0. As far as i understand if i increase the value only the first forceloaded blocks (by the switching station) are getting permanently forceloaded and the rest stays the same. Is this the case?
10:23 CWz joined #minetest-hub
10:54 IhrFussel joined #minetest-hub
11:01 Fixer joined #minetest-hub
11:24 ssieb joined #minetest-hub
11:27 ChimneySwift IhrFussel: that's what I usually do *shrug*
12:09 Fixer good to see obsidian and glass stairs/slabs, so many uses for em
12:16 ChimneySwift Obsidian glass panes now too \o/
12:17 Fixer yes
12:17 Fixer love them for windows
12:18 Shara Those were a real pain to set up the textures for :)
12:21 ChimneySwift a real... pane
12:22 ChimneySwift hAhAHahAhAh
12:23 Shara Ouch... now that is bad :P
12:24 ChimneySwift XDDD
12:26 Shara Well, I've already decided you are dangerous... spent a good chunk of time thinking about mod ideas based around dungeon loot yesterday after managing to dream about it all
12:27 ChimneySwift XD hahaha you should see my DMs
12:27 ChimneySwift there's a lot of cool ideas you can do with it
12:27 * Shara hides
12:28 ChimneySwift XD
12:29 calcul0n joined #minetest-hub
12:56 T4im joined #minetest-hub
12:57 jluc joined #minetest-hub
13:10 rubenwardy The Register: PC version of Linux 4.19 lands with PC version of Linus Torvalds: Kernel handed back to creator.
13:10 rubenwardy https://www.theregister.co.uk/2018/10/22/linus_torvalds_back/
13:10 rubenwardy Loool
14:05 Bobr joined #minetest-hub
14:33 Bobr joined #minetest-hub
14:33 Bobr joined #minetest-hub
15:08 FrostRanger joined #minetest-hub
15:22 garywhite joined #minetest-hub
15:22 garywhite joined #minetest-hub
15:22 ChimneySwift joined #minetest-hub
15:48 IhrFussel Let's say I got a formspec and each player needs to have multiple buttons...if pressed then the buttons should return the corresponding player name and action for the button...how do I detect the player name and action in register_on_receive_fields()? for example per player I have "label[0,0;"..playername.."]label[button_exit;1,0;player"..i.."_action1]
15:49 rubenwardy use contexts to store the maximum ID, then use a for loop
15:51 IhrFussel Not sure what "contexts" means in lua...you mean a table?
15:51 rubenwardy !book formspec
15:51 MinetestBot rubenwardy: Formspecs - https://rubenwardy.com/minetest_modding_book//en/players/formspecs.html
15:51 IhrFussel I already have a for loop for the online list "i" is the loop iterator
15:55 T4im hmm didn't you have a PR once to pass the context through via show_formspec?
15:56 T4im what ever happened to that :s
15:57 rubenwardy it was an issue
15:57 rubenwardy I think?
15:58 T4im seemed like a useful api-simplification
15:58 T4im also saving a little cpu and memory :p
15:58 IhrFussel Are you sure that this will solve my problem? I don't need the ID of the sender, I need to store the button info + player name per player in the formspec
15:59 T4im node formspec or global formspec?
16:00 IhrFussel Global... Basically I want to make a custom "who is online" formspec with essential functions as buttons
16:01 T4im sounds like you just need to iterate the online players then when building the formspec
16:01 T4im i.e. minetest.get_connected_players()
16:02 IhrFussel I already have that part...but the question is how do I get the info "player pressed button for this player which has that function attached to it"
16:03 T4im minetest.register_on_player_receive_fields(func(player, formname, fields))
16:03 T4im player is the one pressing the button
16:03 IhrFussel All I have right now per player is an exit button named "player[number]_action_1"
16:05 IhrFussel No I mean the formspec looks like this in the loop "NAME [action1] [action2]" then next line "NAME2 [action1] [action2]" and I do that for every online player
16:05 T4im yupp, that is during building the formspec, right?
16:06 T4im so now you need to have a second function that receives the events from pressing the buttons
16:06 IhrFussel Now if someone (sender doesn't matter) presses the "action1" button of NAME2 ... how do I know it is NAME2 + action1?
16:07 T4im through the fields table from minetest.register_on_player_receive_fields(func(player, formname, fields))
16:08 IhrFussel So just name the label with the player name and then fields.playername and fields.action1 ?
16:08 T4im something like that, yea
16:10 IhrFussel But playername must be unique... I can't just act on fields.playername and I cannot name every player name label the same AFAIK...it's more complex
16:10 T4im well, just make it part of the action button then
16:10 T4im the action button already stands for both player and action doesn't it? :)
16:10 IhrFussel So name the action button "playername_action1" ?
16:11 T4im i'd probably rather go with an id than a name there for safety
16:11 T4im but generally yes
16:11 T4im action1_numericplayerid
16:11 T4im perhaps
16:12 garywhite joined #minetest-hub
16:12 garywhite joined #minetest-hub
16:16 IhrFussel So after all I do need to use a table to connect the ID to the player name
16:19 T4im just update a localized reference to minetest.get_connected_players()
16:19 T4im and don't forget to test if the player is still online in receive fields
16:21 T4im i think you want definitely localize the ref to it, even though that makes it gc uncollectable, because theres a good chance the function won't guarantee index-player mappings in consecutive calls
16:21 T4im i.e. when someone disconnects their entry might not be kept nil but the next online one will be moved up
16:24 T4im hmm, however that might get ugly if another player updates the same ref in the meantime /o\ so you are back at contexts of tables i guess
16:26 T4im different idea; just keep a on_player_join/leave updated mapping of a hash or *running* id to name then; if you then get an ids that don't exist anymore you know the player disconnected in the mean time as well
16:27 Krock joined #minetest-hub
16:28 Krock hi Shara (no ten around to greet)
16:29 T4im hey Krock :
16:29 T4im :)
16:31 Krock hi T4im  (:
16:31 Krock merging https://github.com/minetest-mods/technic/pull/449 in 10 minutes
16:41 Shara hi Krock :P
16:42 Krock thanks for the trigger
16:42 Krock merging
16:45 Shara You're welcome, but you should probably be announcing those in -dev :)
16:46 Gael-de-Sailly joined #minetest-hub
16:46 Krock Shara: it's not a -dev related repository
16:46 Krock -hub is the place for server owners and modders, so technic fits better in here
16:46 Shara I guess. :)
16:47 Krock I consider -dev to be limited to the repositories inside the group minetest/
16:47 Shara Had not noticed which it was, because I guess it's not nromal to see anyone announce they plan to merge to other things (at least not that I noticed)
16:47 Shara normal*
16:52 Krock because barely anyone announces merges because they usually have the control over the repositories
16:52 Krock I don't, so active listeners could bing in their veto
16:52 Krock *bring
17:01 shivajiva happy to see mod pr's announced here :)
17:02 Shara I don't mind it, it's just different :P
17:03 Krock shivajiva: just from those minetest-mods PRs where I'm not the project owner :P
17:04 shivajiva ofc lol
17:05 shivajiva tenplus sometimes does his own here depending on who's about
17:07 garywhite joined #minetest-hub
17:07 garywhite joined #minetest-hub
17:25 IhrFussel Am I reading that correctly? Google wants that Android 5/6/7 will NOT get updates for their apps anymore starting Nov 1?
17:28 Fixer "more bullshit from the captain" (c)
17:28 Fixer IhrFussel: source?
17:31 aerozoic joined #minetest-hub
17:34 IhrFussel Fixer, I misunderstood...target version is not min version
17:40 calcul0n joined #minetest-hub
18:10 IhrFussel Can I use minetest.colorize() inside formspec_escape() without problems?
18:11 rubenwardy yes
18:29 IhrFussel Do you think displaying online time as green "X h X m" is enough? Should people get what's meant?
18:30 IhrFussel Limited formspec space, that's why I ask
18:30 T4im add a tooltip explaining it
18:31 T4im or maybe some icon won't take to much space
18:31 T4im too*
18:32 T4im if you organize everything tabular, a column header might be useful, you might get the benefit of scrollability, since you don't know the amount of players that could fill it yet
18:33 rubenwardy I'm starting to tweet regularly using scheduled tweets: https://twitter.com/MinetestProject
18:33 rubenwardy follow if you have twitter :)
18:34 rubenwardy woah
18:34 T4im cool :)
18:34 rubenwardy Google shows me stats on how much my website appears in a query when searching it
18:34 rubenwardy https://i.rubenwardy.com/CjKUf.png
18:39 benrob0329 That list of supported platforms is rather redundant
18:40 rubenwardy lol!
18:40 rubenwardy true
18:41 * rubenwardy tries again to compile Minetest for Android
18:58 garywhite joined #minetest-hub
19:07 Krock nice challenge
19:11 rubenwardy is this how Windows users feel?
19:11 Krock worse, because it's C++ to java wrapper to android
19:12 Krock Win32 was a PITA, tho.
19:12 Krock well so. Enjoy the feeling :P   - off -
19:20 FrostRanger joined #minetest-hub
20:06 sfan5 rubenwardy: the "correct" fix is to install https://aur.archlinux.org/packages/ncurses5-compat-libs not symlink something in /usr/lib
20:07 rubenwardy I tried that, but the public key is invalid
20:07 sfan5 I don't verify keys when building from AUR ¯\_(ツ)_/¯
20:08 rubenwardy didn't realise that was an option
20:17 garywhite joined #minetest-hub
20:17 garywhite joined #minetest-hub
20:52 Ruslan1 joined #minetest-hub
21:27 garywhite joined #minetest-hub
21:27 garywhite joined #minetest-hub
21:43 rubenwardy installed it :D
22:46 benrob0329 joined #minetest-hub

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