IRC logs for #openttd on OFTC at 2024-09-28
⏴ go to previous day
00:20:30 <bigyihsuan> bigyihsuan: this is the only thing that i'm having problems with at this point
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: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:17:49 *** gnu_jj_ has quit IRC (Ping timeout: 480 seconds)
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:43:04 *** Smedles has joined #openttd
04:44:40 <DorpsGek> - Update: Translations from eints (by translators)
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
08:32:54 *** akimoto 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> return it == this->data.end() ? 0 : std::distance(this->data.begin(), it);
09:10:56 <xarick> error C2760: syntax error: 'return' was unexpected here; expected '}' - that's the first return
09:27:04 <xarick> ``` inline size_t FindIndex(const T &item) const
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:06 <xarick> return it == this->data.end() ? 0 : std::distance(this->data.begin(), it);
09:31:27 *** gelignite has quit IRC (Quit: Stay safe!)
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> return std::get<0>(a) < std::get<0>(b); // Compare by counter if priorities are equal
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:37:37 <xarick> error C2676: binary '!=': 'T' does not define this operator or a conversion to a type acceptable to the predefined operator
10:52:48 *** gelignite has joined #openttd
11:02:38 <xarick> /** @file multimap.hpp Multimap with deterministic ordering of items with equal keys. */
11:28:03 <xarick> lunch break, testing 70000 ships heading to nearest depot, see if i get a mismatch
11:45:15 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
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: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: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:47 <xarick> the result is (void)'ed
17:14:34 *** gelignite has quit IRC (Quit: Stay safe!)
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: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: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
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: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:33:19 *** Extrems has joined #openttd
continue to next day ⏵