IRC logs for #openttd on OFTC at 2018-09-06
            
00:17:43 <Samu> well, the income estimators
00:18:01 <Samu> almost always return the engine with the most capacity
00:18:51 <Samu> I was hoping for some variety with av8, but nop... mass airships
00:21:11 *** Wormnest has quit IRC
00:24:47 *** snail_UES_ has joined #openttd
00:27:30 <Samu> I need a better means to estimate the min_dist
00:27:37 <Samu> of an aircraft route
00:38:31 <Samu> maybe I don't
00:38:33 <Samu> screw variety
00:45:24 *** sim-al2 has joined #openttd
00:57:47 *** Thedarkb has quit IRC
00:59:14 *** HerzogDeXtEr has quit IRC
01:04:33 *** Thedarkb has joined #openttd
01:13:45 *** Thedarkb has quit IRC
01:16:25 *** Progman has quit IRC
01:20:53 *** snail_UES_ has quit IRC
01:23:19 *** Samu has quit IRC
01:40:12 *** Supercheese has quit IRC
01:49:01 *** Tharbakim has quit IRC
02:31:13 *** KouDy has quit IRC
02:50:35 *** Flygon has joined #openttd
02:55:17 *** chomwitt has quit IRC
03:20:40 *** peter1138 has quit IRC
03:20:45 *** peter1138 has joined #openttd
03:20:45 *** ChanServ sets mode: +o peter1138
04:17:24 *** glx has quit IRC
04:21:30 *** KouDy has joined #openttd
04:34:57 *** KouDy has quit IRC
05:31:57 *** haudrauf has quit IRC
05:32:55 *** haudrauf has joined #openttd
05:37:59 *** KouDy has joined #openttd
06:18:10 *** Wacko1976 has joined #openttd
06:36:14 *** Wacko1976 has quit IRC
06:36:49 *** Supercheese has joined #openttd
07:08:39 *** KouDy has quit IRC
07:37:37 *** sla_ro|master has joined #openttd
07:59:02 *** ToBeFree has joined #openttd
08:10:10 *** KouDy has joined #openttd
08:17:36 *** KouDy has quit IRC
08:36:07 *** KouDy has joined #openttd
09:50:49 *** Progman has joined #openttd
10:09:45 *** Supercheese has quit IRC
10:14:44 *** sim-al2 has quit IRC
10:15:17 *** sim-al2 has joined #openttd
10:17:53 *** ToBeFree has quit IRC
11:10:54 *** Samu has joined #openttd
11:11:00 <Samu> hi
11:11:22 <Samu> im having trouble with my main PC :( can't boot
11:13:28 <Samu> I get a black screen during POST, then I see windows logo when starting windows, and then when it reaches log in phase, I get a no signal black screen
11:13:42 <Samu> t.t, I have my openttd stuff on that PC
11:14:04 <Samu> any ideas what this could be?
11:40:41 *** sla_ro|master has quit IRC
12:37:37 *** sim-al2 is now known as Guest2531
12:37:37 *** sim-al2 has joined #openttd
12:39:03 <Samu> oh yes! it finally booted
12:39:48 *** Samu_ has joined #openttd
12:39:54 <Samu_> yes, finally, here I am
12:40:00 <Samu_> brb turning off the other pc
12:40:12 *** Samu has quit IRC
12:42:09 <Samu_> it only took 2 hours to decide to not show a black screen!
12:42:18 <Samu_> I hate my pc sometimes :(
12:43:19 *** Guest2531 has quit IRC
12:50:19 <LordAro> Samu_: "no signal" sounds GPU related
12:50:27 <LordAro> check cables?
12:50:49 <LordAro> or that GPU is properly seated
12:53:13 <Samu_> i dismantled pc, cleaned dust with some blower, reassembled and still had the exact symptoms
12:53:14 <Samu_> but
12:53:26 <Samu_> suddenly... after touching monitor cable
12:53:46 <Samu_> no more black screen and here I am
12:54:20 <Samu_> now it will last for the entire day
12:54:39 <Samu_> tomorrow morning when I start it up, i bet I'm gonna have the same problems
12:54:49 <LordAro> i think that's probably your cable then :p
12:55:10 <LordAro> cables themselves can die
12:55:55 <Samu_> i've been having trouble with this gpu for 2 years
12:56:24 <Samu_> gpu/system
12:57:13 <Samu_> when I least expect it, it just dies
12:57:21 <Samu_> and the opposite as well
12:57:31 <Samu_> it just relives
12:57:36 <LordAro> sounds like you should try replacing bits of it :)
12:57:56 <Samu_> the longest time it was dead as 1 month
12:58:01 <Samu_> was*
12:59:06 <peter1138> And it was just the cable, all that time...
12:59:14 <Samu_> it was this time
12:59:57 <Samu_> i had beep beep beep from the mobo complaining about the gpu
13:00:04 <Samu_> some other times
13:00:51 <Samu_> i had visually intensive games suddenly crashin with a black screen
13:01:47 <Samu_> the symptoms are never the same, when problems arise
13:01:56 <LordAro> ok, so replace the GPU
13:01:59 <LordAro> this isn't difficult
13:02:19 <peter1138> Unless it's a laptop.
13:02:24 <Samu_> I was more inclined to replace everything
13:02:35 <Samu_> monitor, cables included
13:02:39 <LordAro> well, that works too
13:02:40 <Samu_> but that time is far off
13:02:48 <Samu_> i'm low on money
13:02:57 <LordAro> things can be replaced a bit at a time
13:03:03 <peter1138> That's why you only replace a bit at a time o_O
13:03:10 <peter1138> Much like coding.
13:03:21 <peter1138> Midday. Should I have my lunch now...
13:03:48 <Samu_> midday here too
13:04:05 <Samu_> i lunch at 13_00
13:06:41 <peter1138> I aim for 13:00 but get restless by 12:45 :p
13:11:48 <peter1138> I miss being able to go out for a lunchtime ride :(
13:15:48 <Samu_> there should be a GetNumTerminals here https://noai.openttd.org/api/trunk/classAIAirport.html
13:16:10 <peter1138> Yeah?
13:16:42 <Samu_> yes, for deciding on the number of aircraft on a route
13:18:45 <Samu_> GetNumTerminals(engine_id, airport_type), something like that
13:19:18 <Samu_> or instead of engine_id, just aircraft_type
13:19:43 <Samu_> enum AIAirport::PlaneType
13:19:45 <Samu_> that
13:51:33 *** Progman has quit IRC
14:00:52 <peter1138> Well, 13:00 and nearly finished lunch :p
14:21:51 *** chomwitt has joined #openttd
14:21:52 *** wodencafe has quit IRC
14:24:58 *** sla_ro|master has joined #openttd
15:07:21 <Samu_> much better terminal usage now
15:07:29 <Samu_> profits skyrocketed
15:15:16 *** wodencafe has joined #openttd
15:34:40 <Samu_> okay, reliability issues is my next problem
15:35:14 <Samu_> the AI is buying aircraft which reliability is already decaying
15:35:32 <Samu_> model lifetime about to end
15:35:42 <Samu_> wanna avoid it
15:43:13 *** nielsm has joined #openttd
16:08:24 <peter1138> Better terminal usage => vim
16:08:31 <peter1138> Maybe a different sort of terminal though :D
16:08:40 *** sim-al2 has quit IRC
16:38:21 *** Progman has joined #openttd
16:49:05 *** WWacko1976-work has quit IRC
16:52:26 <Samu_> GetEngineBrokenRealFakeDist
16:52:29 <Samu_> hehe that name
17:04:01 *** andythenorth has joined #openttd
17:04:07 <andythenorth> o/
17:10:37 *** Alberth has joined #openttd
17:10:37 *** ChanServ sets mode: +o Alberth
17:10:46 <Alberth> o/
17:10:56 <andythenorth> hi
17:11:05 <andythenorth> @seen frosch123
17:11:05 <DorpsGek> andythenorth: frosch123 was last seen in #openttd 22 hours, 57 minutes, and 2 seconds ago: <frosch123> everyone i met who uses the (*). syntax got huge eyes when i told them that -> also works, so I doubt it is intentional
17:18:15 <LordAro> so impatient
17:33:30 <andythenorth> so
17:34:15 <andythenorth> I really want to get this PR done https://github.com/OpenTTD/OpenTTD/pull/6872
17:34:26 <andythenorth> but I am not sure how to get it over the line
17:34:32 <andythenorth> it needs the nml patch too
17:58:35 <LordAro> i'd review it, but that MS define is terrifying
18:03:43 <andythenorth> actually there are 2 PRs
18:03:43 <andythenorth> https://github.com/OpenTTD/OpenTTD/pull/6867
18:03:50 <andythenorth> 6867 is the more interesting
18:10:07 *** HerzogDeXtEr has joined #openttd
18:19:54 <LordAro> also needs conflict resolving :)
18:26:23 *** frosch123 has joined #openttd
18:28:21 *** rocky113844 has joined #openttd
18:44:29 *** Thedarkb has joined #openttd
18:52:35 <DorpsGek_II> [OpenTTD/OpenTTD] nielsmh commented on issue #6891: Question Building the project on Windows https://github.com/OpenTTD/OpenTTD/issues/6891#issuecomment-419165516
18:56:33 *** Flygon has quit IRC
18:58:00 <Samu_> is aircraft of type -1 valid?
18:58:10 <Samu_> something's fishy
18:58:13 <Samu_> happening
18:59:44 <Samu_> local count_interval = WrightAI.GetEngineRealFakeDist(best_engine, this.days_interval);
18:59:50 <Samu_> had a division by zero error
18:59:59 <Samu_> this.days_interval is always = 10
19:00:14 <DorpsGek_II> [OpenTTD/OpenTTD] nielsmh commented on issue #6890: Crash: disconnecting road vehicle https://github.com/OpenTTD/OpenTTD/issues/6890#issuecomment-419167998
19:00:30 <Samu_> local realfakedist = (AIEngine.GetMaxSpeed(engine_id) * 2 * 74 * days_in_transit / 256) / 16;
19:00:49 <Samu_> @calc (0 * 2 * 74 * 10 / 256) / 16
19:00:49 <DorpsGek> Samu_: 0
19:00:55 <Samu_> @calc (1 * 2 * 74 * 10 / 256) / 16
19:00:55 <DorpsGek> Samu_: 0.361328125
19:01:00 <Samu_> hmm i see
19:01:09 <Samu_> @calc (2 * 2 * 74 * 10 / 256) / 16
19:01:09 <DorpsGek> Samu_: 0.72265625
19:01:14 <Samu_> @calc (3 * 2 * 74 * 10 / 256) / 16
19:01:14 <DorpsGek> Samu_: 1.083984375
19:01:47 <Samu_> i honestly doubt there was an aircraft engine with a max speed of 0, 1 or 2 km/h
19:02:50 *** Wacko1976 has joined #openttd
19:03:19 <Samu_> and plane of type -1 is weird
19:03:26 <Samu_> why did it return -1
19:04:38 <Samu_> IsValidEngine(engine_id). must have failed :(
19:06:53 *** KouDy has quit IRC
19:16:16 <Samu_> if (!IsValidEngine(engine_id)) return ScriptAirport::PT_INVALID;
19:16:22 <Samu_> PT_INVALID is = -1
19:16:37 <Samu_> so, i grabbed an invalid engine somehow,
19:16:48 <Samu_> how come...
19:17:24 <DorpsGek_II> [OpenTTD/OpenTTD] glx22 commented on issue #6891: Question Building the project on Windows https://github.com/OpenTTD/OpenTTD/issues/6891#issuecomment-419173239
19:17:42 *** glx has joined #openttd
19:17:42 *** ChanServ sets mode: +v glx
19:22:49 *** Gja has joined #openttd
19:24:35 <Samu_> I need help... an engine that was valid just a few seconds ago, became invalid while doing a for cycle, what can I do in such situation?
19:36:01 *** KouDy has joined #openttd
20:06:59 *** tokai has joined #openttd
20:06:59 *** ChanServ sets mode: +v tokai
20:11:49 *** Gja has quit IRC
20:14:05 *** tokai|noir has quit IRC
20:19:19 *** smoke_fumus has joined #openttd
20:23:02 *** gelignite has joined #openttd
20:24:55 <DorpsGek_II> [OpenTTD/OpenTTD] bou6 commented on issue #6891: Question Building the project on Windows https://github.com/OpenTTD/OpenTTD/issues/6891#issuecomment-419194654
20:27:34 *** Supercheese has joined #openttd
20:28:08 *** Alberth has left #openttd
20:37:22 <nielsm> so, that support ticket should probably just be closed. tag it with something? "support", "question"?
20:38:00 <LordAro> could turn it into an issue for removing old VS stuff (and updating documentation)
20:38:19 <nielsm> the other option
20:38:27 <nielsm> +that's
20:42:20 *** smoke_fumus has quit IRC
20:55:59 *** HerzogDeXtEr has quit IRC
21:05:07 <Samu_> uh oh, the AI is having trouble finding a good pair for a route :(
21:05:10 <Samu_> in 4k maps
21:05:17 <Samu_> i used to not have this problem :(
21:05:39 <Samu_> i think my search needs an overhaul
21:05:50 *** Gja has joined #openttd
21:08:24 *** Gustavo6056 has joined #openttd
21:16:03 *** Gustavo6046 has quit IRC
21:16:03 *** Gustavo6056 is now known as Gustavo6046
21:28:43 *** Gja has quit IRC
21:41:02 <peter1138> I recommend not using such stupid size maps
21:46:47 <andythenorth> mine goes to 11
21:52:40 <peter1138> 2048 is still a bit large :/
21:55:30 *** gelignite has quit IRC
21:55:47 <andythenorth> 1024 max
21:55:56 <andythenorth> "Feature: smaller maps"
21:56:28 <Eddi|zuHause> 4x4 map
21:56:30 <acklen> or break up a large map into small quadrants which the AI can focus on
21:56:59 <Eddi|zuHause> (well, that technically makes it 2x2 as there's a line of void tiles around it)
22:02:52 *** sla_ro|master has quit IRC
22:08:51 *** Gustavo6056 has joined #openttd
22:16:01 *** Gustavo6046 has quit IRC
22:16:01 *** Gustavo6056 is now known as Gustavo6046
22:27:04 *** frosch123 has quit IRC
22:39:07 *** nielsm has quit IRC
22:53:38 <Samu_> well, i pick the 10 most productive towns to find the first airport
22:54:03 <Samu_> on the 2nd search, it picks 10 other most productive towns to place an airport
22:54:18 <Samu_> problem is that these 10 towns, out of a pool of 12k
22:54:31 <Samu_> are unlikely to be within range of the planned distance
22:54:46 <Samu_> so it fails many many times until it actually finds one
22:55:47 <Samu_> and i dont keep the 1st pick when i search for the next pair
23:00:05 <Samu_> the tried and failed towns to a list, so when it comes next time to find a pair of towns, it starts on the 3rd batch of 10 towns
23:00:24 <Samu_> failed towns are added to a list*
23:01:11 <Samu_> eventually it will cycle through all 12k towns
23:01:36 <Samu_> but i see it's not that smart, could use some improvements
23:06:51 <Samu_> i can't have this search to fail that many times, because when combined with the road portion of the script, it will have nearly nothing done for the limited time it computes the air part
23:07:39 <Samu_> in other words, i must extend the search duration
23:07:57 <Samu_> instead of 10 towns per batch, maybe 50
23:08:44 *** Gustavo6056 has joined #openttd
23:09:06 *** andythenorth has left #openttd
23:09:09 <Samu_> road routes are averaging a max of 190 days for a failed route
23:09:49 <Samu_> air routes are averaging 1-4 days on a 4k map with small airports
23:10:32 <Samu_> plan roads for 190 days, then plan air for 4 days, then plan roads, then air, etc... it's always cycling like this
23:16:06 *** Gustavo6046 has quit IRC
23:16:06 *** Gustavo6056 is now known as Gustavo6046
23:23:15 <acklen> how does the pathfinder work? does it recurse throughout the whole map?
23:23:27 <acklen> perhaps it could be given a smaller sub-map to work on instead?
23:28:06 <Samu_> yes, a rectangle area within the planned distance
23:28:48 <Samu_> i have this rectangle search done for looking for a spot to place airport in a town, but that's it
23:29:01 <Samu_> it's not a rectangle inside another rectangle
23:29:39 <Samu_> i need maybe a rectangle to contains all the tiles within the planned distance, then search for towns inside that big rectangle
23:30:32 <Samu_> and only then, have the other rectangle search for an airport spot in a town
23:30:41 <Samu_> hmm
23:31:06 <Samu_> sounds like a good idea
23:31:34 <Samu_> instead of the 10 most productive towns out of the entire map, it's 10 most productive towns within the so called "planned distance" instead
23:32:11 <Samu_> okay, how am I gonna do that :(
23:32:20 <Samu_> how to code
23:32:23 <Samu_> that is
23:32:31 <peter1138> list all towns within specific radius/area
23:32:55 <peter1138> then find top 10
23:35:31 <peter1138> if there's 12k towns it's still going to take a while
23:42:13 <Samu_> not sure of the exact number
23:42:33 <Samu_> when generating map it says 12k, but i think that's the number of tries, not the number of towns
23:44:30 <Samu_> the way I have this coded
23:45:03 <Samu_> is... incompatible if i am to create a rectangle based on the planned distance
23:45:59 <Samu_> the planned distance is computed, basing it on the airport types of the first airport and the to-be placed airport type of the 2nd
23:47:07 <Samu_> I don't have the planned distance handy :(
23:47:26 <Samu_> must shift the search order somehow
23:47:33 <peter1138> Use an estimation.
23:48:08 *** sim-al2 has joined #openttd
23:49:35 <Samu_> sec
23:49:43 <Samu_> let me copy paste my glorious code
23:50:25 <Samu_> https://paste.openttdcoop.org/plclcisfi
23:50:55 <Samu_> line 27 is where I pick the best 10
23:51:11 <Samu_> I do it too early, have to shift it to somewhere further down
23:52:10 <Samu_> the computation of distances are at lines 87 - 99
23:52:35 <Samu_> this has to be done before I pick the best 10, that's a huge shift :(
23:52:48 <Samu_> unsure how I'm gonna do it