Times are UTC Toggle Colours
00:03:38 *** thelamset has joined #openttd 00: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? 00:05:33 <thelamset> the railroad is electrified and the train can move back and forth iff the signals are electric 00:09:03 *** Thedarkb-T60 has quit IRC 00:09:14 <Samu> https://imgur.com/5IPKgoa 00:09:35 <Samu> #5 #6 #8 #9 is where I need the edits 00:09:46 <Samu> i change pick to edit on them? 00:10:17 <thelamset> (ok i fiddled with lots of thing and somehow got it to work, thanks in general) 00:11:02 <Samu> sorry thelamset I'm not good with signals 00:11:22 <thelamset> (np, just tried to throw it out in case it was sth obvious) 00:13:17 <Samu> uh, who's a git rebase interactive expert here at this time of the day? 00:15:10 <Samu> stop for amending, isn't amend just for commit messages? 00:27:40 <Samu> https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History 00:28:38 <LordAro> Samu: not just for messages 00:28:51 <LordAro> (shh, am sleep) 00:33:55 <Samu> how am I editing the .cpp files at that point in history? 00:34:10 <Samu> at point #5 00:34:37 <Samu> it rolls back the branch to #5? 00:37:57 <Samu> i give up 00:39:07 *** Samu has quit IRC 00:51:49 *** snail_UES_ has joined #openttd 01:10:56 *** thelamset has quit IRC 01:21:26 *** WWacko1976-work has joined #openttd 02:09:42 *** Flygon has joined #openttd 02:11:42 *** Lejving__ has joined #openttd 02:12:23 *** Eddi|zuHause2 has joined #openttd 02:12:46 *** Jyggalag has joined #openttd 02:12:54 *** urdh_ has joined #openttd 02:14:05 *** berndj-blackout has joined #openttd 02:14:51 *** argoneus_ has joined #openttd 02:14:53 *** APTX| has joined #openttd 02:16:10 *** juzza1_ has joined #openttd 02:16:19 *** WWacko1976-work has quit IRC 02:16:19 *** FLHerne has quit IRC 02:16:19 *** Stimrol has quit IRC 02:16:19 *** haudrauf has quit IRC 02:16:19 *** ZirconiumX has quit IRC 02:16:19 *** Markk has quit IRC 02:16:19 *** SpComb has quit IRC 02:16:19 *** APTX_ has quit IRC 02:16:19 *** argoneus has quit IRC 02:16:19 *** OsteHovel has quit IRC 02:16:19 *** urdh has quit IRC 02:16:19 *** crem4 has quit IRC 02:16:19 *** Eddi|zuHause has quit IRC 02:16:19 *** Exec has quit IRC 02:16:19 *** MasseR has quit IRC 02:16:19 *** berndj has quit IRC 02:16:19 *** Sheogorath has quit IRC 02:16:19 *** tyteen4a03 has quit IRC 02:16:19 *** Lejving_ has quit IRC 02:16:20 *** eirc has quit IRC 02:16:20 *** juzza1 has quit IRC 02:16:20 *** Ammler has quit IRC 02:16:20 *** avdg has quit IRC 02:16:20 *** tneo has quit IRC 02:16:20 *** michi_cc has quit IRC 02:16:20 *** kaane has quit IRC 02:16:20 *** V453000 has quit IRC 02:16:20 *** ^Spike^ has quit IRC 02:16:20 *** urdh_ is now known as urdh 02:16:29 *** SpComb has joined #openttd 02:16:37 *** crem4 has joined #openttd 02:16:57 *** WWacko1976-work has joined #openttd 02:17:41 *** eirc has joined #openttd 02:18:45 *** haudrauf has joined #openttd 02:18:49 *** michi_cc has joined #openttd 02:18:49 *** ChanServ sets mode: +v michi_cc 02:18:55 *** FLHerne has joined #openttd 02:18:59 *** ZirconiumX has joined #openttd 02:19:04 *** Stimrol has joined #openttd 02:19:08 *** avdg has joined #openttd 02:19:08 *** V453000 has joined #openttd 02:19:08 *** tyteen4a03 has joined #openttd 02:19:25 *** OsteHovel has joined #openttd 02:19:38 *** tneo has joined #openttd 02:20:08 *** ^Spike^ has joined #openttd 02:20:08 *** Ammler has joined #openttd 02:21:18 *** kaane has joined #openttd 02:21:56 *** MasseR has joined #openttd 02:23:16 *** Markk has joined #openttd 02:41:53 *** Eddi|zuHause2 is now known as Eddi|zuHause 03:12:04 *** haudrauf has quit IRC 03:13:02 *** haudrauf has joined #openttd 03:40:30 *** Supercheese has joined #openttd 03:54:47 *** snail_UES_ has quit IRC 04:20:12 *** glx has quit IRC 04:22:50 *** Wacko1976 has joined #openttd 04:43:23 *** Hobbyboy has quit IRC 04:47:35 *** ToBeFree has joined #openttd 04:49:13 *** Hobbyboy has joined #openttd 04:49:20 *** ToBeFree has quit IRC 05:07:41 *** Supercheese has quit IRC 06:38:21 *** cboyd_ has quit IRC 07:27:58 *** Samu has joined #openttd 08:09:41 *** yellyFish has joined #openttd 08:12:01 *** yellyFish has quit IRC 09:00:21 *** Wacko1976 has quit IRC 10:30:46 *** berndj-blackout is now known as berndj 10:35:02 *** wodencafe has joined #openttd 11:42:27 *** snail_UES_ has joined #openttd 11:53:25 <Samu> Payment for delivering 10 units (or 10,000 litres) of cargo a distance of 20 squares 11:53:42 <Samu> Payment for delivering 10 units (or 10,000 litres) of cargo in a straight distance of 20 squares 11:53:50 <Samu> Payment for delivering 10 units (or 10,000 litres) of cargo in a distance of 20 squares straight 11:54:05 <Samu> who's english? 11:56:22 <Samu> I'm changing the payment formula, it modified the way distance is measured 11:56:44 <Samu> it modifies* 11:59:43 <Samu> STR_GRAPH_CARGO_PAYMENT_RATES_TITLE string has to be adjusted accordingly 12:00:11 <snail_UES_> Payment for delivering 10 units (or 10,000 litres) of cargo a distance of 20 squares in a straight line 12:00:28 <Samu> thanks, you're a hero 12:05:31 <Samu> DistanceManhattan(source_tile, st->xy), days_in_transit, cargo_type) becomes 12:05:39 <Samu> DistanceMaxPlusManhattan(source_tile, st->xy) / 2 12:05:50 <Samu> DistanceMaxPlusManhattan(source_tile, st->xy) / 2, days_in_transit, cargo_type 12:06:09 <Samu> DistanceMaxPlusManhattan(source_tile, st->xy) / 2, days_in_transit, cargo_type) 12:07:12 *** snail_UES_ has quit IRC 12:07:55 <Samu> DistanceManhattan(source_tile, st->xy) 12:08:02 <Samu> DistanceMaxPlusManhattan(source_tile, st->xy) / 2 12:08:12 <Samu> that's more like it 12:11:16 <Samu> X(5,8), Y(10,12) 12:12:50 <Samu> @calc abs(5-10) + abs(12-8) 12:12:51 <DorpsGek> Samu: 9 12:14:21 <Samu> @calc (2 * abs(5-10) + abs(12-8)) / 2 12:14:21 <DorpsGek> Samu: 7 12:16:11 <Samu> abs(8-12) 12:16:17 <Samu> @calc abs(8-12) 12:16:17 <DorpsGek> Samu: 4 12:16:22 <Samu> @calc abs(12-8) 12:16:22 <DorpsGek> Samu: 4 12:16:25 <Samu> :) 12:17:25 <Samu> X(5,8), Y(5,12) 12:17:54 <Samu> @calc abs(5-5) + abs(8-12) 12:17:54 <DorpsGek> Samu: 4 12:18:31 <Samu> @calc (abs(5-5) + 2 * abs(8-12)) / 2 12:18:31 <DorpsGek> Samu: 4 12:18:37 <Samu> exactly 14:02:03 <Samu> @calc (4 * 4) / 3 + 1 14:02:03 <DorpsGek> Samu: 6.33333333333 14:03:03 <Samu> @calc (256 * 4 + 192 * 1) / 256 14:03:03 <DorpsGek> Samu: 4.75 14:03:07 <Samu> @calc (256 * 4 + 192 * 1) / 192 14:03:07 <DorpsGek> Samu: 6.33333333333 14:03:13 *** Gja has joined #openttd 14:04:18 *** nielsm has joined #openttd 14:05:31 <Samu> @calc 2 * 4 + (3 * 1) / 2 14:05:31 <DorpsGek> Samu: 9.5 14:12:58 *** Wacko1976 has joined #openttd 14:15:05 <Samu> I know my formula is correct, but I don't know how to explain it 14:17:01 <Samu> @calc 192 * 4 14:17:01 <DorpsGek> Samu: 768 14:17:05 <Samu> @calc 256 * 4 14:17:05 <DorpsGek> Samu: 1024 14:17:08 <Samu> @calc 256 * 3 14:17:08 <DorpsGek> Samu: 768 14:18:01 <Samu> a tile has 16 sublocations 14:18:14 <Samu> a diagonal'ed tile has 8 14:19:33 <Samu> @calc 192 * 8 * 4 14:19:33 <DorpsGek> Samu: 6144 14:19:42 <Samu> @calc 256 * 16 * 3 14:19:42 <DorpsGek> Samu: 12288 14:22:30 <Samu> https://www.tt-forums.net/viewtopic.php?p=1175673#p1175673 this is partially wrong. a vehicle moves faster in diagonals 14:23:25 <Samu> and _dp_ formula does not account for that 14:27:03 <Samu> @calc (256 * 4 * 4 + 192 * 1 * 3) / (256 * 4) 14:27:03 <DorpsGek> Samu: 4.5625 14:27:16 <Samu> @calc (256 * 4 * 3 + 192 * 1 * 4) / (256 * 4) 14:27:16 <DorpsGek> Samu: 3.75 14:27:28 <Samu> @calc (256 * 4 * 4 + 192 * 1 * 3) / (256 * 3) 14:27:28 <DorpsGek> Samu: 6.08333333333 14:27:54 <Samu> @calc (256 * 4 * 4 + 192 * 1 * 3) / (192 * 3) 14:27:54 <DorpsGek> Samu: 8.11111111111 14:28:04 <Samu> @calc (256 * 4 * 4 + 192 * 1 * 3) / (192 * 4) 14:28:04 <DorpsGek> Samu: 6.08333333333 14:28:24 <Samu> how did I get 7 :( 14:29:55 <Samu> @calc (256 * 4 * 3 + 192 * 1 * 4) / (192 * 4) 14:29:56 <DorpsGek> Samu: 5 14:30:41 *** rocky11384497 has joined #openttd 14: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 14:31:10 <Samu> I proved it before, but I can't prove it now 14:43:52 <Samu> https://webster.openttdcoop.org/index.php?channel=openttd&date=1473465600#1473530703 14:44:10 <Samu> right, but what did I come up with? 14:44:18 <Samu> how did I got to it 14:44:21 <Samu> get 14:59:42 *** synchris has joined #openttd 15:05:05 <Samu> @calc (3 * 4 / 2) + 1 15:05:05 <DorpsGek> Samu: 7 15:05:15 <Samu> ((3 * minu(dx, dy)) / 2) + Delta(dx, dy); 15:07:08 <Sacro> Samu: I'm english 15:07:13 <Sacro> As english as apple pie 15:07:27 <Samu> @calc 4 / 2 + 5 15:07:28 <DorpsGek> Samu: 7 15:07:33 <Samu> min(dx, dy) / 2 + max(dx, dy) 15:07:44 <Samu> hi Sacro 15:08:06 *** Thedarkb-T60 has joined #openttd 15:09:57 *** Wormnest has joined #openttd 15:29:01 *** WWacko1976-work has quit IRC 15:29:01 *** tokai|noir has quit IRC 15:33:54 *** wodencafe has quit IRC 15:40:01 *** Flygon has quit IRC 15:48:09 *** Stimrol has quit IRC 15:49:28 <Samu> dx = x0 - x1 15:49:35 <Samu> dy = y0 - y1 15:50:34 *** Stimrol has joined #openttd 15:54:14 *** wodencafe has joined #openttd 16:02:23 *** Happpy has joined #openttd 16:02:35 *** Happpy has left #openttd 16:08:43 *** Wormnest has quit IRC 16:09:13 *** TheMask96 has quit IRC 16:10:38 *** TheMask96 has joined #openttd 16:10:52 *** Stimrol has quit IRC 16:59:57 *** namad7 has joined #openttd 17:03:04 *** namad7 has quit IRC 17:09:14 *** HerzogDeXtEr has joined #openttd 17:13:36 *** rocky11384497 has quit IRC 17:30:54 *** Wolf01 has joined #openttd 17:30:57 *** glx has joined #openttd 17:30:57 *** ChanServ sets mode: +v glx 17:31:03 <Wolf01> o/ 17:32:22 *** frosch123 has joined #openttd 17:41:03 *** gelignite has joined #openttd 17:44:44 <Samu> @calc (192 * 4 * (6 / 4) + 192 * 1 * (4 / 4)) / 192 17:44:44 <DorpsGek> Samu: 7 17:52:56 *** Progman has joined #openttd 17:53:54 *** yellyFish has joined #openttd 17: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 17:58:33 <yellyFish> and i am not sure if this is a particular problem with the patch or openttd itself. 18: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 18:03:24 <yellyFish> I'll try to patch it myself 18:11:07 *** sim-al2 has joined #openttd 18:19:38 <yellyFish> how can i test this without changing revision number so it let's me connect to the server? 18:20:20 *** sla_ro|master has joined #openttd 18: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 18:29:28 *** HerzogDeXtEr has quit IRC 18:34:31 *** Thedarkb-T60 has quit IRC 18:35:37 <Samu> @calc (3/4)*(3/2) 18:35:37 <DorpsGek> Samu: 1.125 18:36:29 <Samu> @calc (3/4)*(3/2) * 256 18:36:29 <DorpsGek> Samu: 288 18:37:00 <Samu> @calc (4/4)*(3/2) * 256 18:37:00 <DorpsGek> Samu: 384 18:38:09 <Samu> @calc (4/4)*(3/2) * 256 / 2 18:38:09 <DorpsGek> Samu: 192 18:40:41 *** Thedarkb-T60 has joined #openttd 18:41:15 <Samu> @calc (256 * 4 * (3/4)*(3/2) + 256 * 1 * ((4/4)*(3/2)/2) 18:41:15 <DorpsGek> Samu: Error: unexpected EOF while parsing (<string>, line 1) 18:43:08 <Samu> @calc (256 * 4 * (3 / 4) * ( 3 / 2 ) + 256 * 1 * ((4 / 4)*(3 / 2) / 2)) / 192 18:43:08 <DorpsGek> Samu: 7 18:43:23 <yellyFish> forget what i said. i can test this with a local savefile of the server 18:58:39 *** yellyFish has quit IRC 19:04:11 *** sim-al2 has quit IRC 19:04:36 <Samu> @calc min(5, 4) 19:04:36 <DorpsGek> Samu: 4 19:04:46 <Wolf01> Holy shit Samu 19:05:06 <Samu> just testing capabilities of calculator, it's better than mine 19:05:31 *** sim-al2 has joined #openttd 19:30:16 *** gelignite has quit IRC 19:30:33 *** Stimrol has joined #openttd 19: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)) 19: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)) 19:36:54 <DorpsGek> Samu: 7 19:37:01 <Samu> yes, i did it 19:38:29 *** yellyFish has joined #openttd 19:41:05 <yellyFish> is anyone here that understands how the newgrf engine works? I found some lines that i am not sure are correct 19: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 20:10:41 <Eddi|zuHause> have you tried posting your savegame in JGR patchpack thread in the forum? 20: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. 20:14:11 *** nielsm has quit IRC 20:19:36 *** sim-al2 has quit IRC 20:25:02 *** sla_ro|master has quit IRC 20:43:08 *** yellyFish has quit IRC 20:44:33 *** yellyFish has joined #openttd 20:45:11 *** yellyFish has joined #openttd 20:55:04 *** chomwitt has joined #openttd 21:04:17 <frosch123> yellyFish: newgrf id are printed in hex in big endian 21:04:32 <frosch123> or little endian, depending how you look at it :p 21:04:49 <frosch123> so you may have to reverse the byte order 21:09:38 *** hph^ has joined #openttd 21:15:12 *** Progman has quit IRC 21:27:10 *** Wormnest has joined #openttd 22:02:10 *** hph^ has quit IRC 22:08:48 *** Wolf01 has quit IRC 22:17:03 *** frosch123 has quit IRC 22:19:51 *** hph^ has joined #openttd 22:45:11 *** chomwitt has quit IRC 23:06:07 *** Wormnest has quit IRC 23:07:01 *** Thedarkb-T60 has quit IRC 23:08:01 <yellyFish> didn't think of that. i found one newgrf that matches 23:17:47 *** rocky11384497 has joined #openttd 23:27:00 *** hph^ has quit IRC 23:27:46 *** hph^ has joined #openttd 23:40:27 *** synchris has quit IRC 23:45:17 *** sim-al2 has joined #openttd 23:58:17 <Samu> what a fluke 23:58:45 <Samu> the variable days_in_transit in GetTransportedGoodsIncome 23:59:00 <Samu> transit_days* 23:59:36 <Samu> the real days in transit is that value * 2.5