IRC logs for #openttd on OFTC at 2018-09-20
            
00:04:01 *** Progman has quit IRC
00:13:47 <Samu> who's a regular expression expert?
00:14:15 <Samu> for (local bridge = m_bridgeTiles.Begin(), i = 0; m_bridgeTiles.HasNext(); bridge = m_bridgeTiles.Next(), ++i) {
00:14:49 <Samu> wanna replace whateverishere.HasNext() to !whateverishere.IsEnd()
00:15:05 <Samu> using notepad++
00:16:11 <glx> no need for a regex, a standard search&replace should work
00:16:56 <glx> hmm sorry not reading correctly, a regex is needed
00:23:16 <DorpsGek_II> [OpenTTD/OpenTTD] James103 commented on issue #6631: In singleplayer, you cannot buyout one human-player company as another. https://github.com/OpenTTD/OpenTTD/issues/6631#issuecomment-422978473
00:26:23 <LordAro> Samu: s/([A-Za-z0-9]+)\.HasNext/!\1.IsEnd/
00:26:31 <LordAro> might need some backslashes in palces
00:26:32 <LordAro> places
00:27:23 <glx> (\S+)\.HasNext should work too
00:27:46 <Samu> what do i put in Find what
00:28:02 <LordAro> heh
00:28:12 <Samu> all that?
00:28:18 <LordAro> glx: that would be shorter
00:28:29 <glx> in search you type (\S)\.HasNext
00:28:38 <LordAro> i've run into too many regex engines that don't have \S
00:28:47 <glx> in replace you put !\1.IsEnd
00:29:08 <glx> I just read http://docs.notepad-plus-plus.org/index.php/Regular_Expressions
00:29:11 <Samu> https://regex101.com/r/sH5hZ4/1 fail
00:29:59 <Samu> ops, that's not my code
00:30:08 <LordAro> regex101 is great
00:30:21 <LordAro> it gives you a nice explanation of what it's doing in the top right
00:30:23 <LordAro> you should read that
00:31:11 <Eddi|zuHause> "First they came for "master/slave replication", and I did not speak up because I was not a DBA."
00:37:01 *** HerzogDeXtEr1 has quit IRC
00:37:18 <Samu> https://regex101.com/r/rNbZVu/1
00:37:21 <Samu> it werks!
00:38:09 <glx> try with \S because m_anything will be left out
00:39:17 <Samu> m_!tileList
00:39:18 <Samu> crap
00:40:30 <glx> yes replace [..] stuff with \S
00:42:23 <Samu> cool, thx
00:42:26 <m3henry> LordAro: It seems I can make std::vector<T> interface compatible with SmallVector<T, S>, except that T must be default constructible.
00:42:54 <LordAro> oho
00:43:44 <m3henry> There are a couple of classes which do not have default constructors
00:43:53 <m3henry> which are used for T
00:44:22 <LordAro> these are the ones nielsm noted before, i think?
00:44:47 <m3henry> I don't recall that conversation
00:45:02 <m3henry> I probably wasn't there
00:46:16 *** Gustavo6056 has joined #openttd
00:47:07 <m3henry> It's probably okay to add those default constructors in temporarily?
00:48:34 <m3henry> It may not though, I'll have to check tomorrow
00:48:53 <Samu> this.town_list.HasNext()
00:49:02 <Samu> works too
00:49:11 <Samu> list2.HasNext() too
00:49:18 <Samu> nice thx
00:49:27 <glx> yes because \S exclude all spaces
00:50:57 <Samu> updated AI API requirements to 1.1
00:50:59 <Samu> testing
00:51:16 <Samu> should try 1.8 asap
00:51:31 <LordAro> there are very few breaking changes except that one
00:51:35 <LordAro> it's in the AI changelog :)
00:52:28 *** m3henry has quit IRC
00:53:33 *** snail_UES_ has joined #openttd
00:53:46 <Samu> i need old openttd versions to test this api compatibility, right?
00:53:55 *** Gustavo6046 has quit IRC
00:53:55 *** Gustavo6056 is now known as Gustavo6046
00:56:33 <Samu> according to https://noai.openttd.org/api/trunk/ai__changelog_8hpp.html, if I use AIEngine::GetMaximumOrderDistance, the minimum openttd version is then 1.2.0, right? what about the api? 1.2.0 too?
00:57:56 <Samu> open ttd 1.1.0 would not be able to run it?
00:59:12 <Samu> if the api info i set is 1.0, and I use a 1.2 feature and I have OpenTTD 1.1.0, the script will crash when it tries to use AIEngine::GetMaximumOrderDistance?
01:00:02 <glx> yes the script can't call an inexistant function
01:00:30 <Samu> okay, so min api is 1.2
01:00:44 <Samu> which also makes openttd 1.2.0 minimum
01:04:41 <Samu> oh, i also use AIStation::GetCargoWaitingVia
01:04:49 <Samu> that bumps it to 1.4
01:06:48 <Samu> AICargo::GetDistributionType also 1.4
01:06:53 <Samu> seems that 1.4 is the requirement
01:09:39 <Samu> AIOF_SERVICE_IF_NEEDED does not exist :(
01:10:38 <Samu> https://noai.openttd.org/api/trunk/classAIOrder.html#ca4eab6320c32ec982461231f14d1c6e, ah i see
01:14:44 <LordAro> "AIOrder has all its types renamed from AIOF_ prefix to just OF_ prefix."
01:14:50 <LordAro> 1.2
01:16:55 <Samu> done
01:17:09 <Samu> renamed all that to be compliant with 1.4
01:18:57 *** OsteHovel has quit IRC
01:18:58 *** OsteHovel has joined #openttd
01:27:44 <Samu> now i need a openttd 1.4 to really test it
01:28:18 <LordAro> you really don't need to bother :p
01:31:23 <Samu> i dont like the current pathfinder that I use
01:31:40 <Samu> doesn't build bridges over rivers and over rails
01:31:48 <Samu> it tries to contour it
01:32:11 <Samu> can i modify the pathfinder?
01:32:50 <Samu> i tested editing it
01:33:18 <Samu> but could i include it in my AI?
01:33:30 <Samu> instead of importing a library
01:33:36 <Samu> i include it in
01:34:53 <Samu> major problem in my edit is that it becomes much slower, as it tests bridge building in almost every tile
01:38:00 *** sim-al2 has joined #openttd
01:44:04 *** Oroburos has quit IRC
01:46:36 *** Gustavo6056 has joined #openttd
01:53:53 *** Gustavo6046 has quit IRC
01:53:53 *** Gustavo6056 is now known as Gustavo6046
02:17:06 *** Samu has quit IRC
02:46:43 *** Gustavo6056 has joined #openttd
02:53:58 *** Gustavo6046 has quit IRC
02:53:58 *** Gustavo6056 is now known as Gustavo6046
03:17:06 *** glx has quit IRC
03:35:23 *** WWacko1976-work has joined #openttd
03:49:18 *** Gustavo6056 has joined #openttd
03:56:28 *** Gustavo6046 has quit IRC
03:56:28 *** Gustavo6056 is now known as Gustavo6046
04:12:26 *** snail_UES_ has quit IRC
04:49:20 *** Gustavo6056 has joined #openttd
04:56:25 *** Gustavo6046 has quit IRC
04:56:25 *** Gustavo6056 is now known as Gustavo6046
05:42:37 *** haudrauf has quit IRC
05:43:35 *** haudrauf has joined #openttd
05:49:31 *** Gustavo6056 has joined #openttd
05:53:31 *** Flygon has joined #openttd
05:56:58 *** Gustavo6046 has quit IRC
05:56:58 *** Gustavo6056 is now known as Gustavo6046
06:49:54 *** Gustavo6056 has joined #openttd
06:57:00 *** Gustavo6046 has quit IRC
06:57:00 *** Gustavo6056 is now known as Gustavo6046
07:50:05 *** Gustavo6056 has joined #openttd
07:55:45 *** Gustavo6046 has quit IRC
07:55:45 *** Gustavo6056 is now known as Gustavo6046
08:49:02 *** sim-al2 has quit IRC
08:50:04 *** Gustavo6056 has joined #openttd
08:57:28 *** Gustavo6046 has quit IRC
08:57:28 *** Gustavo6056 is now known as Gustavo6046
09:01:35 *** tokai has joined #openttd
09:01:35 *** ChanServ sets mode: +v tokai
09:01:41 *** gelignite has joined #openttd
09:08:38 *** tokai|noir has quit IRC
09:23:07 *** Samu_ has joined #openttd
09:50:22 *** Gustavo6056 has joined #openttd
09:56:28 *** Gustavo6046 has quit IRC
09:56:28 *** Gustavo6056 is now known as Gustavo6046
10:05:16 <Samu_> hi
10:33:50 *** m3henry has joined #openttd
10:36:20 <FLHerne> Samu_: Yes, if the license is compatible
10:36:39 <FLHerne> I don't see why you care about very old OTTD versions at all
10:49:44 <Samu_> @calc 12/2/4+1
10:49:44 <DorpsGek> Samu_: 2.5
10:50:14 *** Gustavo6056 has joined #openttd
10:50:24 <Samu_> @calc (12/2/4)*2+1
10:50:24 <DorpsGek> Samu_: 4
10:51:00 <Samu_> @calc (14/2/4)*2+1
10:51:00 <DorpsGek> Samu_: 4.5
10:51:13 <Samu_> @calc (11/2/4)*2+1
10:51:13 <DorpsGek> Samu_: 3.75
10:51:29 <Samu_> hmm
10:51:43 <Samu_> @calc 12/2%4
10:51:43 <DorpsGek> Samu_: 2
10:52:32 <Samu_> @calc 6%4
10:52:32 <DorpsGek> Samu_: 2
10:52:36 <Samu_> @calc 6/4
10:52:36 <DorpsGek> Samu_: 1.5
10:52:52 <Samu_> bah, how do I get 6/4 = 1 in this calculator?
10:54:58 *** andythenorth has joined #openttd
10:57:02 *** Gustavo6046 has quit IRC
10:57:02 *** Gustavo6056 is now known as Gustavo6046
11:27:23 <LordAro> @calc 6//4
11:27:23 <DorpsGek> LordAro: 1
11:27:29 <LordAro> python3
11:35:12 *** andythenorth has left #openttd
11:50:16 *** Gustavo6056 has joined #openttd
11:57:35 *** Gustavo6046 has quit IRC
11:57:36 *** Gustavo6056 is now known as Gustavo6046
12:15:37 *** Mahjong has joined #openttd
12:20:17 *** Mahjong2 has quit IRC
12:50:44 *** Gustavo6056 has joined #openttd
12:56:47 *** Gustavo6046 has quit IRC
12:56:47 *** Gustavo6056 is now known as Gustavo6046
13:22:42 *** gelignite has quit IRC
13:50:55 *** Gustavo6056 has joined #openttd
13:57:48 *** Gustavo6046 has quit IRC
13:57:48 *** Gustavo6056 is now known as Gustavo6046
14:02:36 *** kaane has joined #openttd
14:02:43 *** Eddi|zuHause is now known as Eddi|zuHause2
14:04:45 *** m3henry has quit IRC
14:06:43 *** Eddi|zuHause2 is now known as Eddi|zuHause
14:09:27 *** snail_UES_ has joined #openttd
14:12:49 *** reldred has quit IRC
14:18:09 *** reldred has joined #openttd
14:27:09 *** sim-al2 has joined #openttd
14:48:38 *** snail_UES_ has quit IRC
14:50:53 *** Gustavo6056 has joined #openttd
14:54:09 <Samu_> https://imgur.com/HOiqBqJ
14:54:12 <Samu_> almost there
14:54:27 *** Gustavo6046 has quit IRC
14:54:27 *** Gustavo6056 is now known as Gustavo6046
14:55:11 <Samu_> it shall never build level crossings
14:55:20 <Samu_> only bridges
15:08:50 *** wodencafe has quit IRC
15:14:05 *** wodencafe has joined #openttd
15:16:27 <LordAro> when was the last time someone compiled OTTD on morphos?
15:19:28 *** m3henry has joined #openttd
15:19:48 <LordAro> http://morphos-files.ppa.pl/find.php?find=openttd not since 2009, methinks
15:44:38 <Samu_> yay, I did it
15:44:42 <Samu_> https://imgur.com/lIctRz7
15:44:47 <Samu_> I created a trap
15:45:28 <Samu_> but the pathfinder builds his own bridge
15:45:32 <Samu_> over the rails
15:45:39 <Samu_> the buses are also smart
15:46:00 <Samu_> they aren't walking into the level crossing tile as well
15:46:02 <Samu_> I'm happy
15:48:36 <Samu_> but now the pathfinder is utterly slow :(
15:50:46 *** Gustavo6056 has joined #openttd
15:57:08 *** Gustavo6046 has quit IRC
15:57:08 *** Gustavo6056 is now known as Gustavo6046
15:57:12 *** sim-al2 has quit IRC
16:01:07 <Eddi|zuHause> i'm pretty sure morphos got dropped because of lack of gcc4
16:07:53 <LordAro> there's quite a bit of code left in that's specific to it
16:08:17 <Eddi|zuHause> i'm not sure there's a reason to remove that
16:08:54 <LordAro> dead code tends to bitrot
16:09:31 <Eddi|zuHause> yes, but as long as there's no maintenance effort wasted there, what's the harm?
16:09:46 <Eddi|zuHause> it could be used by someone in the future to revive the port
16:20:35 *** sla_ro|master has joined #openttd
16:29:31 *** Alberth has joined #openttd
16:29:31 *** ChanServ sets mode: +o Alberth
16:29:41 <Alberth> moin
16:37:26 *** nielsm has joined #openttd
16:40:34 <LordAro> hihi
16:42:34 <m3henry> 'lo
16:47:25 *** WWacko1976-work has quit IRC
16:50:53 *** Gustavo6056 has joined #openttd
16:56:37 *** Gustavo6046 has quit IRC
16:56:37 *** Gustavo6056 is now known as Gustavo6046
17:12:10 <crem3> Hello openttd people.
17:41:01 *** frosch123 has joined #openttd
17:51:15 *** Gustavo6056 has joined #openttd
17:57:07 *** Gustavo6046 has quit IRC
17:57:07 *** Gustavo6056 is now known as Gustavo6046
18:06:13 *** Gja has joined #openttd
18:23:02 <Samu_> can i save the pathfinder state into a savegame somehow?
18:25:40 <Samu_> "you tried to save an unsupported type..."
18:25:40 *** Flygon has quit IRC
18:25:43 <Samu_> bah
18:26:14 <Samu_> I dont even know what's in there
18:31:20 <Samu_> oh, i have to edit graph.aystar thing to support load/save?
18:31:24 <Samu_> boring
18:33:17 <Samu_> it's an instance
18:33:22 <Samu_> how to save instances?
18:33:24 <Samu_> halp
18:34:09 <Samu_> not even a table
18:34:12 <Samu_> or array
18:34:33 <Samu_> but an instance, i have no idea how to save an instance
18:34:37 <Alberth> of course not, a path finder is code with data
18:35:00 <Alberth> can't you extract the path from it, and save that in an array or so?
18:37:08 <Samu_> i was splitting the pathfinder progress into intervals
18:37:58 <Samu_> pathfind for 100 interactions and then if no path wasn't found yet, save pathfinder current progress
18:38:21 <Alberth> ah, yes, then you need to save state
18:38:24 <Samu_> do some other stuff like managing the rest, or even build an aircraft route, and then, on the next cycle, return
18:38:50 <LordAro> probably not worth saving pathfinder state itself, more like current route so far
18:38:56 <LordAro> which you can store outside the pathfinder
18:39:03 <Alberth> you're talking about AI ?
18:39:21 <LordAro> aye
18:39:28 <Samu_> yes
18:39:37 <Alberth> if so, can't you just drop the state, and recompute it again when you load the game ?
18:39:49 <Samu_> i guess so
18:39:56 <LordAro> ^
18:40:01 <Alberth> may cost a few cycles, but saves lots of headaches
18:40:03 <Samu_> but that means it's losing time
18:40:06 <Samu_> oh, i see
18:40:19 <LordAro> if it were doing the whole route at once, maybe it would be worth it
18:40:42 <LordAro> but that's kinda the point of splitting it up anyway - doing it in small chunks
18:40:44 <Alberth> unless you save and reload every game day, I wouldn't worry too much about those cylces
18:42:05 <Samu_> m_pathfinder = null; goes back to null
18:42:09 <Alberth> you could extract the small chunk from the pathfinder, and save it in a list or so in the vehicle
18:42:52 <Alberth> instead of querying the next tile each time, query the entire small part in one go
18:42:54 *** Progman has joined #openttd
18:47:11 <Samu_> hmm have to estimate a max_cost for the pathfinder
18:47:21 <Samu_> if I am to let it run infinitely
18:47:32 <Samu_> but at intervals
18:48:05 <Samu_> or it can take 2500 cumulative days without finding anything
18:48:17 <Samu_> just to tell me no path found
18:49:42 <nielsm> a player loading a saved game from another day will typically also need some time to remember what s/he was doing last ;)
18:51:31 *** Gustavo6056 has joined #openttd
18:58:47 *** Gustavo6046 has quit IRC
18:58:47 *** Gustavo6056 is now known as Gustavo6046
19:01:51 <Alberth> no, I always save with the next thing to work on in the middle of the screen :)
19:01:53 *** m3henry has quit IRC
19:02:10 *** Wolf01 has joined #openttd
19:02:13 <Alberth> o/
19:02:30 <Wolf01> o/
19:08:46 *** Gja has quit IRC
19:09:15 <Wolf01> Meh... faulty math parser... -2*-2 = --4
19:09:18 <Heiki> during a game, is there any easy way to find out which vehicles are available, other than building depots for every transportation type?
19:09:45 <frosch123> yes
19:09:55 <frosch123> open the vehicle list and click "available vehicles"
19:10:09 <frosch123> i think it even works for specators
19:10:31 <Heiki> oh, thank you, that was too obvious
19:13:32 <Eddi|zuHause> <Wolf01> Meh... faulty math parser... -2*-2 = --4 <-- well, it's not wrong :p
19:13:56 <Wolf01> No, but when you have 123/--4 it is
19:14:23 <Wolf01> Division by zero, because that's the fault
19:14:29 <Eddi|zuHause> really, if i were building a math parser, -2*-2 would be invalid syntax
19:14:31 <nielsm> just search/replace -- with +
19:14:34 <nielsm> or empty string
19:15:08 <Eddi|zuHause> can only have unary operators at the beginning of a string or a (
19:15:34 <Wolf01> nielsm: not so easy, you might want + when there's a number or ) before, but empty if there's nothing
19:19:11 <Wolf01> The problem is that the functions can't tell if the - is the sign of the number or if a subtraction operation, and they treat it always as subtraction
19:19:43 <Wolf01> I need to debug it (luckily I've some unit tests) and try to fix it
19:19:57 <Wolf01> Or trash it and look for another one
19:20:55 <Eddi|zuHause> uhm, that should be a trivial change to the grammar you're building your parser from
19:22:26 <Wolf01> http://www.freevbcode.com/ShowCode.asp?ID=2090 <- I started from this one because can easily be adapted to the language we use, but I think I'll take a c# one and make it a library
19:22:38 <LordAro> i think i've rewritten findversion.sh in cmake
19:22:44 <LordAro> god is it an ugly language
19:25:33 <LordAro> https://github.com/LordAro/OpenTTD/commit/1ea407bfa16025fd29edbedc8c50fc27dd93d9eb lovely
19:27:39 <Wolf01> About ugly languages, we should talk again when you've tried a block language in form of code, it tricks you that you are writing code but instead you are making blocks, you can't reliably use copy/paste and a lot of classic features of a code editor, and I don't speak about when you type in the wrong keyword and it creates an entire structure you don't want and you are forced to ctrl-z multiple
19:27:40 <Wolf01> times (which doesn't work as it's expecting a value to be inserted) so you have to hit ESC (one time, because 2 times closes the editor) and ctrl-z again
19:27:41 <frosch123> you left the else/endif () empty :p
19:28:24 <LordAro> frosch123: yeah, couldn't think of anything good to put in them when there was an elseif above
19:28:54 <Wolf01> I mean a language like this: http://www.blocklanguages.org/
19:29:33 <frosch123> https://gist.github.com/tonious/1377667 <- that was a funny read during lunch
19:30:26 *** Gja has joined #openttd
19:30:36 <frosch123> a beginner writes a terrible peace of code, other people praise it, it gets top search hits, people discover all the fundamental flaws, meanwhile-less-beginner author asks people to stop commenting :p
19:30:36 <Wolf01> Ha! :D
19:30:48 <frosch123> *piece
19:30:50 *** Progman has quit IRC
19:38:26 *** Oroburos has joined #openttd
19:42:43 *** andythenorth has joined #openttd
19:42:46 *** HerzogDeXtEr has joined #openttd
19:44:29 <andythenorth> yo
19:46:46 *** Wacko1976 has joined #openttd
19:47:27 <Samu_> pathfinder not too smart https://imgur.com/FrJhEqx
19:51:35 *** Gustavo6056 has joined #openttd
19:53:57 <Samu_> since i'm editing the pathfinder, gonna try solve this
19:57:08 *** Gustavo6046 has quit IRC
19:57:08 *** Gustavo6056 is now known as Gustavo6046
19:57:50 <nielsm> oh yeah if you can make those "down-up" "up-down" sequences not appear that'd probably help a lot making the AI appear smart
19:57:52 <andythenorth> is there anything good on the internet?
19:58:54 <nielsm> the internet is shit
19:59:40 <nielsm> Samu_: but arguably eliminating "down-up" sequences might not be worth the while when running under "realistic acceleration" rules
20:00:06 <Samu_> the bridge is owned by the town
20:00:09 <nielsm> (and for sufficiently overpowered trains, "up-down" can also be ignored)
20:00:11 <nielsm> ah
20:01:07 <Samu_> the tile in front of the bridge is owned by the AI, hmm
20:01:42 <Samu_> i think i know where in the code this happens, let me see
20:02:58 *** Wacko1976 has quit IRC
20:09:00 <Samu_> AIRoad.CanBuildConnectedRoadPartsHere(cur_node, path.GetParent().GetTile(), next_tile)
20:09:03 <Samu_> seems fine
20:09:07 <Samu_> why didn't it fail
20:12:08 <Samu_> oh, the pathbuilder builds backwards, i have to look at this in the opposite way :(
20:12:14 <Samu_> pathfinder
20:13:06 <Samu_> pathfinder first tile is 26789
20:13:12 <Samu_> then 26790
20:13:20 <Samu_> then the bridge, owned by the town
20:13:44 <Samu_> the pathbuilder does the opposite
20:13:56 <Samu_> bridge first, then 26790, then 26789
20:18:44 *** jamillent has joined #openttd
20:23:07 <andythenorth> so how is TrueBrain? o_O
20:25:45 *** Gja has quit IRC
20:40:44 <Eddi|zuHause> man this trump guy is funny... first he's all like "the mexicans will pay for this wall" and then he gets upset when he doesn't get a budget for this wall, that wasn't supposed to cost anything?
20:41:36 <andythenorth> he's just a regular narcisstic pyschopath
20:41:44 <andythenorth> who has managed to be unusually lucky
20:42:13 *** sim-al2 has joined #openttd
20:50:39 *** gelignite has joined #openttd
20:51:37 *** Gustavo6056 has joined #openttd
20:58:38 *** Gustavo6046 has quit IRC
20:58:38 *** Gustavo6056 is now known as Gustavo6046
21:06:52 <Eddi|zuHause> also this concept of a government shutdown is completely foreign to me
21:07:14 <Eddi|zuHause> over here, "no new budget" means "well, we'll just continue in the spirit of the old budget then"
21:07:18 *** sim-al2 has quit IRC
21:09:00 <frosch123> Eddi|zuHause: old governments have it harder
21:09:23 <Eddi|zuHause> i believe it was Bismarck who introduced that concept
21:09:29 <frosch123> switzerland did not get women suffrage till 1970
21:09:45 <frosch123> all other european countries got by either 1920 or 1945
21:10:07 <frosch123> uk has all land owned by knights or something
21:10:24 <frosch123> in other countries everything was disowned at some point
21:12:06 <Samu_> pathfinder is weird
21:12:16 <Samu_> i'm getting the parent of the parent of the cur_tile
21:13:10 <Eddi|zuHause> there are a lot of layers in that
21:14:01 *** sim-al2 has joined #openttd
21:14:27 <frosch123> well, no need to make the MI conclusion
21:16:29 <Samu_> i think i solved the issue, not really sure, as the pathfinder decided on an entirely different way
21:16:57 <andythenorth> frosch123: allegedly the Estate of the Duke of Westminster owns contiguous land from west of Bristol all the way to London https://en.wikipedia.org/wiki/Grosvenor_Group
21:17:39 <andythenorth> houses where I live are mostly leasehold (on 999 year leases), with a nominal ground rent paid to the landower....
21:17:50 <andythenorth> ...in my old house it was the Duke of Westminster
21:18:09 <andythenorth> :P
21:18:20 <frosch123> could you call him when something was broken?
21:18:32 <Samu_> https://imgur.com/LpFGQbG
21:18:50 <andythenorth> frosch123: I could have tried
21:18:53 <Samu_> decided not to go through that bridge at all, build further to the south
21:18:54 <andythenorth> he's probably on LinkedIn :P
21:19:24 <andythenorth> LinkedIn is awful, I tried it
21:19:30 <andythenorth> it's a horrid place
21:19:46 <Samu_> the check was made on the last line of attempt 1/5
21:20:03 <Samu_> decided to discard this route :(
21:20:08 <Samu_> hmm
21:20:15 <andythenorth> when did Chrome go cartoon?
21:20:18 <andythenorth> must have been an update :P
21:20:33 <frosch123> chrome and firefox swapped their themese
21:21:04 <frosch123> firefox changed from round to angled
21:21:11 <frosch123> chrome changed from angled to round or something
21:22:30 <andythenorth> FF has introduced an interesting behaviour with cached pages on https
21:22:33 <andythenorth> and the back button
21:22:36 <andythenorth> it fails all the time
21:22:47 <andythenorth> with errors, then 'try again' errors differently
21:23:01 *** Wacko1976 has joined #openttd
21:23:15 <andythenorth> 73% of Iron Horse sprites done :P
21:23:33 <Eddi|zuHause> "There are C programmers that are younger than this code sample." haha :p
21:24:00 <frosch123> when andy states progress, i always wonder whether he drew more sprites or deleted more plans
21:24:40 <Eddi|zuHause> probably the latter
21:24:41 <frosch123> Eddi|zuHause: how many bugs did you find in ht_hash() ?
21:24:53 <Eddi|zuHause> frosch123: haven't really looked at the code
21:25:17 <frosch123> today i needed a hash function in plain c (no std::hash), and google gave me that
21:25:22 <frosch123> i did not copy :)
21:26:17 <andythenorth> frosch123: all 3
21:26:37 <andythenorth> you missed an option :P
21:26:58 <frosch123> you drew 3 sprites?
21:27:16 <andythenorth> sometimes I find I missed a vehicle, but it's a copy-paste
21:27:26 <andythenorth> so total goes up, but % completed goes up slightly faster
21:28:33 <andythenorth> I wasted 4 days on stupid easter eggs last week though :P
21:28:37 <andythenorth> ctrl-click livery nonsense
21:29:10 <frosch123> do sprites say "i do not like this, please rotate me back"?
21:29:18 <andythenorth> not so far
21:29:24 <Eddi|zuHause> andythenorth: you mean like https://www.xkcd.com/2014/ ?
21:29:25 <andythenorth> although I provided all my own offsets
21:29:48 <andythenorth> Eddi|zuHause: exactly
21:29:53 <andythenorth> there is an XKCD for all occasions
21:29:55 * andythenorth tests that
21:29:56 <frosch123> Eddi|zuHause: looks pretty much like the latest xkcd
21:30:14 <andythenorth> I tried 'divorce' https://xkcd.com/473/
21:30:27 <andythenorth> 'cheese' https://xkcd.com/140/
21:30:44 <andythenorth> 'duvet' https://xkcd.com/219/
21:30:47 <Eddi|zuHause> frosch123: there is also https://xkcd.com/1725/
21:31:58 <andythenorth> did Wolf01 fix NRT yet? o_O
21:32:09 <Wolf01> Nope
21:32:46 <Wolf01> I'm fixing a math parser @work, drains energies
21:32:48 <andythenorth> oof
21:33:01 <andythenorth> people getting jobs is why OpenTTD dies
21:33:17 <Wolf01> Agreed
21:33:40 <Eddi|zuHause> Wolf01: how hard could it be? writing a simple parser from scratch is like 1 hour
21:33:54 <andythenorth> oof
21:34:01 <andythenorth> harsh :P
21:34:19 <Eddi|zuHause> well, assuming the parser generator is already installed
21:34:39 <frosch123> Eddi|zuHause: are you sure you would be done argueing about writing one in an hour?
21:34:58 <Wolf01> The problem is that boss want speed, which means I need to find stuff which already does the job, and lose time to fix it
21:35:21 <Wolf01> Because learning how to do it well takes more time
21:35:24 <Eddi|zuHause> what kind of speed?
21:35:33 <frosch123> implementation speed, not runtime speed
21:35:34 <Wolf01> Like "I want it for this evening"
21:35:52 <frosch123> Eddi|zuHause: did you not read LA's text yesterday?
21:35:57 <Eddi|zuHause> frosch123: well, i'd not be done discussing whether to use lex/yacc or flex/bison in one hour
21:36:29 <Eddi|zuHause> frosch123: which text?
21:36:31 <frosch123> you can reserve the second hour for bison2 vs bison3
21:36:52 <frosch123> Eddi|zuHause: the text about the guy that still dreams that programmers could write good software smoe day
21:37:08 <Eddi|zuHause> i read that
21:37:31 <Eddi|zuHause> it's a nice dream
21:37:44 <frosch123> then you should have known that noone cares about runtime speed, if you can blame it on the customer
21:37:54 <Eddi|zuHause> it dies immediately on a boss saying "i'm not paying you for THAT, do THIS"
21:38:08 <andythenorth> my friend found the same article, but from 2002 https://www.technologyreview.com/s/401594/why-software-is-so-bad/
21:38:22 <andythenorth> and I'm sure there are some in mythical man month or similar from 1967 or so
21:38:26 <frosch123> no, it actually dies immediately because most programmers do not find the 3 major bugs in ht_hash()
21:38:54 <Eddi|zuHause> frosch123: like i said, i haven't actually looked
21:38:57 <andythenorth> 'if software was cars'
21:39:08 <andythenorth> but software is more like....well....software
21:39:17 <andythenorth> I was going to say novels, or architecture
21:39:22 <andythenorth> but it's just like software
21:39:29 <frosch123> andythenorth: there was a counter-speech to that once
21:39:36 <andythenorth> just one?
21:39:43 <andythenorth> or several competing counter speeches?
21:39:44 <frosch123> if cars developed like computers, they would drive at lightspeed or something
21:39:48 <andythenorth> all built on dubious foundations?
21:40:04 <andythenorth> software is awful :P
21:40:32 <Eddi|zuHause> but if cars doubled speed every 2 years, the world would still sit in a giant traffic jam
21:40:47 <nielsm> if cars were developed like computers their fuel consumption would rise every year
21:40:54 <andythenorth> they did
21:40:58 <frosch123> oh, andy's text even cites that story in the intro :p
21:41:08 <andythenorth> but the software was tweaked to hide it
21:41:20 <Wolf01> Nah, my current PC consumes fewer than the one I had 15 years ago
21:41:24 <nielsm> and you'd get the engines going out more and more often
21:41:28 <andythenorth> due to equipment and safety, car weight allegedly increased significantly in last 20 years
21:41:43 <Eddi|zuHause> Wolf01: but your cell phone?
21:41:49 <Eddi|zuHause> Wolf01: and your watch?
21:42:07 <Eddi|zuHause> Wolf01: and all the ~2000 computers in your car
21:42:13 <andythenorth> if there were more engineers, would software get better or worse?
21:42:36 <Alberth> we'd just have more software
21:43:01 <Eddi|zuHause> there would be more software, so also more worse software.
21:43:15 <Eddi|zuHause> what's missing is an environment where the good software bubbles to the top
21:43:43 <Eddi|zuHause> some kind of "natural" selection that prevents bad software from spreading
21:43:45 <andythenorth> I lived through a brief period of working software
21:43:47 <Alberth> stuff is too uniq
21:43:57 *** sim-al2 has quit IRC
21:44:14 <andythenorth> there were about 5 golden years of OS X and most of the 3rd party mac apps
21:44:21 <andythenorth> where they literally just worked
21:44:24 <andythenorth> it was remarkable
21:44:26 <Eddi|zuHause> andythenorth: certainly there are more game developers than 20 years ago, which is why steam is drowning in bad games
21:44:26 <andythenorth> then it ended
21:45:11 <Wolf01> <Eddi|zuHause> some kind of "natural" selection that prevents bad software from spreading <- the opposite of internet
21:45:11 <Eddi|zuHause> andythenorth: that's because the appleverse is effectively a monopoly. and monopolys always degrade like that
21:45:32 <andythenorth> it was deceptive, because for several years in a row, it only got better
21:45:41 <andythenorth> so it seemed like progress would continue
21:45:49 <andythenorth> then it plateaued
21:45:57 <andythenorth> and now it yings and yangs between bearable, and horrific
21:45:58 <LordAro> all computers are pretty terrible
21:46:15 <andythenorth> mine crashes every few weeks
21:46:19 <andythenorth> that's ridiculous
21:46:37 <andythenorth> I used to have macs that would stay up for a year
21:46:50 <Eddi|zuHause> andythenorth: it's because there is no way to switch back and forth between, say, microsoft and apple. once you pick a side, you're vendor-locked
21:47:13 <andythenorth> only for photos of your family
21:47:23 <andythenorth> pretty much everything else is platform neutral
21:47:50 <Alberth> try running an apple program at a windows machine
21:47:56 <Eddi|zuHause> apple's tendency to remove standard interfaces (like headphone jack or USB port) doesn't fit that
21:48:22 <andythenorth> but Office 365 is just a subscription
21:48:29 <andythenorth> Adobe CC is just a subscription
21:48:37 <andythenorth> Dropbox is just a subscription
21:48:43 * LordAro runs andythenorth in a web browser
21:48:44 <andythenorth> the only lock in is the sync with my phone
21:48:46 <Alberth> single vendor
21:49:24 <andythenorth> yes
21:49:48 <andythenorth> how can we fix it all?
21:49:51 <andythenorth> or we can't? :P
21:49:54 <andythenorth> draw pixels instead
21:50:05 <Eddi|zuHause> is that just me, or has xkcd's random button stopped working without javascript?
21:50:20 <Wolf01> I'm playing F with a friend
21:50:31 <andythenorth> Eddi|zuHause: it's all just awful
21:50:55 <andythenorth> has that guy implemented chrome inside openttd yet?
21:51:10 <Eddi|zuHause> brb
21:51:24 <andythenorth> basically that, that is all the wrong
21:51:30 *** Gustavo6056 has joined #openttd
21:51:37 <andythenorth> https://www.tt-forums.net/viewtopic.php?f=32&t=83555
21:52:05 *** Eddi|zuHause has quit IRC
21:52:21 *** Gja has joined #openttd
21:56:50 <frosch123> openbu still posting?
21:57:02 <frosch123> i would think they have reached the age of 16 by now
21:57:16 <andythenorth> there seem to be charts
21:58:40 *** Gustavo6046 has quit IRC
21:58:40 *** Gustavo6056 is now known as Gustavo6046
21:59:19 <frosch123> and olympics
22:00:48 <LordAro> oh god, the electron guy
22:01:57 <LordAro> well at least 1.2.6 has been done
22:02:10 <LordAro> you might argue that 1.2.5 has been rewritten
22:02:18 <LordAro> 1.2.7 is oddly specific
22:03:08 <frosch123> yeah, i also wondered about 1.2.7
22:03:44 <LordAro> be nice if there was a way to pipe station production data out thougj, i guess
22:03:59 <LordAro> or can the admin port do it?
22:04:45 <frosch123> the admin port can do everything in theory
22:04:55 <frosch123> it's just kind of hard to setup
22:05:08 <frosch123> you need a gs and an external tool
22:09:31 <LordAro> be nice if the gs wasn't necessary, i guess
22:10:11 <andythenorth> shall I close old PRs? o_O
22:10:16 <andythenorth> as 'not happening'
22:10:25 <LordAro> are there any?
22:10:33 <andythenorth> not yet :)
22:10:49 <LordAro> i didn'y spot any obvious ones the other day
22:10:55 <andythenorth> I think 3 months without activity is minimum grace period
22:10:58 <andythenorth> maybe longer
22:11:19 <LordAro> i think that's what TB wanted to do
22:11:25 <LordAro> as long as they're waiting on author
22:11:55 <andythenorth> I should make a filter that excludes those
22:13:05 *** Wacko1976_ has joined #openttd
22:14:44 <andythenorth> https://github.com/OpenTTD/OpenTTD/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Aopen+-label%3A%22waiting-on-author%22+
22:15:23 <frosch123> there is nothing wrong with having a page of PRs
22:15:53 <frosch123> if you need more reviewers you need to offer them a selection of stuff to review
22:16:00 <andythenorth> I just need to filter out the ones that aren't moving
22:16:35 <andythenorth> oh samu's can be merged? https://github.com/OpenTTD/OpenTTD/pull/6902
22:16:35 <frosch123> if stuff moves, clean your screen
22:16:48 *** sla_ro|master has quit IRC
22:19:17 *** Progman has joined #openttd
22:20:04 *** Wacko1976 has quit IRC
22:25:34 <andythenorth> 74% :P
22:26:12 <andythenorth> just 50 trains to draw :P
22:26:17 <andythenorth> and the ones I forgot to add yet
22:26:55 <LordAro> 6902, 6912 can be merged immediately, imo
22:27:53 <LordAro> 6904 needs checking that the autogenerated stuff is correct (i think samu did it manually)
22:27:58 *** Eddi|zuHause has joined #openttd
22:28:04 <LordAro> and possibly checked whether it's necessary
22:28:36 <LordAro> 6906 & 6911 look fine to me too, but need someone more knowledgable than i
22:28:52 <LordAro> same for the nielsm PRs :p
22:29:25 *** Eddi|zuHause has quit IRC
22:29:44 *** Eddi|zuHause has joined #openttd
22:29:51 <nielsm> 6912 the ICU one, is it confirmed it doesn't break any versions of ICU that should continue working?
22:30:44 <LordAro> don't see why it would
22:31:13 <LordAro> it's been in a namespace all along afaik, they've just removed the using icu... from the headers
22:31:32 <nielsm> ah
22:31:36 <LordAro> you're welcome to test on an old debian stable if you like though :p
22:31:41 <DorpsGek_II> [OpenTTD/OpenTTD] SamuXarick merged pull request #6902: Fix #6892: [Script] CONFIG_RANDOM range limit https://github.com/OpenTTD/OpenTTD/pull/6902
22:31:41 <DorpsGek_II> [OpenTTD/OpenTTD] frosch123 pushed 1 commits to master:
22:31:41 <DorpsGek_II> - Fix #6892: [Script] CONFIG_RANDOM did not use the full parameter range (#6902) (by SamuXarick)
22:31:43 <DorpsGek_II> https://github.com/OpenTTD/OpenTTD/commit/41fb7cb15e79
22:31:49 <DorpsGek_II> [OpenTTD/OpenTTD] SamuXarick closed issue #6892: CONFIG_RANDOM bug https://github.com/OpenTTD/OpenTTD/issues/6892
22:32:03 <nielsm> the sprite sorting change is probably correct
22:32:24 <nielsm> I don't understand the SSE4 code though
22:32:29 <frosch123> the second sprite sorting pr looks way better than the first one, definitely :)
22:33:43 <LordAro> aye
22:35:00 <frosch123> 6912 is weird... how did it compile before?
22:35:06 <nielsm> 6754 clone tool, making the requested change to it should be rather simple, even if not by the original PR author
22:35:12 <frosch123> was there some hidden "using namespace icu"?
22:35:33 <LordAro> frosch123: yeah, they've been removing it in newer versions
22:35:44 *** Alberth has left #openttd
22:35:46 <LordAro> there was a similar PR (that i did) for v61
22:36:04 <nielsm> does anyone know if peter1138 will set aside the bike when winter arrives? :)
22:36:47 <DorpsGek_II> [OpenTTD/OpenTTD] steils merged pull request #6912: Fix #6854: Compilation with ICU 62 https://github.com/OpenTTD/OpenTTD/pull/6912
22:36:48 <DorpsGek_II> [OpenTTD/OpenTTD] frosch123 pushed 1 commits to master:
22:36:48 <DorpsGek_II> - Fix #6854: Compilation with ICU 62 (#6912) (by steils)
22:36:49 <DorpsGek_II> https://github.com/OpenTTD/OpenTTD/commit/fec44b0d0928
22:36:55 <DorpsGek_II> [OpenTTD/OpenTTD] Polynomial-C closed issue #6854: Build failure with icu-62.1 https://github.com/OpenTTD/OpenTTD/issues/6854
22:37:08 <LordAro> nielsm: wouldn't bet on it :p
22:40:02 <nielsm> anyone I'm off to bed
22:40:20 <nielsm> shall take time this weekend to test the fluidsynth music thing
22:40:48 <nielsm> might also be worth (as a separate change later) to make it work on windows, maybe
22:41:35 <DorpsGek_II> [OpenTTD/OpenTTD] frosch123 commented on pull request #6906: Fix #6742: Only possible to build station next to competitor by using CTRL+click https://github.com/OpenTTD/OpenTTD/pull/6906#issuecomment-423325965
22:42:15 <LordAro> nielsm: i didn't write the code, but it looks simple enough that i should be able to modify it as necessary
22:42:19 <LordAro> in theory.
22:49:10 *** nielsm has quit IRC
22:52:02 *** Gustavo6056 has joined #openttd
22:55:30 <andythenorth> nice, closed PRs :)
22:56:20 <DorpsGek_II> [OpenTTD/OpenTTD] frosch123 commented on issue #6908: Request: Persistent storage for vehicles https://github.com/OpenTTD/OpenTTD/issues/6908#issuecomment-423330322
22:59:12 *** Gustavo6046 has quit IRC
22:59:12 *** Gustavo6056 is now known as Gustavo6046
23:01:23 <frosch123> ^^ just scaring people who consider working on that :p
23:04:56 *** gelignite has quit IRC
23:08:42 <andythenorth> can we not just cache George's big calculation? :P
23:08:47 * andythenorth invents horrible caching system
23:09:04 <andythenorth> if result is same 5 times in a row (when called), it's never calculated again
23:17:14 *** m3henry has joined #openttd
23:23:17 <Wolf01> 'night
23:23:19 *** Wolf01 has quit IRC
23:24:36 *** Progman has quit IRC
23:35:30 *** andythenorth has quit IRC
23:40:55 <Samu_> (path.GetParent() == null || path.GetParent().GetParent() == null || AIRoad.CanBuildConnectedRoadPartsHere(next_tile, path.GetParent().GetParent().GetTile(), cur_node))
23:45:55 *** frosch123 has quit IRC
23:46:32 <Samu_> if the parent of the parent of the cur_node exists, this would fix the ERR_LAND_SLOPED_WRONG
23:46:57 <Samu_> if it doesn't exist, I'm not sure what to do
23:47:24 <Samu_> CanBuildConnectedRoadPartsHere is the holy grail function
23:47:40 <Samu_> and I wouldn't be able to use it
23:47:47 <Samu_> so, hmm what could I do
23:52:11 *** Gustavo6056 has joined #openttd
23:59:12 *** Gustavo6046 has quit IRC
23:59:12 *** Gustavo6056 is now known as Gustavo6046