IRC logs for #openttd on OFTC at 2018-10-04
            
00:00:56 <peter1138> LordAro, seems half of them even he doesn't know what it does :p
00:01:57 <LordAro> well, at least one
00:05:30 *** sim-al2 has joined #openttd
00:08:03 *** Wormnest has quit IRC
00:23:03 *** Thedarkb-T60 has joined #openttd
00:23:50 <Samu> hi LordAro, I'm looking at it
00:27:22 <Samu> brb creating savegame
00:30:31 *** sim-al2 has quit IRC
00:42:51 <Samu> hmm about the interactive rebase
00:43:00 <Samu> gonna try use the new program
00:44:13 <LordAro> good luck!
00:44:24 <LordAro> i can't help you with it :p
00:44:31 <LordAro> well, probably
00:58:18 *** tokai|noir has joined #openttd
00:58:18 *** ChanServ sets mode: +v tokai|noir
00:59:22 *** FLHerne has quit IRC
00:59:56 *** FLHerne has joined #openttd
01:05:15 *** tokai has quit IRC
01:08:07 <Samu> only have Rebase branch
01:08:19 <Samu> oh well, let's try screw things up
01:08:23 *** HerzogDeXtEr has quit IRC
01:09:20 *** Progman has quit IRC
01:10:55 <Samu> uh that's it, panic mode, I don't understand what's happening in the background
01:13:04 <LordAro> hmm, probably want to go back to git bash then
01:13:18 <LordAro> (can't offer any more help tonight, sleep time)
01:22:34 *** Thedarkb-T60 has quit IRC
01:23:05 *** Thedarkb-T60 has joined #openttd
02:03:38 *** thelamset has joined #openttd
02:05:01 <thelamset> https://imgur.com/a/OZa8j1p sorry to bother yall, i have a signal problem, sh40 electric waiting for free path under semaphores and not if i convert them to electric signals, aren't they interchangable?
02:05:33 <thelamset> the railroad is electrified and the train can move back and forth iff the signals are electric
02:09:03 *** Thedarkb-T60 has quit IRC
02:09:14 <Samu> https://imgur.com/5IPKgoa
02:09:35 <Samu> #5 #6 #8 #9 is where I need the edits
02:09:46 <Samu> i change pick to edit on them?
02:10:17 <thelamset> (ok i fiddled with lots of thing and somehow got it to work, thanks in general)
02:11:02 <Samu> sorry thelamset I'm not good with signals
02:11:22 <thelamset> (np, just tried to throw it out in case it was sth obvious)
02:13:16 <Samu> uh, who's a git rebase interactive expert here at this time of the day?
02:15:10 <Samu> stop for amending, isn't amend just for commit messages?
02:27:40 <Samu> https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History
02:28:38 <LordAro> Samu: not just for messages
02:28:51 <LordAro> (shh, am sleep)
02:33:55 <Samu> how am I editing the .cpp files at that point in history?
02:34:10 <Samu> at point #5
02:34:37 <Samu> it rolls back the branch to #5?
02:37:56 <Samu> i give up
02:39:07 *** Samu has quit IRC
02:51:49 *** snail_UES_ has joined #openttd
03:10:56 *** thelamset has quit IRC
03:21:26 *** WWacko1976-work has joined #openttd
04:09:42 *** Flygon has joined #openttd
04:11:42 *** Lejving__ has joined #openttd
04:12:23 *** Eddi|zuHause2 has joined #openttd
04:12:46 *** Jyggalag has joined #openttd
04:12:54 *** urdh_ has joined #openttd
04:14:05 *** berndj-blackout has joined #openttd
04:14:51 *** argoneus_ has joined #openttd
04:14:53 *** APTX| has joined #openttd
04:16:10 *** juzza1_ has joined #openttd
04:16:19 *** WWacko1976-work has quit IRC
04:16:19 *** FLHerne has quit IRC
04:16:19 *** Stimrol has quit IRC
04:16:19 *** haudrauf has quit IRC
04:16:19 *** ZirconiumX has quit IRC
04:16:19 *** Markk has quit IRC
04:16:19 *** SpComb has quit IRC
04:16:19 *** APTX_ has quit IRC
04:16:19 *** argoneus has quit IRC
04:16:19 *** OsteHovel has quit IRC
04:16:19 *** urdh has quit IRC
04:16:19 *** crem4 has quit IRC
04:16:19 *** Eddi|zuHause has quit IRC
04:16:19 *** Exec has quit IRC
04:16:19 *** MasseR has quit IRC
04:16:19 *** berndj has quit IRC
04:16:19 *** Sheogorath has quit IRC
04:16:19 *** tyteen4a03 has quit IRC
04:16:19 *** Lejving_ has quit IRC
04:16:19 *** eirc has quit IRC
04:16:19 *** juzza1 has quit IRC
04:16:19 *** Ammler has quit IRC
04:16:19 *** avdg has quit IRC
04:16:19 *** tneo has quit IRC
04:16:19 *** michi_cc has quit IRC
04:16:19 *** kaane has quit IRC
04:16:19 *** V453000 has quit IRC
04:16:19 *** ^Spike^ has quit IRC
04:16:19 *** urdh_ is now known as urdh
04:16:29 *** SpComb has joined #openttd
04:16:37 *** crem4 has joined #openttd
04:16:57 *** WWacko1976-work has joined #openttd
04:17:41 *** eirc has joined #openttd
04:18:45 *** haudrauf has joined #openttd
04:18:49 *** michi_cc has joined #openttd
04:18:49 *** ChanServ sets mode: +v michi_cc
04:18:55 *** FLHerne has joined #openttd
04:18:59 *** ZirconiumX has joined #openttd
04:19:04 *** Stimrol has joined #openttd
04:19:08 *** avdg has joined #openttd
04:19:08 *** V453000 has joined #openttd
04:19:08 *** tyteen4a03 has joined #openttd
04:19:25 *** OsteHovel has joined #openttd
04:19:38 *** tneo has joined #openttd
04:20:08 *** ^Spike^ has joined #openttd
04:20:08 *** Ammler has joined #openttd
04:21:18 *** kaane has joined #openttd
04:21:56 *** MasseR has joined #openttd
04:23:16 *** Markk has joined #openttd
04:41:53 *** Eddi|zuHause2 is now known as Eddi|zuHause
05:12:04 *** haudrauf has quit IRC
05:13:02 *** haudrauf has joined #openttd
05:40:30 *** Supercheese has joined #openttd
05:54:47 *** snail_UES_ has quit IRC
06:20:12 *** glx has quit IRC
06:22:50 *** Wacko1976 has joined #openttd
06:43:23 *** Hobbyboy has quit IRC
06:47:35 *** ToBeFree has joined #openttd
06:49:13 *** Hobbyboy has joined #openttd
06:49:20 *** ToBeFree has quit IRC
07:07:41 *** Supercheese has quit IRC
08:38:21 *** cboyd_ has quit IRC
09:27:58 *** Samu has joined #openttd
10:09:41 *** yellyFish has joined #openttd
10:12:01 *** yellyFish has quit IRC
11:00:21 *** Wacko1976 has quit IRC
12:30:46 *** berndj-blackout is now known as berndj
12:35:02 *** wodencafe has joined #openttd
13:42:27 *** snail_UES_ has joined #openttd
13:53:25 <Samu> Payment for delivering 10 units (or 10,000 litres) of cargo a distance of 20 squares
13:53:42 <Samu> Payment for delivering 10 units (or 10,000 litres) of cargo in a straight distance of 20 squares
13:53:50 <Samu> Payment for delivering 10 units (or 10,000 litres) of cargo in a distance of 20 squares straight
13:54:05 <Samu> who's english?
13:56:22 <Samu> I'm changing the payment formula, it modified the way distance is measured
13:56:44 <Samu> it modifies*
13:59:43 <Samu> STR_GRAPH_CARGO_PAYMENT_RATES_TITLE string has to be adjusted accordingly
14:00:11 <snail_UES_> Payment for delivering 10 units (or 10,000 litres) of cargo a distance of 20 squares in a straight line
14:00:28 <Samu> thanks, you're a hero
14:05:31 <Samu> DistanceManhattan(source_tile, st->xy), days_in_transit, cargo_type) becomes
14:05:39 <Samu> DistanceMaxPlusManhattan(source_tile, st->xy) / 2
14:05:50 <Samu> DistanceMaxPlusManhattan(source_tile, st->xy) / 2, days_in_transit, cargo_type
14:06:09 <Samu> DistanceMaxPlusManhattan(source_tile, st->xy) / 2, days_in_transit, cargo_type)
14:07:12 *** snail_UES_ has quit IRC
14:07:55 <Samu> DistanceManhattan(source_tile, st->xy)
14:08:02 <Samu> DistanceMaxPlusManhattan(source_tile, st->xy) / 2
14:08:12 <Samu> that's more like it
14:11:16 <Samu> X(5,8), Y(10,12)
14:12:50 <Samu> @calc abs(5-10) + abs(12-8)
14:12:50 <DorpsGek> Samu: 9
14:14:21 <Samu> @calc (2 * abs(5-10) + abs(12-8)) / 2
14:14:21 <DorpsGek> Samu: 7
14:16:11 <Samu> abs(8-12)
14:16:17 <Samu> @calc abs(8-12)
14:16:17 <DorpsGek> Samu: 4
14:16:22 <Samu> @calc abs(12-8)
14:16:22 <DorpsGek> Samu: 4
14:16:25 <Samu> :)
14:17:25 <Samu> X(5,8), Y(5,12)
14:17:54 <Samu> @calc abs(5-5) + abs(8-12)
14:17:54 <DorpsGek> Samu: 4
14:18:31 <Samu> @calc (abs(5-5) + 2 * abs(8-12)) / 2
14:18:31 <DorpsGek> Samu: 4
14:18:37 <Samu> exactly
16:02:03 <Samu> @calc (4 * 4) / 3 + 1
16:02:03 <DorpsGek> Samu: 6.33333333333
16:03:03 <Samu> @calc (256 * 4 + 192 * 1) / 256
16:03:03 <DorpsGek> Samu: 4.75
16:03:07 <Samu> @calc (256 * 4 + 192 * 1) / 192
16:03:07 <DorpsGek> Samu: 6.33333333333
16:03:13 *** Gja has joined #openttd
16:04:18 *** nielsm has joined #openttd
16:05:31 <Samu> @calc 2 * 4 + (3 * 1) / 2
16:05:31 <DorpsGek> Samu: 9.5
16:12:58 *** Wacko1976 has joined #openttd
16:15:05 <Samu> I know my formula is correct, but I don't know how to explain it
16:17:01 <Samu> @calc 192 * 4
16:17:01 <DorpsGek> Samu: 768
16:17:05 <Samu> @calc 256 * 4
16:17:05 <DorpsGek> Samu: 1024
16:17:08 <Samu> @calc 256 * 3
16:17:08 <DorpsGek> Samu: 768
16:18:01 <Samu> a tile has 16 sublocations
16:18:14 <Samu> a diagonal'ed tile has 8
16:19:33 <Samu> @calc 192 * 8 * 4
16:19:33 <DorpsGek> Samu: 6144
16:19:42 <Samu> @calc 256 * 16 * 3
16:19:42 <DorpsGek> Samu: 12288
16:22:30 <Samu> https://www.tt-forums.net/viewtopic.php?p=1175673#p1175673 this is partially wrong. a vehicle moves faster in diagonals
16:23:25 <Samu> and _dp_ formula does not account for that
16:27:03 <Samu> @calc (256 * 4 * 4 + 192 * 1 * 3) / (256 * 4)
16:27:03 <DorpsGek> Samu: 4.5625
16:27:16 <Samu> @calc (256 * 4 * 3 + 192 * 1 * 4) / (256 * 4)
16:27:16 <DorpsGek> Samu: 3.75
16:27:28 <Samu> @calc (256 * 4 * 4 + 192 * 1 * 3) / (256 * 3)
16:27:28 <DorpsGek> Samu: 6.08333333333
16:27:54 <Samu> @calc (256 * 4 * 4 + 192 * 1 * 3) / (192 * 3)
16:27:54 <DorpsGek> Samu: 8.11111111111
16:28:04 <Samu> @calc (256 * 4 * 4 + 192 * 1 * 3) / (192 * 4)
16:28:04 <DorpsGek> Samu: 6.08333333333
16:28:24 <Samu> how did I get 7 :(
16:29:55 <Samu> @calc (256 * 4 * 3 + 192 * 1 * 4) / (192 * 4)
16:29:55 <DorpsGek> Samu: 5
16:30:41 *** rocky11384497 has joined #openttd
16:30:55 <Samu> it's funny, I fail at math, and yet I reached the conclusion that DistanceMaxPlusManhattan(source_tile, st->xy) / 2 is the right formula
16:31:10 <Samu> I proved it before, but I can't prove it now
16:43:52 <Samu> https://webster.openttdcoop.org/index.php?channel=openttd&date=1473465600#1473530703
16:44:10 <Samu> right, but what did I come up with?
16:44:18 <Samu> how did I got to it
16:44:21 <Samu> get
16:59:42 *** synchris has joined #openttd
17:05:05 <Samu> @calc (3 * 4 / 2) + 1
17:05:05 <DorpsGek> Samu: 7
17:05:15 <Samu> ((3 * minu(dx, dy)) / 2) + Delta(dx, dy);
17:07:08 <Sacro> Samu: I'm english
17:07:13 <Sacro> As english as apple pie
17:07:27 <Samu> @calc 4 / 2 + 5
17:07:27 <DorpsGek> Samu: 7
17:07:33 <Samu> min(dx, dy) / 2 + max(dx, dy)
17:07:44 <Samu> hi Sacro
17:08:06 *** Thedarkb-T60 has joined #openttd
17:09:57 *** Wormnest has joined #openttd
17:29:01 *** WWacko1976-work has quit IRC
17:29:01 *** tokai|noir has quit IRC
17:33:54 *** wodencafe has quit IRC
17:40:01 *** Flygon has quit IRC
17:48:09 *** Stimrol has quit IRC
17:49:28 <Samu> dx = x0 - x1
17:49:35 <Samu> dy = y0 - y1
17:50:34 *** Stimrol has joined #openttd
17:54:14 *** wodencafe has joined #openttd
18:02:23 *** Happpy has joined #openttd
18:02:35 *** Happpy has left #openttd
18:08:43 *** Wormnest has quit IRC
18:09:13 *** TheMask96 has quit IRC
18:10:38 *** TheMask96 has joined #openttd
18:10:52 *** Stimrol has quit IRC
18:59:57 *** namad7 has joined #openttd
19:03:04 *** namad7 has quit IRC
19:09:14 *** HerzogDeXtEr has joined #openttd
19:13:36 *** rocky11384497 has quit IRC
19:30:54 *** Wolf01 has joined #openttd
19:30:57 *** glx has joined #openttd
19:30:57 *** ChanServ sets mode: +v glx
19:31:03 <Wolf01> o/
19:32:22 *** frosch123 has joined #openttd
19:41:03 *** gelignite has joined #openttd
19:44:44 <Samu> @calc (192 * 4 * (6 / 4) + 192 * 1 * (4 / 4)) / 192
19:44:44 <DorpsGek> Samu: 7
19:52:56 *** Progman has joined #openttd
19:53:54 *** yellyFish has joined #openttd
19:58:30 <yellyFish> Hi. I have been trying to debug a problem i have with a server. When i connect to it and the map loads i get supper laggy and cpu goes to 100%. I have use the debug option and the only error i can notice is a 'unhandled vehicle variable 0x61, type 0x0'. I would like to know if there is a way to know which newgrf is doing this. I would make a github issue but i get this problem using JGR patch
19:58:33 <yellyFish> and i am not sure if this is a particular problem with the patch or openttd itself.
20:01:36 <nielsm> best I can think of would be using a (further) patched game version that prints the grfid along with the error message
20:03:23 <yellyFish> I'll try to patch it myself
20:11:07 *** sim-al2 has joined #openttd
20:19:38 <yellyFish> how can i test this without changing revision number so it let's me connect to the server?
20:20:20 *** sla_ro|master has joined #openttd
20:26:44 <Samu> I'm sad. I came up with the right formula and now I can't figure out how I got to it
20:29:28 *** HerzogDeXtEr has quit IRC
20:34:31 *** Thedarkb-T60 has quit IRC
20:35:37 <Samu> @calc (3/4)*(3/2)
20:35:37 <DorpsGek> Samu: 1.125
20:36:29 <Samu> @calc (3/4)*(3/2) * 256
20:36:29 <DorpsGek> Samu: 288
20:37:00 <Samu> @calc (4/4)*(3/2) * 256
20:37:00 <DorpsGek> Samu: 384
20:38:09 <Samu> @calc (4/4)*(3/2) * 256 / 2
20:38:09 <DorpsGek> Samu: 192
20:40:41 *** Thedarkb-T60 has joined #openttd
20:41:15 <Samu> @calc (256 * 4 * (3/4)*(3/2) + 256 * 1 * ((4/4)*(3/2)/2)
20:41:15 <DorpsGek> Samu: Error: unexpected EOF while parsing (<string>, line 1)
20:43:08 <Samu> @calc (256 * 4 * (3 / 4) * ( 3 / 2 ) + 256 * 1 * ((4 / 4)*(3 / 2) / 2)) / 192
20:43:08 <DorpsGek> Samu: 7
20:43:23 <yellyFish> forget what i said. i can test this with a local savefile of the server
20:58:39 *** yellyFish has quit IRC
21:04:11 *** sim-al2 has quit IRC
21:04:36 <Samu> @calc min(5, 4)
21:04:36 <DorpsGek> Samu: 4
21:04:46 <Wolf01> Holy shit Samu
21:05:06 <Samu> just testing capabilities of calculator, it's better than mine
21:05:31 *** sim-al2 has joined #openttd
21:30:16 *** gelignite has quit IRC
21:30:33 *** Stimrol has joined #openttd
21:36:45 <Samu> (256 * 16 * (3 / 4) * (3 / 2) * min(abs(5 - 10), abs(8 - 12)) + 256 * 8 * (4 / 4) * (3 / 2) * abs(abs(5 - 10) - abs(8 - 12))) / (256 * 8 * (3 / 2))
21:36:54 <Samu> @calc (256 * 16 * (3 / 4) * (3 / 2) * min(abs(5 - 10), abs(8 - 12)) + 256 * 8 * (4 / 4) * (3 / 2) * abs(abs(5 - 10) - abs(8 - 12))) / (256 * 8 * (3 / 2))
21:36:54 <DorpsGek> Samu: 7
21:37:01 <Samu> yes, i did it
21:38:29 *** yellyFish has joined #openttd
21:41:05 <yellyFish> is anyone here that understands how the newgrf engine works? I found some lines that i am not sure are correct
21:56:09 <yellyFish> if i use GetGRFID() i should get the newgrf id of that vehicle right? i get a number but doesn't seem to match with any of the newgrf loaded
22:10:41 <Eddi|zuHause> have you tried posting your savegame in JGR patchpack thread in the forum?
22:13:51 <yellyFish> I have not actually. I wanted to find out by myself first if it was a newgrf problem or a patchpack problem. I guess i'll do that anyway.
22:14:11 *** nielsm has quit IRC
22:19:36 *** sim-al2 has quit IRC
22:25:02 *** sla_ro|master has quit IRC
22:43:08 *** yellyFish has quit IRC
22:44:33 *** yellyFish has joined #openttd
22:45:11 *** yellyFish has joined #openttd
22:55:04 *** chomwitt has joined #openttd
23:04:17 <frosch123> yellyFish: newgrf id are printed in hex in big endian
23:04:32 <frosch123> or little endian, depending how you look at it :p
23:04:49 <frosch123> so you may have to reverse the byte order
23:09:38 *** hph^ has joined #openttd
23:15:12 *** Progman has quit IRC
23:27:10 *** Wormnest has joined #openttd