IRC logs for #openttd on OFTC at 2016-09-07
            
00:09:11 *** Gja has quit IRC
00:10:33 *** Progman has quit IRC
00:12:35 *** Stimrol has quit IRC
00:17:37 <Samu> well well, NoCAB also suffers from the easy dock placement patch :(
00:22:51 *** Stimrol has joined #openttd
00:26:25 <Samu> dictatorai isn't all that great with ships after all, i thought it was better
00:27:02 <Samu> he just build a ship depot on a lake, built ships in there, but the dock they're heading is not in that lake
00:27:23 <Samu> otviai does suffer from this as well
00:28:05 <Samu> a lake, a real natural lake, not river tiles
00:28:13 <Samu> it's sea tiles
00:32:40 *** Lejving has quit IRC
00:34:00 *** Lejving has joined #openttd
00:35:42 <Samu> i must do something about ship depot exits
00:36:16 <Samu> but i want to do it without adverse effects for the gameplay, it's already not intuitive for water construction
00:37:40 *** tokai has joined #openttd
00:37:40 *** ChanServ sets mode: +v tokai
00:40:30 *** strohalm has quit IRC
00:44:30 *** tokai|noir has quit IRC
00:45:26 *** strohalm has joined #openttd
01:03:27 *** keoz has quit IRC
01:07:58 <Samu> nop, i'm not gonna do anything about ship depot exits
01:08:33 <Samu> it would only help AIs
01:08:39 * goodger pats Samu
01:08:46 <Samu> but would ruin it for human players
01:08:55 <Samu> it already is hard to construct water stuff
01:09:02 <Samu> hi
01:09:05 <Samu> goodger: ~
01:10:19 <sim-al2> It's always fun to see AI ships built on the wrong body of water, or in a tiny lake far from the sea
01:10:30 <sim-al2> Or just on a river with no locks
01:10:53 <goodger> my secretary of state for defence is always doing that in supreme ruler
01:11:17 <goodger> I don't see it much in openttd though FIRS seems happy to build bulk terminals on lakesides
01:11:35 *** Lejving has quit IRC
01:13:45 *** mikegrb has quit IRC
01:13:56 <Samu> https://www.tt-forums.net/viewtopic.php?f=33&t=75221 - the AIs have trouble dealing with the 1corner thing
01:15:51 *** mikegrb has joined #openttd
01:20:12 <Samu> can AIs actually build locks?
01:20:43 <Samu> do they have the means, API or whatever, to build a lock? never seen any build them
01:20:48 <Samu> same as canal tiles and aqueducts
01:27:45 *** paudia has joined #openttd
01:28:40 *** paudia has left #openttd
01:29:18 <Samu> i'm gonna split this patch in two
01:29:18 <Eddi|zuHause> that's because andy failed to grasp the concept of magic water tiles to make sure there's a larger body of water
01:30:56 <Samu> i once had an idea to remove locks from the game
01:31:17 <Samu> and allow ships going up rivers
01:31:39 <goodger> they can't now?
01:31:51 <Samu> nop, it needs a lock
01:32:26 <Samu> makes water construction very tedious
01:32:51 <goodger> well, bugger
01:33:35 <Samu> another idea would be, instead of a lock being 3 tiles wide, make it only 1 tile
01:34:33 <Samu> keep the middle tile, remove the other 2 tiles
01:34:58 <Wolf01> We need proper locks, not even worse than they are
01:35:20 <Wolf01> Also, 'night
01:35:24 *** Wolf01 has quit IRC
01:40:10 <Samu> lol, nocab got some lost ships because otviai blocked passage with a ship depot
01:44:30 <Samu> alright, i've seen enough
01:44:49 <Samu> time to stop this test and split that patch
01:48:05 *** Mazur has joined #openttd
02:19:40 *** strohalm has quit IRC
02:22:40 *** strohalm has joined #openttd
02:25:35 *** Mazur has quit IRC
02:30:16 <Samu> patch posted https://www.tt-forums.net/viewtopic.php?f=33&t=75230
02:30:21 <Samu> another topic open :(
02:38:54 *** supermop has joined #openttd
02:41:51 *** Mazur has joined #openttd
02:45:23 *** supermop_ has quit IRC
02:48:42 *** Supercheese has left #openttd
03:13:11 *** Supercheese has joined #openttd
03:30:54 *** mindlesstux_ has joined #openttd
03:34:28 *** mindlesstux has quit IRC
03:34:28 *** mindlesstux_ is now known as mindlesstux
03:37:59 *** sim-al2 has quit IRC
03:38:30 *** sim-al2 has joined #openttd
03:42:06 *** JezK_ has joined #openttd
04:00:28 *** _dp_ has quit IRC
04:12:20 *** Samu has quit IRC
04:39:14 *** Mazur has quit IRC
04:51:24 *** glx has quit IRC
04:54:28 *** smoke_fumus has quit IRC
06:24:09 *** Lejving has joined #openttd
06:43:23 *** sla_ro|master has joined #openttd
07:01:04 *** Biolunar has joined #openttd
07:01:45 *** Lejving has quit IRC
07:08:39 *** Mazur has joined #openttd
07:23:10 *** sim-al2 has quit IRC
07:23:10 *** Supercheese has quit IRC
07:23:10 *** tokai has quit IRC
07:25:30 *** sim-al2 has joined #openttd
07:25:30 *** Supercheese has joined #openttd
07:25:30 *** tokai has joined #openttd
07:25:30 *** oxygen.oftc.net sets mode: +v tokai
07:37:56 *** orudge has quit IRC
07:39:52 *** sla_ro|master has quit IRC
07:46:43 *** keoz has joined #openttd
07:48:20 *** NGC3982 has quit IRC
07:56:32 *** sim-al2 has quit IRC
08:15:01 *** Lejving has joined #openttd
08:15:34 *** Mazur has quit IRC
08:25:45 *** andythenorth has joined #openttd
08:30:47 *** andythenorth has quit IRC
09:22:23 *** nilez has quit IRC
09:22:41 *** nilez has joined #openttd
09:36:43 *** Progman has joined #openttd
10:00:49 *** Supercheese has quit IRC
10:11:47 *** JezK_ has quit IRC
10:13:21 *** Wolf01 has joined #openttd
10:14:00 <Wolf01> Moin
10:14:13 *** Progman has quit IRC
10:31:09 *** TheMask96 has quit IRC
10:36:10 *** TheMask96 has joined #openttd
10:44:49 <V453000> I have just tried to purchase some music album ... in US, the mp3 version is cheaper, CD version gets a mp3 version with it for free but it's more expensive and requires shipping. BUT for some reason when I want to pay on amazon for the mp3 version, it complains that my address must be local or something. So I tried purchasing on german amazon, and the mp3 is even more expensive than CD version there! XD WTF ... and they complain about local
10:45:10 <V453000> and then someone wonders why people listen to music on youtube or download it if they want quality
10:45:51 <Wolf01> US is a different market with different prices, they don't want you to purchase from them
10:46:43 <Wolf01> That's why we should buy the shit out of UK before brexit
10:46:47 <V453000> well the prices are pretty identical, just shipping is obviously more
10:47:07 <V453000> but why is mp3 cheaper in US (as it makes sense), but CD is cheaper in germany?
10:47:32 <V453000> I bet there is some anti-theft-super-piracy-money going to some fucking organization for the digital copy
10:47:57 <Wolf01> Yup, US doesn't gives money to GEMA if you purchase there
10:48:00 <V453000> just like when you buy an empty disk you pay like a bitch
10:48:41 <Wolf01> Also there's different taxation on digital products
10:48:56 <Wolf01> For example an ebook is not a book even if it's a book
10:49:28 <Wolf01> And, in Italy you pay 22% tax on ebook but only 4% or such on books
10:49:59 <Wolf01> I think the same happen with music
10:50:24 <Wolf01> MP3 is not CD aven if the CD could contain MP3
10:50:27 <Wolf01> *even
10:50:30 <V453000> fuck it lol I will just pirate it if I figure it is that much worth it for me
10:51:09 <V453000> I just expected similar nice shit like at bandcamp where you just pay, get the high quality MP3s immediately, enjoy.
10:51:16 <V453000> if you want you can even pay more if you really enjoy the band
10:51:33 <V453000> and since it's all so problem-free, you don't have a problem with paying a few more dollars more voluntarily
10:51:56 <V453000> but yeah what would I expect in today's world
10:52:09 <Wolf01> Today's world is shit
10:52:47 <Wolf01> Binding a changing property in UWP is shit
11:01:30 *** Lejving has quit IRC
11:15:16 *** Samu has joined #openttd
11:19:40 <Samu> hi
11:31:45 <Samu> euclidian vs manhattan
11:35:24 <Samu> a
11:35:29 <Samu> https://lyfat.wordpress.com/2012/05/22/euclidean-vs-chebyshev-vs-manhattan-distance/
11:35:46 <Samu> chebyshev for openttd?
11:38:44 <Samu> hmm nop
11:58:18 <Wolf01> I found this: float dist = sqrt((x2-x1) + (2*(y2-y1))^2); not sure if fits
12:06:00 <Samu> @calc sqrt((7-0) + (2*(0-0))^2)
12:06:00 <DorpsGek> Samu: Error: Something in there wasn't a valid number.
12:06:08 <Samu> :(
12:07:57 <Wolf01> 2.65?
12:09:06 <Samu> @calc ((7-0) + (2*(0-0))^2)^(1/2)
12:09:06 <DorpsGek> Samu: Error: Something in there wasn't a valid number.
12:09:22 <Samu> this calc does not like me
12:09:38 <Samu> @calc ((7-0)+(2*(0-0))^2)^(1/2)
12:09:38 <DorpsGek> Samu: Error: Something in there wasn't a valid number.
12:09:59 <Wolf01> Meybe is the ^
12:10:04 <Wolf01> *Maybe
12:10:35 <Samu> @calc 2^2
12:10:35 <DorpsGek> Samu: Error: Something in there wasn't a valid number.
12:10:39 <Samu> eh... oki
12:10:57 <Wolf01> Also, don't you have a calculator?
12:11:14 <Samu> @calc sqrt(4)
12:11:14 <DorpsGek> Samu: 2
12:12:06 <Samu> 2,6457513110645905905016157536393
12:12:10 <Samu> i do
12:14:27 *** Lejving has joined #openttd
12:14:40 <Samu> 2,64 seems a weird distance going from (0,0) to (7,0)
12:14:46 <Samu> i was expecting 7
12:15:01 <Wolf01> It's isometric
12:15:49 <Wolf01> It's the distance projected on screen, not the "real"
12:17:07 <Samu> oh i found this http://gamedev.stackexchange.com/questions/14306/how-do-i-get-the-distance-between-2-points-on-an-isometric-grid
12:22:33 <Samu> https://en.wikipedia.org/wiki/Euclidean_tilings_by_convex_regular_polygons - which one is openttd rail tracks?
12:22:46 <Samu> lel, i'm staring at it and i can't even recognize
12:24:40 <Wolf01> Regular tiling?
12:27:53 <Samu> i was looking at this https://en.wikipedia.org/wiki/Triangular_tiling#/media/File:1-uniform_2_dual.svg - but maybe it's not it
12:28:29 <Wolf01> Do you see triangles in ottd?
12:28:52 <Samu> i see rails in form of triangles
12:29:00 <Wolf01> In the map?
12:29:08 <Samu> nop
12:29:21 <Wolf01> Maybe hexagons then?
12:31:48 <Samu> https://en.wikipedia.org/wiki/Square_tiling#/media/File:Isohedral_tiling_p4-55.png
12:31:56 <Samu> they call it rhombus?
12:32:27 <Wolf01> Yup
12:33:31 <Wolf01> https://en.wikipedia.org/wiki/Square_tiling#/media/File:Isohedral_tiling_p3-3.png I bet OTTD will work better and have more possibilities with this kind of map
12:35:40 *** NGC3982 has joined #openttd
12:36:03 <Samu> oh gosh i cant identify the darn problem
12:37:04 <Wolf01> Neither do I
12:50:47 *** [dpk] has quit IRC
12:52:15 *** Lejving has quit IRC
12:56:21 *** sla_ro|master has joined #openttd
12:57:03 *** dpk has joined #openttd
12:59:50 <Flygon> <Wolf01> https://en.wikipedia.org/wiki/Square_tiling#/media/File:Isohedral_tiling_p3-3.png I bet OTTD will work better and have more possibilities with this kind of map
12:59:51 <Flygon> Seriously?
13:00:58 <Wolf01> Did I look serious?
13:30:36 <Samu> darn tracks
13:30:52 <Samu> there are 6 exits for a rail traick
13:31:15 <Samu> but a tile only has 4 sides
13:31:44 <Samu> and... i have no idea what to think anymore
13:31:48 <Samu> :(
13:33:13 <Samu> seems like rail tracks need an extra coordinate?
13:35:05 <Samu> track_axis_x, track_axis_y, track_left, track_right, track_upper, track_lower
13:35:26 <Samu> does this mean hexagon?
13:38:19 <Samu> there are 4 exits for a road bit
13:38:31 <Samu> there are 4 sides on a tile
13:38:36 <Flygon> Hexagons seem nice
13:38:50 <Flygon> Then you gotta render them in a '3D' environment <_>
13:39:26 <peter1138> gridless
13:42:59 <Wolf01> Gridless is the way
13:46:09 *** Lejving has joined #openttd
13:46:15 <Samu> http://imgur.com/a/nbSxl - i was pretty bored and made this
13:46:21 <V453000> XD
13:46:37 <Wolf01> Also I like all the potentialities of SimCity4, a tutorial I looked at explained how to make realistic road/rail networks with embankments on bridges etc
13:46:57 <V453000> does any game use the isohedral tileS?
13:46:59 <Samu> it shows something weird about distances and manhattan
13:47:06 <V453000> isometric is already fuckton of problems tbh :P
13:47:55 <Wolf01> Even worse the Factorio projection
13:48:32 <Wolf01> That's fucked up badly, but you managed to make it look good
13:49:50 <Samu> oh ya, the bottom left one has a 6x * 6y it should say 5x 5y, posting new screenshot
13:50:29 <Samu> http://imgur.com/a/oB3WL.
13:51:18 <Samu> anyway I give up
13:51:58 <Samu> yesterday i did something suggested by _dp_
13:52:03 <V453000> in many ways OpenTTD is even worse Wolf01
13:52:09 <Samu> i got some interesting results
13:52:40 <V453000> it's just not mentioned much because almost nobody makes 3D models and instead pixel-draws the "what they are used to" optical illusions
13:52:56 <Wolf01> V, you mean the glitching problems and the illusion for tunnels entrances?
13:53:27 <V453000> not just that, but yeah height illusion is generally a big issue, but also tiling of ANYTHING in diagonal/straight for example tracks
13:53:54 <V453000> anything that is not 100% flat requires an illusion, otherwise unsolvable / gligchy-ish
13:54:43 <V453000> if you have topdown-ish projection, the tile borders are straight, which helps a fuckload in that thing
13:56:28 <Wolf01> In fact on isometric you shouldn't do shape transformation, but just draw it in the way it looks right, at least this is what a tutorial said
13:57:03 <V453000> which tutorial?
13:57:04 <Wolf01> And lots of compromises
13:57:39 <Wolf01> One made by a rpgmaker/gamemaker at least 14 years ago
13:57:46 <Wolf01> *artist
13:59:10 <V453000> u haz linko?
13:59:40 <Wolf01> No, it was put offline ages ago, I only have some bits saved
14:02:15 <V453000> asdf
14:02:16 <Wolf01> It was from here: http://ftp.gmitalia.altervista.org/forum/viewtopic.php?p=4065&sid=b0b52ddcd8c09114b46b0fd19e3022a8#p4065
14:02:51 <V453000> ye, well links seem to be fokd op
14:02:59 <Wolf01> The last ones I think, the site does not exist anymore
14:03:59 <Samu> https://www.tt-forums.net/viewtopic.php?f=33&t=74253&p=1176219#p1176219 - trying altered GetAdvanceDistance values
14:04:06 <Samu> those are the results
14:04:19 <Samu> perphaps i should try an even slower max speed for the vehicles
14:04:51 *** sim-al2 has joined #openttd
14:05:20 <Wolf01> https://z4g0.com/graphics-pixelart/ the guy is really good, and we started developing at the same time :P
14:07:23 <V453000> cool stuff
14:07:51 <Wolf01> Lol, I found some sprites of my old mediaval RTS
14:08:11 <Wolf01> Clearly he made them prettier
14:08:13 <Samu> i have no way to reliably test aircraft travel times :(
14:08:26 <Samu> oh, you're not about my results
14:08:28 <Samu> :(
14:11:29 <Flygon> Ahh, man
14:11:38 <Flygon> All I ever did was test art for the Sega Master System
14:11:39 <V453000> wat medieval RTS?
14:11:54 <Samu> will change to 3 km/h max speed
14:11:56 <Samu> brb
14:12:19 <Flygon> https://dl.dropboxusercontent.com/u/2651992/Art/Other/DirtyRatKingProject/redfoxpalettetestaspectcorrect.png THE THING CANNOT DO THE COLOUR BROWN
14:12:36 <Flygon> (an adaption of a drawing a friend drew :U )
14:33:50 <Samu> just posted results at 3 km/h
14:34:52 *** Guest927 is now known as FR^2
15:04:24 <Samu> this is strange, these results don't make sense
15:07:07 *** LadyHawk has quit IRC
15:08:04 <Samu> a ship and a train moving at 24 km/h have the same travel time going from NE to SW
15:08:39 <Samu> a ship and a train moving at 3 km/h have different travel times going from NE to SW which is exactly the same route
15:09:33 <Samu> train is slower than ship at 3 km/h in the same route
15:09:45 <Samu> what is wrong with this? am i missing something
15:10:22 <Wolf01> <V453000> wat medieval RTS? <- not able to show you, I need to compile it and the old version of the tool doesn't work on >=Vista, I should import it on the latest GMStudio but that mean I have to change lots of things :(
15:11:39 *** andythenorth has joined #openttd
15:11:41 <andythenorth> o/
15:11:46 <Wolf01> o/
15:14:25 <Wolf01> http://imgur.com/a/oBO4I by the way, these were my sprites, https://z4g0.files.wordpress.com/2010/08/gianttmb9.png these instead are his ones :P
15:15:24 <Wolf01> Then I abandoned drawing because you can see the reasons
15:16:34 <Samu> math experts needed
15:17:33 <Samu> if a train moving at 3 km/h traveling 50 tiles takes 693 days, then how many days would it take at .. 4 km/h or 24 km/h
15:17:49 <Wolf01> Samu, proportions
15:18:40 <Samu> in openttd units
15:18:58 <Samu> not real life measurement
15:19:45 *** andythenorth has quit IRC
15:23:45 <Samu> at 4 km/h it takes 462 days (according to the game
15:24:48 <Wolf01> Ever tried wolfram alpha?
15:24:53 *** LadyHawk has joined #openttd
15:24:54 <Samu> at 6 km/h it takes 347 days
15:25:24 *** LadyHawk is now known as Guest1087
15:26:03 <Samu> at 12 km/h it takes 154 days
15:26:37 <Samu> at 24 km/h it takes 78 days
15:26:47 <Samu> what is the formula
15:29:00 *** Wolf03 has joined #openttd
15:29:00 *** Wolf01 is now known as Guest1088
15:29:01 *** Wolf03 is now known as Wolf01
15:29:53 <Samu> it doesn't match conventional logic
15:30:03 <Samu> or am i seeing things?
15:34:25 *** Guest1088 has quit IRC
15:38:53 <Samu> @calc 693/50*3
15:38:53 <DorpsGek> Samu: 41.58
15:38:57 <sim-al2> Samu, maybe this will help? https://wiki.openttd.org/Speed#Vehicle_speeds
15:39:09 <Samu> @calc 462/50*4
15:39:09 <DorpsGek> Samu: 36.96
15:39:17 <sim-al2> Speeds are a bit off
15:39:20 <Samu> @calc 347/50*6
15:39:20 <DorpsGek> Samu: 41.64
15:39:32 <Samu> @calc 154/50*12
15:39:32 <DorpsGek> Samu: 36.96
15:39:45 <Samu> @calc 78/50*24
15:39:45 <DorpsGek> Samu: 37.44
15:40:59 <Samu> well, it's all making no sense in this game
15:41:06 <Samu> can't really trust anything
15:42:10 *** Guest1087 has quit IRC
15:43:02 <Samu> then again... days aren't an exact measure
15:43:11 <Samu> think i'm gonna use that tick patch
15:44:10 *** LadyHawk- has joined #openttd
15:48:54 *** LadyHawk- has quit IRC
15:49:08 *** LadyHawk- has joined #openttd
15:49:39 <Samu> woah big numbers
15:49:45 <Samu> yeah i like this tick patch already
15:53:58 <Samu> bah misleading patch
15:54:05 *** Mazur has joined #openttd
15:54:05 <Samu> it's not exact
15:54:15 <Samu> it's multiples of *74
15:55:55 *** sim-al2 has quit IRC
16:02:57 <supermop> phone finally succumbed to being in the ocean 2 months ago
16:11:42 <Samu> i'd like to have a way to exactly measure the time travel, and that patch by hcoopz isn't it https://www.tt-forums.net/viewtopic.php?f=33&t=75202
16:13:34 <Samu> @calc (1 * 16 * 256) / (74 * 2) * 24
16:13:34 <DorpsGek> Samu: 664.216216216
16:14:11 <Samu> @calc (1 * 16 * 256) / (74 * 2) * 24 * 1.00584
16:14:11 <DorpsGek> Samu: 668.095238919
16:17:59 <Samu> how many sublocations per track side?
16:18:08 <Samu> for the axies its 16
16:19:15 *** HerzogDeXtEr has joined #openttd
16:24:07 <Samu> looks like it's 8
16:24:22 <Samu> @calc (1 * 8 * 256) / (74 * 2) * 24 * 1.00584
16:24:22 <DorpsGek> Samu: 334.047619459
16:27:16 <Samu> strange, i counted 12
16:27:21 <Samu> @calc (1 * 12 * 256) / (74 * 2) * 24 * 1.00584
16:27:21 <DorpsGek> Samu: 501.071429189
16:28:54 <Samu> ah, 16, i see
16:47:25 *** TheMask96 has quit IRC
16:48:22 *** TheMask96 has joined #openttd
16:51:23 <Samu> 17/11 - ROAD_E
16:51:23 *** Mazur has quit IRC
16:55:57 <Samu> 10/18 - ROAD_W
17:01:55 *** Progman has joined #openttd
17:02:00 *** Alberth has joined #openttd
17:02:00 *** ChanServ sets mode: +o Alberth
17:02:16 <Alberth> hi hi
17:04:30 <supermop> hi Alberth
17:04:55 <Alberth> o/
17:06:00 <Wolf01> o/
17:08:11 <LordAro> o/
17:09:21 <Samu> i'm counting sublocations
17:09:30 <Samu> cus im bored
17:13:48 <Alberth> more peoples even, hihi :)
17:14:36 <Samu> heh, so all sublocations for roads are different
17:15:22 <Samu> 18/11, 18/10, 17/10, 17/11
17:15:47 <Samu> shouldn't they all be equal?
17:15:56 <Samu> maybe i'm missing something important
17:16:37 <Samu> on the axis, it's 16/16
17:16:51 <Samu> on both
17:19:05 <Samu> @calc 11+18+11+18+11
17:19:05 <DorpsGek> Samu: 69
17:19:54 <Samu> @calc 17+10+17+10+17
17:19:54 <DorpsGek> Samu: 71
17:20:00 <Samu> ha...
17:23:09 <Samu> @calc 18+11+18+11+18
17:23:09 <DorpsGek> Samu: 76
17:38:41 <Samu> mister Alberth i think i figured out the zig-zag N<->S discrepance
17:38:53 <Samu> it's the counting of sublocations
17:39:57 <Alberth> ok
17:40:26 <Samu> http://imgur.com/a/jLca8 does this make sense?
17:41:14 <Samu> E<->W had (almost) the same time travel in both directions, i wonder if it's sublocation related
17:43:08 <Samu> where in the code are these road sublocations at
17:44:26 <Alberth> it doesn't make sense to me
17:44:42 <Alberth> I never ever looked at road movement, ever
17:46:00 <Samu> from E to W, I count 28 sublocations, from W to E, I count 28 sublocations
17:46:21 <Samu> from N to S, I count 27 sublocations, from S to N, I count 29 sublocations
17:48:04 <Samu> on that savegame i sent you N to S was faster than S to N, and today I found these sublocations thingies, and apparently they may be what's causing the different travel times
17:49:25 <Samu> later on I went to find out that E to W and W to E did not have the discrepancy
17:49:29 *** TheMask96 has quit IRC
17:49:41 <Samu> it's not exemplified on the save I sent you, though
17:50:01 <Samu> sublocation counting seems to corroborate my findings
17:52:31 *** TheMask96 has joined #openttd
17:59:02 *** ChanServ sets mode: +v Alberth
17:59:02 *** ChanServ sets mode: +v planetmaker
18:06:32 <Wolf01> https://www.youtube.com/watch?v=gkyV9hD8cQ8 see, even lego trains have slopes like TT
18:08:14 <V453000> dat hi res transport belt
18:12:09 <V453000> well lego can get even more nerdy than I thought XD
18:12:34 <Wolf01> I just finished building this http://keyboardsforchrist.com/Walschaerts_motion.gif
18:12:48 <Wolf01> It quite work
18:13:47 <V453000> in lego?
18:13:50 <V453000> oh fuck sakes
18:13:50 <Wolf01> Yup
18:13:55 <V453000> I modeled this in 3D a few times
18:14:06 <V453000> making it actually animated properly is especially retarded
18:14:21 <Wolf01> Now I understand how a reverser works and why there are 2 pistons in a steam engine
18:14:22 <V453000> 3D programs can't do it, you have to hack it :D
18:14:41 <V453000> yeah I understand the mechanism a lot better now too :D
18:17:08 <Samu> cargo flow should have the company colors
18:17:33 <Samu> i see many lines but find it hard to know which company they belong to
18:18:24 <Samu> also, water color on the minimap... hmm wish i could change the color
18:18:46 <Samu> some smart asses pick dark blue and i can never know where they are
18:29:07 <Alberth> you can't enable/disable companies from being displayed?
18:29:32 <Alberth> at least you can select on cargotypes
18:36:21 <Samu> you can see them when you're a spectator
18:37:34 <Samu> road vehicles and trains use the same GetAdvanceSpeed
18:37:44 <Samu> ships and aircraft use the same GetOldAdvanceSpeed
18:39:49 <Samu> my observations tell me that trains and ships should have the same function, whichever it is
18:40:17 <Samu> maybe aircraft too, road vehicles are the "exception"
18:40:30 <Samu> must do some tests
18:44:11 *** Flygon has quit IRC
18:44:32 *** Flygon has joined #openttd
18:55:29 *** glx has joined #openttd
18:55:29 *** ChanServ sets mode: +v glx
18:58:00 *** Ethereal_Whisper has joined #openttd
18:59:07 <Samu> there is a bug in the description
18:59:33 <Samu> * The vehicle speed is scaled by 3/4 when moving in X or Y direction due to the longer distance.
18:59:48 <Samu> or my interpretation is wrong?
19:01:02 <Samu> if the direction is 1, what will this return? return (this->1 & 1) ? 100 : 100 * 3 / 4;
19:01:44 <Samu> DIR_NE = 1, ///< Northeast
19:02:35 <peter1138> "this->1" ?
19:02:55 *** Ethereal_Shiver has quit IRC
19:03:01 <Samu> I mean 1
19:03:13 <Samu> return (1 & 1) ? 100 : 100 * 3 / 4;
19:03:55 <Samu> return (this->direction & 1) ? speed : speed * 3 / 4;
19:05:05 <Samu> it returns 100 or 75? :(
19:05:15 <Samu> i thnk it's 100, but the direction is NE
19:05:29 <Samu> description is misleading or am i interpreting it wrong?
19:05:42 *** Biolunar has quit IRC
19:11:23 <Samu> @calc 100 * 3 / 4
19:11:23 <DorpsGek> Samu: 75
19:11:37 <Samu> @calc 100 * 3 / 4 / (3 / 2)
19:11:37 <DorpsGek> Samu: 50
19:11:43 <Samu> orly?
19:12:12 <Samu> testing return (this->direction & 1) ? speed : speed /2
19:12:55 <glx> 1 and 3 return speed, 0 and 2 return speed * 3/4
19:17:09 <Samu> wow, i fixed ships :o
19:17:31 <Samu> and probably aircraft, since the function is shared with them
19:18:20 <Samu> okay, not exactly
19:18:25 <Samu> there is a 1 day difference
19:18:32 <Samu> must test at lower speeds ,brb
19:19:51 *** Mazur has joined #openttd
19:20:21 *** frosch123 has joined #openttd
19:21:13 <Samu> bah, 404 days vs 353 days, it was too good to be true
19:22:44 <Samu> i must push those 353 days to 404
19:22:51 <Samu> by the means of speed
19:23:13 *** Mazur has quit IRC
19:23:30 <Samu> in short, it must be slower that speed /2
19:25:16 *** keoz has quit IRC
19:27:55 <Samu> speed /3 i get 471, too slow now
19:28:54 <Samu> faster than speed / 2 and slower than speed / 3
19:29:19 <Samu> hmm, any idea?
19:33:12 <Alberth> multiply everything by 2, then take the value in-between
19:34:40 <Alberth> speed / 2 == 2 speed / 4; speed / 3 == 2 speed / 6; in between 2 speed / 5
19:35:45 <Samu> i got it the wrong way
19:35:53 <Samu> slower than speed /2, faster than speed / 3
19:36:27 <Alberth> that is of course speed / 2.5
19:39:37 *** Mazur has joined #openttd
19:42:08 <Samu> return (this->direction & 1) ? speed : speed * 2 / 5; testing
19:47:07 <Samu> why am i getting 471 days again
19:47:51 <Samu> t.t
19:48:12 <Samu> looks like I can't use really low speed values to begin with
19:48:55 <Samu> time to create a bigger map
19:50:04 <Samu> fastest ship is 64 km/h hmmm i wonder if 64 is a big enough value
19:55:40 <Alberth> fastest possible ship is around 80km/h iirc
19:57:30 <Wolf01> Bye
19:57:32 *** Wolf01 has quit IRC
20:00:33 <frosch123> Alberth: 0x80 km/h :)
20:00:42 <Alberth> :O
20:00:59 <Alberth> much faster boats thus :)
20:10:40 <Samu> 2000 tiles at 64 km/h
20:12:22 <frosch123> i just like that you got the digits right :)
20:12:47 <Samu> oh, ship actually moves at 112 km/h
20:12:49 <Samu> nice
20:13:41 <Samu> bah, got to switch to NPF pathfinder
20:27:16 <Samu> with 1.6.1 values: ship going NE<->SW = 494 days
20:27:34 <Samu> with 1.6.1 values: ship going E<->W = 330 days
20:27:53 <Samu> goes at 112 km/h, over 2000 manhattan distance
20:27:56 <Samu> tiles
20:28:24 <Samu> now my goal is to make E<->W = 494 days
20:30:52 <Samu> ugh, debug mode on 4096x4096 map is too slow, zzzz
20:33:45 <Samu> gonna test this in release mode
20:39:50 <Samu> if a tile is 16 steps and each step has 256 advance units, the map is 4096x4096 tiles, then crossing the map from a corner to another is...
20:40:15 <Samu> @calc 16*256*4096*4096
20:40:15 <DorpsGek> Samu: 68719476736
20:40:27 <Samu> okay :(
20:40:48 <Samu> oh, manhatan distance
20:41:08 <Samu> @calc 16*256*4096*2
20:41:08 <DorpsGek> Samu: 33554432
20:43:15 <Samu> got E<->W = 611 days with speed * 2 / 5
20:43:21 <Samu> too slow, needs to be faster
20:43:41 <Samu> will try speed / 2 again
20:52:13 <Samu> it's actually 617, not 611, my bad
20:55:52 <Samu> crap, i forgot about town statues on my town growth patch
20:56:17 <Samu> company statue on the town, I wonder if they are built on those slopes I don't want to
20:59:54 <Samu> nice, looks like they don't
21:01:18 <Samu> i wonder the same about industries
21:01:24 <Samu> banks
21:02:51 *** ConductCat has joined #openttd
21:02:54 <Samu> with speed / 2 values: E<->W = 492 days
21:03:13 <Samu> it's not really 494 days, but considering it's travelling 2000 tiles
21:03:33 <Samu> that's awesome
21:05:00 *** ConductorCat has quit IRC
21:08:30 <Samu> question
21:08:47 <Samu> is it possible to improve vehicle speed accuracy?
21:09:17 <Samu> 112 km/h is kind of a low number
21:09:56 <Samu> it is 224 in the code, right?
21:10:51 <Samu> math operations on these values seem to be the issue
21:11:05 <Samu> they're not precise, it only keeps the integer
21:17:04 <Samu> 3 / 2 = 1 according to game logic :(
21:17:07 <Samu> no wonder
21:20:10 *** dP has joined #openttd
21:20:12 *** dP is now known as _dp_
21:25:35 *** FLHerne has joined #openttd
21:34:23 <_dp_> somebody fix it already before Samu spams the crap out of this channel xD
21:34:30 * _dp_ reading logs...
21:35:18 <goodger> too late
21:38:23 *** Mazur has quit IRC
21:40:04 *** andythenorth has joined #openttd
21:41:03 <andythenorth> o/
21:41:33 <Samu> hi _dP_
21:44:03 <Samu> I was actually waiting for u
21:44:35 <Samu> inline uint GetOldAdvanceSpeed(uint speed) { return (this->direction & 1) ? speed : speed / 2; }
21:44:55 <Samu> try this, where it says speed *3 / 4, change it to speed / 2
21:45:11 <Samu> this one affects ships and aircraft
21:45:57 <Samu> the other, GetAdvanceSpeed, affects both trains and road vehicles, i have not tested any changes here yet, but I might
21:46:07 <Alberth> o/ andy
21:48:46 <Samu> GetAdvanceSpeed hmm
21:49:57 <andythenorth> is cat
21:52:10 <Samu> yep, road and train
21:52:25 <Samu> they should be separated
21:52:34 <Samu> hmm must think
21:55:06 *** Mazur has joined #openttd
21:57:03 <_dp_> Samu, not rly interested. Don't like you entire idea of slowing down stuff
21:58:08 *** mescalito has joined #openttd
21:59:34 <_dp_> If anything they should be moving properly in euclidean metric imo (and they are quite close already) not some manhattan crap
22:02:04 *** frosch123 has quit IRC
22:04:25 <Samu> i also have this sublocation screenshot http://imgur.com/a/jLca8
22:04:54 <_dp_> Samu, how did you count those?
22:05:25 <Samu> I watched them
22:05:30 <Samu> at super slow speeds
22:05:33 <Samu> 2 km/h
22:05:37 <_dp_> Samu, pff
22:05:54 <Alberth> samu is very good at counting :)
22:06:17 <_dp_> Samu, if anything diagonals should be counted separately I think
22:06:39 <Samu> for the Axis i counted 16
22:06:43 <Samu> X and Y
22:07:52 <_dp_> Samu, anyway, I'm changing my script to work with rvs atm, would be faster than trying to argue here)
22:11:31 *** Alberth has left #openttd
22:16:34 *** aard has joined #openttd
22:20:33 <Samu> i used the land information tool to help me count
22:21:31 <Samu> as the bus was advancing in pixels and the tool was still telling me that i couldn't clear the area, i counted it as a sublocation
22:21:48 *** sim-al2 has joined #openttd
22:34:53 *** aard has quit IRC
22:35:26 <_dp_> well, what can I say... it's weird http://imgur.com/a/hSTnN
22:41:28 <Samu> i count 17, 16, 14, 15
22:41:30 <Samu> on there
22:42:15 <Samu> what's the small red line after a turn, behind?
22:43:20 <Samu> doesn't seem to match my values
22:44:19 <Samu> that's a road vehicle driving on the right or on the left?
22:44:29 <_dp_> x and + are subtile coordinates, dots and squares is my attempt to get exact position
22:44:30 <Samu> and on the outer circle
22:44:46 <Samu> or the inner circle
22:45:05 <andythenorth> bed
22:45:07 *** andythenorth has quit IRC
22:45:57 <_dp_> Samu, on the right, ccw outer circle cw inner, it goes from depot on bottom, you can track it from there
22:48:29 <_dp_> this can't be right, it even has different number of diagonals on turns
22:50:18 <Samu> i think the grid is misaligned by 1 square, not sure which direction
22:50:39 <Samu> but... meh, i counted by eye, i may be mislead
22:56:04 <_dp_> my grid is fine, ttd one is screwed
22:56:32 <_dp_> it goes up on y 41 and down on 21
22:57:23 <_dp_> that gives 9 and 5 %16, not very symmetric
22:59:59 <Samu> static inline doesn't let me use this->
23:00:07 <Samu> inline does let me
23:00:25 <Samu> no idea what's the difference but i hope i'm not breaking the game lol
23:01:53 <_dp_> Samu, learn what static means first :p
23:06:58 <_dp_> holy crap, it's actually hardcoded in roadveh_movement.h
23:07:16 <_dp_> how does any of that make sense?
23:09:09 <Samu> http://stackoverflow.com/questions/7762731/whats-the-difference-between-static-and-static-inline-function - i have no idea what i just read, i think i'll pass
23:10:35 <Samu> roadveh_movement.h, will check it out
23:15:10 <Samu> eh seems like there's data for drive on left and drive on right, :)
23:17:07 <Samu> oh, also trams.... :)
23:18:14 <Samu> and stations, depots, drive-through stations, facing every direction and drive side
23:18:20 <Samu> interesting
23:18:39 <_dp_> and this file is mostly unchanged since r1
23:19:19 <_dp_> I suspect it was extracted from original game
23:20:31 <_dp_> Where it probably was made by designers who only cared for it to look pretty, not move consistently))
23:22:38 *** Biolunar has joined #openttd
23:26:01 <Samu> @calc 100*3/4/2
23:26:01 <DorpsGek> Samu: 37.5
23:26:17 <Samu> @calc 100*(3/4)/2
23:26:17 <DorpsGek> Samu: 37.5
23:26:28 <Samu> really? :o
23:26:59 <Samu> @calc ((100*3)/4)/2
23:26:59 <DorpsGek> Samu: 37.5
23:27:07 <Samu> okay i believe then
23:28:00 *** Mazur has quit IRC
23:28:40 *** sla_ro|master has quit IRC
23:32:50 <Samu> this is what I did to GetAdvanceSpeed
23:32:53 <Samu> inline uint GetAdvanceSpeed(uint speed) { return (this->type == VEH_TRAIN) ? (this->direction & 1) ? speed * 3 / 4 : speed / 2 : (speed * 3 / 4); }
23:33:19 <Samu> doesn't need parentheses
23:33:36 <Samu> return (this->type == VEH_TRAIN) ? (this->direction & 1) ? speed * 3 / 4 : speed / 2 : speed * 3 / 4;
23:33:50 <Samu> the other vehicle type on this case is the road vehicle
23:33:51 <_dp_> Samu, are trains even using this function?
23:34:15 <Samu> GetAdvanceSpeed is being used for trains and road vehicles
23:34:24 <Samu> GetOldAdvanceSpeed is being used for ships and aircraft
23:34:28 <_dp_> Samu, btw it's integer division there
23:35:51 <Samu> let me post patch
23:41:07 <Samu> https://paste.openttdcoop.org/ can't open this site, is it jsut me?
23:43:12 <glx> works for me
23:43:46 <Samu> i hope im not double pasting
23:45:01 <Samu> ugh, i didn't want to post it on the forum without testing it a little bit more
23:54:41 <Samu> This HTTP request method is not allowed.
23:54:55 *** Flygon_ has joined #openttd
23:55:26 <Samu> pase.openttdcoop.org doesn't like me today
23:55:46 <_dp_> * A vehicle has to spend at least 9 frames on a tile, so the following articulated part can follow.
23:55:46 <_dp_> * (The following part may only be one tile behind, and the front part is moved before the following ones.)
23:55:46 <_dp_> * The short (inner) curve has 8 frames, this elongates it to 10. */
23:56:07 <_dp_> ok, that explains some of it...
23:57:15 <Samu> https://paste.openttdcoop.org/pe2rbusr7 - finally
23:58:09 <Samu> now i need to build a map to test it
23:58:14 <Samu> lol
23:58:26 <Samu> scenario editor