IRC logs for #openttd on OFTC at 2025-06-29
⏴ go to previous day
00:03:07 *** WormnestAndroid has joined #openttd
00:26:46 *** dh1 has quit IRC (Quit: My Mac has gone to sleep. ZZZzzz…)
00:44:57 *** Tirili has quit IRC (Remote host closed the connection)
01:57:37 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
01:58:31 *** WormnestAndroid has joined #openttd
02:18:30 *** gnu_jj_ has joined #openttd
02:21:49 *** gnu_jj has quit IRC (Ping timeout: 480 seconds)
03:02:06 *** WormnestAndroid has quit IRC (Remote host closed the connection)
03:02:08 *** WormnestAndroid has joined #openttd
03:03:34 *** Wormnest has joined #openttd
04:29:49 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
04:29:50 *** WormnestAndroid has joined #openttd
04:30:01 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
04:30:02 *** WormnestAndroid has joined #openttd
04:30:05 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
04:42:47 *** WormnestAndroid has joined #openttd
04:45:49 <DorpsGek> - Update: Translations from eints (by translators)
06:57:05 *** WormnestAndroid has quit IRC (Remote host closed the connection)
06:57:07 *** WormnestAndroid has joined #openttd
08:19:54 *** mindlesstux has joined #openttd
09:34:55 *** Flygon has quit IRC (Remote host closed the connection)
09:55:46 *** reldred has quit IRC (Quit: User went offline on Discord a while ago)
10:10:39 *** greeter has quit IRC (Remote host closed the connection)
10:21:01 *** greeter has joined #openttd
11:53:12 * pickpacket is looking at string code
11:53:59 <pickpacket> I wanna fix that string whitespace issue I've seen where "T" and "T " are considered different strings for company naming purposes
11:54:09 <pickpacket> despite looking identical in the UI
11:57:05 <pickpacket> oh no... the goto code...
11:58:58 <pickpacket> can several companies have the same president name?
12:01:46 <pickpacket> nvm. I'll get to that when I get to it
12:05:58 <peter1138[d]> pickpacket: Simplest way is to just trim the string in the command
12:30:04 <pickpacket> I don't think the whole goto shenanigans should be too hard to fix either, actually. Will see what I can do
12:33:10 <peter1138[d]> Not using gotos makes that a bit more complex.
12:34:41 <pickpacket> not sure it does. I'll tinker with it, anyway.
12:35:26 <pickpacket> but string stripping first
13:16:13 <_glx_> most "goto" are to simplify reentrant loops
13:26:50 *** WormnestAndroid has quit IRC (Remote host closed the connection)
13:27:09 *** WormnestAndroid has joined #openttd
13:51:53 <peter1138[d]> Hm. I wonder how / if I should / could make a font-change not be a separate font run.
14:21:23 <michi_cc> A font change has to be a separate run, otherwise the layouter could make invalid ligatures at the transition point.
14:22:10 <michi_cc> A some languages like e.g. arabic rely heavily on ligatures and context dependent glyphs.
14:51:23 *** aperezdc has quit IRC (Remote host closed the connection)
15:02:03 <peter1138[d]> Ugh, the different-fonts-have-different sizes issue though 😦
15:11:25 *** Wormnest has joined #openttd
15:28:35 <peter1138[d]> 30 is ... somewhat more than 20. :/
15:31:01 *** aperezdc has joined #openttd
15:36:17 <pickpacket> peter1138[d]: just a smidge more
15:36:39 <peter1138[d]> Hmm, I wonder if that's partly the size-adjustment thing.
15:40:54 <peter1138[d]> Apart from the slightly iffy alignment (due to the size difference) the actual glyph isn't actually any bigger.
15:42:09 *** APTX has quit IRC (Quit: Farewell)
15:46:57 <andythenorth> wonder why autoreplace fails reasonably often for RVs
15:47:07 <andythenorth> seems they don't pathfind to a depot, afaict
15:47:40 <andythenorth> do RVs need a depot in their orders still?
15:48:44 <andythenorth> hmm no it's a bug in HEQS
15:48:57 <peter1138[d]> Alright, I guess I need to align by the red baseline.
15:49:50 <peter1138[d]> So font size is max(ascender) + max(descender)
15:49:57 <peter1138[d]> Rather than max(ascender + descender)
16:36:53 *** Smedles has joined #openttd
16:41:07 <peter1138[d]> So that aligns different fonts better, at the expense of aligning things oddly in the cell.
16:50:10 <peter1138[d]> Hmm, I wonder if vertical alignment can be set according to the sprite font.
17:35:59 <jfkuayue> I can’t use ChillRoundF, it says “missing glyphs”
17:37:06 *** su1phur has joined #openttd
17:37:06 <su1phur> Can anyone give me a shout on why the running cost is half of what it is measured (manually), whereas the purchase cost is correct?
17:37:06 <su1phur> Or ideally the formula the game uses to calculate purchase/running costs, if possible
17:39:38 <jfkuayue> IIRC the running cost is 14000 (British pounds) * factor / 256, if running cost setting is set to normal
17:43:36 <jfkuayue> Oh you may consider “shifting” the running cost basis by the factor of 2 at the starting (header) of the nml file
17:49:40 <jfkuayue> If a NewGRF defines an engine (a steam one, for example), and the base PR_RUNNING_TRAIN_STEAM is explicitly set, then the running costs of all steam engines in this NewGRF will be multiplied by 2^{the number you have set}
17:54:23 <peter1138[d]> Ah, hmm, the suitable baseline for the srite font differs from the scalable font.
17:57:06 <peter1138[d]> Although... it's still annoying that the font height / line height changes when the CJK pops in.
18:27:27 <peter1138[d]> Hmm, probably "illegal"
18:29:54 <peter1138[d]> Hmm, interesting.
18:30:05 *** WormnestAndroid has quit IRC (Remote host closed the connection)
18:30:06 *** WormnestAndroid has joined #openttd
18:30:55 <peter1138[d]> This is 1) using the new alignment code, 2) ignoring the font height and using the default.
18:32:18 <peter1138[d]> Because everything is aligned to the base line, this "fixes" that ancient "bug" that most truetype fonts have different alignment to what OpenTTD expects.
18:34:06 *** gelignite has joined #openttd
18:34:13 <peter1138[d]> That is probably too cramped.
18:35:41 <michi_cc> For most fonts I personally like something like a 1.1 - 1.2 factor for line height (like e.g. when doing a good looking Word or something).
18:48:59 <peter1138[d]> Yeah, but the traditional OpenTTD interface does not do that.
19:30:31 <locosage> unless I missed something that kinda involves learning how to set up actions
20:38:50 <pickpacket> andythenorth: NOW????
20:46:53 *** WormnestAndroid has quit IRC (Remote host closed the connection)
20:47:00 *** WormnestAndroid has joined #openttd
20:49:17 <truebrain> If he wants lunch now, why not?!
20:49:32 <truebrain> We don't judge .. well, maybe a little 😛
20:50:09 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
20:51:24 <michi_cc> There's always lunch time somewhere 😛
20:54:13 <pickpacket> ugh... it's Monbday tomorrow
21:00:40 <andythenorth> I had ginger biscuits
21:30:25 *** keikoz has quit IRC (Ping timeout: 480 seconds)
21:45:35 <pickpacket> Oh! I have VSCode on my work computer. Can I cross compile with that?
21:46:41 <peter1138[d]> VS Code is not a compiler.
21:47:22 *** tokai|noir has joined #openttd
21:47:22 *** ChanServ sets mode: +v tokai|noir
21:51:17 <pickpacket> meh. I'll see about getting a VM somewhere for a few hours
21:54:16 *** tokai has quit IRC (Ping timeout: 480 seconds)
22:56:37 <_glx_> locosage: all openttd forks should have the "Release" workflow in "Actions" tab, it can be triggered manually with "Run workflow" button and you'll get many artifacts
continue to next day ⏵