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: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/minetest/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 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[#080808BB;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_furnace_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[current_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: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: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: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: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[;;,;,;]` 02:16 sovetskiy starting index starts from 0 or 1 ? 02:16 sovetskiy I suppose from 0 02:25 sovetskiy Lua does not support standard regexp, but instead its own shit! DAMN 02:47 o11c sovetskiy: there are at least 4 "standard regexp" 02:49 sovetskiy I know only one standard regexp -- PCRE 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 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:50 orbea rmbeer: there is a github issue tracker 03:51 rmbeer orbea, is a little bored report one by one for 20 mods... 04:10 rubenwardy rmbeer, what error are you getting? 04:10 rubenwardy you still haven't said this :P 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 06:54 sovetskiy can anybody answer me? 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 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:42 MinetestBot ShadowBot: Oct-29 11:38 UTC ‮ 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:15 jluc these adv trains look great 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? 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: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:54 jas_ https://twitch.tv/jastvn 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 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:11 sofar my next OSS project logo will be an art drawing of a savanna predator ripping apart a GNU 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 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: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