IRC logs for #openttd on OFTC at 2024-09-28
            
00:20:30 <bigyihsuan> https://cdn.discordapp.com/attachments/1008473233844097104/1289381186719711275/image.png?ex=66f89d4e&is=66f74bce&hm=831e5de66713f4afe9f576d89aef1367fefeeac4b2fb361db4bd54a8abcf40d5&
00:20:30 <bigyihsuan> bigyihsuan: this is the only thing that i'm having problems with at this point
00:21:55 <bigyihsuan> https://cdn.discordapp.com/attachments/1008473233844097104/1289381541864149003/image.png?ex=66f89da3&is=66f74c23&hm=b34e49234a76a50b5be329fdc4af8ad826b761c3fbbdeba73a4609a635545d87&
00:21:55 <bigyihsuan> bigyihsuan: like, this is perfectly fine with no new roadtypes, but the ones with longer names overflow the dropdown a little
00:35:15 <bigyihsuan> https://cdn.discordapp.com/attachments/1008473233844097104/1289384895365513349/image.png?ex=66f8a0c2&is=66f74f42&hm=407133c1253362baa900418952b2c7549d0264acbbe7f5681d08519a1f6fc9fc&
00:35:15 <bigyihsuan> https://cdn.discordapp.com/attachments/1008473233844097104/1289384895621234738/image.png?ex=66f8a0c2&is=66f74f42&hm=7dbe3299f3ccbd9556a2ce78fd1d98e58aa7f4e2fdcc3a2e1ad095d267a4cf8b&
00:35:15 <bigyihsuan> https://cdn.discordapp.com/attachments/1008473233844097104/1289384895931744266/image.png?ex=66f8a0c2&is=66f74f42&hm=841e62a4b0b614ebc76268b56c6a35b54b76087b91955588de63db8c8eb0d1a5&
00:35:15 <bigyihsuan> https://cdn.discordapp.com/attachments/1008473233844097104/1289384896137138218/image.png?ex=66f8a0c2&is=66f74f42&hm=19e484cd8b864b9ab925ddf48ee1d6fb14bd0bdb12ca955e26399ee15e7d12fa&
00:35:15 <bigyihsuan> https://cdn.discordapp.com/attachments/1008473233844097104/1289384896409894974/image.png?ex=66f8a0c2&is=66f74f42&hm=e8309011a513cd076b23dc9ecd154d102864706acd254c0704f121badf87da8a&
00:35:17 <bigyihsuan> bigyihsuan: lol. lmao even
01:14:55 *** gelignite is now known as Guest4765
01:14:58 *** gelignite has joined #openttd
01:22:18 *** Guest4765 has quit IRC (Ping timeout: 480 seconds)
01:26:12 *** TinoDidriksen has quit IRC (Read error: Connection reset by peer)
01:26:43 *** TinoDidriksen has joined #openttd
01:27:12 *** TinoDidriksen is now known as Guest4767
01:56:42 <_pruple> is that the best text to use? Road types have a number of texts associated, including one that's just, eg "Road".
01:56:57 <_pruple> without "construction" and the speed limit
02:14:41 *** gnu_jj has joined #openttd
02:17:49 *** gnu_jj_ has quit IRC (Ping timeout: 480 seconds)
02:25:50 *** debdog has joined #openttd
02:26:14 *** D-HUND has joined #openttd
02:29:14 *** godbed_ has quit IRC (Ping timeout: 480 seconds)
02:29:34 *** godbed has quit IRC (Ping timeout: 480 seconds)
03:49:10 *** gelignite has quit IRC (Quit: Stay safe!)
03:55:13 <bigyihsuan> _pruple: I'm just reusing the same dropdown that's used when you click the toolbar road icon to build roads, it's def possible to not tmus the string as is, and instead use a different string
04:12:34 *** keikoz has joined #openttd
04:40:26 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
04:43:04 *** Smedles has joined #openttd
04:44:39 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/b4f96f54dfb0fb8fe2125c8a8192304e24af78e8
04:44:40 <DorpsGek> - Update: Translations from eints (by translators)
05:06:29 *** keikoz has quit IRC ()
05:11:05 *** keikoz has joined #openttd
05:26:52 <DorpsGek> [OpenTTD/OpenTTD] Release workflow was not successful https://github.com/OpenTTD/OpenTTD/actions/runs/11081308361
05:50:42 *** gnu_jj has quit IRC ()
05:50:59 *** gnu_jj has joined #openttd
06:12:33 *** debdog has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
06:15:29 *** Flygon has joined #openttd
06:22:19 *** HerzogDeXtEr has joined #openttd
06:25:27 *** D-HUND is now known as debdog
06:55:11 *** gelignite has joined #openttd
07:29:18 <peter1138> Yes that's true. The construction string is for bringing up the construction toolbar
07:33:44 *** Guest4767 is now known as TinoDidriksen
07:48:29 *** nielsm has joined #openttd
08:32:54 *** akimoto has joined #openttd
08:37:57 <xarick> hello
08:44:34 *** Wolf01 has joined #openttd
09:02:08 *** keikoz has quit IRC (Ping timeout: 480 seconds)
09:09:27 <xarick> CoPilot is giving me code that doesn't compile
09:10:08 <xarick> ```inline size_t FindIndex(const T& item) const {
09:10:08 <xarick> auto it = std::find_if(this->data.begin(), this->data.end(), &item {
09:10:08 <xarick> return std::get<2>(elem) == &item;
09:10:08 <xarick> });
09:10:08 <xarick> return it == this->data.end() ? 0 : std::distance(this->data.begin(), it);
09:10:08 <xarick> }```
09:10:56 <xarick> error C2760: syntax error: 'return' was unexpected here; expected '}' - that's the first return
09:20:40 <LordAro> that is not a lambda
09:26:41 <xarick> i think i got it
09:27:04 <xarick> ``` inline size_t FindIndex(const T &item) const
09:27:04 <xarick> {
09:27:04 <xarick> auto it = std::find_if(this->data.begin(), this->data.end(), [&](std::tuple<size_t, T*> &elem) {
09:27:04 <xarick> return std::get<1>(elem) == &item;
09:27:04 <xarick> });
09:27:06 <xarick> return it == this->data.end() ? 0 : std::distance(this->data.begin(), it);
09:27:06 <xarick> }```
09:31:27 *** gelignite has quit IRC (Quit: Stay safe!)
09:49:32 *** keikoz has joined #openttd
09:58:35 <xarick> holy crap it compiled!
10:04:01 <xarick> but it's not working correctly 😦
10:07:57 <xarick> the Compare function needs help
10:08:37 <xarick> ``` inline bool Compare(const std::tuple<size_t, T *> &a, const std::tuple<size_t, T *> &b) const {
10:08:37 <xarick> if (std::get<1>(a) != std::get<1>(b)) {
10:08:37 <xarick> return std::get<1>(a) < std::get<1>(b);
10:08:37 <xarick> }
10:08:37 <xarick> return std::get<0>(a) < std::get<0>(b); // Compare by counter if priorities are equal
10:08:38 <xarick> }```
10:10:17 <xarick> ```template <class T>
10:10:17 <xarick> class CBinaryHeapT {
10:10:17 <xarick> private:
10:10:17 <xarick> size_t items = 0; ///< Number of valid items in the heap
10:10:17 <xarick> size_t counter = 0; // Counter to maintain insertion order
10:10:18 <xarick> std::vector<std::tuple<size_t, T *>> data; // Store counter, and item```
10:12:21 <xarick> ```inline bool operator<(const Node &other) const { return m_estimate < other.m_estimate; }```
10:12:32 <xarick> this one isn't being called 😦
10:32:21 *** akimoto has quit IRC (Remote host closed the connection)
10:32:57 *** jlx__ has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
10:33:46 *** jlx__ has joined #openttd
10:37:37 <xarick> error C2676: binary '!=': 'T' does not define this operator or a conversion to a type acceptable to the predefined operator
10:50:37 <DorpsGek> [OpenTTD/OpenTTD] JGRennison opened pull request #12965: Codefix: Debug fmt strings in ItemizeBidi (ICU layout) https://github.com/OpenTTD/OpenTTD/pull/12965
10:52:48 *** gelignite has joined #openttd
11:02:26 <xarick> what is multimap
11:02:38 <xarick> /** @file multimap.hpp Multimap with deterministic ordering of items with equal keys. */
11:02:48 <xarick> did I break it?
11:27:37 <xarick> looks like I did it!
11:28:03 <xarick> lunch break, testing 70000 ships heading to nearest depot, see if i get a mismatch
11:28:07 <xarick> afk
11:45:15 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
11:56:28 <xarick> got an assert 😦
12:39:25 <xarick> oh... if (path_cache.empty()) return CreateRandomPath(v, path_cache, 1);
12:39:41 <xarick> random in the pathfinder is bad idea
12:40:11 <xarick> no wonder it was asserting
12:48:27 <xarick> how do i random backup and restore, i forgot
13:18:02 <xarick> crap! moar asserts 😦
13:27:45 <kuhnovic> xarick: That _never_ happens...
13:50:51 <xarick> /* A empty path means we are already at the destination.
13:51:00 <xarick> this doesn't match with my observations
13:52:05 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1289585427606405122/image.png?ex=66f95b85&is=66f80a05&hm=8edad98e73fc7ee82350a9b6c8b8563cd08b85ac737df1b683c23765951e6b1a&
13:52:31 <xarick> he's not already there
13:53:56 <xarick> either I'm doing something wrong... or
14:16:29 <xarick> holy mother of edge cases
14:17:10 <xarick> the intermediate region is the destination
14:36:34 *** keikoz has quit IRC (Ping timeout: 480 seconds)
14:40:36 <xarick> nah, this is a bug, or the comment is misleading
14:40:47 <xarick> happening on CheckShipReverse
14:45:41 <xarick> well
14:45:47 <xarick> the result is (void)'ed
14:45:53 <xarick> so... probably fine
15:33:39 *** keikoz has joined #openttd
17:14:34 *** gelignite has quit IRC (Quit: Stay safe!)
17:42:01 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #12964: Codechange: Mark some water region functions static. https://github.com/OpenTTD/OpenTTD/pull/12964#pullrequestreview-2335383164
17:42:12 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #12965: Codefix: Debug fmt strings in ItemizeBidi (ICU layout) https://github.com/OpenTTD/OpenTTD/pull/12965#pullrequestreview-2335383193
17:50:24 *** akimoto has joined #openttd
18:06:20 *** gelignite has joined #openttd
18:19:46 *** akimoto has quit IRC (Ping timeout: 480 seconds)
19:05:17 *** Tirili has joined #openttd
19:42:54 *** tokai|noir has joined #openttd
19:42:54 *** ChanServ sets mode: +v tokai|noir
19:49:44 *** tokai has quit IRC (Ping timeout: 480 seconds)
20:18:45 <johnfranklin> Why does the heating system in the dorm only work on some random days…
20:18:54 <andythenorth> are you in the UK?
20:19:00 <johnfranklin> Yes
20:19:04 <andythenorth> that's why
20:21:11 <johnfranklin> It works under a certain temperature? 10 degreeC?
20:24:03 <_glx_> if you have 18°C inside its enough
20:28:09 <johnfranklin> I know, I just want to confirm if the heating is broken
20:38:18 <DorpsGek> [OpenTTD/OpenTTD] JGRennison opened pull request #12966: Codefix: First format argument of IConsolePrint not passed by reference https://github.com/OpenTTD/OpenTTD/pull/12966
20:58:39 <DorpsGek> [OpenTTD/OpenTTD] github-advanced-security[bot] commented on pull request #12966: Codefix: First format argument of IConsolePrint not passed by reference https://github.com/OpenTTD/OpenTTD/pull/12966#pullrequestreview-2335413139
21:02:19 *** nielsm has quit IRC (Ping timeout: 480 seconds)
21:15:46 <xarick> I'm gonna use Copilot text as commit message
21:29:14 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
21:33:27 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick opened pull request #12967: Codechange: [YAPF] Implement a tie breaker for Binary Heap https://github.com/OpenTTD/OpenTTD/pull/12967
21:39:14 <xarick> failed on windows?
21:39:50 <DorpsGek> [OpenTTD/OpenTTD] JGRennison commented on pull request #12966: Codefix: First format argument of IConsolePrint not passed by reference https://github.com/OpenTTD/OpenTTD/pull/12966#pullrequestreview-2335458449
21:41:45 <xarick> waiting for CodeQL to tell me how much I failed
22:03:49 *** keikoz has quit IRC (Ping timeout: 480 seconds)
22:15:40 <_glx_> everything fails on windows because vcpkg is still broken
23:27:06 *** Extrems has quit IRC (Quit: ZNC 1.7.5 - https://znc.in)
23:33:19 *** Extrems has joined #openttd