Time Nick Message 00:29 Dacmot Is is possible to resize an image before combining it into a texture of a different size? I tried [combine:88x88:0,0=frame.png:4,4=default_tool_woodpick.png^[resize:80x80 but it doesn't work. 00:30 MTDiscord Dacmot: You need to escape the ^ and : special characters of the inner [resize texture modifier. See https://github.com/minetest/minetest_docs/blob/master/doc/texture_modifiers.adoc#argument-escaping. 00:33 Dacmot Great! Thanks. 00:35 MTDiscord np 00:52 Dacmot Hmmm. Maybe there's something I'm not getting. I used the escape_argument() function to produce this string, which still doesn't resize [combine:88x88:0,0=frame.png:4,4=default_tool_woodpick.png)\^[resize\:80x80 00:54 Dacmot [combine:88x88:0,0=frame.png:4,4=(default_tool_woodpick.png)\^[resize\:80x80 00:55 Dacmot If I put parentheses around the (png\^[resize) I get an error saying it can't match the opening '(' 00:55 Dacmot Any ideas? 04:48 lissobone hii guyzz/girlszzsm how r u diong (doing) 06:51 swift110-mobile Hey lissobone 06:55 lissobone hi? 06:56 swift110-mobile I’m doing pretty good how about you? 06:58 lissobone i feel fantastic 06:59 swift110-mobile That’s good so do I what are you up to? 07:00 lissobone i have recently gone through becoming aware of the fact that i can be aware and that i am aware 07:00 lissobone approximately then all fun stuff started 07:00 lissobone i have reached a point when i can be aware of the fact that i do not exist and be completely okay with it 07:00 lissobone what about you? 07:48 sfan5 Dacmot: yes, grouping does not replace escaping 11:41 Dacmot sfan5: I tried escaping, but it's not working. Is there something wrong with this string printed by minetest.log? [combine:88x88:0,0=whynot_awards_frame.png:4,4=default_tool_woodpick.png\^[resize\:80x80 13:12 swift110-mobile lissobone: I have no idea what you were talking about 13:24 lissobone i am sorry for confusing you 13:34 imi sfan5: https://github.com/Uberi/Minetest-WorldEdit/pull/243 some feedback would be appreciated. do you want my code to return nil,return on success? and "errormessage" on failure? 13:36 imi or maybe do you want me to introcude this as a new function in worldedit returning (true|false),whatever so that the old code with the old name remains intact and act as it always did 13:47 swift110-mobile lissobone: it’s cool what are you up to today? 16:06 sfan5 Dacmot: looks correct. how does your lua code look? 20:35 Mantar I have a player whose chat keeps bugging out. it sometimes works for a bit after log in, but even then it's not long before all the letters start getting out of order. It's bizarre. Has anybody seen that happen before? 23:06 Dacmot sfan5: The combine string is passed to the register_awards() function as the "icon" field (https://gitlab.com/rubenwardy/awards/-/blob/master/src/api_awards.lua?ref_type=heads) 23:07 Dacmot I see that it's then resized with local icon = (awdef.icon or "awards_unknown.png") .. "^[resize:32x32" 23:08 Dacmot But based on the logs, it seems to completely ignore my (escaped) resize 23:08 Dacmot 2024-04-02 19:02:51: INFO[Main]: Adding "frame.png" to combined (0,0) 23:08 Dacmot 2024-04-02 19:02:51: INFO[Main]: Adding "default_tool_woodpick.png" to combined (4,4) 23:09 Dacmot From [combine:88x88:0,0=frame.png:4,4=default_tool_woodpick.png\^[resize\:80x80 23:10 Dacmot Other logs with resize seem to show it, like 23:10 Dacmot 2024-04-02 19:02:34: INFO[Main]: Adding "default_wood.png^[colorize:#0F0:255^[resize:14x14" to combined (1,1) 23:17 Dacmot Oh. I was looking in the wrong place. It's actually put in a formspec = formspec .. "image[0.45,0;3.5,3.5;" .. sdef.icon .. "]" (https://gitlab.com/rubenwardy/awards/-/blob/master/src/gui.lua?ref_type=heads) 23:19 Dacmot do I need to minetest.formspec_escape() it, or escape the whole texture modifier (combine) one more level? 23:23 Dacmot Well. Doing formspec = formspec .. "image[0.45,0;3.5,3.5;" .. minetest.formspec_escape(sdef.icon) .. "]" seems to have done the trick. I'll submit a PR to rubenwardy. 23:23 Dacmot Thanks! 23:37 SuperStarSonic Hello, it's my first time in IRC, I'm just testing to see if I know what I'm doing. 23:37 Mantar looks like you do! 23:37 MTDiscord <.superstarsonic> Ah, it works