IRC logs for #openttd on OFTC at 2025-11-06
⏴ go to previous day
02:46:04 *** Wormnest has quit IRC (Quit: Leaving)
03:49:28 *** gnu_jj_ has joined #openttd
03:52:59 *** gnu_jj has quit IRC (Ping timeout: 480 seconds)
04:32:07 *** Zathras_11 has joined #openttd
04:35:31 *** Zathras has quit IRC (Ping timeout: 480 seconds)
04:41:21 <DorpsGek> - Update: Translations from eints (by translators)
07:00:20 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
07:00:23 *** WormnestAndroid has joined #openttd
07:00:27 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
07:00:42 *** WormnestAndroid has joined #openttd
09:33:33 <Borg> _jgr_: after more analisis I backported long reserve as well, looks good..
09:34:07 <Borg> it merged pretty well (just few rejects).. and doesnt break my entry signal check
09:37:09 *** Zathras_11 has quit IRC (Quit: Initiating getting-the-hell-out-of-here maneuver!)
09:37:48 *** Zathras has joined #openttd
09:40:47 *** orudge` has joined #openttd
09:40:48 *** ChanServ sets mode: +o orudge`
11:11:52 <xarick> came up with a different manner to present the benchmark results. the tests are the same
11:13:56 <xarick> safe btree is the one at the bottom right, despite the window title
11:14:20 <xarick> top left is the safe btree to std branch
12:17:51 <xarick> I want to fix peter's vector
12:18:08 <xarick> it's skipping items in a for loop
12:47:59 <_glx_> But that most likely only happen when iterating by value
12:49:00 <_glx_> When you change a value you reorder the list
14:25:48 <xarick> I think I fixed peter's iterator skipping
14:43:47 <xarick> how many combinations for
14:46:55 <xarick> upper_bound, greater; upper_bound, greater
14:46:55 <xarick> upper_bound, greater; upper_bound, less
14:46:55 <xarick> upper_bound, greater; lower_bound, greater
14:46:55 <xarick> upper_bound, greater; lower_bound, less
14:46:55 <xarick> upper_bound, less; upper_bound, greater
14:46:56 <xarick> upper_bound, less; upper_bound, less
14:46:56 <xarick> upper_bound, less; lower_bound, greater
14:46:58 <xarick> upper_bound, less; lower_bound, less
14:46:58 <xarick> lower_bound, greater; upper_bound, greater
14:47:00 <xarick> lower_bound, greater; upper_bound, less
14:47:00 <xarick> lower_bound, greater; lower_bound, greater
14:47:02 <xarick> lower_bound, greater; lower_bound, less
14:47:02 <xarick> lower_bound, less; upper_bound, greater
14:47:04 <xarick> lower_bound, less; upper_bound, less
14:47:04 <xarick> lower_bound, less; lower_bound, greater
14:47:06 <xarick> lower_bound, less; lower_bound, less
14:47:13 <xarick> one of them must be correct... maybe
15:46:18 <Borg> play some OpenTTD instead [;
15:52:05 <dwfreed> ...play... openttd? blasphemy
16:08:11 <kaji_kaede> Thou shalt not play, only code.
16:14:21 <xarick> i can't fix scriptlist_vector on my own
16:28:45 *** Wormnest has joined #openttd
17:09:08 <rito12_51026> Thread 1 "openttd" received signal SIGSEGV, Segmentation fault.
17:09:08 <rito12_51026> 0x00005555571332c5 in StrongType::operator<=>(StrongType::Typedef<unsigned short, BadgeClassIDTag, StrongType::Compare> const&, StrongType::Typedef<unsigned short, BadgeClassIDTag, StrongType::Compare> const&) (lhs=..., rhs=...) at /home/cyprian/openTTD/OpenTTD_SourceCode/src/core/strong_typedef_type.hpp:25
17:09:08 <rito12_51026> 25 friend constexpr auto operator <=>(const TType &lhs, const TType &rhs) { return lhs.value <=> rhs.value; }
17:10:55 <_glx_> xarick: skipping when changing values while iterating is to be expected, it's even mentioned in the documentation
17:12:50 *** orudge` has quit IRC (Ping timeout: 480 seconds)
17:12:52 <xarick> in master, it still iterates over all items, though repeating some... in the vector implementation, it really skips some entries
17:13:05 <xarick> was trying to make it behave like master
17:14:11 <_jgr_> rito12_51026: It'd probably be useful to post the rest of the backtrace on github as an issue
17:14:15 <Borg> just use second list and swap
17:14:31 <Borg> if you need l33t properties like that. .you need linked lists
17:15:10 <_glx_> the only cases where you can safely change values while iterating is when sorted by item
17:16:03 <rito12_51026> _jgr_: I think I have already fixed it, one of the sides was dereferenced from nullptr
18:31:52 <xarick> i'm trying to export the script debug log into a file...
18:33:14 <xarick> throw this.text_to_throw;
18:34:41 <xarick> i can copy paste it but i'd prefer it to place newlines
18:49:40 <_glx_> you put everything in a single string without newlines
18:51:52 <_jgr_> Have you considered just running with `-d script=4` instead?
18:53:34 <_glx_> so you can use usual redirection of output to a file
19:01:34 <Borg> hah, im trying to make LinkGraph more usefull in Manual mode
19:02:00 <Borg> right now.. its colors and usage is bare usefull.. all you know that you are hauling cargo from A -> B
19:02:16 <Borg> and ideas what to graph? :) im experimenting w/ rating atm
19:02:33 <Borg> low rating... bad oversaturated
19:02:49 <Borg> you need to send more trains.. high rating.. not used (because all is good)
19:33:00 <Borg> okey time for better colors..
19:43:30 *** jfkuayue has quit IRC (Remote host closed the connection)
19:43:30 *** jalmaan has quit IRC (Remote host closed the connection)
19:43:30 *** vondpc has quit IRC (Remote host closed the connection)
19:43:30 *** jonathanrobert0718 has quit IRC (Remote host closed the connection)
19:43:30 *** _zephyris has quit IRC (Remote host closed the connection)
19:43:30 *** zamora1893 has quit IRC (Remote host closed the connection)
19:43:30 *** jsb250203 has quit IRC (Remote host closed the connection)
19:43:30 *** DorpsGek_vi has quit IRC (Remote host closed the connection)
19:43:30 *** kuhnovic has quit IRC (Remote host closed the connection)
19:43:30 *** emperorjake has quit IRC (Remote host closed the connection)
19:43:30 *** perfk has quit IRC (Remote host closed the connection)
19:43:30 *** tabytac has quit IRC (Remote host closed the connection)
19:43:30 *** belajalilija has quit IRC (Remote host closed the connection)
19:43:30 *** super_vin has quit IRC (Remote host closed the connection)
19:43:30 *** ahyangyi has quit IRC (Remote host closed the connection)
19:43:30 *** locosage has quit IRC (Remote host closed the connection)
19:43:30 *** exceptik has quit IRC (Remote host closed the connection)
19:43:30 *** tony_pixel has quit IRC (Remote host closed the connection)
19:43:30 *** rito12_51026 has quit IRC (Remote host closed the connection)
19:43:30 *** zbigniew_ziobro2137 has quit IRC (Remote host closed the connection)
19:43:30 *** mnhebi has quit IRC (Remote host closed the connection)
19:43:30 *** andythenorth has quit IRC (Remote host closed the connection)
19:43:30 *** audigex has quit IRC (Remote host closed the connection)
19:43:30 *** acs121 has quit IRC (Remote host closed the connection)
19:43:30 *** yiffgirl has quit IRC (Remote host closed the connection)
19:43:30 *** yozora3 has quit IRC (Remote host closed the connection)
19:43:30 *** kaji_kaede has quit IRC (Remote host closed the connection)
19:43:30 *** digitalfox has quit IRC (Remote host closed the connection)
19:43:30 *** zanooda2000 has quit IRC (Remote host closed the connection)
19:43:30 *** brickblock19280 has quit IRC (Remote host closed the connection)
19:43:30 *** eratonysiad has quit IRC (Remote host closed the connection)
19:43:30 *** _jgr_ has quit IRC (Remote host closed the connection)
19:43:30 *** mmtunligit has quit IRC (Remote host closed the connection)
19:43:30 *** davidxn has quit IRC (Remote host closed the connection)
19:43:30 *** _glx_ has quit IRC (Remote host closed the connection)
19:43:30 *** michi_cc has quit IRC (Remote host closed the connection)
19:43:30 *** talltyler has quit IRC (Remote host closed the connection)
19:43:30 *** alfagamma7 has quit IRC (Remote host closed the connection)
19:43:30 *** baricus has quit IRC (Remote host closed the connection)
19:43:30 *** xarick has quit IRC (Remote host closed the connection)
19:43:49 *** DorpsGek_vi has joined #openttd
20:42:57 *** jfkuayue has joined #openttd
20:42:57 <jfkuayue> Yesterday, I dreamt and in the dream I reinstalled windows on my LinuxMint machine. I felt Microsoft was hacking into my dreams.
20:58:20 *** kaji_kaede has joined #openttd
20:58:20 <kaji_kaede> ...Need to figure out how the heck people dev for this game on Linux still.
20:58:56 <kaji_kaede> Either way. I would believe Microsoft would do that if they could.
20:59:02 *** reldred has joined #openttd
20:59:02 <reldred> Should be easier since you’re not dealing with vcpkg I would have thought
20:59:15 <kaji_kaede> install github copilot in your brain
20:59:30 <kaji_kaede> reldred: Honestly my biggest issue is just not even knowing where to begin.
20:59:32 <Borg> kaji_kaede: what do you mean?
20:59:41 <dwfreed> 'git clone' is usually the first step :D
20:59:51 <kaji_kaede> well yeah that part's obvious lmao
21:00:00 <Borg> kaji_kaede: actualy.. im running windows
21:00:06 <Borg> but im building OpenTTD using Mingw
21:00:10 <Borg> because.. fuck visual studio
21:00:22 <Borg> and I do all the devel using bash + gViM
21:00:45 <kaji_kaede> Borg: Just not familiar with how a lot of people even write code in the first place on anything... Well, honestly anything beyond Visual Studio.
21:01:03 <Borg> uhg.. what I can say... ;)
21:01:05 <dwfreed> some people just use text editors :)
21:01:13 <kaji_kaede> Has been a point of curiousity because that lack of knowledge for me has been the *one* thing keeping me on Windows.
21:01:21 *** tokai|noir has joined #openttd
21:01:21 *** ChanServ sets mode: +v tokai|noir
21:01:24 <Borg> ages ages ago.. in DOS times.. I was using Pascal IDE.. wasnt that bad
21:01:25 <reldred> Git, build-essential or distros equiv, make sure you’ve got cmake and a few other dev packages, mkdir build, cd build, cmake .., blah blah blah
21:01:40 <Borg> but.. todays.. its better to have bash.. to issue compiler and git commands
21:01:47 <Borg> and editor in other window.. to edit code
21:01:52 <kaji_kaede> dwfreed: oh good lord they do?
21:02:33 <kaji_kaede> To be fair. Other people are more competent than I am. It's still easy for me to occasionally just do really *obviously* dumb things that IDEs actually warn me about.
21:02:54 <kaji_kaede> ...To be fair, most of the time it's something that will become pretty obvious when compiling.
21:03:04 <_jgr_> There are fancy IDEs which you can install on Linux too
21:03:20 <reldred> No they don’t exist everyone uses vi
21:03:21 <_jgr_> Is not just Emacs and vim anymore 😛
21:03:36 <kaji_kaede> Heh, I didn't think it was *just* text editors.
21:03:52 <kaji_kaede> Just kinda surprised people do that is all.
21:04:16 <Borg> ha! my improved LinkGraph works..
21:04:28 <Borg> not.. :) question is.. if graphing rating is enough.. what else I could add
21:04:32 <kaji_kaede> Heck. If there's any fancy IDEs y'all think I should try, I might hop over and see if I can get things working.
21:04:52 <Borg> kaji_kaede: honestly.. IDE is probably helpfull for C++ and such stuff
21:05:06 <Borg> amount of abstraction here is huge.. so its hard to just use plain editor
21:05:13 <kaji_kaede> reldred: *...for C++?*
21:05:15 <reldred> Plenty of big IDE’s are
21:05:23 <_jgr_> That said, on Linux using the terminal is pretty easy, whereas it's painful on Windows, so there's less need to have an IDE to get anything done
21:05:25 <kaji_kaede> I know it can *do* it.
21:05:26 <Borg> but for C or scripting languages..
21:05:38 <Borg> _jgr_: painfull on windows? :) pfft
21:05:40 <dwfreed> kaji_kaede: I write a lot of my code in text editors; I don't write a lot of C++, though (and I don't work on openttd)
21:05:46 <Borg> Cygwin exists from years.. and it works pretty well
21:07:10 <kaji_kaede> kaji_kaede: Just... The thought of using VSC for C++ development is... Maddening to my mind.
21:08:10 <_jgr_> I use a pretty basic editor for working on OpenTTD and other projects
21:08:15 *** tokai has quit IRC (Ping timeout: 480 seconds)
21:08:33 <_jgr_> You don't really need all the bells and whistles for the most part
21:09:05 <kaji_kaede> Mmm... Maybe I'll have to actually try then.
21:09:18 <kaji_kaede> What I imagine something being like and what something is *actually* like can be two very different things...
21:11:50 <xarick> I'm doing forbidden maths `list.SetValue(i, array[k++ % interval][1]);`
21:13:30 <_jgr_> Also, in my experience, an editor/IDE which is buggy/capricious or has weird non-determinism is more frustrating than something basic but reliable
21:15:57 *** Flygon has quit IRC (Read error: Connection reset by peer)
21:16:23 <_jgr_> (Dealing with stuff like eclipse, android studio, xcode, unity, some others, etc at work might have influenced my opinions)
21:23:38 *** andythenorth has joined #openttd
21:23:56 <andythenorth> I have used Eclipse and XCode, and I much prefer BBEdit
21:46:45 *** mmtunligit has joined #openttd
21:46:45 <mmtunligit> kaji_kaede: i just use the inbuilt text editor that kubuntu coems with, Kate. its basically set up to be an IDE already, you just need to enable those features
22:07:02 *** Borg has quit IRC (Quit: leaving)
22:28:31 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:38:10 *** keikoz has quit IRC (Ping timeout: 480 seconds)
23:32:03 <xarick> wondering if i could cache the list.Begin() for value sorter lists
23:32:56 <xarick> ppl create a list, and often they get the "best" item and have no more use for the list
23:34:18 <xarick> probably a bad assumption of me
23:36:56 <xarick> might make AddItem worse
23:39:15 <xarick> then again, list.Begin is only a problem in std::map/std::set implementation
23:59:24 <_glx_> master uses map and map of set
continue to next day ⏵