IRC logs for #openttd on OFTC at 2022-06-24
            
00:30:55 *** wallabra has quit IRC (Ping timeout: 480 seconds)
01:47:18 *** wallabra has joined #openttd
02:15:33 <DorpsGek> [OpenTTD/OpenTTD] Eddi-z commented on pull request #9931: Feature: Multi-track level crossings https://github.com/OpenTTD/OpenTTD/pull/9931#issuecomment-1165110801
02:20:41 *** Wormnest has quit IRC (Quit: Leaving)
02:30:18 *** D-HUND has joined #openttd
02:33:40 *** debdog has quit IRC (Ping timeout: 480 seconds)
02:38:23 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
02:38:31 *** Smedles has joined #openttd
03:26:26 *** glx has quit IRC ()
05:14:58 *** ufo-piloot_ has joined #openttd
05:19:07 *** ufo-piloot has quit IRC (Ping timeout: 480 seconds)
05:20:11 *** Flygon has joined #openttd
05:24:16 *** Flygon_ has joined #openttd
05:26:01 *** Flygon__ has joined #openttd
05:31:00 *** Flygon has quit IRC (Ping timeout: 480 seconds)
05:33:00 *** Flygon_ has quit IRC (Ping timeout: 480 seconds)
06:03:32 *** andythenorth has joined #openttd
06:13:48 *** sla_ro|master has joined #openttd
06:44:37 *** andythenorth has quit IRC (Quit: andythenorth)
07:19:10 *** andythenorth has joined #openttd
07:31:42 *** andythenorth has quit IRC (Quit: andythenorth)
08:04:59 <peter1138> Bah
08:09:44 *** andythenorth has joined #openttd
08:38:10 *** Samu has joined #openttd
08:39:00 <Samu> hi
09:42:10 <andythenorth> hmm
09:42:14 <andythenorth> forgot to eat breakfast
09:42:17 <andythenorth> mistakes were made
09:42:30 <LordAro> too late now, you'll have to try again tomorrow
09:42:47 <andythenorth> is breakfast a time, or an action?
09:42:56 <Eddi|zuHause> yes
09:45:03 <Samu> hello iron horse maker!
09:45:19 <Samu> im using your grf intensively for my testings
09:47:25 <Samu> i just realized trains sometimes use 2 ticks, some other times 1 tick
09:48:52 <peter1138> That depends how fast they go.
09:52:28 <Samu> https://github.com/OpenTTD/OpenTTD/blob/master/src/train_cmd.cpp#L3921-L3923
09:54:34 <Samu> the first TrainLocoHandler returns true, which means the second TrainLocoHandler also runs
09:54:42 <Samu> which is the case for my case
09:59:18 <Samu> it just makes brute forcing iron horse take twice the time
09:59:39 <andythenorth> possibly Iron Horse is slow :P
10:07:05 <Samu> alright, now it got Nimbus (Electric) with 5x Suburban Coach (Large) with 360 passengers
10:07:54 <Samu> I assume now that trains are full loaded, going in a straight line with all pieces running up inclined slopes
10:10:42 <Samu> i wanted to add breakdowns logic into this
10:10:56 <Samu> gonna have to investigate
10:12:54 <peter1138> Why twice the time?
10:15:11 <Samu> it is computing ~65 days worth of TrainTicks
10:15:22 <Samu> in squirrel
10:15:35 <Samu> for each engine/wagon combination
10:15:57 <Samu> 65 days in transit
10:16:54 <Samu> @calc 65 * 74
10:16:54 <DorpsGek> Samu: 4810
10:17:27 <Samu> simulating 4810 train ticks per combo
10:17:49 <Samu> and iron horse is huge
10:19:10 <Samu> which are actually 9620 TrainLocoHandler calls
10:21:11 <Samu> have yet to get how many combinations are there
10:21:15 <Samu> in iron horse
10:23:47 <peter1138> Wait what?
10:24:32 <Samu> got it, 5683 combinations
10:24:44 <Samu> @calc 9620 * 5683
10:24:44 <DorpsGek> Samu: 54670460
10:24:47 <Samu> yeah
10:30:42 <Samu> mail computed! it picked Triton (Electric) + 4x Sliding Wall Van (Twin) with 528 mail capacity
10:31:27 <Samu> train is full loaded, going straight line with all pieces running up inclined slopes
10:31:38 <Samu> does this choice make sense?
12:07:43 <peter1138> Dunno, does it look good?
13:06:51 *** glx has joined #openttd
13:06:51 *** ChanServ sets mode: +v glx
13:07:45 <glx> I still think it would be better for an AI to use presets for newgrf vehicle
13:07:53 <glx> too many choices
13:08:27 <glx> plus some limitations only a human could understand
13:10:47 <LordAro> Samu: remember, the goal of an AI isn't necessarily to be "the best", ideally it should be fun to play against
13:11:27 <glx> and it should survive :)
13:23:17 <Samu> train_slope_resistance, unsure how to deal with this
13:24:09 <Samu> if i assume worst case, going up hill with all wagons, it prefers to pick a strong engine
13:24:40 <Samu> if resistance is 0, it usually picks fast but weak engines, at least with iron horse
13:25:34 <Samu> then i have to actually build the route, which may include some nasty inclinations, hmm
13:26:02 <Samu> worst case is maybe preferred
13:26:10 <Samu> only to be on the safer side
13:30:31 <FLHerne> glx: too many grfs :-/
13:31:32 <LordAro> grf presets when?
13:40:35 <Eddi|zuHause> callback 18 was meant for that
13:41:14 <Eddi|zuHause> but someone decided that it was too ridgid for openttd's AIs and not implemented
13:52:17 <peter1138> It also allows the AI to cheat by buying vehicles that can't be purchased by players.
13:52:57 <Samu> this is awesome https://www.symbolab.com/solver/simplify-calculator/simplify%20x%20%5Ccdot1000%5Ccdot%5Cfrac%7B256%7D%7B9800%5Ccdot%20y%7D%5Ccdot%5Cleft(y%20%2B%20z%5Cright)%5Ccdot%5Cfrac%7B9800%7D%7B256%7D?or=input
14:07:58 <Samu> wow, it even solves the issue of losing precision
14:08:11 <Samu> interger math
14:08:17 <Samu> integer
14:12:07 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #9931: Feature: Multi-track level crossings https://github.com/OpenTTD/OpenTTD/pull/9931#issuecomment-1165616355
14:16:19 *** HerzogDeXtEr has joined #openttd
14:31:23 *** nielsm has joined #openttd
14:56:13 <Samu> is there a FALLTHROUGH for squirrel? or i just ommit it?
14:56:35 <LordAro> just omit break, iirc
14:56:38 <LordAro> same as C
14:57:18 <LordAro> (FALLTHROUGH in OTTD code is only an indication to the compiler that "yes, this was intentional", it doesn't actually do anything else)
15:03:47 <Samu> thx
15:14:15 *** frosch123 has joined #openttd
15:16:00 <Samu> wow...
15:16:04 <Samu> reliability = rel = max((rel_old = reliability) - reliability_spd_dec, 0);
15:16:11 <Samu> can squirrel accept this syntax
15:18:50 <glx> it should
15:19:08 <Samu> I'll see, im still copying code
15:19:43 <Samu> oh, it has a Random() function
15:20:51 <Samu> not sure it's a good idea to have something that's random in the formula
15:21:57 <Samu> how would i make it fair
15:26:30 <Samu> what's the Chance16I equivalent in squirrel
15:27:52 <LordAro> http://squirrel-lang.org/doc/squirrel2.html
15:28:20 <Samu> i mean API
15:28:31 <LordAro> https://docs.openttd.org/ai-api/hierarchy.html
15:29:26 <Samu> there isn't
15:33:23 <LordAro> https://docs.openttd.org/ai-api/classAIBase.html
15:56:56 <andythenorth> yo. is cat?
15:57:57 <andythenorth> Samu can you do an AI battle to evolve the strategy for choosing?
15:58:37 <andythenorth> eh, how about AI Train Whack, in game?
15:58:38 <andythenorth> https://grf.farm/iron-horse/2.49.1/html/train_whack.html?match_base_track_type=true
15:58:38 <frosch123> andythenorth: remember the security researcher who said something about DMARC? now they want a bounty :)
15:58:43 <andythenorth> eh what
15:59:08 <andythenorth> frosch123 get a mailbox address, I'll pay to send them this https://www.amazon.co.uk/Bounty-Milk-Single-Chocolate-Pack/dp/B0015MSCT8/ref=asc_df_B0015MSCT8/?tag=googshopuk-21&linkCode=df0&hvadid=256139256193&hvpos=&hvnetw=g&hvrand=1078989706693054282&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9045631&hvtargid=pla-554616371439&psc=1
15:59:09 <frosch123> https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ftse1.mm.bing.net%2Fth%3Fid%3DOIP.PmDJOUvNSqNFz3PDTm9y-gHaDe%26pid%3DApi&f=1 <- that thing, i guess
15:59:19 <frosch123> yeah, two monkeys, same joke
15:59:19 <andythenorth> oh you guessed :(
15:59:22 <andythenorth> lol
15:59:35 <andythenorth> Samu ^^ pls make Train Whack! in AI
15:59:50 <andythenorth> Train Whack! is inspired by Pikka's CivilAI and the Horse trains it builds
16:00:06 <frosch123> is it? or did you just make that up?
16:00:11 <andythenorth> no it is
16:00:36 <andythenorth> I ran some games with multiple Civil AI to test elements of Iron Horse
16:00:43 <andythenorth> unrelated frosch123 you never told me I can write train prop 25 with cb 36 :(
16:00:46 <frosch123> i hope civilai does not play with boring-mode enabled
16:01:05 <andythenorth> I feel I have not been exploring the newgrf spec sufficiently
16:01:08 <frosch123> why should i have told you that?
16:01:16 <andythenorth> imagine the lolz
16:01:36 <frosch123> did you find a usecase for prop25?
16:01:52 <frosch123> i never found one, or at least none with callback
16:01:57 <andythenorth> no, because it can't be read as a var
16:02:00 <andythenorth> I might patch that though
16:02:12 <andythenorth> it's so funny having such a potentially useful prop
16:02:14 <frosch123> why read something, which you can compute?
16:02:15 <andythenorth> but it's crippled
16:02:23 <frosch123> it's just caching at this point
16:02:41 <andythenorth> I wanted to see if it makes Iron Horse draw faster
16:02:56 <andythenorth> it's quite easy to show that Iron Horse has a significant FPS hit
16:03:04 <andythenorth> compared to vanilla trains
16:03:17 <andythenorth> but maybe that's just grf overhead ? :P
16:03:20 <andythenorth> or other things
16:04:07 <frosch123> compare it to nuts?
16:04:16 <andythenorth> let's see
16:04:29 <frosch123> reduce spritestacks back to 4? :p
16:10:52 <andythenorth> ok so Horse and NUTS have about the same FPS hit
16:11:37 <andythenorth> ~730x game speed factor for vanilla, ~680x with Horse or NUTS
16:11:53 <andythenorth> I always forget how to calculate that type of % :P
16:12:15 <frosch123> how did you create a comparable savegame with nuts so fast?
16:12:35 <andythenorth> this is just 20 trains in a depot
16:12:35 <peter1138> Ooh, found my old model railway stuff. Class 37, 43 and 58.
16:12:39 <andythenorth> with the train window open
16:12:46 <andythenorth> peter1138 quick eBay it!
16:12:48 <peter1138> Not sure I dare plug in the power supplies...
16:12:50 <andythenorth> probably worth a fortune
16:12:53 <andythenorth> or £40
16:12:58 <peter1138> Doubt it.
16:13:14 <peter1138> It's all Hornby so not exactly high quality.
16:13:23 <andythenorth> power supply probably fine
16:13:28 <andythenorth> there isn't much too them
16:13:36 <andythenorth> it's just a big transformer and a rheostat or something
16:13:47 <andythenorth> I blew up a lot when I was a child, so I took them apart
16:14:58 <andythenorth> too / to /s
16:18:34 <peter1138> They look very long... I'm too used to TTD's stubby engines :D
16:20:18 <andythenorth> 12/8
16:25:50 <peter1138> Actually there's some Lima here too.
16:30:48 <Samu> reliability_spd_dec is making this impossible
16:30:55 <Samu> it's an engine property that I can't get
16:31:35 <peter1138> Are you trying to simulate OpenTTD inside OpenTTD?
16:33:03 <LordAro> reimplementing most of the engine power calculations, by the sound of it
16:34:40 <Samu> i was attempting to simulate breakdowns
16:34:57 <Samu> for deciding which engine to get :p
16:35:00 <peter1138> Turn breakdowns off, much easier.
16:35:11 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
16:35:18 *** Smedles has joined #openttd
16:36:22 <peter1138> LordAro, think I fucked my calf muscle up, had cramp yesterday, now it's still aching :(
16:37:53 <peter1138> I probably shouldn't've tried to keep up with the fast group, on my tourer.
16:38:03 <LordAro> oh no
16:39:04 <peter1138> I fell back going up a hill (heavy bike innit) and they were off, so of course I tried to catch up. lol
16:39:24 <LordAro> i was having issues with my ankle a few weeks back, but it seems to have gone away after replacing my shoes
16:39:39 <LordAro> legs are just generally a bit tired
16:39:41 <LordAro> for some reason
16:43:12 <andythenorth> peter1138 trying bulgarian splits or whatever they're called
16:43:26 * andythenorth getting well into stretching, cos it actually works
16:44:19 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
16:44:25 *** Smedles has joined #openttd
16:46:06 <frosch123> TrueBrain: https://github.com/OpenTTD/BaNaNaS/pull/84 <- this issue resurfaced. internet says to add "--cli-binary-format raw-in-base64-out" ( https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html#cli-config-cli_binary_format ). any other ideas?
17:38:35 <Samu> looks like decay_speed for trains is 20
17:38:52 <Samu> but newgrfs... may change that
17:40:36 <Samu> only ships have a value other than 20
17:43:11 <Samu> https://github.com/OpenTTD/OpenTTD/blob/master/src/table/engines.h#L100
17:44:17 <Samu> @calc 20 << 2
17:44:17 <DorpsGek> Samu: Error: Invalid syntax: illegal operator LShift
17:48:10 <glx> (<<2 is *4)
18:05:50 *** Flygon__ has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
18:10:22 <TrueBrain> frosch123: ugh .. I forgot that issue existed ...
18:15:08 <TrueBrain> frosch123: I think GitHub Actions has a base64 encode thingy
18:15:48 <TrueBrain> or we can do: $(echo ... | base64)
18:16:31 <TrueBrain> I can thinker with it tomorrow .. feel free to experiment with it tonight if you like :D
18:17:03 <frosch123> so the --cli-binary-format option is no good?
18:17:11 <TrueBrain> what is a bit "meh" about the base64, that the secret hider will no longer kick in ..
18:17:22 <TrueBrain> well, I am fine with that option, just not sure till when that is a valid option
18:17:25 <TrueBrain> I assume it is deprecated :P
18:17:42 <TrueBrain> so I am assuming we postpone this issue again
18:18:16 <TrueBrain> but yeah, that option would be better, as the secret hider would still do its work
18:48:40 <frosch123> https://github.com/OpenTTD/BaNaNaS-staging/pull/5 <- no dorpsgek on data repos :)
18:48:46 <DorpsGek> [OpenTTD/OpenTTD] DorpsGek pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/ffd3c11ba7d3abd3dc3e387df24c157f281c8d15
18:48:47 <DorpsGek> - Update: Translations from eints (by translators)
18:49:50 <frosch123> uh, oh, yeah, i understand, you are busy, dorpsgek :)
18:51:12 <TrueBrain> Lol
18:53:21 <TrueBrain> Takes a few moments before AWS loaded the Lambda in memory
18:54:29 <frosch123> hmm, where is the manual-run-workflow button...
18:55:01 <TrueBrain> There we go, all green now :)
18:55:17 *** Wormnest has joined #openttd
18:55:20 <frosch123> did it rerun itself, or did you press something?
18:56:37 * TrueBrain hides
18:56:50 <TrueBrain> I hit rerun on the job :)
18:57:36 *** Wolf01 has joined #openttd
18:59:18 <DorpsGek> [OpenTTD/BaNaNaS] frosch123 opened pull request #118: Fix: [Actions] AWS CLI v2 requires setting the encoding of payloads. https://github.com/OpenTTD/BaNaNaS/pull/118
18:59:32 <frosch123> not sure the cherry-pick saved any time there
18:59:50 <frosch123> the --cli-read-timeout is not present in staging, so i had to resolve that
19:00:00 <frosch123> and edit the commit message to remove the PR reference :p
19:00:10 <frosch123> but hey, the "ubuntu-latest" worked
19:00:59 <frosch123> oh, the admin-merge button changed into a checkbox
19:08:00 <DorpsGek> [OpenTTD/BaNaNaS] TrueBrain approved pull request #118: Fix: [Actions] AWS CLI v2 requires setting the encoding of payloads. https://github.com/OpenTTD/BaNaNaS/pull/118#pullrequestreview-1018878820
19:08:08 <TrueBrain> That diff looks weird
19:08:32 <TrueBrain> I understand why, but it could do better
19:09:00 <frosch123> truediff :)
19:09:21 <TrueBrain> Hahaha
19:09:27 <DorpsGek> [OpenTTD/BaNaNaS] frosch123 merged pull request #118: Fix: [Actions] AWS CLI v2 requires setting the encoding of payloads. https://github.com/OpenTTD/BaNaNaS/pull/118
19:09:30 <TrueBrain> 1 side project at the time :p
19:09:46 <TrueBrain> Tnx for fixing :)
19:10:06 <frosch123> thx for review
19:11:25 <TrueBrain> One happy family :D
19:17:36 *** Tirili has joined #openttd
19:30:42 *** tokai|noir has joined #openttd
19:30:42 *** ChanServ sets mode: +v tokai|noir
19:37:36 *** tokai has quit IRC (Ping timeout: 480 seconds)
19:43:22 *** Tirili has quit IRC (Quit: Leaving)
19:44:49 *** Tirili has joined #openttd
19:49:04 *** Tirili has quit IRC ()
19:50:15 *** Tirili has joined #openttd
20:26:16 *** frosch123 has quit IRC (Quit: be yourself, except: if you have the opportunity to be a unicorn, then be a unicorn)
20:35:40 *** afon has joined #openttd
21:48:34 *** Samu has quit IRC (Quit: Leaving)
22:05:50 *** andythenorth has quit IRC (Quit: andythenorth)
22:07:45 *** andythenorth has joined #openttd
22:09:02 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:10:35 *** nielsm has quit IRC (Ping timeout: 480 seconds)
22:16:28 *** andythenorth has quit IRC (Quit: andythenorth)
23:01:00 *** sla_ro|master has quit IRC ()
23:01:35 *** D-HUND is now known as debdog
23:05:48 *** afon has left #openttd
23:32:59 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)