IRC logs for #openttd on OFTC at 2020-08-07
⏴ go to previous day
07:29:05 *** andythenorth has joined #openttd
08:04:01 *** sla_ro|master has joined #openttd
09:21:05 *** andythenorth has joined #openttd
10:14:31 <dwfreed> andythenorth: i mean, it makes sense from a design standpoint, so i'm not surprised there's a real version of it
10:15:06 <andythenorth> I've found quite a few things IRL that I invented for the game
10:15:11 <andythenorth> copying from me IMHO but eh
10:15:22 <dwfreed> great minds think alike :)
11:29:31 *** ChanServ sets mode: +v tokai
11:43:31 *** dave[m] has joined #openttd
12:12:43 *** sla_ro|master has joined #openttd
13:19:40 *** osvaldo[m] has joined #openttd
14:18:54 <CornsMcGowan[m]> in the source, where's the file for the tram track GUI
14:20:14 <CornsMcGowan[m]> in openttd src
14:21:38 <CornsMcGowan[m]> sorry my bad I mean the source code HAHA
14:21:42 <CornsMcGowan[m]> not the images
14:22:07 <CornsMcGowan[m]> seems to be lumped together with the road gui at road_gui.cpp
14:23:44 <CornsMcGowan[m]> yeah thats it
14:23:55 <CornsMcGowan[m]> tram tracks seem to be encoded as just another roadtype
14:35:50 <andythenorth> they are just a roadtype
14:36:01 <andythenorth> there is a different movement model
15:32:26 <CornsMcGowan[m]> y'all were right, YAPF is indeed template hell
15:34:35 <FLHerne> It's the epitome of template hell
15:34:43 <FLHerne> What are you actually trying to do?
15:37:55 <CornsMcGowan[m]> trying to plan out a template class for the routeplanner patch, looking at YAPF for ideas
15:38:58 <CornsMcGowan[m]> cause the rail/road/ship planner will have some common parts (eg the A* algorithm) with their own unique node structure and path elements, i'm trying to reduce the amt of duplicate/similar code
15:46:40 <CornsMcGowan[m]> i also need to make a new icon for the tool...
15:47:23 <CornsMcGowan[m]> putting a half-size cargoflow icon over the rail sprite won't cut it for trunk, i'm guessing
15:50:36 *** sla_ro|master has joined #openttd
15:56:12 <CornsMcGowan[m]> when is OnPlaceObjectAbort() called? i don't understand the comment "The user cancelled a tile highlight mode that has been set."
16:02:47 <nielsm> when the user presses ESC, or something else calls SetObjectToPlace (or what it's called)
16:05:28 <nielsm> or the window that owns the SetObjectToPlace operation is closed
16:09:18 <CornsMcGowan[m]> ah i see, thank you :)
16:09:53 <nielsm> it will actually also be called if you call SetObjectToPlace again yourself, even with the same parameters
17:04:31 *** WormnestAndroid has quit IRC
17:04:44 *** WormnestAndroid has joined #openttd
17:23:09 *** Progman has joined #openttd
18:17:15 *** HerzogDeXtEr has joined #openttd
19:17:10 *** gelignite has joined #openttd
19:28:58 *** b_jonas has joined #openttd
21:27:38 *** WormnestAndroid has quit IRC
21:27:55 *** WormnestAndroid has joined #openttd
21:45:24 *** andythenorth has joined #openttd
21:53:36 *** andythenorth_ has joined #openttd
22:15:18 *** andythenorth has joined #openttd
22:18:28 *** andythenorth_ has joined #openttd
23:00:51 *** D-HUND is now known as debdog
23:05:52 *** WormnestAndroid has quit IRC
23:06:02 *** WormnestAndroid has joined #openttd
continue to next day ⏵