IRC logs for #openttd on OFTC at 2019-07-20
            
00:01:56 <andythenorth> bed
00:01:56 *** andythenorth has left #openttd
00:04:39 *** Thedarkb-T60 has joined #openttd
00:15:09 *** dihedral has quit IRC
00:22:42 *** rocky11384497 has quit IRC
00:23:07 <Samu> start_date removed from the ai parameters
00:23:07 <Samu> https://imgur.com/nY02VBd
00:23:47 <Samu> even openttd.cfg becomes cleaner
00:23:50 <Samu> AdmiralAI =
00:24:00 <Samu> just that !
00:28:31 *** dihedral has joined #openttd
00:48:58 *** k-man has joined #openttd
01:01:53 *** k-man has quit IRC
01:04:46 *** k-man has joined #openttd
01:11:39 *** Wormnest_ has quit IRC
01:15:33 *** k-man has quit IRC
01:15:43 *** k-man has joined #openttd
01:42:07 <Samu> this was faster than I expected
02:03:40 <DorpsGek_II> [OpenTTD/OpenTTD] SamuXarick opened pull request #7661: Codechange: Rework 'start_date' parameter for AIs as a game setting https://git.io/fjMsZ
02:04:39 <Samu> inb4 regression fail
02:06:41 *** Superuser has joined #openttd
02:06:52 <Superuser> Hi folks
02:07:52 <Superuser> I was wondering if translators are credited individually at all? I did a lot of l10n work for OTTD about 6 years ago, it seems that a record of that sadly isn't maintained anywhere
02:08:26 <Superuser> it would be frightfully arrogant to ask for just myself, I'm asking about translator credits as a whole
02:08:51 <Superuser> At the very least, I wasn't able to find a list of people who did i18n/l10n for the project in the code
02:13:03 <Samu> i dont know where to get the list of translators
02:17:20 <glx> Superuser: translators names are in the commit messages
02:18:31 <Superuser> hmm, I think the project was still on Mercurial back then, let's see
02:19:33 <Superuser> oh that's cool, all those commits were imported too. Yeah, I can see my username there
02:21:14 <Superuser> seems like the mercurial->git import tool you used even carried over developer profiles, presumably with a combination of keys and email addresses. Really neat. I can see frosch's contributions from all those years ago appear with his github account attached to them
02:21:34 <glx> it was svn->git
02:22:32 <glx> and yes the migration tools is very nice
02:24:22 <Samu> awww... regression passed
02:24:26 <Samu> i'm surprised
02:27:48 <glx> Superuser: we also migrated all bugtracker tickets to github keeping the numbers
02:29:37 *** Superuser has quit IRC
02:32:04 <Samu> im intrigued why regression passed.
02:44:22 *** rocky11384497 has joined #openttd
02:44:36 <Samu> ah, its a loaded savegame
02:45:15 *** Superuser has joined #openttd
02:45:36 <Samu> so that means _next_competitor_start is the value from the loaded save
02:45:41 <Superuser> glx: lol, highlighting me also disconnected me. Gotta love IRC
02:45:44 <Samu> makes sense
03:06:54 <Samu> about that fire in aljezur, still 180 firefighters in it :o
03:43:23 *** Superuser has quit IRC
03:46:23 *** Flygon has joined #openttd
04:07:52 *** D-HUND has joined #openttd
04:11:14 *** debdog has quit IRC
04:26:37 *** Wormnest_ has joined #openttd
04:30:54 *** Flygon_ has joined #openttd
04:33:24 *** Flygon__ has joined #openttd
04:38:02 *** Flygon has quit IRC
04:40:32 *** Flygon_ has quit IRC
04:40:54 *** glx has quit IRC
04:42:12 <Beerbelott> Is it a bad idea to try to integrate an external lib like ldns (with the nightmare of autoconf)? Or is it better to implement by hand a subset of features?
04:56:24 *** Wormnest_ has quit IRC
05:33:29 *** Samu has quit IRC
05:57:43 *** Wormnest_ has joined #openttd
07:53:45 *** Beerbelott has left #openttd
08:48:24 *** Progman has joined #openttd
09:10:02 *** andythenorth has joined #openttd
09:12:30 <andythenorth> moin
09:16:17 *** nielsm has joined #openttd
09:22:14 <Arveen> moin moin
09:42:17 <andythenorth> it's a marginal case
09:42:46 <andythenorth> but sometimes it would be nice if vehicle intro dates could be forced to be the same
09:43:23 <andythenorth> the case I have is engines that have specific wagons
09:44:42 *** sla_ro|master has joined #openttd
09:45:09 <Eddi|zuHause> isn't that what we have done?
09:48:13 <andythenorth> I might be doing it wrong
09:48:19 <Eddi|zuHause> most likely
09:48:45 <Eddi|zuHause> all you need to do is put the same intro date
09:48:48 <andythenorth> yes
09:48:55 <andythenorth> and if I don't, it won't work
09:49:10 * andythenorth fixes that
09:49:23 <andythenorth> PEBKAC
10:02:22 <andythenorth> ok, so it's never going to work with exclusive previews :D
10:02:58 <andythenorth> nvm
10:04:05 <Eddi|zuHause> uhm, yes? the wagons won't have previews, so should become available immediately for everyone
10:05:47 <andythenorth> but the preview is one year before the intro date?
10:06:48 *** Progman has quit IRC
10:08:09 <andythenorth> also the PEBKAC error is fixed and tested
10:08:20 <andythenorth> I had set the correct property...but on the wrong wagon :P
10:18:29 <DorpsGek_II> [OpenTTD/website] TrueBrain merged pull request #95: Fix typo: relase -> release https://git.io/fjMq6
11:15:59 *** crem1 has quit IRC
11:16:51 *** andythenorth has quit IRC
11:19:32 *** crem1 has joined #openttd
11:59:46 *** gareppa has joined #openttd
12:02:53 *** gareppa has quit IRC
12:13:52 *** andythenorth has joined #openttd
12:17:43 *** Progman has joined #openttd
12:21:34 <andythenorth> did I imagine that vehicle list can be sorted by 'breakdowns this year'?
12:22:54 <nielsm> that statistic isn't even recorded
12:23:03 <nielsm> afaik
12:23:34 <andythenorth> yup, I imagined it
12:25:12 <Eddi|zuHause> the breakdown statistic is completely useless
12:29:44 <nielsm> change the current counter to instead mean "this year" and reset it on year change instead of on service?
12:29:55 <nielsm> no savegame upgrade, just pretend it was always like that
12:31:29 <Eddi|zuHause> nielsm: also add "last year" like profit
12:34:05 <nielsm> really I think vehicles should record more than just one year history on stats
12:35:51 <andythenorth> I'm 50:50
12:36:04 <andythenorth> it would sometimes be nice to know liifetime profit / ROII
12:36:13 <andythenorth> and sometimes it's nice to just make trains
12:36:45 *** Wolf01 has joined #openttd
12:37:33 <Eddi|zuHause> time for "NoStatistics"?
12:41:49 *** Samu has joined #openttd
12:42:38 <Samu> hi
12:47:10 <nielsm> Eddi|zuHause sure, let GS define its own graph windows for anything
12:47:15 <nielsm> also reposting this: https://wiki.openttd.org/User:Nielsmh/GS_performance_rating
13:00:57 <Eddi|zuHause> why does youtube suddenly decide i should watch lockpicking videos?
13:03:51 <Wolf01> andythenorth: samolot's the martian rover, that's epic
13:04:11 <FLHerne> Eddi|zuHause: Everyone should watch lockpicking videos
13:04:29 <Wolf01> :D
13:05:11 <FLHerne> Eddi|zuHause: Anyway, you're on IRC, so there's a 100% chance that you want to watch lockpicking videos even if you don't know it yet
13:09:46 <DorpsGek_II> [OpenTTD/OpenTTD] LordAro commented on pull request #7086: Change #6173: Update SDL driver to use SDL 2.0 https://git.io/fjMCX
13:21:46 <DorpsGek_II> [OpenTTD/OpenTTD] LordAro commented on pull request #7086: Change #6173: Update SDL driver to use SDL 2.0 https://git.io/fjMCQ
13:49:01 <Samu> you're using wiki for ideas?
13:49:22 <nielsm> that's not a new thing
13:49:48 <nielsm> in fact it looks like historically it has been modus operandi
13:50:08 <nielsm> to make a subpage of your userpage on the wiki to present ideas
13:53:13 <Samu> seems better than that gist thing
13:56:06 * andythenorth wonders
13:56:24 <andythenorth> could we make cities more fun to build routes in?
13:56:38 <andythenorth> maybe a new town road layout, forced to be spatious?
13:57:12 <andythenorth> and maybe an option to demolish town roads more easily? (or is it better to just use magic bulldozer?)
14:06:33 *** Progman has quit IRC
14:10:54 *** andythenorth has quit IRC
14:12:34 <Eddi|zuHause> how do you have trouble removing town roads?
14:13:02 <Eddi|zuHause> run a few busses, and even if you run into the limit, it recovers in no time
14:26:19 *** Thedarkb-T60 has quit IRC
14:26:51 *** Thedarkb-T60 has joined #openttd
15:04:32 <Samu> The original ratings are recalculated monthly in the game loop - oh noes
15:05:06 <Samu> you have not seen my script :(
15:05:56 *** arikover has joined #openttd
15:06:56 <Samu> it's likely safer to have the GS update the company ratings on its own time.
15:07:13 <Samu> well, every gameloop in my case
15:13:50 <Samu> 16 17 18 19 20 21 22
15:14:24 <Samu> if rating id 0 is invalid then it's 126
15:15:54 <Samu> nevermind
15:16:05 <Samu> 0 to 127, counts 128
15:16:12 <Samu> 0 is invalid, 127 is correct
16:26:19 *** gelignite has joined #openttd
16:35:42 <Samu> i forgot how to use SetDParam strings... any help
16:36:03 <Samu> https://wiki.openttd.org/Strings ah
16:38:12 *** Smedles has quit IRC
16:52:40 *** Flygon__ has quit IRC
17:08:45 *** sla_ro|master has quit IRC
17:13:14 *** Progman has joined #openttd
17:30:03 *** Gumle2 has joined #openttd
17:37:37 <DorpsGek_II> [OpenTTD/OpenTTD] Shindurion commented on issue #7659: Railway construction menu disappears https://git.io/fjM8S
17:39:14 *** Thedarkb-T60 has quit IRC
17:52:30 *** sla_ro|master has joined #openttd
18:18:04 <Eddi|zuHause> it's probably safe to close that as invalid
18:20:50 *** Smedles has joined #openttd
18:23:32 <peter1138> Close everything as invalid.
18:24:56 <Eddi|zuHause> i'm not andy :)
18:31:22 *** rocky11384497 has quit IRC
18:35:05 *** Gumle2 has quit IRC
18:36:15 *** Thedarkb-T60 has joined #openttd
18:44:21 <Samu> https://imgur.com/po9P6KJ
18:45:16 <Samu> i've been thinking
18:45:18 *** Thedarkb-T60 has quit IRC
18:45:20 <Samu> putting it there
18:45:35 <Samu> instead of in an obscure place such as the game settings
18:45:45 *** Thedarkb-T60 has joined #openttd
18:51:47 <Samu> but it can be there as well
18:52:24 <Samu> it's still 1 setting, in 2 places
18:53:24 <Samu> 1 setting, in 2 places, for all AIs
18:53:55 <Samu> affecting all AIs equally? my english
18:58:59 *** Thedarkb-T60 has quit IRC
19:08:31 <peter1138> Bloody Andy...
19:08:40 * peter1138 is now seasoning his new cast iron pan ...
19:15:16 *** Thedarkb-T60 has joined #openttd
19:16:44 *** Thedarkb-T60 has joined #openttd
19:20:18 *** andythenorth has joined #openttd
19:23:37 <Eddi|zuHause> which salad requires a cast iron pan?
19:25:17 <Eddi|zuHause> no, youtube, i don't want to watch a top gun trailer
19:26:00 <peter1138> :D
19:26:20 <peter1138> So I have salad for lunch at work, and usually lunch at the weekend.
19:26:30 <peter1138> But my evening meals... they are not normally salad.
19:27:22 <peter1138> Especially at the weekend after a morning club ride, I have loads of wiggle room for a big fat meal.
19:34:03 <nielsm> what are the formal requirements for a dish to not be a salad?
19:36:42 <peter1138> Hmm!
19:37:02 <peter1138> I my case the primary constituent of a salad is lettuce of some sort.
19:37:54 <Eddi|zuHause> we have things called "flesh salad" and "fish salad" which definitely don't contain any lettuce
19:38:03 <Eddi|zuHause> also, "fruit salad"
19:38:05 <Samu> how do I make a default be based on another setting?
19:38:14 <peter1138> "potato salad" is also not really a salad, indeed.
19:38:31 <Samu> easy, medium and hard profiles each have their start_date defaults
19:38:35 <peter1138> But then you don't really refer to any of them as just "salad"
19:39:03 <Samu> how do I put that to work properly in game settings and the openttd config file?
19:40:49 <Samu> i can make a workaround that works in ai_gui.cpp, but i'm not sure where to touch in settings_gui.cpp
19:40:50 <andythenorth> salad = lettuce
19:41:58 <Samu> value = (int32)(size_t)sd->desc.def;
19:42:33 <Samu> SettingDesc desc.def is just too strick
19:42:44 <nielsm> Samu: a default can't be dynamic
19:42:47 <Samu> the default is only 1 value
19:42:50 <Samu> oh :(
19:43:15 <Samu> strict*
19:43:16 <nielsm> easy/medium/hard would have to be "actions" and not a setting
19:44:31 <Samu> by "actions", could it be a function that works out the default value?
19:45:20 <Samu> def = AI::START_DELAY
19:45:35 <Samu> could I instead place a function in that place?
19:45:47 <nielsm> don't count on it
19:46:27 <Samu> gonna experiment...
19:46:33 <nielsm> what I mean is that selecting easy/medium/hard does _not_ affect the default, it just changes the current value
19:46:45 <nielsm> the default might be the "normal" value
19:46:53 <nielsm> but easy and hard would not be defaults in any way
19:47:09 <Samu> current default profile is easy
19:47:14 <Samu> so i went with 730 days
19:47:42 <Samu> but was really attempting to make it dynamic, based on profile
19:55:47 <Samu> can't do it t.t
19:57:17 <Samu> it's saying identifiers not found
19:59:51 <Samu> I got this on ai_gui.cpp https://paste.openttdcoop.org/pgvb7po6o
20:00:01 <Samu> i guess it's fine enough
20:03:19 *** andythenorth has quit IRC
20:03:47 *** andythenorth has joined #openttd
20:09:22 *** Gumle2 has joined #openttd
20:16:46 *** Thedarkb-T60 has quit IRC
20:19:11 *** Gumle2 has quit IRC
20:21:29 <Samu> should I remove start_date from game settings gui window?
20:21:38 *** Thedarkb-T60 has joined #openttd
20:21:44 <Samu> ai_start_delay, I mean
20:21:59 <Samu> due to the default not being dynamic there?
20:23:19 <peter1138> Yeah but more importantly I've stuffed the peppers, put them in the oven, and started off the risotto rice.
20:25:49 <Samu> :)
20:33:05 <Samu> https://imgur.com/MqeIcDs
20:33:09 <Samu> big tooltip
20:33:28 <Samu> who wants to help me with the english part?
20:33:31 <Samu> tooltip
20:34:40 <Wolf01> This evening: fried fish sticks and octopus salad :P
20:38:29 <Samu> sometimes I wonder, do ppl really like random deviation for start date?
20:47:28 <Samu> is this good english description:
20:47:30 <Samu> AIConfigWidgets widget; ///< corresponding widget to setting for which a value-entering window has been opened.
20:49:59 <peter1138> fish sticks?
20:50:02 <peter1138> What's a fish stick?
20:50:44 <peter1138> https://www.amazon.co.uk/Sakana-Premium-Pond-Fish-Sticks/dp/B07QPPX2TL/ref=sr_1_2_sspa?keywords=fish+sticks&qid=1563648633&s=gateway&sr=8-2-spons&psc=1
20:50:48 <peter1138> Doesn't look very appetising :p
20:55:29 *** andythenorth has quit IRC
20:57:27 <Eddi|zuHause> ... not what i expected :p
20:57:28 *** andythenorth has joined #openttd
20:58:49 <Wolf01> http://www.bluewater.ca/sites/default/files/product/beauty/VP-STICKS-BEAUTY-SHOT.jpg
20:59:09 <peter1138> They're fish fingers.
20:59:21 <Eddi|zuHause> idiot, fish don't have fingers.
21:00:45 <Eddi|zuHause> https://dict.leo.org/englisch-deutsch/Fischst%C3%A4bchen
21:06:58 *** glx has joined #openttd
21:06:58 *** ChanServ sets mode: +v glx
21:08:30 *** Progman has quit IRC
21:12:40 <peter1138> Oh god this is delicious.
21:12:42 *** tokai has joined #openttd
21:12:42 *** ChanServ sets mode: +v tokai
21:16:39 *** tokai|noir has joined #openttd
21:16:39 *** ChanServ sets mode: +v tokai|noir
21:22:59 *** tokai has quit IRC
21:26:14 *** tokai has joined #openttd
21:26:14 *** ChanServ sets mode: +v tokai
21:28:02 *** tokai|noir has quit IRC
21:30:09 <andythenorth> looks like I tried a few options here :P https://dev.openttdcoop.org/attachments/download/9484/larks.png
21:37:02 <peter1138> Yeah but... https://www.instagram.com/p/B0JlxIsHaOo/?utm_source=ig_web_copy_link
21:37:20 <andythenorth> winning instagram
21:37:40 <peter1138> Presentation not perfect... that happens when trying to share out 3 stuffed peppers to 2 people.
21:41:59 <peter1138> It was pretty nice though.
21:42:34 <andythenorth> it's all about the square plate too
21:42:46 <peter1138> Haha
21:43:06 <peter1138> At least it's porcelain. Not a lump of timber or something.
21:43:40 <peter1138> It's actually a bowl. I always use those as it's good for portion control.
21:43:53 <Samu> (int32)(size_t)sd->desc.def
21:44:01 <Samu> why so many conversions here?
21:44:22 <Samu> value = (int32)(size_t)sd->desc.def;
21:44:50 <peter1138> Aliasing.
21:45:04 <peter1138> (I made that up but it sounds good)
21:45:22 <Samu> value = ReadValue(&sd->desc.def, sd->save.conv);
21:45:31 <Samu> what's the difference between this and the other one
21:45:57 <Eddi|zuHause> might be a result of a regex
21:47:28 <peter1138> One is direct, one is... indirect.
21:48:20 <Samu> ah. the ReadValue "value" is a int64
21:48:29 <Samu> the other "value" is int32
21:48:57 <Samu> i wonder what sd->desc.def is
21:48:57 <peter1138> "Problem" with using 150ml of wine to cook risotto rice is you have 600ml of wine left over.
21:49:21 <Samu> looks like it can be several things
21:49:45 <peter1138> There's probably some better C++ way of doing all that stuff.
21:49:45 <Eddi|zuHause> if only there was a thing that two people who sit a home on a saturday evening could do with 600ml of wine...
21:50:03 <peter1138> Eddi|zuHause, one of whom does not drink wine (but apparently doesn't mind it in risotto rice)
21:50:32 <peter1138> So... if only there was a thing that one person who sits at home, on a Saturday evening could do with 600ml of wine...
21:50:41 <Samu> const void *def; ///< default value given when none is present
21:50:44 <Samu> is a void?
21:50:47 <Eddi|zuHause> ¯\_(ツ)_/¯
21:50:48 <Samu> im confused
21:50:50 <peter1138> I already two 330ml cans of beer :D
21:50:58 <peter1138> I may not be getting up tomorrow morning :p
21:51:19 <peter1138> Samu, void because there is no specific type.
21:51:31 <glx> it's a pointer without "type"
21:51:49 <peter1138> Who the heck talks about code on a Saturday evening when we have food and wine and 'fine' dining to discuss?
21:52:39 <Eddi|zuHause> "void *" is "i need a pointer to something, but i don't care what that something actually is"
21:56:51 <Samu> I see
22:08:56 <nielsm> the double cast likely has to do with storage width and having to do a narrowing conversion, which can require some extra care on big endian systems
22:08:57 <nielsm> maybe
22:10:51 <glx> probably to prevent a warning
22:11:37 <nielsm> yes the explicit narrowing cast is probably just to silence a warning
22:34:51 <andythenorth> 7631 is making more friends https://www.tt-forums.net/viewtopic.php?f=26&t=41607&start=4440#p1223619
22:37:19 <Eddi|zuHause> it would probably be a bit involved to turn the text stack into an actual stack...
22:44:52 <peter1138> When a portion of nuts is... 4 nuts... do you bother...
22:46:01 <peter1138> (Obviously a portion is larger, but that's the given weight to make it look 'healthy')
22:48:36 *** Eddi|zuHause has quit IRC
22:50:27 <peter1138> He's quit in disgust.
22:54:12 <andythenorth> sometimes there is Eddi2
22:54:15 <andythenorth> not today
22:54:31 <andythenorth> also how big are the nuts?
22:54:38 * andythenorth is hungry
22:58:01 *** Eddi|zuHause has joined #openttd
22:58:01 <peter1138> Well, they're chocolate coated almonds. "Tiramisu"
22:58:08 *** gelignite has quit IRC
22:59:02 <peter1138> So not huge at all.
23:13:20 <Samu> STR_AI_CONFIG_START_DELAY_TOOLTIP :{BLACK}Number of days to wait before starting an AI, or subsequent AI(s) after the previous one.{}If the number of days is different than zero, a random deviation of 60 days is added, and the actual value in-game will be 'number_of_days + random(-60 days, 60 days)', with a minimum of 1 day and a maximum of 3600 days.{}If the number of days is zero, the AI(s) will start
23:13:20 <Samu> immediately.{}Default values for this setting are based on the default settings profile selected.
23:13:50 <Eddi|zuHause> ... there was a loss of power, because wetness outside triggered the FI circuit breaker
23:14:14 <Eddi|zuHause> ... and my graphics card is on the brink of collapse, which makes booting a problem
23:14:22 <Eddi|zuHause> ... i need this new computer asap
23:15:14 *** Thedarkb-T60 has quit IRC
23:15:21 <Samu> The default value for this setting is based on 'default settings profile' selected.
23:16:29 <Samu> The default value for this setting is based on the value selected for 'Default settings profile'.
23:16:35 <Samu> muh english
23:18:11 *** sla_ro|master has quit IRC
23:19:18 <Samu> i'm 'hacking' settings.cpp and settings_gui.cpp to have special treatment for 'ai.ai_start_delay' defaults
23:19:40 <Samu> and ai_gui.cpp, of course
23:22:26 *** Thedarkb-T60 has joined #openttd
23:25:08 *** Progman has joined #openttd
23:39:18 <Samu> value = (int32)(size_t)ReadDefaultValue(GetSettingFromName("ai.ai_start_delay", &dummy));
23:39:21 <Samu> magic
23:39:28 <Samu> let's see if it works
23:45:49 <andythenorth> bye
23:45:49 *** andythenorth has left #openttd
23:47:41 *** Thedarkb-T60 has quit IRC