Minetest logo

IRC log for #minetest, 2018-04-25

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

All times shown according to UTC.

Time Nick Message
00:15 Tmanyo joined #minetest
00:56 Jordach joined #minetest
01:00 georgeowell joined #minetest
01:27 ANAND joined #minetest
01:28 Ruslan1 joined #minetest
01:43 rohju_ joined #minetest
02:16 nowhere_man joined #minetest
02:26 whitephoenix joined #minetest
02:37 Frankenstone joined #minetest
02:58 AndroBuilder_ joined #minetest
03:38 proller joined #minetest
03:51 Blo0D joined #minetest
04:35 Dr-Frankenstone joined #minetest
04:52 Darcidride_ joined #minetest
04:53 Darcidride joined #minetest
05:18 Fritigern joined #minetest
05:52 Hirato joined #minetest
05:52 Hirato joined #minetest
06:02 jluc joined #minetest
06:02 Frankenstone joined #minetest
06:40 DrFrankenstone joined #minetest
06:50 ssieb joined #minetest
08:19 CWz joined #minetest
09:08 jluc joined #minetest
09:46 Dr-Frankenstone joined #minetest
10:04 rohju joined #minetest
10:12 jomat joined #minetest
10:32 proller joined #minetest
10:36 Fixer joined #minetest
10:40 nowhere_man joined #minetest
10:40 proller joined #minetest
10:41 Markow joined #minetest
10:48 cyberarm joined #minetest
11:26 proller joined #minetest
11:36 Teckla joined #minetest
11:44 Jordach joined #minetest
11:51 Frankenstone joined #minetest
12:03 aheinecke joined #minetest
12:09 Beton joined #minetest
12:10 lumberJ joined #minetest
12:16 jomat joined #minetest
12:33 loggingbot_ joined #minetest
12:33 Topic for #minetest is now Welcome to the official Minetest channel  | Latest version: 0.4.16 (2017-06-03) | General, player, and  modder discussion is on-topic. If in doubt, post here | Responses may take a while, be patient | Rules: http://wiki.minetest.net/IRC#Rules | Development: #minetest-dev | Server list: http://minetest.net/servers | IRC logs: http://irc.minetest.net/minetest/
12:40 Fixer joined #minetest
13:06 bas080 joined #minetest
13:20 Quang-vip joined #minetest
13:55 Player-2 joined #minetest
14:04 ircSparky !seen jordan4ibanez
14:04 MinetestBot ircSparky: jordan4ibanez was last seen at 2018-01-25 00:08:23 UTC on #minetest
14:09 rubenwardy he's active on twitter, ircSparky
14:13 ircSparky ah ok
14:19 deltasquared joined #minetest
14:31 Tux[Qyou] joined #minetest
14:59 proller joined #minetest
15:01 CWz joined #minetest
15:01 jonasbits joined #minetest
15:01 [k00l]shamoanjac joined #minetest
15:01 Lymkwi joined #minetest
15:01 red-001 joined #minetest
15:01 Pie-jacker875 joined #minetest
15:01 BakerPrime joined #minetest
15:01 Boingo joined #minetest
15:01 Vadtec joined #minetest
15:01 Maxou56800 joined #minetest
15:01 Hijiri joined #minetest
15:01 ckeltz joined #minetest
15:01 pulec joined #minetest
15:01 ircSparky joined #minetest
15:01 dzho joined #minetest
15:01 ChanServ joined #minetest
15:02 Lone-Star joined #minetest
15:02 iska joined #minetest
15:02 craigger joined #minetest
15:02 FreeFull joined #minetest
15:02 SanskritFritz joined #minetest
15:03 silwol joined #minetest
15:04 bas080 joined #minetest
15:04 cyberarm joined #minetest
15:04 lumberJ joined #minetest
15:04 Beton joined #minetest
15:04 Hirato joined #minetest
15:04 illwieckz joined #minetest
15:04 ehlodex joined #minetest
15:04 alphawarrior joined #minetest
15:04 rafalcpp joined #minetest
15:04 KrimZon_2 joined #minetest
15:04 dustfinger joined #minetest
15:05 rafalcpp joined #minetest
15:07 Jordach joined #minetest
15:22 CarbineMorpho joined #minetest
15:25 ircSparky does anyone know offhand how to add a tag to an entity?
15:25 deltasquared ircSparky: like a name tag?
15:25 ircSparky yea, like default players
15:25 deltasquared ircSparky: one second, I did that in a mod of mine let me find it...
15:25 ircSparky also ive seen some mods have health that is a similar system
15:27 deltasquared ircSparky: it's literally "nametag" in the object properties
15:27 ircSparky ah ok, thanks
15:27 deltasquared should be settable at runtime too
15:28 deltasquared ircSparky: I use it here https://github.com/thetaepsilon-gamedev/minetest-mod-lightentity/blob/96fb002966a57ce3fa84f02d25172dec30405f07/init.lua#L195 in "debug" mode so I can see where these entities are, which are otherwise invisible
15:28 deltasquared note that if not in debug mode it's nil, which means "not set" for tables.
15:29 deltasquared but yeah, entityref:set_property({nametag="I'm an entity!"}) should work
15:29 ircSparky yep I just got it to work, thanks again
15:30 deltasquared I suddenly have an impulse to name a boat something daft, brb
15:50 Raven262 joined #minetest
15:50 Taoki joined #minetest
16:09 syx joined #minetest
16:10 Flitzpiepe_ joined #minetest
16:24 loggingbot_ joined #minetest
16:24 Topic for #minetest is now Welcome to the official Minetest channel  | Latest version: 0.4.16 (2017-06-03) | General, player, and  modder discussion is on-topic. If in doubt, post here | Responses may take a while, be patient | Rules: http://wiki.minetest.net/IRC#Rules | Development: #minetest-dev | Server list: http://minetest.net/servers | IRC logs: http://irc.minetest.net/minetest/
16:25 andirc8000 joined #minetest
16:27 __vy joined #minetest
16:41 fireglow[m] joined #minetest
16:41 Milan[m] joined #minetest
16:41 yusf joined #minetest
16:41 Wysteriary[m] joined #minetest
16:41 raymoo[m] joined #minetest
16:41 triolus[m] joined #minetest
16:41 Elon_Satoshi[m] joined #minetest
16:41 jbb[m] joined #minetest
16:41 M-JLuc joined #minetest
16:41 M-anomie joined #minetest
16:41 jcgruenhage joined #minetest
16:41 ericxdu[m] joined #minetest
16:41 silwol joined #minetest
16:41 snek joined #minetest
16:41 desttinghim[m] joined #minetest
16:42 LNJ[Ellenjott][m joined #minetest
16:52 Dr-Frankenstone joined #minetest
16:55 Jordach joined #minetest
16:59 Telesight joined #minetest
17:07 Telesight1 joined #minetest
17:13 Astrobe joined #minetest
17:23 Void7 joined #minetest
17:27 Krock joined #minetest
17:28 ircSparky do detached inventories
17:28 ircSparky wups
17:29 ircSparky have "main" as a default listname?
17:29 Krock no
17:30 Krock there is no "default listname" anywhere. The player inventory has some hardcoded names built-in
17:31 ircSparky ok
17:31 ircSparky how do you make a list?
17:32 ircSparky you need one, right?
17:33 Krock https://github.com/minetest/minetest_game/blob/master/mods/default/nodes.lua#L2099-L2100
17:34 Krock same for detached inventories, but using the return value of ".create_detached_inventory"
17:42 ircSparky should this work?
17:42 ircSparky ghost_inv:set_size("main", (ghost_inv:get_size("main")+1))
17:44 rohju joined #minetest
17:45 Krock yes that works. get_size will be 0 if the list doesn't exist yet
17:45 ircSparky ok
17:49 ANAND Greetings! I'd like to know if it's possible to show a simple formspec to a player using a command. The formspec would just consist of a label and an 'OK' button. The contents of the label will be passed as a param to the command. Any help would be much appreciated, thanks!
17:53 Gael-de-Sailly joined #minetest
17:53 ircSparky yea it's possible
17:53 ircSparky do you know how to make formspecs?
17:54 ANAND No, but I'm learning :)
17:55 ircSparky k, are you much good at reading code? you could look at the news mod
17:55 ANAND the one that shows the news panel to players on join?
17:55 ircSparky https://github.com/Bremaweb/news/blob/master/init.lua
17:55 ircSparky yea
17:56 ANAND That would do, thank you!
17:56 ircSparky though
17:56 ircSparky nvm there is a close button
17:59 ircSparky alright, now how do i make it so all of my add_item with the detached inventory are saved
18:00 ircSparky ghost_inv:set_stack("main", ghost_inv)) dosnt work, probably because of circular reasoning
18:00 Astrobe I'd be curious to know the history behind the oddity that is formspecs programming. Stringramming all thee way. Maybe a TCL/TK inspiration?
18:00 ircSparky I've no idea
18:00 ircSparky :P
18:01 ANAND Why does the news.formspec method take an extra param 'player' if it's not used anyway? https://github.com/Bremaweb/news/blob/master/init.lua#L6
18:03 ircSparky probably a mistake, should function without it
18:04 ANAND Looks like it
18:04 ANAND Might've been added for implementing more functionality later on
18:05 Shara ANAND: alternative to that: https://github.com/Ezhh/server_news
18:05 ANAND Shara, I'll look into it, thanks!
18:06 Shara The one you linked lacked something I needed (and I disliked the lack of a license)
18:06 Shara But it's a simple example as well, so maybe helps you
18:06 ANAND That's precisely what I want
18:07 Astrobe Hey, Shara. Now testing your mod.
18:07 Shara Astrobe: I think I'll adjust the timers to regrow them to be aligned with however long it takes farming crops to grow, but undecided yet
18:08 Astrobe Or the tree grow time?
18:09 Shara No idea what that is either.
18:09 deltasquared joined #minetest
18:10 Astrobe It's shorter than cotton and weat for sure.
18:10 Astrobe *wheat.
18:10 Shara I also want to change it so they won't appear at night
18:11 Shara So that will happen at some point. Feel free to make other suggestions though :)
18:11 Shara Or make PRs and save me work :P
18:12 ircSparky invref:add_item needs something else for it to work right?
18:12 ircSparky usually its like return itemstack or something right?
18:12 karras joined #minetest
18:14 Astrobe :-) It's less the github registring that maks me procrastinate than the fact that I'm on Windows and developping there is less pleasant.
18:14 Shara Astrobe: o excuses, I do almosta ll my modding from Windows
18:14 Shara No*
18:14 Shara Get yourself on github :P
18:16 deltasquared ircSparky: invref:add_item() you say? what are you passing it currently?
18:16 * deltasquared goes to get docs
18:16 deltasquared oh yeah and github is a nice thing too :P
18:17 ircSparky I dont think im doing anything
18:17 ircSparky https://paste.ubuntu.com/p/tDb7WpySph/
18:17 ircSparky should be the only related code
18:17 ircSparky well
18:17 ircSparky I guess i should include all the inventory references
18:17 deltasquared that looks like it should work
18:18 ircSparky hm
18:18 ircSparky then i guess the problem must be somewhere else
18:19 erudition joined #minetest
18:19 ircSparky because when i try to drop all of the content of ghost_inv, nothing happens
18:19 deltasquared ircSparky: if in doubt, write a "dump" routine which iterates through all item slots of the ghost inventory immediately after you set them there, and print them out to the debug log
18:20 deltasquared never underestimate the humble print statement. ;)
18:20 ircSparky yea
18:20 karras left #minetest
18:20 deltasquared also why isn't string.split part of standard lua... it seems such a no-brainer
18:21 deltasquared string.split("foo.bar.wat", ".")  ->  { "foo", "bar", "wat" }
18:23 fwhcat joined #minetest
18:27 karras joined #minetest
18:27 karras left #minetest
18:29 chon joined #minetest
18:41 chon_ joined #minetest
18:48 Krock deltasquared, I like your ironic quit message
18:48 Krock was about to reply on your string.split function now
18:49 chon_ left #minetest
18:50 rubenwardy Astrobe: Minetest modding on windows is easy
18:50 rubenwardy As everything is installed already
18:50 rubenwardy It's only if you need luarocks that it could be harser
18:50 rubenwardy But most mods don't
18:51 ircSparky as long as you have a decent editor for windowx
18:52 Krock nodepad
18:53 rubenwardy Well, atom.io
18:53 rubenwardy Or notepad++
18:53 rubenwardy Depending on how much of an editor you want
18:53 Krock real programmers use notepad with a proportional font
18:53 rubenwardy Or sublime or vscode
18:53 ensonic joined #minetest
18:53 Astrobe Actually it's more about git-github. But I have MSYS2 installed with fugitive for vim and perhaps Magit for Emacs. I'm just lazy I guess.
18:54 rubenwardy Git for Windows works quite well
18:54 Krock TortoiseGit was what I used back in on-Windows-developing times
18:55 rubenwardy Installing github desktop comes with that
18:55 Krock but GitHub desktop didn't support Windows XP by then :P
18:55 Krock plus, can you work with other services than github with the github client?
18:56 Krock the protocol if ofc the same but they may restrict it to keep the users on their services
18:57 rubenwardy Yes
18:57 rubenwardy You need to clone yourself though
18:58 Krock oh nice :)
19:00 rubenwardy I use gitkracken when I want to see a tree
19:02 Tux[Qyou] joined #minetest
19:02 nowhere_man joined #minetest
19:18 Wuzzy joined #minetest
19:22 Jordach joined #minetest
19:30 proller joined #minetest
19:30 ircSparky can someone tell me what's wring with this minetest.after?
19:30 ircSparky minetest.after(1, killcombatlogger(player), player)
19:30 chon joined #minetest
19:31 Astrobe Second paramater
19:31 Astrobe You must pass a function symbol
19:31 ircSparky so
19:31 Astrobe There you call the function instead.
19:31 Astrobe So it's just "killcombatlogger".
19:32 Astrobe after will call that function with the third parameter you supply.. later.
19:32 ircSparky minetest.after(1, killcombatlogger, player)?
19:33 Astrobe yep.
19:34 Pie-jacker875 joined #minetest
19:35 Astrobe alternatively, I think you could do minetest.after(1, function() killcombatlogger(player) end) but that would be worse in every way.
19:37 rubenwardy lol
19:41 Astrobe Shara: thinking about it, trees grow stupidly fast and I'll probably slow them down in my subgame. I think you'll get as many opinions about the apple timers as there are modeers interested in it.
19:42 Astrobe So I think just provide a function hook. Travelnet does that and it's very flxible.
19:43 Astrobe However, judging from how many mods I have already butchered (travelnet included), often people want to mod your mod in ways you didn't expect,
19:43 Astrobe so they have to read and edit the source anyway.
19:44 Astrobe Sometimes a crystal clear source code is better than zillions of configuration options.
19:46 rdococ Both is the best
19:50 syx left #minetest
20:00 ircSparky hm
20:00 ircSparky so objects can have their inventory
20:00 ircSparky it dosnt have to be detached
20:00 ircSparky ?
20:18 sofar I don't think so
20:18 sofar you don't want that anyway
20:23 Jordach joined #minetest
20:25 Markow joined #minetest
20:31 Raven262 joined #minetest
20:33 Pie-jacker875 joined #minetest
20:36 Astrobe Shara: As I mentioned yesterday, I made one of the monsters poop apples on the floor (don't ask). Changing for the new apple isn't a big deal for me, but if might for other mods that "produce" apples.
20:40 Shara Astrobe: won't matter, since even if other mods provide default:apple, when a player places them, they'll be replaced by the other type
20:40 troller joined #minetest
20:45 Astrobe But it's not a player in that case. It's the mob that place the apple as a node. I picked it, and it grew again.
20:45 proller__ joined #minetest
20:46 Astrobe I also have other mobs that drop default:apples and one oddity is that they go in a separate stack.
20:49 craigger joined #minetest
20:57 Astrobe I'll investigate the single-apple solution.
21:13 Pie-jacker875 joined #minetest
21:27 proller__ joined #minetest
21:37 Jordach joined #minetest
22:07 Frankenstone joined #minetest
22:08 DI3HARD139 joined #minetest
22:09 chon left #minetest
22:11 xerox1234 joined #minetest
22:11 xerox123 joined #minetest
22:19 xerox123_ joined #minetest
22:20 Will_ joined #minetest
22:27 Jordach joined #minetest
22:50 lumberJ joined #minetest
22:55 proller__ joined #minetest
23:00 Markow joined #minetest
23:13 opal im guessing joypad support is still primitive and non-configurable?
23:14 rubenwardy yes
23:14 rubenwardy I worked on that last
23:14 opal alright
23:14 opal nice that it's supported at all
23:14 rubenwardy unfortunately the IDs change on different operating systems and devices
23:14 opal just got a controller to play shit under dolphin-emu
23:15 opal gotcha, was reading the issue and kinda gathered that
23:15 rubenwardy which makes it hard to auto-detect things to bind to
23:15 rubenwardy SDL has a solution to this - there's a ZLIB licensed text file which is a database of IDs
23:15 rubenwardy so it's worth using that at some point
23:16 opal yeah for dolphin i had to configure my buttons manually since im using a ps3 controller
23:16 rubenwardy however, that won't fix joysticks not working in formspecs
23:16 opal something similar for the key menu in minetest would be nice
23:16 rubenwardy worth using a hotbinding application is probably better than Minetest's built-in support
23:16 rubenwardy not familiar with that
23:16 * rubenwardy googles
23:16 opal yeah im gonna look into qjoypad for something else too
23:16 rubenwardy aah, that dolphin
23:16 opal yeah
23:17 opal heh, i think sourceforge actually got worse
23:18 rubenwardy how can it get worse?
23:18 opal it doesnt use meta redirect now for the download page
23:18 opal so i have to enable javascript for it to download now
23:18 opal or find a way around it
23:18 opal https://github.com/panzi/qjoypad found a fork on github thats supposedly better
23:18 opal win-win
23:19 opal done what?
23:20 opal oh never mind
23:20 opal wrong chan
23:20 Exagone313 joined #minetest
23:22 MinetestBot [git] rubenwardy -> minetest/minetest: Fix description wrapping in browse online content f23dd62 https://git.io/vpCla (2018-04-25T23:19:05Z)
23:40 Cornelia joined #minetest

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