Time |
Nick |
Message |
01:03 |
|
Can0xfBows joined #minetest |
01:50 |
|
Thermoriax joined #minetest |
03:21 |
|
YuGiOhJCJ joined #minetest |
04:00 |
|
MTDiscord joined #minetest |
04:01 |
|
ireallyhateirc joined #minetest |
04:06 |
|
Blockhead256 joined #minetest |
04:28 |
|
mdhughes_ joined #minetest |
05:11 |
|
peterz joined #minetest |
05:52 |
|
gregon joined #minetest |
06:31 |
|
peterz joined #minetest |
06:36 |
|
peterz joined #minetest |
06:41 |
|
peterz joined #minetest |
07:50 |
|
Juri joined #minetest |
08:12 |
|
tarsovbak joined #minetest |
09:00 |
|
Road_Killer joined #minetest |
09:11 |
|
___nick___ joined #minetest |
09:32 |
|
Leopold joined #minetest |
09:36 |
|
Desour joined #minetest |
09:52 |
|
___nick___ joined #minetest |
09:54 |
|
___nick___ joined #minetest |
11:53 |
|
boingman joined #minetest |
13:11 |
|
filex joined #minetest |
13:12 |
|
filex joined #minetest |
13:18 |
|
shaft joined #minetest |
13:19 |
shaft |
I need help. Do nested escape sequences work? I wrote core.colorize("#ff0000",S("@1 skill degraded!", S(skill.name))) but got errors |
13:19 |
sfan5 |
you cannot nest S() |
13:19 |
sfan5 |
or actually |
13:19 |
shaft |
What do I do instead? |
13:19 |
sfan5 |
maybe you can |
13:20 |
sfan5 |
what are those "errors" you got? |
13:20 |
shaft |
Ignoring escape sequence 'Trangedweapons' in translation |
13:20 |
rubenwardy |
You should be able to nest translations |
13:21 |
rubenwardy |
I'm guessing it works without the colorize? |
13:22 |
shaft |
No |
13:25 |
shaft |
The skill.name translation works and it outputs before showing the error but the outer one stays in english |
13:32 |
shaft |
Still there? |
13:39 |
MTDiscord |
<jordan4ibanez> Hello, I am here now |
13:46 |
shaft |
I changed it to minetest.colorize("#ff0000", S(skill.name)..S(" skill degraded!") ) Again skill name shows up but the other part doesn't. |
13:46 |
shaft |
I mean not at all. Not even in english |
13:46 |
shaft |
skill degraded!=-Geschick mit verschlechtert! is the translation |
13:49 |
MTDiscord |
<jordan4ibanez> Have you tried to send these into two accumulator variables and concat them after? |
13:50 |
shaft |
I double escaped it! skill.name already had S(applied) |
13:51 |
shaft |
* S() applied |
13:53 |
MTDiscord |
<paradust> there's an extra space in front of "skill degraded" |
13:54 |
MTDiscord |
<paradust> and if that still doesn't work, maybe check to see if the ! is causing any issue |
13:55 |
MTDiscord |
<paradust> (tbh i'm not familiar with how translations work) |
13:58 |
MTDiscord |
<jordan4ibanez> Shift right, shift left, should sheer the spaces off |
14:08 |
|
dabbill joined #minetest |
14:32 |
shaft |
paradust, it works. I essentially did var=S("string") S(var) and didn't notice it. |
14:34 |
shaft |
How do I remove a key from player meta? |
14:36 |
shaft |
An int in my case. Do I set it to 0 or nil? |
14:41 |
|
Road_Killer joined #minetest |
14:42 |
MTDiscord |
<warr1024> To remove a field from meta, set_string() it too "" |
14:42 |
MTDiscord |
<warr1024> setting it to 0 doesn't actually delete it, and I don't think you can set to nil |
14:42 |
MTDiscord |
<warr1024> meta values are all stringly typed; the get/set int/float/etc methods are just wrappers |
14:43 |
shaft |
Okay thanks |
15:36 |
|
v-rob joined #minetest |
15:52 |
|
___nick___ joined #minetest |
15:55 |
|
___nick___ joined #minetest |
16:29 |
|
jaca122 joined #minetest |
17:24 |
|
Talkless joined #minetest |
17:35 |
|
ireallyhateirc joined #minetest |
17:41 |
|
kamdard joined #minetest |
18:03 |
|
v-rob joined #minetest |
18:13 |
|
jaca122 joined #minetest |
18:59 |
|
jaca122 joined #minetest |
19:03 |
|
Hanicef joined #minetest |
19:12 |
|
v-rob joined #minetest |
19:57 |
|
kamdard joined #minetest |
21:59 |
|
cation joined #minetest |
22:33 |
|
panwolfram joined #minetest |
22:54 |
|
filex joined #minetest |
23:05 |
|
Eragon joined #minetest |
23:39 |
|
boingman joined #minetest |
23:51 |
|
v-rob joined #minetest |