IRC logs for #openttd on OFTC at 2017-12-01
            
00:01:40 *** Wormnest has quit IRC
00:02:56 <Wolf01> 'night
00:02:58 *** Progman has quit IRC
00:02:59 *** Wolf01 has quit IRC
00:10:26 *** Gustavo6046 has quit IRC
00:18:31 *** ToBeFree has joined #openttd
00:19:45 *** Thedarkb has quit IRC
00:21:20 *** Biolunar has quit IRC
00:26:49 *** Guest1471 has quit IRC
00:27:19 *** mindlesstux has joined #openttd
00:27:28 *** Thedarkb has joined #openttd
00:36:39 *** martylake[m] has left #openttd
00:41:58 *** Samu has quit IRC
00:46:32 *** Stimrol has quit IRC
00:48:26 *** Gustavo6046 has joined #openttd
01:08:08 *** [1]sim-al2 has joined #openttd
01:08:08 *** sim-al2 is now known as Guest52
01:08:08 *** [1]sim-al2 is now known as sim-al2
01:12:00 *** Guest52 has quit IRC
01:26:53 *** debdog has quit IRC
01:30:05 *** debdog has joined #openttd
01:53:04 *** debdog has quit IRC
01:58:07 *** debdog has joined #openttd
02:21:01 *** Gustavo6046 has quit IRC
03:11:44 *** debdog has quit IRC
03:17:31 *** debdog has joined #openttd
03:30:12 *** ToffeeYogurtPots has quit IRC
03:51:04 *** ToffeeYogurtPots has joined #openttd
04:01:59 *** ToffeeYogurtPots has quit IRC
04:02:18 *** ToffeeYogurtPots has joined #openttd
04:14:18 *** glx has quit IRC
04:56:54 *** [1]sim-al2 has joined #openttd
04:56:54 *** sim-al2 is now known as Guest61
04:56:54 *** [1]sim-al2 is now known as sim-al2
05:00:08 *** Guest61 has quit IRC
05:26:21 *** debdog has quit IRC
05:31:14 *** debdog has joined #openttd
05:59:00 *** ZexaronS has joined #openttd
06:00:44 <ZexaronS> Hello
06:01:26 <ZexaronS> tried openTTD for the first time, I probably saw this on some windows 3.1 PC or some similar game like this way back in the day in school
06:01:57 <ZexaronS> But here's some feedback, I thought of just going in without reading absolutely anything about it
06:02:15 <ZexaronS> I've been searching for 30 mins and I can't find how to make new train order
06:03:59 <ZexaronS> secondly, I hoped the popup windows would close down if i clicked the button again
06:04:31 <ZexaronS> this is just pure feedback from someone crashing in, hopefully not taken personally
06:05:06 <supermop_home> not many people on here at this hour
06:05:11 <ZexaronS> so I have no idea what is intentional or not
06:05:22 <supermop_home> not many would take it personally either
06:05:53 <supermop_home> for orders... there is a button on the train's window
06:05:58 <supermop_home> looks like an arrow
06:06:08 <supermop_home> opens the order UI
06:06:26 <supermop_home> order UI has plenty of its own problems
06:06:45 <supermop_home> but in there you can click 'go to' then click stations etc
06:07:24 <supermop_home> if you click the orders in the list you can then set things like 'load' or 'unload'
06:07:39 <supermop_home> holding down those buttons gives more options
06:07:52 <ZexaronS> oh, I mean "personally" it more of a "outsider" or someone from another community, I'm actually the old cat still even very young at the time, I was born into commander keen and dangerous dave so I'm not from the modernwarfare commuinty and I wouldn't want to force anything from the wild pop indutry into this program, just to clear that out
06:09:13 <supermop_home> openttd is a project of many people over 20 years, so lots of ideas have come that maybe don't work all that intuitively together
06:09:29 <supermop_home> so its a given that somethings are not ideal
06:09:38 <ZexaronS> this got my attention because I remember a train game, with lots of train tracks, and always wanted kept wondering, I rememebered it years later but I forgot to ask my friends about it at the time
06:10:13 <supermop_home> and usually insight of others is not frowned upon, just so long as you don't demand changes a certain way right now
06:10:33 <supermop_home> as things only get worked on when people have time to do it for free
06:10:51 <ZexaronS> it's one of those i didn't knew the name, we knew commander keen, but I didn't knew I was playing dangerous dave because it was a weird exe, probably ddav.exe or something hah
06:11:30 <ZexaronS> I'm not sure if the train game was this, but it's very similar, but I remember it in a texas-like desert theme
06:12:39 <ZexaronS> The year was something 2000-2001 ... everything was delayed here, it's now USA
06:12:48 <ZexaronS> so stuff that was 5 years out, was new here
06:13:10 <ZexaronS> not usa*
06:19:01 <ZexaronS> Oh yes
06:19:11 <ZexaronS> ofcourse
06:19:39 <ZexaronS> I installed it a week ago gave it a try at the last min, yeah it's late, later
06:24:40 *** Cubey has quit IRC
06:29:13 <ZexaronS> bah i was clicking on the factories with the goto thingy
07:04:10 *** Lejving has quit IRC
07:09:22 *** debdog has quit IRC
07:19:32 *** debdog has joined #openttd
07:27:49 *** Flygon has joined #openttd
07:33:17 *** sla_ro|master has joined #openttd
07:35:13 *** ToffeeYogurtPots has quit IRC
07:35:41 *** ToffeeYogurtPots has joined #openttd
07:36:52 *** D-HUND has joined #openttd
07:39:36 *** debdog has quit IRC
07:51:42 *** ZexaronS has quit IRC
08:18:33 *** andythenorth has joined #openttd
08:18:36 *** andythenorth has left #openttd
08:37:15 *** cosmobird has joined #openttd
09:18:08 *** Laedek has quit IRC
09:21:37 *** Laedek has joined #openttd
09:28:56 *** ToffeeYogurtPots has quit IRC
09:32:05 *** Thedarkb has quit IRC
09:50:22 *** Lejving has joined #openttd
10:02:03 *** sla_ro|master has quit IRC
10:07:24 *** Flygon_ has joined #openttd
10:12:06 *** Flygon__ has joined #openttd
10:13:52 *** Flygon has quit IRC
10:17:22 *** Flygon_ has quit IRC
10:49:28 <planetmaker> I had to think of wolf and andy: http://brickarchitect.com/guide/
12:18:23 *** Biolunar has joined #openttd
13:14:43 *** alluke has joined #openttd
13:22:45 *** alluke has quit IRC
13:33:27 *** synchris has joined #openttd
14:55:27 *** Flygon__ has quit IRC
14:57:14 *** Alberth has joined #openttd
14:57:14 *** ChanServ sets mode: +o Alberth
15:03:40 *** smoke_fumus has joined #openttd
15:13:13 *** Gja has joined #openttd
15:16:59 *** Gumle2 has joined #openttd
15:29:52 *** debdog has joined #openttd
15:32:31 *** D-HUND has quit IRC
15:34:59 *** sim-al2 is now known as Guest95
15:35:00 *** sim-al2 has joined #openttd
15:37:48 *** Samu has joined #openttd
15:39:55 *** Guest95 has quit IRC
15:46:35 <Samu> hi
15:48:06 *** gusta_000 has joined #openttd
15:48:38 *** Biolunar has quit IRC
15:50:52 *** gusta_000 has quit IRC
15:51:26 *** Gustavo6046 has joined #openttd
15:51:49 <Alberth> o/
15:52:03 *** sim-al2 has quit IRC
15:52:50 <crem> \o
15:56:30 <Samu> uhm... i'm scared of showing this to u
15:57:20 <Samu> line 80 to 154 https://paste.openttdcoop.org/pdynurwc5
15:57:33 <Samu> how can I improve that :(
15:58:24 <Alberth> you have good reason to be afraid :p
15:58:48 <Alberth> how do you manage to make such code?
15:59:34 <Samu> hehehe
15:59:48 <Samu> that is the auto-terraform code for ship depots :(
15:59:48 <Alberth> anyway, look for duplicate pieces of code, move them to their own function, and call that function when you need to
16:00:27 <Alberth> lots of detailed cases eh?
16:01:08 <Alberth> if you look at the end-result, how many different results can you get?
16:02:04 <Alberth> eg if it is always flat, you basically have 1 end result
16:02:45 <Alberth> so another approach is to describe the end result, and then write code that modifies the terrain to that result
16:03:18 <Alberth> where "describe the end result" is a simple array of desired tile heights
16:05:06 <Alberth> instead of hard-coding all cases, you compute what must be done on each tile, by comparing reality with desired result
16:05:55 <Samu> it's always flat, but sometimes the height can differ
16:06:15 <Samu> flat with the height +1 or flat with the height + 0
16:06:51 <Alberth> where does the height + 1 (or + 0) depend on
16:06:52 <Alberth> ?
16:07:50 <Samu> can't remember specifically, but I think I was counting the number of corners
16:10:16 <Samu> damn, i worked on this last year or so, i had posted some screenshots, gonna see if i can still find them
16:19:40 <Samu> who would have thought, I found a bug right away :(
16:21:48 <Samu> there are 6 corners
16:22:03 <Alberth> it also would help if you comment what each block of code is doing
16:22:29 <Alberth> right now, you have to carefully read each line and decude what it aims to do
16:22:56 <Alberth> if you write that in text/comment above the lines, it's faster to read, and less error-prone
16:24:26 <Samu> if 4 corners were tileheight +1 and 2 tileheight 0, then the result would be flatten to the height of +1
16:24:58 <Samu> in case of a tie, I dunno, gotta read all those cases indeed
16:26:12 <Alberth> 6 corners? I'd hope a tile has 4
16:26:22 <Samu> 2 overlap
16:26:37 <Samu> the middle
16:26:47 <Alberth> right this is just 2 tiles below the depot?
16:27:45 <Samu> tile 1 has 4 corner, tile 2 has 4 corners, but tile 1 and tile 2 share 2 of those corners
16:28:37 <Alberth> so what if you obtain highest corner height and lowest corner height, and then for each height in that range compute how much height difference exists for the 6 corners.
16:28:50 <Alberth> Then pick the height with the smallest height difference
16:29:44 <Alberth> ie compute the best solution instead of testing for all cases
16:33:06 *** FLHerne has quit IRC
16:43:11 <Samu> if (slope1 == ComplementSlope(slope2) && IsInclinedSlope(slope1)) {
16:43:18 <Samu> this one is bugged :(
16:43:33 <Samu> it only flattens one tile
16:44:04 <Samu> maybe it is what it should do, but it's not detecting how it should be done
16:44:23 <Samu> oh well, gonna try do this differently
16:45:12 <Samu> okay, so first thing to do is count corner heights?
16:52:25 <Alberth> I'd start with finding lowest and highest height
16:52:49 <Alberth> which can be different from each other by at most 2
16:55:17 <Alberth> hmm wait, how do you need terra-forming here? you build a depot on water, which is flat, aren't you?
16:55:38 <Samu> i build on land
16:55:47 <Samu> it flattens it, builds canals, then the lock
16:56:11 <Alberth> euhm, ok
16:56:21 *** tokai has joined #openttd
16:56:21 *** ChanServ sets mode: +v tokai
16:56:35 <Samu> er, i mean depot*
16:57:31 <Samu> i'm finally starting to see the light*
16:58:32 <Samu> z_slope1
16:58:40 <Samu> z_middle_corner_n
16:58:46 <Samu> z_middle_corner_s
16:58:52 <Samu> z_slope2
16:58:58 *** Cubey has joined #openttd
16:59:05 <Samu> I was working with only 4 heights
16:59:17 <Samu> wasn't it supposed to be 6? now i'm confused myself
16:59:45 <Alberth> a slope is not a corner
17:00:46 <Samu> Slope GetTileSlope(TileIndex tile, int *h)
17:00:57 <Samu> *h = TileHeight(tile);
17:02:05 <Samu> no wonder this was bugging
17:02:40 <Samu> z_slope2 is the same as z_middle_corner_n
17:02:45 <Samu> damn it
17:03:10 *** tokai|noir has quit IRC
17:03:32 <Alberth> height of a tile is not the same thing as height of a corner
17:03:51 <Alberth> since a tile has 4 corners, which may be at different heights
17:08:39 <Samu> z_slope2 is different than z_middle_corner_n?
17:08:44 <Samu> i'm even more confused now
17:10:04 <Samu> GetTileSlopeGivenHeight
17:11:10 <Alberth> why are you dragging slopes in?
17:12:02 <Samu> im following the code, and apparently I messed up
17:12:28 <Samu> tileslope height is not really the same as tileheight
17:12:37 <Alberth> ok, have fun
17:12:45 <Samu> :(
17:13:09 <Samu> was trying to understand what to do
17:14:30 <Alberth> so start with 4 functions that computes height of the 4 corner of a tile
17:15:53 <Alberth> break your problem in smaller pieces, until the pieces are small enough to build, then build them, and compose them to the whole functionality
17:22:07 *** SgtStroopwafel_ has quit IRC
17:24:37 *** Wormnest has joined #openttd
17:24:53 *** SgtStroopwafel_ has joined #openttd
17:28:13 *** Thedarkb has joined #openttd
17:36:08 *** roidal has joined #openttd
17:37:20 *** Thedarkb has quit IRC
17:40:34 *** Stimrol has joined #openttd
17:43:18 *** Thedarkb has joined #openttd
17:53:46 *** TheMask96 has quit IRC
17:53:48 *** Samu has quit IRC
17:58:09 *** TheMask96 has joined #openttd
18:04:18 *** Samu has joined #openttd
18:07:00 *** SgtStroopwafel_ has quit IRC
18:08:41 *** SgtStroopwafel_ has joined #openttd
18:12:32 *** Alberth has left #openttd
18:35:50 *** FLHerne has joined #openttd
18:59:59 *** frosch123 has joined #openttd
19:01:25 *** Speedy` has joined #openttd
19:01:35 *** dvim_ has joined #openttd
19:01:35 *** Tharbakery has joined #openttd
19:01:37 *** tux has joined #openttd
19:01:47 *** CompuDesktop has joined #openttd
19:02:05 *** Vadtec_ has joined #openttd
19:02:14 *** tux is now known as Guest118
19:02:29 *** ATMunn has joined #openttd
19:02:33 *** dustinm`_ has joined #openttd
19:02:36 *** absynthesyne has joined #openttd
19:03:04 *** ATMunn is now known as Guest143
19:03:39 *** glx has joined #openttd
19:03:39 *** ChanServ sets mode: +v glx
19:05:06 *** fiatjaf_ has joined #openttd
19:06:43 *** mindlesstux has quit IRC
19:06:43 *** dustinm` has quit IRC
19:06:43 *** Vadtec has quit IRC
19:06:43 *** DDR has quit IRC
19:06:43 *** Speedy has quit IRC
19:06:43 *** Compu has quit IRC
19:06:43 *** Guest1391 has quit IRC
19:06:43 *** innocenat has quit IRC
19:06:43 *** efess has quit IRC
19:06:43 *** fiatjaf has quit IRC
19:06:43 *** nauticalnexus has quit IRC
19:06:43 *** dvim has quit IRC
19:06:43 *** Tharbakim has quit IRC
19:06:43 *** Speedy` is now known as Speedy
19:06:43 *** absynthesyne is now known as nauticalnexus
19:06:43 *** Vadtec_ is now known as Vadtec
19:06:43 *** dustinm`_ is now known as dustinm`
19:06:43 *** dvim_ is now known as dvim
19:11:37 *** efess has joined #openttd
19:11:37 *** DDR has joined #openttd
19:48:35 *** Thedarkb has quit IRC
20:00:36 *** Thedarkb has joined #openttd
20:00:58 *** chomwitt has joined #openttd
20:13:46 <Samu> I am so confused with this height tiles corner z h stuff! :(
20:14:32 <Samu> and slope
20:19:30 *** Thedarkb has quit IRC
20:42:57 *** Thedarkb has joined #openttd
21:01:11 *** innocenat has joined #openttd
21:08:29 *** Webster is now known as Guest227
21:08:37 *** Mek_ has joined #openttd
21:08:37 *** Mek has quit IRC
21:08:40 *** Webster has joined #openttd
21:09:17 *** Guest227 has quit IRC
22:20:26 *** sim-al2 has joined #openttd
22:32:58 *** frosch123 has quit IRC
23:02:02 *** HerzogDeXtEr has joined #openttd
23:24:48 *** roidal has quit IRC
23:32:16 <supermop> so the first job offer i had seems to have evaporated, but i just got another offer
23:32:36 <supermop> unfortunately the compensation is worse than my current job
23:43:36 *** Progman has joined #openttd
23:55:03 <Samu> v9
23:55:05 <Samu> https://www.tt-forums.net/viewtopic.php?p=1194669#p1194669
23:55:24 <Samu> but i'm yet unable to do as Alberth suggested :(
23:55:31 <Samu> i'm so bad
23:55:37 <Samu> can't code
23:55:53 <Samu> can't see what he means
23:56:33 <Samu> he tries to help me, and yet... i still can't figure it out