Time |
Nick |
Message |
00:13 |
|
liceDibrarian joined #minetest |
00:17 |
|
proller__ joined #minetest |
00:25 |
|
Dacmot joined #minetest |
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 |
<luatic> 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 |
<luatic> 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? |
01:05 |
|
SFENCE joined #minetest |
01:05 |
|
fling joined #minetest |
01:08 |
|
fling joined #minetest |
01:36 |
|
SFENCE joined #minetest |
02:11 |
|
SFENCE joined #minetest |
02:34 |
|
Verticen joined #minetest |
02:47 |
|
SFENCE joined #minetest |
02:50 |
|
YuGiOhJCJ joined #minetest |
02:55 |
|
YuGiOhJCJ joined #minetest |
03:01 |
|
SFENCE joined #minetest |
03:17 |
|
SFENCE joined #minetest |
04:00 |
|
MTDiscord joined #minetest |
04:04 |
|
SFENCE joined #minetest |
04:32 |
|
gregon joined #minetest |
04:47 |
|
fling joined #minetest |
04:48 |
|
lissobone joined #minetest |
04:48 |
lissobone |
hii guyzz/girlszzsm how r u diong (doing) |
04:52 |
|
fling joined #minetest |
04:56 |
|
tarsovbak joined #minetest |
05:09 |
|
tarsovbak joined #minetest |
05:10 |
|
fling_ joined #minetest |
05:16 |
|
v-rob joined #minetest |
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:28 |
|
mrkubax10 joined #minetest |
07:48 |
sfan5 |
Dacmot: yes, grouping does not replace escaping |
08:04 |
|
jaca122 joined #minetest |
08:07 |
|
lemonzest joined #minetest |
08:44 |
|
fling joined #minetest |
08:55 |
|
fling joined #minetest |
08:59 |
|
fling joined #minetest |
09:47 |
|
Izaya left #minetest |
09:49 |
|
Izaya joined #minetest |
10:03 |
|
Lunatrius` joined #minetest |
10:11 |
|
TomTom_ joined #minetest |
10:18 |
|
qqq joined #minetest |
10:22 |
|
sys4 joined #minetest |
11:16 |
|
definitelya joined #minetest |
11:17 |
|
Glaedr joined #minetest |
11:21 |
|
proller__ joined #minetest |
11:31 |
|
mrkubax10 joined #minetest |
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 |
11:50 |
|
imi joined #minetest |
11:53 |
|
grorp joined #minetest |
12:06 |
|
Boingo joined #minetest |
13:12 |
|
sys4 joined #minetest |
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? |
14:18 |
|
flux__ joined #minetest |
14:19 |
|
est31 joined #minetest |
14:23 |
|
est31 joined #minetest |
14:36 |
|
SFENCE joined #minetest |
15:13 |
|
TomTom_ joined #minetest |
16:06 |
sfan5 |
Dacmot: looks correct. how does your lua code look? |
16:10 |
|
Verticen joined #minetest |
16:20 |
|
Desour joined #minetest |
16:29 |
|
Talkless joined #minetest |
16:44 |
|
s20 joined #minetest |
16:50 |
|
v-rob joined #minetest |
16:54 |
|
Fleckenstein joined #minetest |
17:00 |
|
mrkubax10 joined #minetest |
17:13 |
|
LizzyFleck joined #minetest |
17:27 |
|
s20 joined #minetest |
17:40 |
|
sometalgoo left #minetest |
17:49 |
|
s20 joined #minetest |
17:50 |
|
SFENCE joined #minetest |
17:51 |
|
v-rob joined #minetest |
18:10 |
|
Izaya left #minetest |
18:13 |
|
Izaya joined #minetest |
18:13 |
|
Izaya left #minetest |
18:16 |
|
Izaya joined #minetest |
18:16 |
|
Izaya left #minetest |
18:19 |
|
Izaya joined #minetest |
18:19 |
|
Izaya left #minetest |
18:19 |
|
s20_ joined #minetest |
18:22 |
|
Izaya joined #minetest |
18:22 |
|
Izaya left #minetest |
18:25 |
|
Izaya joined #minetest |
18:25 |
|
Izaya left #minetest |
18:28 |
|
Izaya joined #minetest |
18:32 |
|
LizzyFleck joined #minetest |
18:44 |
|
sys4_ joined #minetest |
19:39 |
|
big-MAC joined #minetest |
19:49 |
|
definitelya joined #minetest |
20:05 |
|
jaca122 joined #minetest |
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? |
21:59 |
|
bdju joined #minetest |
22:28 |
|
v-rob joined #minetest |
22:32 |
|
panwolfram joined #minetest |
22:46 |
|
illwieckz joined #minetest |
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:33 |
|
samuel joined #minetest |
23:35 |
|
AltiusGames joined #minetest |
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 |
23:46 |
|
SuperStarSonic joined #minetest |
23:51 |
|
SuperStarSonic joined #minetest |
23:53 |
|
Cash_Moni joined #minetest |
23:53 |
|
v-rob joined #minetest |