IRC logs for #openttd on OFTC at 2025-05-15
⏴ go to previous day
00:57:51 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
01:39:37 *** tokai|noir has joined #openttd
01:39:37 *** ChanServ sets mode: +v tokai|noir
01:46:35 *** tokai has quit IRC (Ping timeout: 480 seconds)
02:11:58 *** Wormnest has joined #openttd
02:17:40 *** Rubidium_ has joined #openttd
02:19:33 *** Rubidium has quit IRC (Ping timeout: 480 seconds)
03:05:10 *** gnu_jj_ has quit IRC (Ping timeout: 480 seconds)
03:22:26 <yiffgirl> what happens if you hold the scrollbar as it tries to move?
04:07:17 *** Flygon has quit IRC (Remote host closed the connection)
04:46:44 <DorpsGek> - Update: Translations from eints (by translators)
06:17:01 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
06:23:34 *** WormnestAndroid has joined #openttd
07:27:13 <LordAro> that was going to be my suggestion
07:59:05 <peter1138[d]> Unit tests work but text file window fails, pom te pom. More work needed.
08:10:28 <peter1138[d]> Well, they worked for me. Weird.
08:47:43 <xarick> peter, could it be... something like a tie breaker? just random thought
09:17:31 <Rubidium_> that the spec is a mess. The modifier of 12 belongs to the first cargo of 10, the modifier of 13 belongs to the second cargo of 10. So the question is, why is 10 not split into two variables or are 12/13 not seen as one variable? Probably some hysterical raisins in TTDP
09:18:37 <pickpacket> uh... right... that's weird, yeah
09:21:44 <pickpacket> Are the production levels specified in the NML cargo_types array of the same scale? I.e. is a 12 there the same as the 12 in field 12 of the coal mine?
09:43:25 <peter1138[d]> Also, manually running `openttd_test` now outputs debug messages.
09:56:22 <xarick> what costs more in real life? an aircraft or a train
09:58:53 *** locosage has joined #openttd
09:58:53 <locosage> wow, python absolutely crushed tiobe 2024
09:59:02 <locosage> wonder if that has anything to do with ai
10:02:42 <Rubidium_> xarick: obviously an aircraft. The most common aircraft is the US costs only about 0.4 million, the most common locomotive 2 million (and that's without any carriages)
10:02:51 <peter1138[d]> It's all the code that andythenorth generated.
10:02:59 *** tabytac has joined #openttd
10:03:00 <tabytac> xarick: planes are alot more expensive. Apparenly an Airbus a320 neo (a pretty new smallish plane) is like 100 million dollars, and an EMU is like 2-10 million
10:04:05 <locosage> "The only reason other languages still have a reason for existing is because of Python's low performance, and the fact that it is interpreted and thus prone to unexpected run-time errors" 🤣
10:05:57 *** akimoto has quit IRC (Remote host closed the connection)
10:08:47 <peter1138[d]> Python remake of ... TTD when?
10:11:03 <xarick> days_before_giving_up_focus_on_current_transport_mode_construction_attempt
10:13:52 <xarick> how do I succintly explain what this variable do
10:20:21 <xarick> There are 4 transport modes, I start by planning a rail route, and give it 60 days to be completed. During these 60 days, all the AI is focused on is on getting the rail route done. But after 60 days, if there's no rail route yet constructed, I allow the next transport mode to take its turn. Road has its own 60 days to get a road route done. The main loop is now attempting to get both a rail and a
10:20:21 <xarick> road route done. After another 60 days if no road route is built, the next transport mode is allowed to be run in the main loop
10:21:29 <xarick> gonna ask copilot for a name
10:25:35 <kuhnovic> "chasing your own tail"
10:44:48 <_glx_> pickpacket: Ignore 10, 12 and 13, replaced with 25 and 27
10:52:07 <xarick> this should clamp to the max value
10:52:33 <xarick> instead it changes nothing
10:54:07 <pickpacket> _glx_: I want to compare the production of my own industries with the default ones 🙂
11:09:19 <xarick> why isn't the video formated
11:20:14 <xarick> it needs a newline between the video link and previous line
11:21:24 <peter1138[d]> > 999999999 (that's eleven nines)
11:22:10 <xarick> that's 11 in the video
11:30:31 <peter1138[d]> Anyway, 99,999,999,999 is above the range of an integer, so might be related...
11:31:18 <peter1138[d]> Your wording isn't entirely clear though. "Doesn't clamp" isn't quite the truth. More pertinent is that it doesn't appear to be changing the value at all.
11:31:37 <peter1138[d]> "Doesn't clamp" implied to me that it does change, but the value is out of range, which isn't the case.
11:51:14 <_glx_> Indeed invalid values are rejected before even trying to clamp
12:12:59 <LordAro> you could argue that silently doing nothing is an issue
12:21:47 <peter1138[d]> Yes, it should either say the input is not valid, or indeed clamp -- but the latter requires knowing the input was a large number, rather than just invalid data.
12:27:10 <_glx_> Guess beta was still using `atoi` or similar
12:58:10 <peter1138[d]> Hmm, it went colder today.
13:03:02 <LordAro> no, that was yesterday
13:07:00 *** aperezdc has joined #openttd
13:22:38 <jfkuayue> I had my self hosted mail server. When I sent an email to my outlook address, I could not receive it, even in the "junk" folder.
13:41:16 <xarick> change setting value works for game options/advanced
13:45:34 <peter1138[d]> Hmm, do I use extension methods, or class inheritance...
13:58:12 <xarick> seems like an easy fix
14:05:55 <peter1138[d]> Huh. Well, this PR to unify and deduplicate code sure added a lot more lines 😮
14:09:11 <peter1138[d]> Ah, a few very long lines of `new x { a = b, c = d, e = f }` type things formatted in a sane member-per-line way.
14:21:32 <pickpacket> jfkuayue: blocked in the firewall
14:46:20 <jfkuayue> I think I would stick to Outlook, although evil.
14:50:35 <Rubidium_> it's not a firewall as you'd be getting an error mail from your own mail server. It's the receiving side that accepts the email and silently drops it. Mostly because some IP in the IP-range your server is in, has been used for spamming and got blocked.
15:01:50 <LordAro> and/or you've not set up the necessary SPF/DKIM/rDNS/etc etc
15:28:53 *** Wormnest has joined #openttd
15:37:03 *** KenjiE20 has quit IRC (Ping timeout: 480 seconds)
15:37:28 *** KenjiE20 has joined #openttd
15:41:56 <_glx_> xarick: because there it expects a 64bit value
15:42:47 <xarick> it takes a 64 bit and transforms to 32
15:43:11 <xarick> I'm attempting some copy paste code into script_gui.cpp from settings_gui
15:43:48 <_glx_> then you'll need to copy paste in game_gui.cpp too, and many other places
15:45:28 <peter1138[d]> This is the "peter1138 wanted to make a unified system to handle this" bit.
15:47:28 <xarick> it's also missing the Default button
15:51:51 <_glx_> script setting window doesn't handle default
16:06:00 <xarick> im attempting adding a default functionality
16:06:58 <xarick> there's no method to remove a single setting
16:13:45 <xarick> I think I'm doing an unnecessary step
16:31:24 <xarick> well it works, but im not sure about pointer iterators references
16:51:46 <xarick> can't directly call erase
16:52:14 <xarick> the value might not be anchored
16:52:53 <_glx_> then it's already default, and it's fine if the key doesn't exist
16:53:59 <xarick> one is a SettingValueList, the other is a ScriptConfigItemList
17:00:03 <_glx_> anyway updated diff, I copied too much from SetSetting
17:01:52 <xarick> I went with std::optional<int> on SetValue function
17:02:34 <xarick> how do i make a diff so quickly?
17:05:43 <xarick> oh, I didn't finish work on game_gui
17:17:29 <xarick> It's a fix and a feature
17:17:49 <LordAro> then it's two commits
17:21:18 <xarick> the fix is using ParseInteger<int64_t>
17:21:29 <xarick> then I added the default button
17:23:14 <LordAro> if you mean "i've got all these changes together in the same checkout, how do i separate them", then look into `git add -p`
17:23:25 <LordAro> VS(code) will have an equivalent for it somewhere too
17:24:09 <_glx_> it's easy to do with github desktop too
17:25:53 <xarick> gonna try a new branch
17:29:21 <_glx_> BTW find + erase is the same as directly erase
17:32:38 <xarick> what happens if it doesn't find
17:38:47 <LordAro> maybe if you'd ever actually look at some documentation you'd know
17:53:14 <frosch123> What is the purpose of that pr?
17:53:51 <frosch123> Parse and clamp sounds nonsense to me
17:56:59 <_glx_> issue is we want a 32bit value, but even with the limit for number of chars (10 digits + 1 sign) it can be out of range to be parsed properly
17:58:11 <_glx_> settings_gui.cpp does the same parse 64bit then clamp to 32bit
17:59:18 <_glx_> anyway someone should learn to properly explain things in PR description
18:01:18 <_glx_> we see what you do, but not why
18:01:26 <_glx_> and the why is important
18:51:17 <LordAro> of course, it doesn't actually fix the issue if you exceed 64 bit limits
18:57:03 <xarick> not sure I do SetValue(std::optional<int> value) or a separate function
18:57:30 <xarick> think I go with new function
19:03:32 <xarick> less ambiguity, more code repeating
19:20:21 <xarick> i want a default option for bool buttons and dropdown buttons too
19:48:18 *** gelignite has joined #openttd
20:18:41 <peter1138[d]> Still not on form 😦
20:30:45 *** nielsm has quit IRC (Ping timeout: 480 seconds)
21:07:34 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
21:14:19 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
21:14:43 *** WormnestAndroid has joined #openttd
21:29:41 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
21:37:45 *** keikoz has quit IRC (Ping timeout: 480 seconds)
21:38:02 <LordAro> peter1138[d]: i've got a 200k this weekend, hoping my knee holds up
21:39:22 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
21:41:17 *** WormnestAndroid has joined #openttd
21:41:23 <LordAro> ...and a 400 the weekend after
23:28:04 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
23:29:03 *** WormnestAndroid has joined #openttd
continue to next day ⏵