IRC logs for #openttd on OFTC at 2024-11-29
        
        
        
            ⏴ go to previous day
00:12:30  *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
 
03:17:09  *** gnu_jj_ has quit IRC (Ping timeout: 480 seconds)
 
04:03:34  *** debdog has quit IRC (Ping timeout: 480 seconds)
 
06:15:23  *** keikoz has quit IRC (Ping timeout: 480 seconds)
 
08:01:44  <truebrain> You should have done that BEFORE the nightly! 😛 😛
 
08:27:08  <peter1138> truebrain: Do a new one!
 
08:45:38  <peter1138> Maybe I should do a patch pack.
 
09:05:51  *** Flygon has quit IRC (Remote host closed the connection)
 
09:27:46  *** reldred has joined #openttd
 
09:42:57  <truebrain> peter1138: Call it "vanilla" please
 
09:43:41  <peter1138> I mean, Vanilla Patch Pack was part of the joke. But I got sidetracked.
 
09:43:50  <peter1138> (This is also part of the joke)
 
09:44:09  <truebrain> missed opportunity 😛
 
09:46:04  <peter1138> Hmm, is there a stable download URL to download the nightly Linux Generic Binaries?
 
09:46:39  <truebrain> might be nice to add 🙂
 
09:50:18  *** XYZ has quit IRC (Read error: Connection reset by peer)
 
09:52:58  <peter1138> Hmm, I'd quite like to OpenGL blitting again.
 
09:53:32  <peter1138> Whoever it was who was working on the DirectX blitter went silent 😦
 
09:53:54  <peter1138> Quite like to TRY...
 
09:55:47  <reldred> that said opengl blitter could be fun
 
09:58:36  *** XYZ has quit IRC (Ping timeout: 480 seconds)
 
10:19:41  *** XYZ has quit IRC (Ping timeout: 480 seconds)
 
10:25:51  *** SigHunter has quit IRC (Remote host closed the connection)
 
10:25:54  *** SigHunter has joined #openttd
 
10:37:00  <peter1138> reldred: badges is probably most likely to go ahead, I guess.
 
10:37:11  <peter1138> There's even a PR... wait there was a PR for colours too.
 
10:41:59  <peter1138> VS Code is autocompleting things, but completely incorrectly 😦
 
10:54:31  <peter1138> (I am only typing here, not pressing any control sequences...)
 
10:58:23  <truebrain> so what is your delivery date? 😄
 
10:58:32  <truebrain> haha, that is hilarious 😄
 
11:02:18  <peter1138> It's actually winding me up no end and I'm about to lose my mind.
 
11:02:52  <LordAro> some LSP gone haywire?
 
11:41:27  <peter1138> Huge tables of historical exchange rates am I rite?
 
12:01:22  <LordAro> what have i got to do with it?
 
12:01:50  <LordAro> generally i'd say they should be fixed
 
12:02:05  <LordAro> not lime we're updating the Ruble every other day...
 
12:24:14  <truebrain> the only "fix" is to create this list every night and auot-update it 😛
 
12:24:36  <truebrain> but before you know it, people want it to be realistic for the era they play in 😛
 
12:28:14  <peter1138> Remove all currency.
 
12:38:26  <LordAro> i'd be happy to fix it at a certain date
 
12:38:30  <LordAro> 1995 or 2004 or whatever
 
12:38:41  <LordAro> probably 1995 because Euro etc
 
12:41:02  <peter1138> I've just realised.
 
12:41:17  <peter1138> Did you mean "fixed" as in never changed, or "fixed" as in corrected?
 
12:54:09  <peter1138> Isn't there a NewGRF currency feature...
 
12:54:40  <truebrain> Owh, I also read it: he wants to constantly fix the value
 
12:54:42  <peter1138> Yup. It is very half-baked.
 
12:55:18  <peter1138> And probably doesn't work as a static NewGRF.
 
12:55:25  <truebrain> Silly LordAro, being ambigious in wording 😛
 
12:55:41  <peter1138> I wonder if TrueGRF supports making simple currency NewGRFs...
 
12:55:51  <truebrain> TrueGRF is most popular for townnames
 
12:55:58  <truebrain> so I can imagine it would work for currencies too 😛
 
13:11:30  <LordAro> hmm, GH UI has changed a bit
 
13:47:02  <peter1138> Any guesses as to what this is?
 
13:50:58  *** asasnat has joined #openttd
 
13:50:58  <asasnat> idk but the straight orthogonal lines remind me of coal mine subsidence patterns
 
14:56:06  <xarick> what to do when desired_slope is neither inclined nor flat? assert?
 
14:59:24  <xarick> if it is not in either state, then the terraform has already screwed up something
 
16:05:49  *** ChanServ sets mode: +v tokai
 
16:09:24  <peter1138> 10th July 3741 vs 26th July 3741. Well that's a difference.
 
16:56:14  <xarick> using AyStarNode = CYapfNodeKeyTrackDir; I'd like to use ExitDir 🙂
 
