IRC logs for #openttd on OFTC at 2022-06-25
            
00:02:29 *** agneli has quit IRC (Remote host closed the connection)
00:09:22 *** Tirili has quit IRC (Quit: Leaving)
00:12:45 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
00:47:51 *** Wormnest has joined #openttd
01:53:52 *** agneli has joined #openttd
02:09:21 *** Wormnest has quit IRC (Quit: Leaving)
02:27:26 *** glx has quit IRC ()
02:29:27 *** D-HUND has joined #openttd
02:32:50 *** debdog has quit IRC (Ping timeout: 480 seconds)
05:18:17 *** joel has joined #openttd
05:21:55 *** joel has quit IRC (Remote host closed the connection)
05:27:14 *** kamil has quit IRC (Ping timeout: 480 seconds)
05:50:33 *** joel has joined #openttd
05:52:56 *** joel has quit IRC (Remote host closed the connection)
05:54:41 *** joel has joined #openttd
06:09:36 *** andythenorth has joined #openttd
06:10:04 *** Flygon has joined #openttd
06:43:30 *** nielsm has joined #openttd
06:48:11 *** joel has quit IRC (Remote host closed the connection)
06:48:45 *** joel has joined #openttd
06:56:50 *** joel has quit IRC (Ping timeout: 480 seconds)
06:57:08 *** joel has joined #openttd
07:02:59 *** andythenorth has quit IRC (Quit: andythenorth)
07:06:53 *** andythenorth has joined #openttd
07:16:00 *** joel has quit IRC (Remote host closed the connection)
07:18:53 *** joel has joined #openttd
07:22:53 *** joel has quit IRC (Remote host closed the connection)
07:23:04 *** joel has joined #openttd
07:26:20 <DorpsGek> [OpenTTD/nml] andythenorth updated pull request #254: Change: skip realsprite palette validation step iff output is nfo AND… https://github.com/OpenTTD/nml/pull/254
07:27:01 <andythenorth> hmm that diff isn't what I'm expecting
07:28:00 * andythenorth wonders if src is blackened yet
07:28:53 <DorpsGek> [OpenTTD/nml] andythenorth commented on pull request #254: Change: skip realsprite palette validation step iff output is nfo AND… https://github.com/OpenTTD/nml/pull/254#issuecomment-1166214963
07:30:36 *** sla_ro|master has joined #openttd
07:33:15 *** joel has quit IRC (Remote host closed the connection)
07:33:31 *** andythenorth has quit IRC (Quit: andythenorth)
07:34:26 *** joel has joined #openttd
07:35:12 *** andythenorth has joined #openttd
07:35:17 *** andythenorth has quit IRC ()
07:38:52 *** andythenorth has joined #openttd
07:39:27 *** andythenorth has quit IRC ()
07:44:50 *** joel has quit IRC ()
07:55:18 <DorpsGek> [OpenTTD/nml] Eddi-z commented on pull request #254: Change: skip realsprite palette validation step iff output is nfo AND… https://github.com/OpenTTD/nml/pull/254#issuecomment-1166219612
08:12:54 *** andythenorth has joined #openttd
08:39:47 *** crem has quit IRC (Quit: WeeChat 3.5)
09:23:11 *** Samu has joined #openttd
09:32:44 *** WormnestAndroid has quit IRC (Remote host closed the connection)
09:35:12 *** HerzogDeXtEr has joined #openttd
10:09:36 <andythenorth> is naptime?
10:26:51 <Samu> i added breakdown simulation, but i think it's triggering too often, i must have done something wrong
10:33:44 *** andythenorth has quit IRC (Quit: andythenorth)
10:57:42 <Samu> ah, figured it out
10:58:09 <Samu> squirrel has no concept of uint16, or uint32
10:58:16 <Samu> everything is int64
11:01:21 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
11:01:29 *** Smedles has joined #openttd
11:03:08 *** andythenorth has joined #openttd
11:12:07 *** WormnestAndroid has joined #openttd
12:00:13 <andythenorth> 'git pish' doesn't work
12:06:25 *** D-HUND is now known as debdog
12:19:15 *** ufo-piloot_ is now known as ufo-piloot
12:21:22 <Samu> just found out I can't really use table.rawset([item1, item2], value) and then use table.rawin([item1, item2]) to check if it's still there
12:22:54 <Samu> the array isn't processed as I would like
12:23:45 <Samu> is there anything I can do to make it work?
12:27:55 <Samu> https://pastebin.com/raw/8nvN9cMb why does this assert trigger?
12:28:06 <Samu> I don't get i
12:28:07 <Samu> t
12:34:13 <Rubidium> because they are not the same array. It might work if you override the cmp delegate of array, though that might break other things
12:43:33 <Samu> http://www.squirrel-lang.org/doc/squirrel2.html#delegation
12:45:48 <Samu> too advanced for me
13:05:39 <Samu> so it's not possible?
13:15:12 <andythenorth> newgrf wiki says
13:15:13 <andythenorth> "he ID for articulated vehicles must be below 8192."
13:15:17 <andythenorth> *the
13:15:34 <andythenorth> I thought it was 16635
13:15:35 <andythenorth> https://newgrf-specs.tt-wiki.net/wiki/Action0
13:16:59 * andythenorth looking elsewhere in wiki
13:17:54 <andythenorth> it's a 15 bit value
13:18:47 <andythenorth> hmm 13 bits for ID
13:20:16 <andythenorth> 8191 is max valid then?
13:36:52 *** miotsukushi has joined #openttd
13:37:02 *** miotsukushi has quit IRC ()
14:03:13 *** virtualrandomnumber has joined #openttd
14:31:49 *** andythenorth_ has joined #openttd
14:32:15 <Samu> now that I can simulate breakdowns, let's see which engine it picks for passengers
14:32:22 <Samu> from iron horse
14:33:08 <Samu> it's no longer deterministic, i guess, since there's Random functions involved
14:33:23 <Samu> reliability has a degree of random
14:35:51 <Samu> I wish there was a AIEngine.GetLenght function
14:37:21 *** andythenorth has quit IRC (Ping timeout: 480 seconds)
14:43:29 *** virtualrandomnumber has quit IRC (Quit: virtualrandomnumber)
15:09:38 <peter1138> It hot
15:16:52 <bkilm[m]> Did anyone consider adding weather into OpenTTD? Like high winds knocking down power lines of trams and trains or trees blocking roads? Roads becoming more dangerous when raining or foggy?
15:17:45 <bkilm[m]> Price of electricity, coal or water depending on season?
15:18:59 <FLHerne> I think it's been mentioned before
15:19:01 *** Wormnest has joined #openttd
15:19:16 <FLHerne> implementing it would be difficult, touches everything
15:19:31 <peter1138> It would come under disasters and everyone turns those off...
15:20:57 <FLHerne> a gamescript could probably emulate seasonal prices, although I think it would have to be in a way that users would find confusing
15:21:23 <FLHerne> the stock disasters are a bit stupid though
15:21:46 <FLHerne> I don't turn them off because I'm opposed to disasters in my game, but because I'm opposed to alien spacecraft
16:32:40 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
16:32:47 *** Smedles has joined #openttd
16:40:10 *** wallabra has quit IRC (Ping timeout: 480 seconds)
16:44:59 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
16:45:05 *** Smedles has joined #openttd
17:12:41 <TrueBrain> too realistic for your taste?
17:30:28 <andythenorth_> such brackets: result.append(sorted(list(set([min(id_run), max(id_run)]))))
17:31:21 <TrueBrain> you get the min and max out of something, make it unique (?!), sort it (in case the min was higher than the max?!), and add that to a list ..
17:31:28 <TrueBrain> yeah, seems you have been drinking too much again andythenorth_ :P
17:31:53 <andythenorth_> the sort is required for some reason
17:31:56 <andythenorth_> set reverses values
17:33:06 <andythenorth_> feel free to improve :D
17:33:32 <TrueBrain> I was more thinking about not touching this, not even with a stick :P
17:33:42 <LordAro> doesn't that make a list of lists too?
17:33:47 <LordAro> of varying sizes (1 or 2)
17:34:37 <TrueBrain> reminds me that I tell too many times in a month that people should not use std::tuple if a struct is also a viable solution ..
17:34:49 <TrueBrain> so sick of reading .first and .second everywhere in the code, without having any clue what .first or .second is :P
17:34:58 <LordAro> if you didn't want that, i'd probably do: result.append(min(id_run)); if min(id_run) != max(id_run): result.append(max(id_run))
17:35:05 <LordAro> hehe
17:35:12 <LordAro> possibly with some more temporary variables
17:35:22 <TrueBrain> LordAro: he could also replace "append" with "extend", and keep the silly one-liner :P
17:35:45 <TrueBrain> but without knowing what "result" is meant to represent, it is guesswork :)
17:35:45 <LordAro> true
17:36:41 <TrueBrain> but yeah: min = min(id_run); max = max(id_run); result.append([min, max] if min != max: else [min])
17:36:50 <TrueBrain> would be a lot more readable in regards what that statement actually does
17:37:01 <TrueBrain> still a very confusing statement, but without context, who I am to judge
17:37:34 <TrueBrain> euh, - ": else"
17:37:38 <TrueBrain> no clue how that slipped in there
17:37:43 <andythenorth_> I don't judge the judging :P
17:37:49 <TrueBrain> euh ... only the :
17:38:04 <TrueBrain> I should stop writing code on IRC :P
17:38:21 <TrueBrain> unbalanced lists are the best :)
17:38:28 <TrueBrain> they will not give you trouble down the road at all
17:38:35 <TrueBrain> "it's fine!" :D
17:45:09 <andythenorth_> I have rewritten all of it :P
17:45:20 <andythenorth_> due to the encouragement
17:45:26 <TrueBrain> who's a good boy
17:45:29 <TrueBrain> :D
17:49:26 <andythenorth_> not me :P
17:49:56 <andythenorth_> I have written a compile that produces 3 grfs in one shot
17:50:07 <andythenorth_> [insert regrets of choice]
18:35:20 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
19:20:21 * andythenorth_ wonders whether to delete grf translations
19:20:25 <andythenorth_> they're a chore
19:30:59 *** tokai has joined #openttd
19:30:59 *** ChanServ sets mode: +v tokai
19:31:22 <TrueBrain> I have some ideas how to do that for TrueGRF, which will be interesting .. but first, I need a vacation to implement stations ... :D
19:31:26 *** Wolf01 has joined #openttd
19:31:28 <TrueBrain> or a longer than 2 day weekend
19:37:01 <andythenorth_> lol
19:37:05 <andythenorth_> 2 day work week
19:38:00 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
19:44:48 <Wolf01> I would like a week made like 2 work days, midweek pause, 2 work days, weekend :P
19:50:34 <Samu> slope steepness 0%, no breakdowns, 65 days in transit: https://i.imgur.com/Zr4OeXd.png
19:52:39 <Samu> platform lenght, 3 tiles
19:56:15 <Samu> i now wish there was a more efficient way to compute all this data
19:56:42 <Samu> started in the year 5000, only in year 5004 it came with result
19:57:23 <TrueBrain> Wolf01: you can do that yourself; just work 32hours a week ;)
19:58:14 *** wallabra has joined #openttd
19:58:38 <andythenorth_> TrueFact
19:58:41 <andythenorth_> fewer hours
19:58:42 <andythenorth_> less pay
19:58:44 <andythenorth_> more fun
20:20:52 <Samu> Iron Horse is not compatible with openttd inflation
20:20:55 <Samu> :)
20:36:44 <andythenorth_> makes your life easier :P
20:44:39 <dwfreed> or work 4 10s
20:46:45 *** _aD has joined #openttd
21:10:54 <Wolf01> <TrueBrain> Wolf01: you can do that yourself; just work 32hours a week ;) <- I doubt, I need a change to the job contract for that, and my boss already said no... but in future we might get some more flexibility on the working hours, still 8 each day, but we might reduce the lunch time and start earlier in the morning, so we will be able to finish like 1 hour early on the evening
21:11:35 *** berndj has quit IRC (Remote host closed the connection)
21:13:01 * andythenorth_ wonders
21:14:41 *** berndj has joined #openttd
21:19:16 <TrueBrain> think outside the box ..... there are more jobs in the world than your current :P :P :P
21:19:17 <TrueBrain> j/k ofc
21:47:40 *** andythenorth_ has quit IRC (Quit: andythenorth_)
21:56:30 *** Samu has quit IRC (Quit: Leaving)
22:00:00 *** sla_ro|master has quit IRC ()
22:01:45 *** nielsm has quit IRC (Ping timeout: 480 seconds)
22:39:47 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
23:00:42 *** glx has joined #openttd
23:00:42 *** ChanServ sets mode: +v glx
23:40:20 *** wallabra has quit IRC (Ping timeout: 480 seconds)