IRC logs for #openttd on OFTC at 2017-11-15
            
00:52:52 *** Flygon has joined #openttd
01:37:43 *** sim-al2 has joined #openttd
01:38:14 *** chomwitt has quit IRC
01:43:34 *** bryjen has joined #openttd
02:12:06 *** Samu has quit IRC
02:24:57 *** FLHerne has quit IRC
02:33:00 *** Gustavo6046 has quit IRC
04:07:21 *** glx has quit IRC
05:09:13 *** Supercheese has joined #openttd
05:19:54 *** zeta has quit IRC
05:20:37 *** zeta has joined #openttd
05:38:42 *** Cubey has quit IRC
05:42:48 *** sla_ro|master has joined #openttd
06:02:20 *** sla_ro|master has quit IRC
06:04:28 *** bryjen has quit IRC
06:15:45 *** sim-al2 has quit IRC
06:52:09 *** sim-al2 has joined #openttd
07:15:10 *** Supercheese has quit IRC
07:36:26 *** andythenorth has joined #openttd
07:43:34 *** Vadtec has quit IRC
07:43:34 *** Warrigal has quit IRC
07:43:34 *** _dp_ has quit IRC
07:43:34 *** fiatjaf has quit IRC
07:43:34 *** Maarten has quit IRC
07:43:34 *** nauticalnexus has quit IRC
07:43:34 *** APTX_ has quit IRC
07:43:34 *** ccfreak2k has quit IRC
07:43:34 *** supermop_home has quit IRC
07:43:34 *** Speedy has quit IRC
07:43:34 *** Tharbakim has quit IRC
07:43:34 *** Sylf has quit IRC
07:45:21 *** Sylf has joined #openttd
07:45:21 *** APTX_ has joined #openttd
07:45:21 *** _dp_ has joined #openttd
07:45:21 *** fiatjaf has joined #openttd
07:45:21 *** Warrigal has joined #openttd
07:45:21 *** nauticalnexus has joined #openttd
07:45:21 *** Maarten has joined #openttd
07:45:21 *** supermop_home has joined #openttd
07:45:21 *** Speedy has joined #openttd
07:45:21 *** Tharbakim has joined #openttd
07:45:21 *** ccfreak2k has joined #openttd
07:45:21 *** Vadtec has joined #openttd
07:47:21 *** LongyanG has quit IRC
07:47:23 *** LongyanG has joined #openttd
07:56:31 *** tokai has joined #openttd
07:56:31 *** ChanServ sets mode: +v tokai
08:03:29 *** tokai|noir has quit IRC
08:15:55 *** Mazur has quit IRC
08:20:08 *** andythenorth has quit IRC
08:25:08 *** Mazur has joined #openttd
08:53:26 *** stefino has joined #openttd
09:12:41 *** stefino has joined #openttd
09:14:07 *** stefino has quit IRC
09:59:56 *** PressureLine has joined #openttd
10:00:13 <PressureLine> why are speed limited (train) orders not a thing?
10:14:34 <Eddi|zuHause> because they are?
10:15:06 <Eddi|zuHause> where you can set the loading/travelling times, you can also set a speed limit
10:33:12 <PressureLine> in timetable
10:33:19 <PressureLine> but not 'normal' orders
10:33:27 <PressureLine> anyway. poos then bed
10:33:38 *** PressureLine has quit IRC
10:37:37 <Eddi|zuHause> sometimes i don't understand people
10:38:21 <Eddi|zuHause> "i want feature X" ... "feature X is there" ... "but i want feature X HERE"
10:38:43 <V453000> yes
10:38:45 <V453000> fuck people
10:50:09 <SpComb> sounds like an UI issue
10:50:46 <__ln__> *a UI issue
10:52:43 <Rubidium> everything is UI issue
10:59:22 *** _dp_ has quit IRC
11:06:37 <V453000> or just U issue :P
11:07:04 <Rubidium> isn't that User Input?
11:07:21 <V453000> can be user's output :P
11:09:15 *** Gja has joined #openttd
11:24:23 *** FLHerne has joined #openttd
12:13:28 *** Samu has joined #openttd
12:34:02 *** Gja has quit IRC
12:46:31 *** TheMask96 has quit IRC
12:48:53 *** TheMask96 has joined #openttd
12:58:24 <Samu> when we can't send aircraft to hangar, the summary message and detailed message are the same
12:59:22 <Samu> "Can't send aircraft to hangar... Can't send aircraft to hangar..."
13:04:49 <Samu> unable to find local hangar would fit well for detailed message
13:11:13 *** Gustavo6046 has joined #openttd
13:16:14 *** Gja has joined #openttd
13:43:20 *** Flygon has quit IRC
13:52:21 *** Gustavo6046 has quit IRC
13:57:14 *** Gustavo6046 has joined #openttd
13:57:54 *** Gustavo6046 has joined #openttd
13:59:05 *** Gustavo6046 has quit IRC
13:59:43 *** Gustavo6046 has joined #openttd
14:09:18 *** stefino has joined #openttd
14:19:58 *** stefino has quit IRC
14:25:40 *** stefino has joined #openttd
14:27:56 *** tokai|noir has joined #openttd
14:27:56 *** ChanServ sets mode: +v tokai|noir
14:29:06 *** Thedarkb1 has quit IRC
14:34:54 *** tokai has quit IRC
14:58:05 *** debdog has quit IRC
15:00:23 *** debdog has joined #openttd
15:08:22 *** Gja has quit IRC
15:16:34 *** Thedarkb1 has joined #openttd
15:20:51 *** Gustavo6046 has quit IRC
15:26:34 *** Gustavo6046 has joined #openttd
15:26:52 *** Gustavo6046 has quit IRC
15:30:29 *** Gustavo6046 has joined #openttd
15:30:40 *** Thedarkb1 has quit IRC
15:31:27 *** Samu has quit IRC
15:31:38 *** Samu has joined #openttd
15:50:12 *** debdog has quit IRC
15:50:53 *** Gustavo6046 has quit IRC
15:53:51 *** debdog has joined #openttd
15:56:12 *** sim-al2 has quit IRC
16:18:45 *** Alberth has joined #openttd
16:18:45 *** ChanServ sets mode: +o Alberth
16:18:51 <Alberth> o/
16:20:33 <Samu> hi :)
16:22:09 <Samu> check this https://paste.openttdcoop.org/p13ckykxj
16:23:02 <Samu> line30 to 50
16:25:57 <Samu> the original https://hg.openttd.org/trunk.hg/file/f4cc55fdf952/src/aircraft_cmd.cpp#l113
16:29:02 <Samu> this apparently is enough to prevent the aircraft from getting stuck at depot when servicing, automatic servicing,manual sent, etc...
16:29:08 <Samu> but it's a bit more strict
16:29:38 <Samu> only valid for aircraft with range
16:31:14 <Alberth> lines 42 to 50, the computations for next and current destination are independent, aren't they?
16:31:55 <Samu> sometimes there's only 1 destination
16:32:08 <Alberth> yes
16:32:31 <Alberth> but you can make it a sequence of checks, I think
16:33:23 <Alberth> if 'next is valid' and not 'next in range' continue;
16:33:23 <Alberth> if 'current is valid' and not 'current in range' continue;
16:33:31 <Alberth> or is that wrong?
16:34:11 <Alberth> you may want to deal with current first though as it's more logical to do before the next destination
16:35:32 *** chomwitt has joined #openttd
16:38:49 <Samu> trying to understand
16:40:36 <Samu> if cur_dest is valid, and distance > aircraft limit, continue
16:41:59 <Samu> if not, dont continue yet, but check next_dest
16:42:50 <Samu> if next_dest is not valid, continue anyway
16:44:11 <Samu> hmm, i'll eventually have to repeat code, for the case cur_dest not being valid at the start?
16:46:04 <Alberth> I don't know, it's very hard to read that code
17:07:43 <Samu> ok, gonna try rewriting it in another manner
17:08:52 *** Samu_ has joined #openttd
17:08:59 <Samu_> my connection, grrr
17:09:12 <stefino> hi, guys..if I send PM message here and user is offline, will the message show to him when he turn on? thx
17:09:35 *** Samu has quit IRC
17:18:58 <Samu_> uint max_range = v->acache.cached_max_range_sqr;
17:19:12 <Samu_> this shall make code easier to the eyes :)
17:24:26 *** Cubey has joined #openttd
17:26:53 *** supermop_ has quit IRC
17:35:25 *** chomwitt has quit IRC
17:36:18 *** Progman has joined #openttd
17:40:32 <Samu_> Alberth: https://paste.openttdcoop.org/phdne9rqy
17:40:37 <Samu_> doesn't look much better
17:40:43 <Samu_> what do you say?
17:42:35 <LordAro> stefino: no
17:50:34 <Alberth> If you delete the == UINT_MAX comparison in lines 47 and 48, then line 46 is covered by those lines too, I think
17:51:04 *** Gustavo6046 has joined #openttd
17:53:02 <Alberth> https://paste.openttdcoop.org/pxkgvwdad covers all 3 lines
17:54:09 <Samu_> really? that simple?
17:54:23 <Alberth> I think so, but try it
17:54:50 <Alberth> it can be simplified further, but first this :)
17:55:33 <Samu_> testing
17:56:14 <Alberth> actually, reasoning about it is better
17:56:36 <Alberth> you have 8 cases
17:57:08 <Alberth> both current and bext can be a) invalid, b)valid and in range, c)valid and out of range
17:57:35 <Alberth> hmm, 8 cases make no sense :p
17:58:16 <Samu_> they can both be invalid
17:58:33 <Samu_> in that case, doesn't need to do a continue
17:59:23 *** johannes_ has joined #openttd
18:00:19 <johannes_> Hello, I wanted to install an openttd screensaver on Windows 7, but only found a forum article from 2008. Is this the only Windows compatible screensaver?
18:00:33 *** Stimrol has joined #openttd
18:05:23 *** ingelan has joined #openttd
18:06:20 <Samu_> seems to be working correclty Alberth
18:09:09 <Samu_> i'm planting random airports, to see what happens
18:09:22 <Samu_> and so far, no issues with dest too far
18:10:57 *** ToffeeYogurtPots has joined #openttd
18:15:14 <Samu_> i got some more code after this
18:16:51 <Samu_> automatic servicing is still behaving correctly
18:17:01 <Samu_> here's my code https://paste.openttdcoop.org/plmhkfy3k
18:17:50 <Samu_> line 42
18:17:59 <Samu_> is where FindNearestHangar is called
18:19:10 *** Progman has quit IRC
18:19:15 <Samu_> it's subjected to another DistanceSquare checking, at line 49
18:19:52 <Alberth> ok
18:20:22 <Alberth> next simplification is to use 0 instead of UINT_MAX
18:20:47 <Alberth> since 0 is always in range, you don't need to check for UINT_MAX
18:24:40 <Samu_> I see
18:25:10 <Samu_> sometimes the distance is really 0
18:25:50 <Samu_> 0 > max_range is false
18:26:13 <Samu_> cur_dist != UINT_MAX
18:26:24 <Samu_> is also false, yeah, looks like you're right
18:26:33 *** sla_ro|master has joined #openttd
18:28:06 <Samu_> if (cur_dist > max_range || next_dist > max_range) continue;
18:28:30 *** Thedarkb has joined #openttd
18:30:50 <Samu_> much prettier indeed
18:33:24 *** frosch123 has joined #openttd
18:34:48 <Alberth> o/
18:35:02 <frosch123> hoi
18:38:22 *** HerzogDeXtEr has joined #openttd
18:49:34 *** Gja has joined #openttd
18:57:22 *** glx has joined #openttd
18:57:23 *** ChanServ sets mode: +v glx
19:05:22 *** Gustavo6046_ has joined #openttd
19:08:04 *** Wolf01 has joined #openttd
19:08:18 <Wolf01> o/
19:11:11 *** Gustavo6046 has quit IRC
19:11:20 *** Thedarkb has quit IRC
19:16:28 *** Thedarkb has joined #openttd
19:31:07 *** Gustavo6046__ has joined #openttd
19:36:13 *** Gustavo6046__ has quit IRC
19:36:58 *** Gustavo6046 has joined #openttd
19:38:21 *** Gustavo6046_ has quit IRC
19:58:04 *** ToBeFree has joined #openttd
20:04:49 *** Wormnest has joined #openttd
20:12:59 *** ingelan has left #openttd
20:36:39 *** andythenorth has joined #openttd
20:36:45 <Alberth> o/
20:36:51 <Wolf01> o/
20:37:19 <V453000> yo
20:37:29 <Wolf01> "Predictive Analytics with Python" might be interesting
20:44:14 <Alberth> what's Analytics here?
20:44:24 <Wolf01> https://www.packtpub.com/packt/offers/free-learning
20:45:33 *** Gja has quit IRC
20:46:38 <Samu_> reading books, ugh...
20:46:55 <Samu_> not my strong point
20:47:05 <Wolf01> We noticed
20:47:07 <Alberth> I got that, but what is Analytics? I can't place it
20:47:29 <Alberth> or Predictive Analytics, for that matter
20:48:04 <Wolf01> Data set analysis and prediction models based on what you got from the analysis?
20:48:31 *** quiznilo has joined #openttd
20:48:51 <Alberth> hmm, prediction models, that sounds useful
20:49:52 <Wolf01> Something like statistics I think
20:49:55 <Wolf01> Big data
20:50:42 *** Gja has joined #openttd
20:50:55 <Alberth> statistics would be boring, I know that :p
20:51:04 <Alberth> it's a predictive model though :p
21:01:46 <andythenorth> hi
21:23:13 *** none has joined #openttd
21:23:35 *** none has quit IRC
21:24:36 *** none has joined #openttd
21:29:24 *** ToffeeYogurtPots has quit IRC
21:33:01 *** gelignite has joined #openttd
21:51:21 *** Alberth has left #openttd
21:52:35 <johannes_> Hey, does anyone know an openttd screensaver for Windows 7? I found one in a forum, but this was from 2008
22:07:37 *** ToBeFree has quit IRC
22:11:54 *** stefino has quit IRC
22:16:28 *** Samu_ has quit IRC
22:17:39 *** sla_ro|master has quit IRC
22:36:39 *** gelignite has quit IRC
22:40:12 *** frosch123 has quit IRC
22:44:00 *** none has quit IRC
22:44:19 *** none has joined #openttd
22:48:07 *** sim-al2 has joined #openttd
22:52:44 *** andythenorth has quit IRC
23:07:30 *** Stimrol has quit IRC
23:10:53 <Wolf01> 'night
23:10:56 *** Wolf01 has quit IRC
23:15:20 *** Samu has joined #openttd
23:20:39 *** Gustavo6046 has quit IRC
23:21:15 *** Gustavo6046 has joined #openttd
23:23:11 *** Progman has joined #openttd
23:25:08 *** Gja has quit IRC
23:29:46 *** Gja has joined #openttd
23:48:57 *** Wormnest has quit IRC
23:51:52 *** Gustavo6046 has joined #openttd
23:59:03 *** HerzogDeXtEr has quit IRC