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

Powered by YARRSTE version: svn-trunk