IRC logs for #openttd on OFTC at 2018-09-06
⏴ go to previous day
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:24:47 *** snail_UES_ has joined #openttd
00:27:30 <Samu> I need a better means to estimate the min_dist
00:45:24 *** sim-al2 has joined #openttd
01:04:33 *** Thedarkb has joined #openttd
03:20:45 *** peter1138 has joined #openttd
03:20:45 *** ChanServ sets mode: +o peter1138
05:32:55 *** haudrauf has joined #openttd
06:18:10 *** Wacko1976 has joined #openttd
06:36:49 *** Supercheese has joined #openttd
07:37:37 *** sla_ro|master has joined #openttd
07:59:02 *** ToBeFree has joined #openttd
09:50:49 *** Progman has joined #openttd
10:15:17 *** sim-al2 has joined #openttd
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?
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:54 <Samu_> yes, finally, here I am
12:40:00 <Samu_> brb turning off the other pc
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:50:19 <LordAro> Samu_: "no signal" sounds GPU related
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: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:57:13 <Samu_> when I least expect it, it just dies
12:57:21 <Samu_> and the opposite as well
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:59:06 <peter1138> And it was just the cable, all that time...
12:59:57 <Samu_> i had beep beep beep from the mobo complaining about the gpu
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: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:40 <Samu_> but that time is far off
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:21 <peter1138> Midday. Should I have my lunch now...
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: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
14:00:52 <peter1138> Well, 13:00 and nearly finished lunch :p
14:21:51 *** chomwitt has joined #openttd
14:24:58 *** sla_ro|master has joined #openttd
15:07:21 <Samu_> much better terminal usage now
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
16:08:24 <peter1138> Better terminal usage => vim
16:08:31 <peter1138> Maybe a different sort of terminal though :D
16:38:21 *** Progman has joined #openttd
16:49:05 *** WWacko1976-work has quit IRC
16:52:26 <Samu_> GetEngineBrokenRealFakeDist
17:04:01 *** andythenorth has joined #openttd
17:10:37 *** Alberth has joined #openttd
17:10:37 *** ChanServ sets mode: +o Alberth
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: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: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:58:00 <Samu_> is aircraft of type -1 valid?
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: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:55 <Samu_> @calc (1 * 2 * 74 * 10 / 256) / 16
19:01:09 <Samu_> @calc (2 * 2 * 74 * 10 / 256) / 16
19:01:14 <Samu_> @calc (3 * 2 * 74 * 10 / 256) / 16
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:04:38 <Samu_> IsValidEngine(engine_id). must have failed :(
19:16:16 <Samu_> if (!IsValidEngine(engine_id)) return ScriptAirport::PT_INVALID;
19:16:37 <Samu_> so, i grabbed an invalid engine somehow,
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?
20:06:59 *** ChanServ sets mode: +v tokai
20:19:19 *** smoke_fumus has joined #openttd
20:23:02 *** gelignite has joined #openttd
20:27:34 *** Supercheese has joined #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)
21:05:07 <Samu_> uh oh, the AI is having trouble finding a good pair for a route :(
21:05:17 <Samu_> i used to not have this problem :(
21:05:39 <Samu_> i think my search needs an overhaul
21:08:24 *** Gustavo6056 has joined #openttd
21:16:03 *** Gustavo6056 is now known as Gustavo6046
21:41:02 <peter1138> I recommend not using such stupid size maps
21:52:40 <peter1138> 2048 is still a bit large :/
21:55:56 <andythenorth> "Feature: smaller maps"
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:08:51 *** Gustavo6056 has joined #openttd
22:16:01 *** Gustavo6056 is now known as Gustavo6046
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 *** 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: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:31 <peter1138> list all towns within specific radius/area
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:48:08 *** sim-al2 has joined #openttd
23:49:43 <Samu_> let me copy paste my glorious code
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
continue to next day ⏵