IRC logs for #openttd on OFTC at 2024-12-20
⏴ go to previous day
00:04:34 *** Wormnest has joined #openttd
00:54:26 <_glx_> ```Warning: /home/runner/work/OpenTTD/OpenTTD/src/core/pool_type.hpp:263:53: warning: ‘*(Vehicle*)this.Vehicle::Pool<Vehicle, unsigned int, 512, 1044480>::PoolItem<(& _vehicle_pool)>.Pool<Vehicle, unsigned int, 512, 1044480>::PoolItem<(& _vehicle_pool)>::index’ is used uninitialized [-Wuninitialized]
00:54:26 <_glx_> 263 | assert(pn == Tpool->Get(pn->index));
00:54:34 <_glx_> this warning is so weird
00:55:23 <_glx_> inline void operator delete(void *p)
00:55:23 <_glx_> if (p == nullptr) return;
00:55:23 <_glx_> Titem *pn = static_cast<Titem *>(p);
00:55:25 <_glx_> assert(pn == Tpool->Get(pn->index));
00:55:25 <_glx_> Tpool->FreeItem(pn->index);
00:55:55 <_glx_> but it warns only for the assert, and only in release (using our custom assert)
01:51:45 <_glx_> hmm if I comment the assert it warns on FreeItem()
01:59:07 *** bohaska has joined #openttd
01:59:07 <bohaska> is there a particular reason why all map sizes have to be in multiples of 2
02:57:07 <_glx_> computers like power of 2
03:16:27 *** gnu_jj_ has joined #openttd
03:19:36 *** gnu_jj has quit IRC (Ping timeout: 480 seconds)
03:40:56 *** D-HUND has quit IRC (Ping timeout: 480 seconds)
03:41:34 *** Wormnest has quit IRC (Quit: Leaving)
04:44:24 <DorpsGek> - Update: Translations from eints (by translators)
05:53:11 <peter1138> I should close that, it doesn't work
05:53:44 <wensimehrp> > We might even want to consider automatically adding {ZWSP} in strgen whenever one of the non-ASCII punctuations comes up in the string and there's no colour command after it.
05:55:47 <wensimehrp> wensimehrp: or maybe I shouldn't send this message. This should be handled by the layouter anyways
07:43:53 *** Flygon has quit IRC (Read error: Connection reset by peer)
08:22:03 <andythenorth> is the first meal of the day 'lunch'?
08:33:59 <LordAro> andythenorth: i have coco pops
08:46:27 <andythenorth> non-standard, but eh
08:46:30 <andythenorth> everything else ran out
08:51:17 <belajalilija> I’m having sandwich
08:54:23 <wensimehrp> Vanilla Bing qi ling
09:15:33 <Artea> kernel bagel with php sausage
09:22:53 <Artea> andythenorth, sorry as you... but you already tried Railroad Tycoon ?
09:26:18 <belajalilija> peter1138: I think it means vanilla ice cream
10:08:49 <andythenorth> Artea: we what now?
10:36:56 *** tokai has quit IRC (Quit: c('~' )o)
10:41:26 *** SigHunter has joined #openttd
11:32:59 <_glx_> Pff I fix releases and translators break it
12:06:26 <Artea> andythenorth: * sorry to ask, but you ever played Railroad Tycoon ?
12:13:01 <xarick> Okay, I see what I need to do
12:14:25 <xarick> kinda like I did for my other attempt
12:21:09 <xarick> E:\OpenTTD Visual Studio\SamuXarick\OpenTTD\src\lang\danish.txt(2598): warning : Unwanted UTF-8 character U+200B in sequence 'ingen af de anmodede godkendelsesmetoder er tilgængelige' (FATAL)
12:23:06 *** florafex has joined #openttd
12:23:06 <florafex> xarick: you can temporarily change that line in danish.txt if you just need it to build for other reasons
12:24:10 <xarick> what is the unwanted character?
12:25:47 <florafex> two zero width spaces between 'af' and 'de'
12:26:47 <xarick> oh, interesting, there's something fishy there
12:40:59 *** ChanServ sets mode: +v tokai
12:42:39 <florafex> question that i imagine an experienced ttd dev might be able to answer:
12:42:39 <florafex> if i have just an EngineID, is there any reasonable way to know the length of the vehicle it represents, factoring in articulation? Specifically this'd be about trains - I'm assuming not, due to how articulated vehicles are, but I figured I'd ask anyway
12:44:51 <florafex> i say 'reasonable' as i wanted to sort the train list by length, and i'm assuming "instantiating a train of it and measuring the resulting train" enters the realm of 'unreasonable' - and i'm guessing this is a contributor as to why the game *doesn't* have length as a sort option
12:45:14 *** kuka_lie has joined #openttd
12:46:19 <belajalilija> i was just thinking about length earlier
12:46:54 <belajalilija> something that states the length in tiles on the purchase menu would be neat
12:51:42 <_glx_> There's no easy way to get engine length, as it can depend on callbacks and they are only for vehicles
12:52:58 <peter1138> Yup, lots of things are dynamic. This is also why sometimes the displayed information isn't what you get.
12:53:25 <florafex> figures. thanks for the quick replies you two
12:57:43 <andythenorth> Artea: yes lots, 1, 2 and 3
13:50:59 <Artea> I bought the Locomotive Tycoon and still didn't played lol
14:12:27 <peter1138> I've not heard of Locomotive Tycoon.
14:45:55 <peter1138> For me, VS Code helpfully shows nothing because it's a zero-width space...
14:46:16 <_glx_> VS showed nothing when I removed the first one
14:52:45 <belajalilija> looks like danish or norwegian
15:06:51 <Rubidium> _glx_: regarding the pool warning... the compiler might think that the value is not initialised in case the constructor fails (new called => constructor throws => delete called). If that's the case, maybe making the constructor noexcept solves the issue?
15:15:59 <peter1138> I was trying to use "Gnome Boxes" to set up a Debian testing/sid VM, and... every time it failed and said there was no suitable kernel to install :S
15:21:43 <peter1138> Hmm, maybe something doesn't allow its networking to network.
16:16:55 *** gelignite has joined #openttd
16:18:16 <xarick> is the danish situation resolved?
16:30:20 <talltyler> Fastest gun in the west
16:31:13 <_glx_> oh it was ready 2h ago but I had to go to airport to pickup someone
16:52:00 <_glx_> Rubidium: I think it's related to the empty default constructors, and the way we actually initialize PoolItem::index, through AllocateItem for only 2 operator new overloads
16:53:10 <_glx_> even for human it's hard to follow some pool stuff
16:59:55 <_glx_> it feels false positive to me
17:08:09 <Rubidium> it is, unless the compiler (re)initializes index in the constructor
17:24:27 <peter1138> Yes, because it's a void pointer, converting it is a bit of a pain.
18:46:12 *** tokai|noir has joined #openttd
18:46:12 *** ChanServ sets mode: +v tokai|noir
18:53:11 *** tokai has quit IRC (Ping timeout: 480 seconds)
18:59:34 *** Wormnest has joined #openttd
19:22:55 <andythenorth> did we do it yet?
19:29:24 <peter1138> Dropped MacOS support?
19:30:00 <andythenorth> would also reduce newgrf support requests
20:52:16 *** kuka_lie has quit IRC (Quit: Lost terminal)
20:58:53 *** nielsm has quit IRC (Ping timeout: 480 seconds)
20:59:26 *** Tirili has quit IRC (Remote host closed the connection)
22:50:46 <xarick> nice, thx, it builds now
22:56:07 *** Tirili has quit IRC (Quit: Leaving)
23:18:51 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
continue to next day ⏵