16:57:17  <xarick> probably gonna be a bad idea
 
17:34:21  <mnhebi> andythenorth: nmlctoon :p
 
17:42:34  *** XYZ has quit IRC (Read error: Connection reset by peer)
 
17:44:39  *** XYZ_ has quit IRC (Read error: Connection reset by peer)
 
17:51:16  *** XYZ has quit IRC (Read error: Connection reset by peer)
 
18:31:14  *** XYZ has quit IRC (Ping timeout: 480 seconds)
 
18:41:36  *** XYZ has quit IRC (Read error: Connection reset by peer)
 
19:09:11  *** XYZ_ has quit IRC (Ping timeout: 480 seconds)
 
19:37:08  <xarick> I waste 1 entire day trying to do one simple thing and I fail miserably
 
19:38:00  <xarick> I still don't get pathfinders
 
19:38:43  <xarick> I try to get the neighbours and the stupid thing is going back and forth with the same neighbours
 
20:16:16  <kuhnovic> That means they are not added to the closed list
 
20:17:58  <kuhnovic> Or they are added to the closed list but with different keys. That way the pathfinder can't detect that a node has already been processed, so it will happily add the same nodes over and over again.
 
20:33:56  <xarick> decided to copy paste FollowTrack from the deceased NPF
 
20:34:12  <xarick> adapted it a bit for the river case
 
20:34:50  <kuhnovic> FollowTrack is also used by YAPF btw
 
20:35:38  <kuhnovic> I've also used it for the water region initialization. That way you "play by the same rules" as the ship pathfinder does. I do wonder how that works for your river case though.
 
20:36:38  <xarick> the river slope has no track, had to do this:
 
20:36:38  <xarick> ```            if (trackdirbits == TRACKDIR_BIT_NONE && IsTileType(dst_tile, MP_WATER) && IsRiver(dst_tile)) {
 
20:36:38  <xarick> trackdirbits = TrackBitsToTrackdirBits(AxisToTrackBits(DiagDirToAxis(GetInclinedSlopeDirection(GetTileSlope(dst_tile)))));
 
20:37:24  <_glx_> all PF work in the same way, you add node to the open list, they are processed, removed and added to closed list
 
20:39:43  <kuhnovic> True, but there are different way to implement the open and closed lists. We use maps with keys to identify nodes, there are other ways too.
 
20:41:05  <xarick> no more false assert on TestRiverConnection
 
20:41:53  <xarick> dealing with coast tiles made me do this
 
20:49:16  <xarick> it was saying there was no connection on this
 
20:49:38  <xarick> because coasts were not considered
 
20:50:42  <xarick> but to consider coasts, I wasted the entire day, but finally managed to do it
 
20:50:55  <xarick> I had to use trackdirs
 
20:51:44  <xarick> I had to ensure where it comes from and where it goes to has the correct trackdir
 
20:52:48  <xarick> it exploded in complexity only due to coasts :8
 
20:55:24  <xarick> got an assert somewhere else, finally
 
20:56:55  <xarick> this time an assert telling me the desired_slope for a river tile is neither inclined nor flat
 
21:05:35  <xarick> `if (cur_slope == desired_slope) MakeRiverAndModifyDesertZoneAround(tile);`
 
21:08:44  <xarick> uh oh... it can actually happen
 
21:11:21  <mnhebi> shouldn't you just ignore desired slope if it matches cur slope?
 
21:12:42  <xarick> no, it is widening, so it wants to make a river there
 
21:14:07  <xarick> this case actually self-corrected desired_slope to SLOPE_FLAT then terraformed cur_slope to flat
 
21:16:16  <xarick> I think I'm moving the assert to somewhere else
 
21:16:49  <xarick> to places where it's about to place river tiles
 
21:29:32  <xarick> still fine, it raised the W corner on the left tile to flatten it and add a river
 
21:30:47  <xarick> i actually don't know what happened first, this circular tile search is difficult to follow
 
21:33:15  <xarick> peter1138: is this your doing?
 
21:58:34  <peter1138> Nope, I'm not attempting to read a string parameter as integer.
 
22:04:24  <mnhebi> who wouldn't want to read a string as a integer.
 
22:04:44  <mnhebi> its the reverse that is not funny
 
22:07:36  <xarick> it only happens in relwithdebinfo
 
22:07:43  <xarick> doesn't happen in debug
 
22:12:02  <_glx_> put a breakpoint on this debug message
 
22:23:55  *** Wolf01 is now known as Guest1575
 
22:30:01  *** Guest1575 has quit IRC (Ping timeout: 480 seconds)
 
22:34:03  *** peter1139 has quit IRC (Ping timeout: 480 seconds)
 
22:37:21  *** peter1139 has joined #openttd
 
22:46:53  <xarick> i'm unsure how to reproduce 😮
 
22:46:59  <xarick> seems to be on a timer
 
22:48:43  <_glx_> it's a GetString, or a DrawString
 
23:01:09  *** keikoz has quit IRC (Ping timeout: 480 seconds)
 
continue to next day ⏵