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

Powered by YARRSTE version: svn-trunk