IRC logs for #openttd on OFTC at 2016-03-29
            
00:20:28 *** Progman has quit IRC
00:25:48 <supermop> half rivers seems like a good start as you'd end up drawing much of the same stuff for sloped waterfalls
00:56:39 *** Quatroking has quit IRC
01:08:39 <Samu> http://i.imgur.com/cmtgwgg.png vs https://svn.openttd.org/trunk/docs/tileh.png
01:10:18 <Samu> on the first image it shows the missing water sprites on the left, and the missing pathable water track on the right
01:11:31 <Samu> the bare tiles need no tracks, they already behave correctly
01:11:58 <Samu> the flat tile 0 also behaves correctly
01:12:09 <Samu> the others, half-tiles, don't
01:18:52 <Wolf01> 'night
01:18:55 *** Wolf01 has quit IRC
01:25:23 <Eddi|zuHause> the last time i brought up half-rivers they were shot down because people would then want to build rails on the other half tile
01:30:45 <Samu> those tracks are to visualize where ships can traverse
01:31:06 <Samu> but the tile is fully water
01:31:28 *** Clockworker_ has joined #openttd
01:32:23 <Samu> waterfall
01:33:44 *** drac_boy has joined #openttd
01:33:46 <drac_boy> hi
01:38:49 *** Clockworker has quit IRC
01:43:54 *** smoke_fumus has quit IRC
01:56:05 *** zeknurn` has quit IRC
01:57:41 *** zeknurn has joined #openttd
02:01:46 *** JezK has joined #openttd
02:04:38 <drac_boy> seem a bit strange for a transfer table but what do I know tho http://www.msd-dresden.com/fileadmin/_processed_/csm_bautzen_umbauschbuehne_16z9_01_0e234f1cab.jpg
02:06:25 <Eddi|zuHause> are we playing "i don't think i see what you are seeing"?
02:10:21 *** TrueBrain has quit IRC
02:10:38 *** TrueBrain has joined #openttd
02:11:29 *** Myhorta has quit IRC
02:31:39 <drac_boy> at least this one isn't as confusing to figure out but heh good thing they added some touches of red paint otherwise that poor plow would easily seeming become lost in the snow its supposed to remove :-> http://www.rmweb.co.uk/community/uploads/monthly_07_2015/post-5613-0-29117500-1436028043.jpg
02:36:11 <Eddi|zuHause> i somehow doubt they're getting a lot of snow in that museum
02:50:51 *** TrueBrain has quit IRC
02:51:02 *** TrueBrain has joined #openttd
02:52:25 *** APTX_ has quit IRC
02:52:47 *** APTX has joined #openttd
02:56:21 *** Snail has joined #openttd
03:28:22 *** Flygon__ has quit IRC
03:32:12 *** Flygon has joined #openttd
03:43:52 <sim-al2> I'm not sure I understand why a transfer table for a tram would have only half a roof
03:44:30 *** tycoondemon2 has joined #openttd
03:48:10 <drac_boy> personally I find the whole thing a bit strange to me...I'm used to simple ones that just looks like a flat bridge sitting on the ground and not much else (aside to overhead wire if electric locomotives required)
03:48:19 *** tycoondemon has quit IRC
03:49:28 *** APTX_ has joined #openttd
03:50:04 *** APTX has quit IRC
03:54:17 <drac_boy> hm not finding that photo I recall before. but either way germany does have a small number of all-electrified turntables tho. kinda funny to look at that spaghetti-like mess of wires starting from the very center point and shoot in all manners of directions
03:57:01 <Samu> @logs
03:57:01 <DorpsGek> Samu: http://irclogs.qmsk.net/channels/openttd
03:58:20 <drac_boy> well can't find the real one now but heres a similar model version tho http://www.bwwmrc.co.uk/exhibitions/StJohn13Apr/Beck_2780f1f6.jpg
03:58:50 *** Ketsuban has quit IRC
03:58:52 <drac_boy> I see a silly bright little diesel locomotive has sneaked in tho :) (and yeah a little military wagon/train too)
04:05:44 <drac_boy> either way going sleep so have fun
04:05:49 *** drac_boy has left #openttd
04:07:11 <Samu> just managed to make the ships able to traverse those track slopes http://i.imgur.com/cmtgwgg.png with this noob-coding patch https://paste.openttdcoop.org/pkap1qfo6
04:07:38 <Samu> supermop:
04:08:13 <Samu> do you want a savegame?
04:19:27 <Samu> download the savegame file with the name "start these ships.sav" -> https://onedrive.live.com/redir?resid=23B29F3DE45F6F1F!1251&authkey=!APyGXPhplGn9KKM&ithint=file%2csav
04:22:05 <Samu> with the patch, the ships will be able to run in circles. becomes easier to see how the missing sprites should look like
04:22:28 <Samu> now i'm out to sleep, good night all
04:30:32 *** Samu has quit IRC
04:50:35 *** glx has quit IRC
04:50:51 *** Xal has joined #openttd
04:52:47 *** Supercheese has joined #openttd
05:45:41 *** liq3 has joined #openttd
06:15:04 *** sim-al2 has quit IRC
06:30:01 *** liq3 has quit IRC
06:33:04 *** liq3 has joined #openttd
06:46:35 *** Xal has quit IRC
07:11:29 *** Clockworker__ has joined #openttd
07:19:20 *** Clockworker_ has quit IRC
07:58:27 <Flygon> Wait
07:58:39 <Flygon> We're making a railtype that ships can drive on? O_O
08:07:17 <peter1138> we?
08:15:34 *** andythenorth has joined #openttd
08:20:45 <andythenorth> o/
08:33:33 *** Snail has quit IRC
08:53:53 <andythenorth> but would NotRoadTypes have speed limits and all that crap?
09:11:40 *** andythenorth has quit IRC
09:19:51 *** andythenorth has joined #openttd
09:41:23 *** JezK has quit IRC
10:13:06 *** andythenorth has quit IRC
10:36:18 *** HerzogDeXtEr has joined #openttd
10:36:51 *** ektor has joined #openttd
10:39:06 <peter1138> yesno
10:39:06 *** Myhorta has joined #openttd
10:39:08 *** tycoondemon2 has quit IRC
10:39:33 *** tycoondemon has joined #openttd
10:40:13 *** HerzogDeXtEr has quit IRC
10:43:27 *** Supercheese has quit IRC
10:47:39 *** Ketsuban has joined #openttd
10:48:39 *** ektor has quit IRC
10:54:54 *** Myhorta has quit IRC
11:13:17 *** Myhorta has joined #openttd
11:30:04 *** Wolf01 has joined #openttd
11:30:07 <Wolf01> o/
12:03:59 *** Samu has joined #openttd
12:04:12 <Samu> @logs
12:04:12 <DorpsGek> Samu: http://irclogs.qmsk.net/channels/openttd
12:04:18 <Samu> hi
12:14:06 *** andythenorth has joined #openttd
12:24:48 <andythenorth> o/
12:28:07 <Wolf01> o/
12:50:12 <Wolf01> mmh, I can't understand why one subscribed feed doesn't load correctly, if I debug the collection all is in place, it just doesn't show in the UI
12:50:44 <Wolf01> even if I replace the feed values with static values
12:50:50 <Wolf01> so it can't be the feed
12:53:25 <Wolf01> slept well, andy? had some subtle revelation on dream?
13:00:32 *** wilima has joined #openttd
13:01:10 <wilima> Hi, is it possible the connect bank and train station with car and transport money from bank to train station and load the train to another city?
13:02:20 <Wolf01> yes, the station must not accept valuables and you need to set the truck order to unload and leave empty or transfer
13:02:48 <wilima> ah, thanks, thats the thing :)
13:02:49 <Wolf01> transfer is better because truck and train share the income
13:06:03 *** wilima has quit IRC
13:15:49 <Samu> can someone explain me this piece of code
13:15:52 <Samu> static const byte coast_tracks[] = {0, 32, 4, 0, 16, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0};
13:16:14 <Samu> the coast tracks part
13:16:43 <Samu> what are those numbers inside the brackets
13:20:36 <Samu> here's the whole function https://git.openttd.org/?p=branches/1.6.git;a=blob;f=src/water_cmd.cpp;h=4392eb2103732a53a0aba4aee9e53e48804f0e12;hb=HEAD#l1234
13:21:39 <Samu> case WATER_TILE_COAST: ts = (TrackBits)coast_tracks[GetTileSlope(tile) & 0xF]; break;
13:24:18 *** wilima has joined #openttd
13:24:33 <Wolf01> they seem to be the track bits allowed to be built on coasts
13:25:09 *** wilima has quit IRC
13:30:03 *** liq3 has quit IRC
13:30:51 * andythenorth has NotRoadType spec questions
13:31:00 <andythenorth> I think the implementation is not so hard again now
13:32:32 <andythenorth> but all the speeds and compatibility crap that railtypes has :|
13:32:35 <andythenorth> seems dull
13:33:04 <Samu> there's 16 numbers inside
13:33:25 *** liq3 has joined #openttd
13:33:39 <Samu> 0 32 4 0 16 etc... how are they used in this ts = (TrackBits)coast_tracks[GetTileSlope(tile) & 0xF]
13:34:32 <Samu> the numbers are track bit, i think i understand that now
13:34:48 <Samu> but the ts = (TrackBits) part I still don't get it
13:38:37 <andythenorth> is that not just accessing data in a TrackBits type?
13:38:41 * andythenorth is pure guessing
13:38:53 <andythenorth> have you looked up the TrackBits type?
13:39:52 <Wolf01> Samu, each array position should be one of the slopes the tile can have, and the numbers related to the slopes you can build on are the trackbit
13:40:01 <andythenorth> if I was guessing, I’d suggest the slope was an index into some kind of array
13:40:22 <andythenorth> and that the result was the number of track bits, or a bitmask number which is unpacked for track bit pattern
13:40:29 <Wolf01> ^
13:40:33 * andythenorth _is_ guessing
13:40:37 <Wolf01> ^
13:40:41 <andythenorth> yeah :)
13:41:31 <Wolf01> (things like that are kind of magic to me, I have a lot to learn on data structures)
13:42:07 <Wolf01> but I can get the idea on how they work
13:42:38 <Wolf01> so andy, what was the question?
13:42:44 <andythenorth> coding a lot of nfo taught me how to make educated guesses
13:42:52 <andythenorth> but not how to do bitmaths properly :x
13:44:00 *** Compu has joined #openttd
13:44:16 <Compu> how do i change the soundfont openttd uses for midis in ubuntu?
13:45:21 <Eddi|zuHause> depends on which music driver is used. if timidity, then look at their settings
13:46:04 <Eddi|zuHause> something might be achieved by parameters to openttd's -m setting
13:46:17 <Eddi|zuHause> documentation is likely poor in that area
13:47:59 *** Arveen has joined #openttd
13:50:45 *** smoke_fumus has joined #openttd
13:59:48 *** wilima has joined #openttd
14:22:17 <andythenorth> Wolf01: the question is whether NotRoadTypes should be (a) super simple (just eye candy) or (b) provide features / limits, for example speed limits, and arbitrary compatibility / incompatibility
14:22:24 *** Clockworker has joined #openttd
14:22:25 <andythenorth> or [c] something else
14:22:58 <Wolf01> B for coherence with railtypes
14:23:04 <andythenorth> I find some of the features of railtypes strikingly useless
14:23:10 <andythenorth> not most, but some
14:23:52 <andythenorth> also as a newgrf author, railtypes is just baffling to work with
14:24:06 <andythenorth> somebody else (foobar) wrote Termite because I don’t understand the spec
14:24:11 *** smoke_fumus has quit IRC
14:24:16 <andythenorth> and the railtypes stuff in Iron Horse was given to me by other people
14:24:21 *** smoke_fumus has joined #openttd
14:24:47 <Wolf01> I usually build roro stations with a "slower" railtype so trains are forced to slow down if passing through and not going 190kph
14:25:09 *** Snail has joined #openttd
14:26:56 *** Arveen has quit IRC
14:27:56 *** Clockworker__ has quit IRC
14:33:30 *** wilima has quit IRC
14:43:22 <Samu> AHA, I GOT IT
14:48:17 *** tokai|noir has joined #openttd
14:48:17 *** ChanServ sets mode: +v tokai|noir
14:49:16 <Samu> in fact, i might have actually found a bug
14:49:34 <Samu> unless my understanding failed somewhere
14:50:54 <Samu> nevermind, not a bug, it's me
14:50:59 <Samu> false alarm
14:55:26 *** tokai has quit IRC
15:05:05 <Samu> question, are there water tiles that use the SLOPE_ELEVATED slope configuration? or is it the same as SLOPE_FLAT?
15:06:45 <Samu> apparently, SLOPE_ELEVATED has no trackbits
15:06:51 <Samu> but SLOPE_FLAT does
15:07:25 <Samu> any specific reason why is this so?
15:08:31 <andythenorth> it might be because the coast tiles are also water
15:08:37 <andythenorth> that’s how it works in newgrf
15:08:47 <andythenorth> and they are, of course, sloped
15:09:12 * andythenorth is giving out possibly wrong info, it’s a long time since I used that in newgrf
15:09:29 <andythenorth> water has trackbits? o_O
15:09:37 <Samu> yes, for ships
15:09:45 <Samu> to know where they can walk
15:09:46 <andythenorth> pathfinder needs them I assume
15:09:54 <andythenorth> ok so coast tiles would have no trackbits
15:10:24 <andythenorth> also there is the waterfalls case for rivers
15:10:37 <andythenorth> waterfalls are not navigable
15:10:55 <Samu> some coast tiles have tracks
15:11:03 <andythenorth> half tiles?
15:11:17 <Samu> ~yes, half-water / halt-declive, yes
15:11:20 <andythenorth> half tiles would have one or 3 bits, at a guess
15:12:45 <andythenorth> Samu: you have seen this? :) https://git.openttd.org/?p=trunk.git;a=blob_plain;f=docs/tileh.png;hb=HEAD
15:12:55 *** Snail has quit IRC
15:15:12 <Samu> yes, I started at that since yesterday night, lol
15:15:18 <Samu> stared*
15:16:15 <Samu> http://i.imgur.com/cmtgwgg.png
15:16:31 <argoneus> there are waterfalls?!
15:18:41 *** Hiddenfunstuff has joined #openttd
15:19:22 <Samu> tile 0 in the picture is a SLOPE_FLAT
15:20:31 <Samu> tile 15, which is not in the picture, would be a SLOPE_ELEVATED, and it looks like a SLOPE_FLAT with the 4 corners raised
15:20:54 <Samu> I wonder, why isn't the game currently putting tracks in SLOPE_ELEVATED
15:21:58 <Samu> is it ambiguous? pointless to do so? is it because once the 4 corners are raised, it becomes SLOPE_FLAT? what is it?
15:36:12 *** liq3 has quit IRC
15:37:20 *** Arveen has joined #openttd
15:39:57 <andythenorth> tile 12 is a waterfall for example
15:43:46 <supermop> good morning
15:47:16 *** Bowen has joined #openttd
15:47:40 <Bowen> hey guys, anyone know why server 2 is down?
15:55:07 *** Bowen has quit IRC
15:59:59 <Samu> what do I do? put tracks in SLOPE_ELEVATED or not? It's a difference between typing a 0 or 63
16:14:27 <Samu> https://paste.openttdcoop.org/pjv8ib4iq?/pjv8ib4iq
16:18:58 *** Ketsuban has quit IRC
16:23:57 *** Alberth has joined #openttd
16:23:57 *** ChanServ sets mode: +o Alberth
16:26:19 *** sim-al2 has joined #openttd
16:34:17 <andythenorth> lo Alberth
16:34:31 <Alberth> moin
16:34:46 <argoneus> moan
16:35:16 *** TheMask96 has quit IRC
16:39:18 *** TheMask96 has joined #openttd
16:41:39 <Samu> Alberth: hi
17:00:40 <Samu> question: GetTileSlope(tile) will never return SLOPE_ELEVATED, right?
17:10:04 *** sla_ro|master has joined #openttd
17:18:50 *** Arveen has quit IRC
17:20:37 <Samu> i still have a question
17:22:43 *** Quatroking has joined #openttd
17:23:13 <Samu> assuming i am right, and that SLOPE_ELEVATED is never returned by GetTileSlope(tile), why is that there's 16 entries in coast_tracks[] = {0, 32, 4, 0, 16, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0}; and not 15?
17:25:01 <Samu> the last entry is for the SLOPE_ELEVATED tile but if it's not even returned (assuming i'm right), why is it there?
17:29:54 <Alberth> completeness? table is also used for other code? someone wasn't thinking? better safe than sorry?
17:30:07 <Alberth> take your pick :)
17:31:18 * andythenorth bets on better safe than sorry
17:32:03 <Alberth> it could even be the case that in the past that value was returned and thus used
17:33:41 <Samu> oh, that makes more sense
17:33:59 <Alberth> code is not written once and never touched again
17:34:13 <Alberth> over the years different people make changes
17:34:20 *** juzza1 has joined #openttd
17:34:37 <Alberth> it's next to impossible to move everything along
17:34:50 *** M-E has joined #openttd
17:35:00 <Alberth> compilers don't warn about things you don't need
17:35:29 <Alberth> except for some trivial cases like unused static in a file
17:38:06 <Samu> I see, thanks for the explanation, it was driving me crazy
17:38:22 <Samu> i thought i was misinterpreting something
17:38:50 <Alberth> don't assume code makes sense :p
17:39:12 * andythenorth fell into that
17:39:39 *** Wormnest has joined #openttd
17:39:43 <andythenorth> other apps, I learnt to judge the mentaility of the authors :P
17:39:55 <andythenorth> openttd I assume is sane and well thought out, not sure why I do that :P
17:40:19 <Alberth> dangerous :p
17:40:25 <andythenorth> yeah
17:40:33 <andythenorth> some tools and frameworks are though
17:40:49 <andythenorth> others are clearly created by bags of monkeys with keyboards
17:41:21 <andythenorth> o/t, if I ask enough people what NotRoadTypes should provide, will I eventually get the answer I want? oO_
17:42:03 <Alberth> if you know the latter, I think you would, law of the big numbers :)
17:42:14 <Alberth> not sure you'd need to ask then, however :p
17:42:36 <andythenorth> mostly I don’t know how much of speed limits and crap I’d want to support
17:42:46 <andythenorth> practically, I might not be able to code that anyway
17:42:53 <andythenorth> but conceptually eh?
17:43:37 <Samu> okay, so that leads me back to the original question: do i put tracks in SLOPE_ELEVATED (which aren't even checked), or no tracks (like it is now)?
17:43:57 <Alberth> imho, having more than 1 type of road graphically is already very ++++
17:44:28 <Alberth> coding other crap can always be done later
17:44:47 <Alberth> not to mention some patch authors will do that all by themselves
17:45:39 <Alberth> at least, I suspect someone will :)
17:46:08 <andythenorth> it affects some design choices about compatibility and so on
17:46:15 <andythenorth> and overbuilding and that sort of thing
17:46:28 <Alberth> Samu: assume the value could be returned, what is the best value then?
17:46:45 <Alberth> yeah, very complicated very quickly
17:46:54 <Samu> tracks, that would mean 63 there
17:47:00 <Samu> and not 0
17:47:18 <Samu> but the code was putting 0
17:48:21 *** KouDy has quit IRC
17:48:22 <Alberth> right, that would suggest the author wanted a) not a crash, and b) something obvious to see as being wrong?
17:48:35 *** KouDy has joined #openttd
17:48:55 <Samu> IsTileFlat(tile) ? TRACK_BIT_ALL : TRACK_BIT_NONE; break;
17:49:07 <Samu> track_bit_all means 63
17:49:25 <Alberth> but I don't see the problem, the value isn't used, how can it be a wrong value?
17:49:37 <Samu> because i'm patching
17:49:52 <Samu> (TrackBits)clear_tracks[GetTileSlope(tile) & 0xF]; break;
17:49:56 <Samu> that's my replacement
17:50:07 <Samu> here https://paste.openttdcoop.org/pjv8ib4iq?/pjv8ib4iq
17:50:48 <Samu> IsTileFlat(tile) function
17:50:54 <Samu> must investigate what this one do
17:50:58 <Samu> brb
17:51:24 <Alberth> /me looks for food
17:52:13 * andythenorth looks at rain
17:52:20 <andythenorth> wonders why it’s raining at home time
17:57:33 <Alberth> to annoy you?
18:01:07 <andythenorth> I am the center of my world, so probably that yes
18:01:16 * andythenorth -> rain
18:01:17 *** andythenorth has quit IRC
18:01:20 *** sim-al2 has quit IRC
18:07:27 *** wilima has joined #openttd
18:15:30 *** wilima has quit IRC
18:16:33 <Samu> back, alright, I'm going to play safe and put 63
18:18:43 <Samu> IsTileFlat is checking the height of 4 adjacent tiles to find out if they're all equal or not
18:19:07 <Samu> it's not even using GetTileSlope
18:22:01 <Samu> the height of SLOPE_ELEVATED is 1 and that means that the 4 adjacent tiles height would also be 1... so in essence, the old code would eventually put tracks, so i'm gonna do the same
18:22:19 <Samu> mistery solved :p
18:30:08 <supermop> lunch time
18:31:32 <Samu> https://paste.openttdcoop.org/pxkv7w1re
18:31:47 <Samu> oh hi supermop :o
18:45:19 *** HerzogDeXtEr has joined #openttd
18:46:30 *** Progman has joined #openttd
18:47:05 <Samu> uhm...
18:47:51 <Samu> my code will never check SLOPE_ELEVATED, i'm still not pleased
18:48:49 <Samu> the original code doesn't check SLOPE_ELEVATED directly, but it would still put tracks
18:49:05 <Samu> grr, brb
18:50:28 <Samu> case WATER_TILE_CLEAR: ts = IsTileFlat(tile) ? TRACK_BIT_ALL : (TrackBits)clear_tracks[GetTileSlope(tile) & 0xF]; break;
18:55:40 *** glx has joined #openttd
18:55:40 *** ChanServ sets mode: +v glx
18:55:51 <Samu> Alberth: what u think now? https://paste.openttdcoop.org/ps2m2br1i
18:57:47 <Alberth> I am thinking I have no clue what you are doing
18:58:33 <Samu> :|
19:00:16 <Samu> improving the static TrackStatus GetTileTrackStatus_Water(TileIndex tile, TransportType mode, uint sub_mode, DiagDirection side)
19:02:51 <Samu> making ships able to traverse water tiles with slopes, a bit like what currently happens with coastal tiles
19:03:41 <Samu> but for all tile heights, and not just sea level
19:03:44 <Samu> i guess
19:03:48 <Samu> this is what i'm doing
19:06:55 *** Wolf03 has joined #openttd
19:06:55 *** Wolf01 is now known as Guest9636
19:06:55 *** Wolf03 is now known as Wolf01
19:10:11 <Samu> Alberth: http://i.imgur.com/cmtgwgg.png - this
19:10:23 <Samu> pretty much is what that patch do
19:10:47 *** Guest9636 has quit IRC
19:11:55 *** Clockworker_ has joined #openttd
19:17:03 *** Supercheese has joined #openttd
19:19:19 *** Clockworker has quit IRC
19:19:46 *** andythenorth has joined #openttd
19:23:56 <Alberth> wb
19:24:17 <Alberth> why not build a canal on a foundation? that would do the same thing
19:25:50 *** sim-al2 has joined #openttd
19:36:36 <Samu> static Foundation GetFoundation_Water(TileIndex tile, Slope tileh) return FOUNDATION_NONE;
19:36:45 <Samu> okay, i have no idea what's a foundation
19:38:42 <andythenorth> conceptually, or in the code?
19:39:12 <Samu> what Alberth asked
19:39:25 <Samu> i guess, in the code
19:39:43 <Alberth> build a track at a slope
19:39:45 <andythenorth> canals with foundations are an interesting idea
19:39:47 <andythenorth> http://newgrf-specs.tt-wiki.net/wiki/Callbacks#Decide_drawing_default_foundations_.2830.2F14E.2F150.29
19:39:51 <Alberth> or a house or a depot
19:39:54 *** gelignite has joined #openttd
19:40:20 <andythenorth> actually that newgrf link is probably not helpful sorry
19:40:27 <andythenorth> I was hoping there was a picture, but no
19:40:46 <Alberth> ha, that would be too helpful :p
19:40:53 <andythenorth> could add one :)
19:41:29 <Alberth> don't think many people read that stuff any more, with nml around
19:42:55 <Wolf01> anyone good with c#?
19:43:17 <Alberth> I treat it like Java :p
19:44:05 <Alberth> seen a few programs, but never wrote a line c# :)
19:46:38 <Wolf01> I have problems converting a collection to a dictionary :/ The example code is really easy but the IDE complaints that I can't convert a KeyValuePair(string, string) to string... I can't understand how to select only the value and not the whole KeyValuePair
19:47:26 <andythenorth> no .value or something?
19:47:35 <Wolf01> I'm doing this => Dictionary<long, Package> dictionary = packages.ToDictionary(p => p.TrackingNumber);
19:47:35 <Alberth> it doesn't have a "getKey()" or so?
19:47:48 <Wolf01> this is from the example
19:47:56 <andythenorth> .Key
19:48:00 <andythenorth> .Value
19:48:01 <andythenorth> https://msdn.microsoft.com/en-us/library/5tbh8a42%28v=vs.110%29.aspx
19:48:11 <andythenorth> they’re just props apparently
19:48:35 <Alberth> props and getters/setters are mostly the same thing in c#, afaik
19:49:20 <Wolf01> but the example creates a dictionary of <string, KVP>, where do I put the second .key?
19:50:36 <Wolf01> I just started to use the (p => p.something), I used it on the Where() extension so far
19:51:30 <Wolf01> maybe it's because p.value is already a KVP, but I'm not sure
19:51:45 <Alberth> my guess would be p.Key => p.Value but far from knowing that
19:51:58 <Alberth> don't understand the notation
19:53:35 <Wolf01> in Where() is select p where p.prop == something, here could be return p with key p.prop
19:54:21 <Wolf01> the problem is, I don't want p, only p.value :D
19:55:11 <Alberth> perhaps try to be less smart, and use a few more lines code?
19:57:07 <Wolf01> ok, I'll go back to the old foreach
19:59:21 <Alberth> no doubt it can be done, but figuring it out also takes time
20:00:26 <Wolf01> I can't understand why it should be so difficult, maybe with a delegate...
20:03:26 <Wolf01> nah, even worse
20:03:38 <Wolf01> I'll stay with the foreach
20:04:18 <Wolf01> that notation is good because of chainability
20:04:48 <Samu> foundation is related with autoslope?
20:07:19 <Wolf01> autoslope or not, foundation is related with what there is over the tile, autoslope only avoids the user to manually terraform to have the right slope
20:08:18 <Wolf01> and does that by adding a foundation usually
20:08:40 *** Ketsuban has joined #openttd
20:10:57 *** Arveen has joined #openttd
20:11:59 <Samu> eum... the only think i can say is... i wasn't planning autosloped rivers
20:12:30 <andythenorth> rivers could use some improvements :D
20:12:36 <andythenorth> how about scope creeep? o_O
20:13:24 <Samu> imagine a mountain of water
20:13:47 <Samu> i don't want it to look like I'm playing minecraft
20:15:11 <Wolf01> just finished to play it :D
20:17:04 <Samu> scope creep, what's that?
20:17:18 <andythenorth> I have an idea, you add it to your unrelated patch :)
20:17:23 <andythenorth> good for me, not for you
20:20:53 <Samu> mindstorming ideas?
20:21:48 <Samu> to see what works best?
20:21:51 <Samu> i'm confused
20:23:15 <Wolf01> andy, you do my feed reader UWP and I do roadbits?
20:23:22 <Wolf01> *roadtypes
20:23:28 <Samu> the goal i had is: allow terraforming of tiles which contain rivers on it
20:24:01 <Samu> it needs working on sprites, i believe they're "missing sprites"
20:24:16 <Samu> so that it doesn't look stupid like on that screenshot
20:24:22 <Samu> http://i.imgur.com/cmtgwgg.png
20:24:27 <andythenorth> Wolf01: NotRoadTypes :P
20:25:17 *** frosch123 has joined #openttd
20:25:30 <Samu> now, assuming the sprites were already available, the water tracks needed to be adjustable, because ships were not able to traverse them
20:25:59 <Samu> only the tile 0 had tracks
20:28:49 <Samu> the watered tile is 100% water, no half-parts being land and the other being something else. It's a water tile, no matter what
20:29:12 <Samu> bah typo
20:29:24 <Samu> the watered tile is 100% water, no half-parts being WATER* and the other being something else. It's a water tile, no matter what <- fixed
20:29:58 <andythenorth> frosch123: what railtype crap-with-no-gameplay-fun should I copy over to NotRoadTypes? o_O
20:32:12 <Samu> the problem is that I have no idea what's a foundation
20:32:21 <Samu> lol
20:32:27 <frosch123> drawing of custom road graphics :)
20:32:36 <frosch123> drawing of custom bridge surfaces
20:32:53 * andythenorth has a copy of railtype props in notes here
20:33:08 <frosch123> flags for drive-in availability
20:33:19 <andythenorth> interesting
20:33:48 <andythenorth> I think drive-in is determined by road or tram, subtype should ignore it
20:34:09 <andythenorth> speed_limit, acceleration_model, curve_speed_multiplier all look very boring
20:34:29 <frosch123> true, we have no drive-in movement code for trams
20:34:42 <frosch123> yeah, none of the properties look interesting
20:34:59 <frosch123> pure graphics imho
20:35:23 <Samu> foundations are sprites?
20:35:36 <andythenorth> to be clear where I got to on ‘spec'
20:36:00 <andythenorth> - every tile gets up to 1 ROADTYPE_ROAD and 1 ROADTYPE_TRAM
20:36:02 <andythenorth> not more
20:36:14 <andythenorth> - there are road subtypes and tram subtypes
20:36:21 <frosch123> Samu: foundations are Liberté, égalité and fraternité
20:36:31 <andythenorth> the chosen subtype is the one that will be built for all road bits of that roadtype on the tile
20:36:54 <andythenorth> subtype provides catenary, or not
20:37:19 <frosch123> andythenorth: i thought about that. currently i prefer splitting road and light-rail at the very top of the toolbar
20:37:24 <andythenorth> at some point, I will figure out the compatibility crap, and ‘powered on this subtype’ will be left to vehicles to figure out
20:37:30 <andythenorth> frosch123: that remains possible in my patch
20:37:43 <andythenorth> light-rail is an interesting renaming of trams
20:37:46 <frosch123> so, from the interface point of view, there are real rail, road, light rail, canal and airport
20:38:01 <frosch123> you can combine light rail and road, just like you can compbine normal rail and road
20:38:14 <andythenorth> but only one of each per tile
20:38:31 <frosch123> yes, one railtype per tile
20:38:34 <frosch123> one roadtype per tile
20:38:36 <Samu> supermop: hey, you're still interested about drawing sprites? couldn't figure out if you were willing to help
20:38:39 <frosch123> one lightrail type per tile
20:38:40 <andythenorth> one lightrailtype
20:38:43 <frosch123> one watertype per tile
20:39:04 <andythenorth> would you propose actually reimplementing all the road stuff to split trams out into light rail?
20:39:06 <andythenorth> or just in the UI?
20:39:12 <frosch123> only ui :)
20:39:23 <frosch123> internally trams are like roadvehicles
20:39:36 <frosch123> but from a gui point of view it makes no sense to put tram and road into the same dropdown
20:39:46 <andythenorth> agreed
20:39:48 <frosch123> when you can only combine one group with the other
20:39:52 <andythenorth> I’ll copy this to my notes
20:40:20 <andythenorth> in first patch, all subtypes will be cross-compatible
20:40:33 <andythenorth> then I’ll figure out ‘powered or not’ which probably means touching pathfinder :(
20:40:45 <andythenorth> and some kind of compatibility table for subtypes I guess :)
20:40:46 <andythenorth> :(
20:41:16 <frosch123> yeah, ignore compatibilty till the very end :)
20:41:28 <frosch123> after all purr is the best railset :p
20:41:33 <frosch123> so, first road-purr
20:41:48 <andythenorth> I don’t understand compatibility right now for railtypes at all, as newgrf author
20:41:53 <andythenorth> got no desire to repeat that :P
20:42:34 *** Clockworker_ has quit IRC
20:42:59 *** Clockworker_ has joined #openttd
20:43:24 <supermop> samu, if its straightforward, yes
20:44:06 * andythenorth back tomorrow
20:44:08 *** andythenorth has left #openttd
20:47:17 <Samu> did you get the savegame I posted yesterday night? i posted a link in chat, it would let you visualize what is missing
20:47:33 <Samu> brb, i'll fetch it
20:49:21 <Samu> 03:19:27 < Samu> download the savegame file with the name "start these ships.sav" -> https://onedrive.live.com/redir?resid=23B29F3DE45F6F1F!1251&authkey=!APyGXPhplGn9KKM&ithint=file%2csav
20:52:21 <Samu> you may need this patch: https://paste.openttdcoop.org/ps2m2br1i
20:52:40 <Samu> or the ships won't turn in the corners
20:54:38 <supermop> at work now
20:55:54 *** sim-al2 has quit IRC
20:57:46 *** Clockworker_ has quit IRC
20:58:00 *** Clockworker_ has joined #openttd
20:59:54 *** Clockworker has joined #openttd
21:03:27 <supermop> but i can make time to draw some
21:04:28 <Samu> :)
21:06:19 *** Clockworker_ has quit IRC
21:08:40 <Samu> the patch also lets you mess around with the terraforming of rivers. you can raise and lower a lake of river tiles and the river tiles will remain
21:10:02 <Samu> (but it won't currently let you demolish a river tile)
21:10:13 *** Mucht has joined #openttd
21:10:25 <Samu> for lazy reasons
21:10:29 <Samu> :\
21:10:44 <Samu> guess that's what I'm gonna code now
21:22:52 *** Samu has quit IRC
21:25:22 *** Supercheese has quit IRC
21:33:13 *** Samu has joined #openttd
21:34:18 <Samu> @logs
21:34:18 <DorpsGek> Samu: http://irclogs.qmsk.net/channels/openttd
21:35:21 <SpComb> oh god does someone still use that
21:35:48 <Samu> sorry
21:36:06 <SpComb> it'll probably die by summer unless I get around to completely rewriting it
21:38:55 *** liq3 has joined #openttd
21:41:31 <frosch123> SpComb: we can likely send webster here as well
22:01:00 *** Hiddenfunstuff has quit IRC
22:17:54 *** Alberth has left #openttd
22:22:03 *** frosch123 has quit IRC
22:25:52 *** sla_ro|master has quit IRC
22:48:58 *** Progman has quit IRC
22:53:11 <Samu> terraform function is huge :(
23:05:24 *** BowenC2C has joined #openttd
23:05:28 <BowenC2C> hey
23:05:32 <BowenC2C> anyone here?
23:11:24 *** BowenC2C has quit IRC
23:27:05 *** urdh has quit IRC
23:28:12 *** Nathan1852 has joined #openttd
23:28:42 *** Arveen has quit IRC
23:30:36 <Nathan1852> I have a problem with some grfs. I am trying to decode them using Grf Wizard to better understand how they work, but some of the imagesdon't decode right. Grfcodec just says that the grf has 0 sprites, although the grf works fine ingame
23:31:04 *** zeknurn has quit IRC
23:31:52 *** zeknurn has joined #openttd
23:32:02 *** norro_ has quit IRC
23:32:33 *** Mucht has quit IRC
23:32:48 *** Mucht has joined #openttd
23:33:10 *** FLHerne has joined #openttd
23:33:11 <Nathan1852> So if someone knows why this happens and/or ho to fix it, I would be really happy
23:33:13 *** norro has joined #openttd
23:34:26 *** gelignite has quit IRC
23:34:28 <SpComb> The Webster Leiden International Relations Club (IRC) was first inspired through Webster student, Hemayel Martina. Since its initiation, it has become a force of education, communication, and passion
23:34:45 <SpComb> heh, fun misquotes aboud, "Visit our Facebook or the IRC Blog for up-to-date information and events. If you would like to become an active member in the IRC, please send an email to: websterleidenirc@gmail.com"
23:35:04 <SpComb> but that's probably not what frosch meant
23:37:56 <SpComb> but if #openttd wants its irclogs and someone else is already maintaining a bot for that, it might be a sensible replacement
23:38:35 <Wolf01> I use them very often
23:39:34 <SpComb> I have some vauge ideas for reimplementing it, but I'd like to avoid having to port the current archic mess over, and the server it's currently running on is scheduled for demolition
23:41:57 *** urdh has joined #openttd
23:42:40 *** Wormnest has quit IRC
23:43:39 <Nathan1852> Could one of you maybe help me?
23:47:36 <FLHerne> Nathan1852: I missed whatever the original question was
23:47:48 <FLHerne> What problem are you having?
23:47:49 <Nathan1852> I have a problem with some grfs. I am trying to decode them using Grf Wizard to better understand how they work, but some of the imagesdon't decode right. Grfcodec just says that the grf has 0 sprites, although the grf works fine ingame
23:49:02 <FLHerne> Hm, I've never used 'Grf Wizard', just plain grfcodec
23:49:12 <FLHerne> Do you have a link to the grf(s) in question?
23:49:42 <Nathan1852> Well, grf wizard just starts grfcodec, so there shouldn't be any differences
23:50:31 <Nathan1852> I got the grfs from the ingame download, some of them the 2cc and chips grfs
23:50:35 <FLHerne> Well, I want to try and see if it works here :P
23:51:52 <Nathan1852> You probably can download them via the ingame downloader
23:52:21 <FLHerne> Nathan1852: Chips 1.5.0 decodes fine here with grfcodec 6.0.5
23:52:43 <FLHerne> Ah, possibly GrfWizard bundles an old grfodec version without grfv8 support?
23:53:06 <FLHerne> The newgrf format was changed to support 32-bit sprites and multiple zoom levels
23:53:35 <Nathan1852> That could be.
23:53:42 <Nathan1852> It had version 0.9.10
23:54:30 <FLHerne> Ouch
23:54:51 <FLHerne> Definitely too old, by about 5 years
23:55:21 <FLHerne> Anyway, no need to decode CHIPS https://www.google.co.uk/search?q=chips+openttdcoop&ie=utf-8&oe=utf-8&gws_rd=cr&ei=vPn6VqiNO8q4auO7i5AH
23:55:27 <Nathan1852> Yeah. I think it doesn't even bundle it, but I downloaded the wrong (old) version by mistake
23:55:28 <FLHerne> https://dev.openttdcoop.org/projects/chips, even
23:59:27 <Nathan1852> It works now, thank you for your help