IRC logs for #openttd on OFTC at 2017-11-15
⏴ go to previous day
01:37:43 *** sim-al2 has joined #openttd
05:09:13 *** Supercheese has joined #openttd
05:42:48 *** sla_ro|master has joined #openttd
06:52:09 *** sim-al2 has joined #openttd
07:36:26 *** andythenorth 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 *** Tharbakim has joined #openttd
07:45:21 *** ccfreak2k has joined #openttd
07:47:23 *** LongyanG has joined #openttd
07:56:31 *** ChanServ sets mode: +v tokai
08:53:26 *** stefino has joined #openttd
09:12:41 *** stefino has joined #openttd
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:19 <PressureLine> but not 'normal' orders
10:33:27 <PressureLine> anyway. poos then bed
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:50:09 <SpComb> sounds like an UI issue
10:52:43 <Rubidium> everything is UI issue
11:07:04 <Rubidium> isn't that User Input?
11:07:21 <V453000> can be user's output :P
11:24:23 *** FLHerne has joined #openttd
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:57:14 *** Gustavo6046 has joined #openttd
13:57:54 *** Gustavo6046 has joined #openttd
13:59:43 *** Gustavo6046 has joined #openttd
14:09:18 *** stefino has joined #openttd
14:25:40 *** stefino has joined #openttd
14:27:56 *** tokai|noir has joined #openttd
14:27:56 *** ChanServ sets mode: +v tokai|noir
15:16:34 *** Thedarkb1 has joined #openttd
15:26:34 *** Gustavo6046 has joined #openttd
15:30:29 *** Gustavo6046 has joined #openttd
16:18:45 *** Alberth has joined #openttd
16:18:45 *** ChanServ sets mode: +o Alberth
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: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: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: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: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: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:36:18 *** Progman has joined #openttd
17:40:37 <Samu_> doesn't look much better
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:54:23 <Alberth> I think so, but try it
17:54:50 <Alberth> it can be simplified further, but first this :)
17:56:14 <Alberth> actually, reasoning about it is better
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:59 <Samu_> is where FindNearestHangar is called
18:19:15 <Samu_> it's subjected to another DistanceSquare checking, at line 49
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:25:10 <Samu_> sometimes the distance is really 0
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:33:24 *** frosch123 has joined #openttd
18:38:22 *** HerzogDeXtEr has joined #openttd
19:05:22 *** Gustavo6046_ has joined #openttd
19:16:28 *** Thedarkb has joined #openttd
19:31:07 *** Gustavo6046__ has joined #openttd
19:36:58 *** Gustavo6046 has joined #openttd
19:58:04 *** ToBeFree has joined #openttd
20:04:49 *** Wormnest has joined #openttd
20:36:39 *** andythenorth has joined #openttd
20:37:29 <Wolf01> "Predictive Analytics with Python" might be interesting
20:44:14 <Alberth> what's Analytics here?
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:50:55 <Alberth> statistics would be boring, I know that :p
20:51:04 <Alberth> it's a predictive model though :p
21:29:24 *** ToffeeYogurtPots has quit IRC
21:33:01 *** gelignite has joined #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:48:07 *** sim-al2 has joined #openttd
23:21:15 *** Gustavo6046 has joined #openttd
23:23:11 *** Progman has joined #openttd
23:51:52 *** Gustavo6046 has joined #openttd
continue to next day ⏵