IRC logs for #openttd on OFTC at 2018-10-04
⏴ go to previous day
00:00:56 <peter1138> LordAro, seems half of them even he doesn't know what it does :p
00:05:30 *** sim-al2 has joined #openttd
00:23:03 *** Thedarkb-T60 has joined #openttd
00:23:50 <Samu> hi LordAro, I'm looking at it
00:42:51 <Samu> hmm about the interactive rebase
00:43:00 <Samu> gonna try use the new program
00:44:24 <LordAro> i can't help you with it :p
00:58:18 *** tokai|noir has joined #openttd
00:58:18 *** ChanServ sets mode: +v tokai|noir
00:59:56 *** FLHerne has joined #openttd
01:08:19 <Samu> oh well, let's try screw things up
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: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: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:28:38 <LordAro> Samu: not just for messages
02:33:55 <Samu> how am I editing the .cpp files at that point in history?
02:34:37 <Samu> it rolls back the branch to #5?
02:51:49 *** snail_UES_ has joined #openttd
03:21:26 *** WWacko1976-work 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:14:05 *** berndj-blackout has joined #openttd
04:14:51 *** argoneus_ has joined #openttd
04:16:10 *** juzza1_ has joined #openttd
04:16:19 *** WWacko1976-work has quit IRC
04:16:57 *** WWacko1976-work 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 *** V453000 has joined #openttd
04:19:08 *** tyteen4a03 has joined #openttd
04:19:25 *** OsteHovel has joined #openttd
04:20:08 *** ^Spike^ has joined #openttd
04:41:53 *** Eddi|zuHause2 is now known as Eddi|zuHause
05:13:02 *** haudrauf has joined #openttd
05:40:30 *** Supercheese has joined #openttd
06:22:50 *** Wacko1976 has joined #openttd
06:47:35 *** ToBeFree has joined #openttd
06:49:13 *** Hobbyboy has joined #openttd
10:09:41 *** yellyFish has joined #openttd
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:56:22 <Samu> I'm changing the payment formula, it modified the way distance is measured
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: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:55 <Samu> DistanceManhattan(source_tile, st->xy)
14:08:02 <Samu> DistanceMaxPlusManhattan(source_tile, st->xy) / 2
14:12:50 <Samu> @calc abs(5-10) + abs(12-8)
14:14:21 <Samu> @calc (2 * abs(5-10) + abs(12-8)) / 2
14:17:54 <Samu> @calc abs(5-5) + abs(8-12)
14:18:31 <Samu> @calc (abs(5-5) + 2 * abs(8-12)) / 2
16:03:03 <Samu> @calc (256 * 4 + 192 * 1) / 256
16:03:07 <Samu> @calc (256 * 4 + 192 * 1) / 192
16:05:31 <Samu> @calc 2 * 4 + (3 * 1) / 2
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:18:01 <Samu> a tile has 16 sublocations
16:18:14 <Samu> a diagonal'ed tile has 8
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:16 <Samu> @calc (256 * 4 * 3 + 192 * 1 * 4) / (256 * 4)
16:27:28 <Samu> @calc (256 * 4 * 4 + 192 * 1 * 3) / (256 * 3)
16:27:54 <Samu> @calc (256 * 4 * 4 + 192 * 1 * 3) / (192 * 3)
16:28:04 <Samu> @calc (256 * 4 * 4 + 192 * 1 * 3) / (192 * 4)
16:29:55 <Samu> @calc (256 * 4 * 3 + 192 * 1 * 4) / (192 * 4)
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:44:10 <Samu> right, but what did I come up with?
16:59:42 *** synchris has joined #openttd
17:05:15 <Samu> ((3 * minu(dx, dy)) / 2) + Delta(dx, dy);
17:07:13 <Sacro> As english as apple pie
17:07:33 <Samu> min(dx, dy) / 2 + max(dx, dy)
17:08:06 *** Thedarkb-T60 has joined #openttd
17:09:57 *** Wormnest has joined #openttd
17:29:01 *** WWacko1976-work has quit IRC
17:50:34 *** Stimrol has joined #openttd
17:54:14 *** wodencafe has joined #openttd
18:10:38 *** TheMask96 has joined #openttd
19:09:14 *** HerzogDeXtEr has joined #openttd
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: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:38:09 <Samu> @calc (4/4)*(3/2) * 256 / 2
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:23 <yellyFish> forget what i said. i can test this with a local savefile of the server
21:05:06 <Samu> just testing capabilities of calculator, it's better than mine
21:05:31 *** sim-al2 has joined #openttd
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: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: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:27:10 *** Wormnest has joined #openttd
continue to next day ⏵