Minetest logo

IRC log for #minetest, 2017-11-09

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

All times shown according to UTC.

Time Nick Message
00:01 sovetskiy hello everybody. how to change player's inventory size, say from standard 8x4 to 8x5 or 8x6?
00:01 sovetskiy InvRef:set_size("listname", size) don't help
00:03 sofar you need to also modify the inventory formspec so that the change is visible
00:05 oOChainLynxOo joined #minetest
00:16 jas_ maybe checkout some README's to look for examples.  wuzzy had a subgame, "weird" with this changed to 9*4
00:18 sovetskiy where can I view example of that fromspec?
00:18 sovetskiy I did not see it here /usr/share/minetest/games/min​etest/mods/default/tools.lua
00:18 jas_ i think you player:set_size("main", 8*6) on_joinplayer()... and then change the formspec string as mentioned
00:19 jas_ look for "8*4" and chage to "8*6"
00:19 sovetskiy where?
00:19 jas_ well, it might be in default mod.  or maybe player_api.  look around for "8*4" and just change it and see
00:20 sovetskiy I saw all files in  /usr/share/minetest/games/minetest/mods/default/
00:20 sovetskiy I did not notice anything about player's inventory
00:23 jas_ hm, it's already there, just have to find it
00:23 jas_ and change it
00:23 jas_ look in default and player_api mods.  and look for anything saying 8*4
00:31 sovetskiy string "8*4" inside nodes.lua describing chest
00:32 rdococ Well, if you want to make chests larger too then you know where to look :P
00:33 sovetskiy well, I prefer to start with player's one
00:33 rdococ I'd say it's in the player_api mod, but I don't know for sure.
00:34 nac joined #minetest
00:34 sovetskiy there is no such default mod
00:39 sovetskiy Well, I can not find it. I had to write simple mod with only function 'minetest.register_on_punchnode'. And inside - one string 'dump(player:get_inventory_formspec())'
00:39 sovetskiy Here is what I got
00:39 sovetskiy size[8,8.6]bgcolor[#080808BB;true]bgcolor[#080808​BB;true]background[5,5;1,1;gui_formbg.png;true]\9​\9\9\9list[current_player;craft;1.75,0.5;3,3;]\
00:39 sovetskiy \9\9\9\9list[current_player;​craftpreview;5.75,1.5;1,1;]\
00:39 sovetskiy \9\9\9\9image[4.75,1.5;1,1;gui_fur​nace_arrow_bg.png^[transformR270]\
00:39 sovetskiy \9\9\9\9listring[current_player;main]\
00:39 sovetskiy \9\9\9\9listring[current_player;craft]\
00:39 sovetskiy \9\9\9\9image[0,4.75;1,1;gui_hb_bg.png]\
00:39 sovetskiy \9\9\9\9image[1,4.75;1,1;gui_hb_bg.png]\
00:39 sovetskiy \9\9\9\9image[2,4.75;1,1;gui_hb_bg.png]\
00:39 sovetskiy \9\9\9\9image[3,4.75;1,1;gui_hb_bg.png]\
00:39 sovetskiy \9\9\9\9image[4,4.75;1,1;gui_hb_bg.png]\
00:39 sovetskiy \9\9\9\9image[5,4.75;1,1;gui_hb_bg.png]\
00:39 rdococ Use a pastebin or something.
00:39 sovetskiy \9\9\9\9image[6,4.75;1,1;gui_hb_bg.png]\
00:39 sovetskiy \9\9\9\9image[7,4.75;1,1;gui_hb_bg.png]\
00:39 sovetskiy \9\9\9listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF]\9\9list[curre​nt_player;main;0,4.7;8,1;]\
00:39 sovetskiy \9\9list[current_player;main;0,5.85;8,3;8]\
00:39 sovetskiy \9
00:41 sovetskiy https://pastebin.com/v4Fd5q03
00:42 sovetskiy I don't understand a thing
00:43 o11c it's kind of sad that, as much as the rest of minetest gives up on performance, formspecs still have to specify all the numbers manually
00:47 jas_ numbers?
00:48 o11c why can't a formspec just be {{a, b, c}, {d, e, f}}
00:48 o11c where each of a,b,c specify their preferred size
00:48 jas_ you can put your data in a table
00:48 jas_ and reference the table in the formspec string
00:48 jas_ using concatenation
00:49 jas_ and update everything dynamically by putting all this in a function
00:50 jas_ i haven't tried it, but perhaps sfinv, included in minetest_game, is worth checking out.  it's a formspec api of some sort.
00:52 sovetskiy I would be nice to specify formspec like simple HTML page (HTML with structure and CSS with decoration)
00:52 jas_ https://github.com/minetest/minetest​_game/blob/master/game_api.txt#L489
00:53 jas_ i'm guessing it's for tabs.
00:54 jas_ or making whole pages, i don't know.
00:55 rmbeer joined #minetest
00:56 jas_ i believe the typical thing to do is make a show_formspec() function and parse the data, generate the string, and show it, then using register_on_player_receive_fields() to process the interface and update
00:57 jas_ (or on_receive_fields() if nodemeta)
01:01 turtleman joined #minetest
01:03 rubenwardy joined #minetest
01:05 rmbeer joined #minetest
01:08 rubenwardy jas_, sovetskiy: sfinv is for a paged inventory generally. By default it uses tabs, but that can be modified using a theming mod
01:09 sovetskiy I don't want add tabs. I just want larger size (more slots) for player inventory
01:09 rubenwardy you'll need to do set_size, and then modify the default theme to make the default size larger
01:09 rubenwardy modify the default theme -> copy sfinv.make_formspec to increase
01:09 rubenwardy size
01:10 rubenwardy I should probably make this an automatic sfinv feature
01:10 jas_ i have to admit, adjusting inventory size sounds like a neat addition to sfinv.  but it's not hard to do it manually.
01:10 rubenwardy formspecs suck though
01:10 jas_ mm formspecs
01:10 jas_ lol
01:11 rubenwardy freelikegnu, I meet one of the podcast hosts at Freenode #live
01:11 rubenwardy *met
01:12 rubenwardy Alan Pope
01:12 rubenwardy he's pope_y without the underscore in this channel
01:12 rubenwardy pretty cool
01:15 rmbeer joined #minetest
01:15 ChimneySwift joined #minetest
01:25 Guest_5828 joined #minetest
01:39 swift110 joined #minetest
01:40 jas_ nice
01:42 rmbeer is a good idea have all the source code of git with mods?
01:42 o11c parser error
01:47 rubenwardy rmbeer, ?
01:47 rmbeer i can't use minetest with mods...
01:48 rmbeer all code of lua is broken...
01:48 rubenwardy huh
01:48 rubenwardy what error?
01:48 rubenwardy what Minetest version?
01:48 rubenwardy where are you installing mods?
01:49 rmbeer i have the last from the git 0.5.0 and installing the mods in ~/.minetest/mods/
01:51 rubenwardy did you compile yourself?
01:53 o11c rmbeer: lots of people haven't tried 0.5.0 yet, you shouldn't *expect* mods to work with a prerelease
01:54 rmbeer joined #minetest
01:55 rubenwardy o11c: I use 0.5.0 for everything except when I need to play online
01:55 rubenwardy so all the mods I use are confirmed working
01:55 rubenwardy and 0.5 really shouldn't break many mods
01:56 rubenwardy rmbeer: it would be useful to know what error you get
02:16 sovetskiy `list[<inventory location>;<list name>;<X>,<Y>;<W>,<H>;<starting item index>]`
02:16 sovetskiy starting index starts from 0 or 1 ?
02:16 sovetskiy I suppose from 0
02:18 EvergreenTree joined #minetest
02:25 sovetskiy Lua does not support standard regexp, but instead its own shit! DAMN
02:34 rmbeer joined #minetest
02:37 Guest_7024 joined #minetest
02:47 o11c sovetskiy: there are at least 4 "standard regexp"
02:49 sovetskiy I know only one standard regexp -- PCRE
02:50 imr joined #minetest
02:50 imr joined #minetest
02:51 nowhere_man joined #minetest
02:51 o11c that's the least standard of the 4 I was thinking of
02:51 o11c posix BRE and ERE have the best claim
02:51 o11c followed by javascript
02:56 xerox123 joined #minetest
02:57 rmbeer joined #minetest
02:57 Sockbat joined #minetest
02:58 lumidify joined #minetest
02:59 erstazi joined #minetest
03:03 catninja joined #minetest
03:04 rmbeer rubenwardy, yes, i compiling all from the git source code
03:05 rmbeer i have much amount of errors, where must report this? in the forum?
03:14 dzho joined #minetest
03:17 rmbeer joined #minetest
03:21 xerox123 joined #minetest
03:22 bigfoot547 joined #minetest
03:22 red-001 joined #minetest
03:23 rmbeer joined #minetest
03:24 sovetskiy joined #minetest
03:36 Brackston joined #minetest
03:43 rmbeer joined #minetest
03:48 sovetskiy joined #minetest
03:50 orbea rmbeer: there is a github issue tracker
03:51 rmbeer orbea, is a little bored report one by one for 20 mods...
03:57 AlexYst joined #minetest
03:59 behalebabo joined #minetest
04:10 rubenwardy rmbeer, what error are you getting?
04:10 rubenwardy you still haven't said this :P
04:15 Guest_6674 joined #minetest
04:17 jcjordyn120 joined #minetest
04:17 riff-IRC joined #minetest
04:22 riff-IRC joined #minetest
04:27 riff-IRC joined #minetest
04:39 riff-IRC joined #minetest
04:50 riff-IRC joined #minetest
05:17 sovetskiy I have different inventory's formspecs for different worlds? why?
05:21 sovetskiy for one world player's inventory formspec is https://pastebin.com/v4Fd5q03
05:21 sovetskiy for new generated world - https://pastebin.com/tMrmppEP
05:22 sovetskiy why does it become SO SIMPLE?
05:37 sovetskiy after any action e.g. punching any node, inventory formspec becomes bigger, stranger
05:37 sovetskiy like in first pastebin
05:39 yusf joined #minetest
05:56 Wysteriary[m] joined #minetest
05:56 Milan[m] joined #minetest
05:56 fireglow[m] joined #minetest
05:56 benrob0329 joined #minetest
05:56 jfred[m] joined #minetest
05:56 sam7777[m] joined #minetest
05:56 M-JLuc joined #minetest
05:56 M-anomie joined #minetest
05:56 jcgruenhage joined #minetest
05:56 silwol joined #minetest
05:57 Anastasis joined #minetest
05:57 jbb[m] joined #minetest
05:57 ericxdu[m] joined #minetest
05:57 LNJ[Ellenjott][m joined #minetest
05:57 Etzos[m] joined #minetest
06:13 Sanskrit1ritz joined #minetest
06:15 simon8162 joined #minetest
06:15 tiwake_ joined #minetest
06:15 thePalindrome joined #minetest
06:15 LBPHacker joined #minetest
06:16 bwarden joined #minetest
06:19 _0_ joined #minetest
06:19 _0_ joined #minetest
06:21 jluc joined #minetest
06:26 VanessaE joined #minetest
06:27 Sockbat joined #minetest
06:31 sam7777[m] joined #minetest
06:32 Anastasis joined #minetest
06:54 sovetskiy can anybody answer me?
07:10 CWz joined #minetest
07:21 livethetruth joined #minetest
07:29 Out`Of`Control joined #minetest
07:32 Blo0D joined #minetest
07:41 rtjure joined #minetest
08:12 YuGiOhJCJ joined #minetest
08:12 Darcidride joined #minetest
08:32 hisforever joined #minetest
08:37 hisforever Hi my advanced trains in not loading the Engines///.'
08:40 hisforever It loads all the tracks and tools but not the Ebgines Why?
08:41 Viper did you look in debug?
08:41 Viper you need lines with errors
08:51 Sockbat joined #minetest
09:13 hisforever Thanks viper I fixed it I downloaded a new Advanced trains and took out the old one. Thanks anyway for the come back
09:13 Viper great
09:14 hisforever is there a nod for just glass blocks?
09:16 hisforever Some times I need block of glass instead of panes
09:29 LBPHacker joined #minetest
09:31 VanessaE joined #minetest
09:31 AlexYst joined #minetest
09:32 lisac joined #minetest
09:33 thePalindrome joined #minetest
09:35 Dumbeldor joined #minetest
09:35 nullawk joined #minetest
09:37 grumble joined #minetest
09:38 YuGiOhJCJ joined #minetest
09:38 rom1504 joined #minetest
09:40 orbea joined #minetest
09:42 ShadowBot joined #minetest
09:42 MinetestBot ShadowBot: Oct-29 11:38 UTC <w_laenger> ‮
09:45 Someguy123 joined #minetest
10:25 basicer joined #minetest
10:29 YuGiOhJCJ joined #minetest
10:32 vifino joined #minetest
10:54 jcjordyn120 joined #minetest
10:54 riff-IRC joined #minetest
11:20 Sockbat joined #minetest
11:28 Guest_5401 joined #minetest
11:33 YuGiOhJCJ joined #minetest
11:37 Jordach joined #minetest
11:42 Fixer joined #minetest
11:43 EvergreenTree joined #minetest
11:51 corvus_ joined #minetest
11:51 lisac_ joined #minetest
12:04 Hirato joined #minetest
12:06 Sockbat joined #minetest
12:10 jas_ !server dcbl
12:10 MinetestBot jas_: dcbl | dcbl.duckdns.org | Clients: 0/20, 0/1 | Version: 0.5.0-dev / dcbl | Ping: 117ms
12:10 jas_ Fell monsters to get XP, level up to increase Max HP (max level 10/hp 200).  Bug reports can go here: https://github.com/jastevenson303/dcbl/issues
12:11 rtjure joined #minetest
12:15 jluc these adv trains look great
12:22 Sockbat joined #minetest
12:31 deltasquared joined #minetest
12:41 jcjordyn120 joined #minetest
12:41 riff-IRC joined #minetest
12:45 ashtrayoz joined #minetest
12:55 lumberJ joined #minetest
13:05 Out`Of`Control joined #minetest
13:07 ashtrayoz joined #minetest
13:11 Guest_5401 joined #minetest
13:12 ashtrayoz left #minetest
13:19 Tux[Qyou] joined #minetest
13:21 Sockbat joined #minetest
13:21 deltasquared joined #minetest
13:24 Sockbat joined #minetest
13:31 nac joined #minetest
13:40 Sockbat joined #minetest
13:47 Sockbat joined #minetest
13:48 jimvideo joined #minetest
14:00 Sockbat joined #minetest
14:00 ThomasMonroe joined #minetest
14:03 Tazy joined #minetest
14:20 proller joined #minetest
14:22 riff-IRC joined #minetest
14:22 jcjordyn120 joined #minetest
14:24 Wuzzy joined #minetest
14:28 antims joined #minetest
14:40 CalebDavis joined #minetest
14:46 ensonic joined #minetest
14:49 ashtrayoz joined #minetest
14:51 draco_kun joined #minetest
14:54 RobbieF joined #minetest
14:54 RobbieF left #minetest
14:58 jcjordyn120 joined #minetest
14:58 riff-IRC joined #minetest
15:04 rubenwardy I really wish someone would give them better textures
15:04 rubenwardy they look very odd
15:19 rdococ there's a new raycast function?
15:40 riff-IRC joined #minetest
15:40 erstazi joined #minetest
15:41 jcjordyn120 joined #minetest
16:11 Hackberry joined #minetest
16:13 riff-IRC joined #minetest
16:14 illwieckz joined #minetest
16:16 jcjordyn120 joined #minetest
16:47 riff-IRC joined #minetest
16:53 jcjordyn120 joined #minetest
17:07 ShadowNinja joined #minetest
17:39 Tux[Qyou] joined #minetest
17:41 Darcidride_ joined #minetest
17:45 riff-IRC joined #minetest
17:45 ruskie joined #minetest
17:45 jcjordyn120 joined #minetest
17:56 twoelk joined #minetest
17:58 Calinou !server europe
17:58 MinetestBot Calinou: Calinou [Europe/Paris] - Default password: 123 | hugo.pro | Clients: 0/32, 0/1 | Version: 0.4.17 / minetest_game | Ping: 12ms
18:02 ensonic joined #minetest
18:04 sonicpp joined #minetest
18:06 draco_kun !server
18:06 MinetestBot draco_kun: Paceflat | paceflat.ddns.net | Clients: 1/50, 0/2 | Version: 0.4.16 / minetest | Ping: 34ms
18:06 draco_kun !server la
18:06 MinetestBot draco_kun: Capture the Flag (Official!) | ctf.rubenwardy.com | Clients: 35/60, 24/54 | Version: 0.4.16 / capturetheflag | Ping: 92ms
18:22 Telesight joined #minetest
18:25 CWz joined #minetest
18:32 Sockbat joined #minetest
18:32 riff-IRC joined #minetest
18:33 jcjordyn120 joined #minetest
18:33 Krock joined #minetest
18:50 riff-IRC joined #minetest
18:52 jcjordyn120 joined #minetest
18:54 YuGiOhJCJ joined #minetest
18:54 allonphone joined #minetest
18:54 jas_ https://twitch.tv/jastvn
18:54 deltasquared joined #minetest
18:58 sofar Do you have an ego? Can't stand losing to other players? Always need to compare yourself to other players? The Inside the Box server now has constantly updating player/builder rankings! Come play and try to beat other players in beating the ranks! More info: http://minetest.foo-projects.org/rankings.html! Batteries sold separately. Not a major source of vitamin C.
19:00 Cerise joined #minetest
19:00 Cerise joined #minetest
19:00 deltasquared I just thought of a catchphrase for MT now, "now voxel game addicts can have their computing freedom too!"
19:00 deltasquared or GNU freedom, whichever floats your boat
19:04 [k00l]px joined #minetest
19:11 sofar my next OSS project logo will be an art drawing of a savanna predator ripping apart a GNU
19:12 swift110 joined #minetest
19:14 Calinou sofar: look into setting up HTTPS for that subdomain :)
19:15 sofar should be 2 minutes work, I don't really care too much, it's just static content?
19:15 jcjordyn120 joined #minetest
19:15 riff-IRC joined #minetest
19:15 rubenwardy biggest lie ever: http://foo-projects.org/
19:15 sofar heck I link images from imgur directly
19:15 Calinou sure, but HTTPS (with HTTP/2) is better in every possible way
19:15 rubenwardy HTTPS makes the site faster
19:15 Calinou and imgur supports HTTPS :P
19:15 Calinou yes, HTTP/2 is faster (or as fast) as HTTP 1.1
19:15 Calinou (HTTP/2 implies HTTPS in all browsers, right now)
19:15 sofar rubenwardy: hahaha, yeah, temporary on a geologic scale ;)
19:24 sovetskiy joined #minetest
19:29 sovetskiy Hello. In lua_api doc it is recommended to change player's inventory formspec inside on_joinplayer event. I did it. But no changes take effect inside this function. I had 8*4 inventory like before. Besides, before any action formspec (punch or dig any node) has very simple form (just one string). After any action made inventory formspec becomes massive (many strings), overriding them take effect on view of inventory at last. Why is that? How and
19:29 sovetskiy when should one change inventory view?
19:30 rubenwardy make sure to disable sfinv if you're using setinvformspec manaully
19:31 sovetskiy what is  setinvformspec? I do not use it.
19:31 rubenwardy player:set_inventory_formspec
19:32 sovetskiy yes I use it. I get formspec by using player:get_inventory_formspec, then change string using lua patterns. Then use player:get_inventory_formspec(new_string)
19:33 sovetskiy s/get/set
19:33 sovetskiy I do not use any thing with sfinv* prefix
19:39 sovetskiy here is my code https://pastebin.com/GpsrdqaG
19:44 riff-IRC joined #minetest
19:44 jcjordyn120 joined #minetest
20:07 Darcidride_ joined #minetest
20:10 ashtrayoz joined #minetest
20:11 ashtrayoz left #minetest
20:48 Darcidride_ joined #minetest
20:55 nac joined #minetest
20:58 riff-IRC joined #minetest
20:59 jcjordyn120 joined #minetest
21:15 swift110 joined #minetest
21:35 jcjordyn120 joined #minetest
21:36 riff-IRC joined #minetest
22:01 EvergreenTree joined #minetest
22:05 Taose joined #minetest
22:26 allonphone joined #minetest
22:32 allonphone joined #minetest
22:32 jcjordyn120 joined #minetest
22:32 riff-IRC joined #minetest
22:40 allonphone joined #minetest
22:40 EvergreenTree joined #minetest
22:58 jcjordyn120 joined #minetest
22:58 riff-IRC joined #minetest
23:18 twoelk|2 joined #minetest
23:22 swift110 joined #minetest
23:30 EvergreenTree joined #minetest
23:42 sovetskiy joined #minetest
23:51 allonphone joined #minetest

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