IRC logs for #openttd on OFTC at 2018-10-09
            
00:00:08 *** Samu has joined #openttd
00:01:30 *** Samu_ has joined #openttd
00:02:23 *** Samu has quit IRC
00:04:23 *** wodencafe has joined #openttd
00:08:31 *** Samu_ has quit IRC
00:09:06 *** iSoSyS has joined #openttd
00:09:10 *** Samu has joined #openttd
00:09:41 *** Wolf01 has quit IRC
00:12:17 *** Samu has quit IRC
00:15:35 *** Samu has joined #openttd
00:24:07 *** Thedarkb-T60 has joined #openttd
00:27:40 *** Samu has quit IRC
00:33:38 *** Samu has joined #openttd
00:35:35 *** Samu_ has joined #openttd
00:36:17 *** Samu has quit IRC
00:41:11 *** Samu_ has quit IRC
00:42:45 *** Samu has joined #openttd
00:50:45 *** Wacko1976_ has quit IRC
00:54:12 *** Samu has quit IRC
00:59:27 *** Samu has joined #openttd
01:01:55 *** Samu_ has joined #openttd
01:02:34 *** Samu has quit IRC
01:05:54 *** Samu_ has quit IRC
01:14:40 *** KouDy has quit IRC
01:35:05 *** iSoSyS has quit IRC
01:52:48 *** Wormnest has joined #openttd
01:57:15 *** snail_UES_ has joined #openttd
02:05:39 *** Flygon has joined #openttd
02:08:05 *** KouDy has joined #openttd
02:26:14 *** HerzogDeXtEr has joined #openttd
02:31:29 *** HerzogDeXtEr1 has quit IRC
02:51:44 *** Thedarkb-T60 has quit IRC
02:57:32 *** Samu has joined #openttd
03:01:46 *** Samu has quit IRC
03:21:38 *** WWacko1976-work has joined #openttd
04:24:25 *** Maarten has joined #openttd
05:00:06 *** Gustavo6046 has quit IRC
05:10:43 *** HerzogDeXtEr1 has joined #openttd
05:12:28 *** glx has quit IRC
05:17:04 *** HerzogDeXtEr has quit IRC
05:18:51 *** Gustavo6046 has joined #openttd
05:19:04 *** haudrauf has quit IRC
05:21:39 *** haudrauf has joined #openttd
06:15:51 *** snail_UES_ has quit IRC
06:18:14 *** snail_UES_ has joined #openttd
06:42:06 *** Wacko1976 has joined #openttd
06:50:10 *** Wacko1976 has quit IRC
07:09:23 *** Wacko1976 has joined #openttd
08:07:29 *** argoneus_ has quit IRC
08:08:29 *** argoneus has joined #openttd
08:10:40 *** HerzogDeXtEr1 has quit IRC
08:10:43 *** HerzogDeXtEr has joined #openttd
08:11:18 *** HerzogDeXtEr has quit IRC
08:56:03 *** WWacko1976-work has quit IRC
08:56:24 *** WWacko1976-work has joined #openttd
09:31:47 *** Thedarkb-T60 has joined #openttd
09:35:17 *** Samu has joined #openttd
09:41:04 *** Thedarkb-T60 has quit IRC
11:14:47 *** kaane has quit IRC
11:26:57 *** Samu has quit IRC
12:21:32 *** Samu has joined #openttd
12:58:07 *** Gustavo6046 has quit IRC
13:21:03 *** sla_ro|master has joined #openttd
14:29:55 <Samu> guys, I have a fix for this https://github.com/OpenTTD/OpenTTD/issues/6273
14:30:46 <Samu> but...
14:31:12 <Samu> whatever, i'll post it
14:49:48 <DorpsGek_II> [OpenTTD/OpenTTD] SamuXarick opened pull request #6935: Add: EnsureNoShipFromDiagDirs https://git.io/fxno7
14:50:05 <Samu> exactly
14:50:15 * LordAro finds ReusableBuffer
14:50:21 * LordAro wonders what on earth it is useful for
14:51:53 <LordAro> Samu: bold move, fixing an issue marked as won't fix :p
14:59:09 *** sla_ro|master has quit IRC
15:07:26 *** Samu has quit IRC
15:09:58 *** Samu has joined #openttd
15:11:05 <Samu> darn whitespaces
15:11:07 <Samu> i can't see them
15:15:16 <DorpsGek_II> [OpenTTD/OpenTTD] SamuXarick updated pull request #6935: Add: EnsureNoShipFromDiagDirs https://git.io/fxno7
15:16:15 <Samu> yeh :(
15:17:44 *** Samu has quit IRC
15:19:54 *** Samu has joined #openttd
15:22:49 *** snail_UES_ has quit IRC
15:26:34 <Samu> darn, that regression test hates me~
15:28:15 *** snail_UES_ has joined #openttd
15:28:57 <Samu> without watching what it does, i have no idea what to do :(
15:31:26 <Samu> i see, assertion failed
15:32:39 *** snail_UES_ has quit IRC
15:36:17 <Samu> that's weird, why is it asserting
15:43:29 <Samu> ok, i see
15:51:48 *** nielsm has joined #openttd
15:54:03 <Samu> the unexpected assert is back to haunt me
15:54:33 *** Gustavo6046 has joined #openttd
15:54:44 *** Wacko1976_ has joined #openttd
16:00:04 *** Wacko1976 has quit IRC
16:14:58 <Samu> alright, i think i solved the assert problem
16:17:03 <DorpsGek_II> [OpenTTD/OpenTTD] SamuXarick updated pull request #6935: Add: EnsureNoShipFromDiagDirs https://git.io/fxno7
16:17:29 <Samu> ^_^
16:18:04 <Samu> that regression test actually helped me
16:18:38 <Samu> made the assert trigger, when I was not expecting any issue
16:23:11 <Samu> another crash?
16:23:13 <Samu> i'm sad
16:26:04 <LordAro> i'd suggest that you can run the regression test yourself, but i'm not actually sure you can via VS
16:26:56 <Samu> +Error: Assertion failed at line 91 of /home/jenkins/workspace/OpenTTD_OpenTTD_PR-6935-V6E755EC6U4YKRM42E7WJQ7H5XPYKZ57ZRAWZKFCHJQLKASJZQEQ/linux-amd64-clang-3.8/src/tile_map.h: tile < MapSize()
16:27:07 <Samu> how the heck
16:27:30 <Samu> it was generating an industry at the edge of a map, maybe?
16:28:37 <Samu> i guess the assert is telling me I am checking for a ship outside the map
16:28:43 <Samu> :|
16:29:04 <LordAro> probably
16:29:14 <Samu> not really sure, but a good guess i believe, as I'm not making certain of those tiles
16:33:06 <Samu> if (!IsValidTile(tc)) continue;
16:34:26 <Samu> IsInnerTile
16:34:35 <Samu> hmm, unsure which one
16:37:53 <Samu> have no way to check here, so i'm going to push again
16:39:53 <LordAro> you could probably reproduce it yourself, even if you can't run that exact game
16:40:05 <DorpsGek_II> [OpenTTD/OpenTTD] SamuXarick updated pull request #6935: Add: EnsureNoShipFromDiagDirs https://git.io/fxno7
16:40:11 <Samu> too late :(
16:40:45 <Samu> i still think the regression test is gonna fail me
16:41:10 <LordAro> that's usually how it works, if you don't fully understand the problem
16:45:55 *** WWacko1976-work has quit IRC
16:47:19 <LordAro> fwiw, regression basically runs: ./openttd -x -c ai/regression/regression.cfg -snull -mnull -vnull:ticks=30000 -g ai/regression/empty.sav -d script=2 -d misc=9
16:47:24 <LordAro> if i'm reading the script correctly
16:47:29 <LordAro> (from the bin directory)
16:49:22 <Samu> ok, gonna try
16:53:33 <LordAro> ok, there's a few other statements that might be necessary, but it'll get you most of the way there
16:53:35 <Samu> didn't work, found no regression ai, loaded a dummy
16:53:42 <LordAro> (bin/ai/regression/run.sh)
16:53:51 <LordAro> looks like it needs info.nut copying into place
17:04:14 *** Wormnest has joined #openttd
17:05:21 <Samu> what costs 4500
17:05:28 <Samu> that's the difference in bankbalance
17:05:49 <Samu> something failed to build or clear or so, t.t
17:08:28 *** Flygon has quit IRC
17:40:04 <Eddi|zuHause> what happened to "make regression"?
17:41:47 <Eddi|zuHause> i could imagine there being a VS subproject for the regression
17:45:38 *** Gja has joined #openttd
17:46:39 *** TheMask96 has quit IRC
17:48:12 *** TheMask96 has joined #openttd
17:49:55 <Samu> damn another assertion
17:51:00 <Samu> map_func.h line 386
17:51:37 <Samu> return TILE_ADD(tile, TileOffsByDiagDir(dir));
17:51:47 <Samu> still a tile outside the map?
17:55:03 <Samu> @calc 0x00EF + 0xFFFFFF00
17:55:03 <DorpsGek> Samu: 4294967279
17:55:09 <Samu> what the heck
17:55:52 <nielsm> the result is -16
17:56:03 <nielsm> in decimal two's complement
17:56:36 *** kaane has joined #openttd
17:57:46 <nielsm> hm no -17... I think
17:57:50 <Samu> so 239 - 256
17:58:25 <Eddi|zuHause> @calc 4294967279-2**32
17:58:25 <DorpsGek> Eddi|zuHause: -17
17:58:35 <Samu> @calc 239 - 256
17:58:35 <DorpsGek> Samu: -17
17:58:43 <Samu> yeah, that's a tile outside the map again
17:58:46 <Samu> grrr
17:59:31 <Samu> hmm so how am i gonna do this
18:00:04 <Samu> TileIndex tc = TileAddByDiagDir(tile, diag_dir); // Move into the neighbouring tile
18:00:07 <Samu> asserts
18:00:10 <nielsm> uh well you're obviously on the first row of the map and subtracting a row length, of course you're going to end up outside
18:00:36 <Samu> can't use TileAddByDiagDir
18:00:59 <nielsm> yes you can
18:00:59 <Eddi|zuHause> to avoid going over the map edge, you must go in single steps, and bail out if you've reached a VOID tile
18:01:06 <nielsm> but check the coordinate before blindly adding
18:01:40 <Samu> actually, 'tile' is also outside the map, how come
18:01:44 <Eddi|zuHause> going over the edge of the map is a bug even if you happen to end up inside the map array
18:03:47 <Samu> so that means I have to check if tile is also inside the map
18:03:55 <Samu> not just the tile i want to move to
18:05:07 *** frosch123 has joined #openttd
18:05:42 *** HerzogDeXtEr has joined #openttd
18:06:26 *** sla_ro|master has joined #openttd
18:07:20 <Samu> uh, nop
18:07:25 <Samu> is inner tile perhaps?
18:10:53 <Eddi|zuHause> @calc 18.6/15.2
18:10:53 <DorpsGek> Eddi|zuHause: 1.22368421053
18:12:19 <Samu> nop
18:23:52 <Samu> how come tile 239 is valid? :(
18:24:13 <Samu> freeform edges?
18:24:33 <Samu> hmm
18:24:48 <Samu> this was triggered by an industry spawn
18:26:55 <Samu> TileAddWrap
18:27:00 <Samu> gonna try this
18:47:50 <Samu> i can't do this :(
18:50:11 *** sim-al2 has quit IRC
18:50:24 *** haudrauf has quit IRC
18:51:22 *** haudrauf has joined #openttd
18:53:31 *** chomwitt has joined #openttd
18:55:41 <Samu> i think i found a way
18:55:45 <Samu> TileIndex tc = AddTileIndexDiffCWrap(tile, TileIndexDiffCByDiagDir(diag_dir)); // Move into the neighbouring tile
18:56:07 <Samu> testing
18:57:04 *** rocky11384497 has joined #openttd
18:57:26 <Samu> nop
18:57:32 <Samu> oh wait, i dint build
18:59:29 <Samu> yes, it exited with no error
18:59:37 <Samu> this regression test dude
18:59:42 <Samu> i still can't see it
18:59:50 <Samu> but i can run it here
19:01:12 <Samu> the derriere test, generating 13k towns and 20k industries brb
19:05:36 *** gelignite has joined #openttd
19:06:10 <Samu> hey gelignite, can you make gelignAIte do what it does, but for more towns?
19:06:23 <Samu> there's no other AI like it
19:08:45 *** Wolf01 has joined #openttd
19:10:08 <Wolf01> o/
19:10:33 <gelignite> well, yes and no. i've planned a new version for years. bad news is, i don't find the time to make it happen.
19:12:13 *** Gja has quit IRC
19:14:35 <Samu> debug mode is too slow on 4k maps
19:14:48 <Samu> but it generated 20480 industries on startup, no asserts
19:14:53 <Wolf01> https://www.youtube.com/watch?v=Vf5AYenI-l4 must... go... there.
19:15:14 *** Thedarkb has joined #openttd
19:17:14 <Eddi|zuHause> Wolf01: think they have better internet than you? :p
19:19:06 <Samu> okay, so uploading again
19:20:10 *** Gja has joined #openttd
19:20:41 <DorpsGek_II> [OpenTTD/OpenTTD] SamuXarick updated pull request #6935: Add: EnsureNoShipFromDiagDirs https://git.io/fxno7
19:21:18 <Samu> expecting a regression failure, only
19:21:23 *** Wolf01 is now known as Guest114
19:21:26 *** Wolf01 has joined #openttd
19:21:29 <Samu> which is still something i can't quite figure out
19:24:03 <frosch123> "2/100 of a mile" <- what a unit
19:24:44 *** Guest114 has quit IRC
19:27:01 <Samu> well, failed at regression again https://farm.openttd.org/jenkins/blue/organizations/jenkins/OpenTTD%2FOpenTTD/detail/PR-6935/5/pipeline#step-61-log-558
19:27:16 <Wolf01> Meh, phone works now but internet unstable
19:27:48 <Samu> i can only imagine the AI was building something that had a ship nearby and it failed
19:28:15 <Samu> but i cant prove it
19:35:56 <Eddi|zuHause> i'm pretty sure "middle of nowhere, oregon" has better internet than "industrialized northern italy" :p
19:47:42 *** Arveen has quit IRC
19:49:53 *** Arveen has joined #openttd
19:51:29 <Samu> think i found the cause
19:51:42 <Samu> airport price is being ignored t.t
19:51:48 <Samu> i failed
19:52:22 <Samu> if i failed there, i must have failed in more situations
19:54:43 <Samu> yeah, i tried to sound smart, and totally made this screw costs
19:55:37 <Samu> my worst push request so far
20:06:32 *** Wormnest has quit IRC
20:21:15 *** Wormnest has joined #openttd
20:23:49 *** Progman has joined #openttd
20:24:07 *** Wolf01 is now known as Guest118
20:24:09 *** Wolf01 has joined #openttd
20:25:51 *** Gja has quit IRC
20:28:06 *** Gja has joined #openttd
20:28:27 *** Guest118 has quit IRC
20:30:41 *** erkin has joined #openttd
20:31:16 <erkin> Is there a way to see which road pieces are mine, so that I can demolish them to reduce property maintenance without accidentally angering local authorities?
20:31:57 <Wolf01> Land info tool
20:33:46 <erkin> Thanks, that works for me.
20:36:19 <Eddi|zuHause> we should maybe finally get around to including that tile highlighting patch :p
20:38:43 *** Wolf01 is now known as Guest121
20:38:45 *** Wolf01 has joined #openttd
20:39:06 <Eddi|zuHause> still no useful internet?
20:42:40 *** Wolf01 is now known as Guest122
20:42:42 *** Wolf01 has joined #openttd
20:43:01 <Wolf01> <Eddi|zuHause> still no useful internet? < no
20:43:11 *** Guest121 has quit IRC
20:47:44 *** Guest122 has quit IRC
20:47:52 *** GroovyNoodle has joined #openttd
20:51:05 <DorpsGek_II> [OpenTTD/OpenTTD] SamuXarick updated pull request #6935: Add: EnsureNoShipFromDiagDirs https://git.io/fxno7
20:51:24 <Samu> expecting success now
20:52:01 *** Gja has quit IRC
20:53:41 *** Wolf01 is now known as Guest123
20:53:43 *** Wolf01 has joined #openttd
20:53:45 <Samu> btw, ur regression ai could test raise and lower terrain
20:54:01 <Samu> I had some failure in the terraform costs too and it wasn't detected
20:57:27 <Samu> Running ai/regression/tst_regression... passed! yeeeh
20:59:39 *** Guest123 has quit IRC
21:08:15 *** Wormnest has quit IRC
21:11:15 *** Thedarkb has quit IRC
21:14:22 *** crem4 has quit IRC
21:16:39 *** glx has joined #openttd
21:16:39 *** ChanServ sets mode: +v glx
21:22:00 *** crem has joined #openttd
21:25:11 <Wolf01> So, maybe the problem is resolved, I asked them to reset the DSL circuit
21:25:40 *** crem has quit IRC
21:29:50 *** crem has joined #openttd
21:32:53 *** Wolf01 is now known as Guest128
21:32:55 *** Wolf01 has joined #openttd
21:32:58 <Wolf01> Taaaaac
21:35:57 <Eddi|zuHause> so much for "have you tried turning it off and on again?"
21:36:41 *** Wolf01 is now known as Guest129
21:36:43 *** Wolf01 has joined #openttd
21:37:42 *** Guest128 has quit IRC
21:41:55 *** Guest129 has quit IRC
21:45:44 *** Wolf01 has quit IRC
21:48:31 *** Thedarkb-T60 has joined #openttd
21:51:21 *** frosch123 has quit IRC
21:55:49 *** hph^ has joined #openttd
22:27:02 *** gelignite has quit IRC
22:37:22 *** sla_ro|master has quit IRC
22:43:54 *** GroovyNoodle has quit IRC
22:44:06 *** GroovyNoodle has joined #openttd
22:52:19 *** Thedarkb-T60 has quit IRC
22:52:46 *** Thedarkb-T60 has joined #openttd
23:05:24 *** chomwitt has quit IRC
23:15:33 *** Progman has quit IRC
23:15:39 *** Wacko1976_ has quit IRC
23:23:13 *** GroovyNoodle has quit IRC
23:39:15 *** nielsm has quit IRC
23:39:23 *** Thedarkb-T60 has quit IRC
23:39:59 *** Thedarkb-T60 has joined #openttd
23:53:49 *** Thedarkb-T60 has quit IRC
23:55:23 <Samu> what to do about this? https://github.com/OpenTTD/OpenTTD/pull/6932
23:58:18 <Samu> for me it seems to be working fine, but I don't know how to attend to that request
23:58:30 <Samu> I can't see where it fails