IRC logs for #openttd on OFTC at 2024-11-13
            
01:35:31 <reldred> They do spawn far too quickly through
02:03:53 *** herms has quit IRC (Quit: bye)
02:05:15 *** herms has joined #openttd
02:31:48 *** tokai has joined #openttd
02:31:48 *** ChanServ sets mode: +v tokai
02:38:43 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
03:03:42 *** Wormnest has quit IRC (Quit: Leaving)
03:20:30 *** D-HUND has joined #openttd
03:20:55 *** Zathras has joined #openttd
03:23:50 *** godbed has quit IRC (Ping timeout: 480 seconds)
03:24:15 *** debdog has quit IRC (Ping timeout: 480 seconds)
03:35:59 *** Zathras is now known as debdog
04:46:04 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/9742038b68e2ff07c96f2b3ae8c92fa171bc86fb
04:46:05 <DorpsGek> - Update: Translations from eints (by translators)
05:07:33 *** keikoz has joined #openttd
05:31:37 <DorpsGek> [OpenTTD/OpenTTD] Release workflow was not successful https://github.com/OpenTTD/OpenTTD/actions/runs/11811042290
06:21:38 *** keikoz has quit IRC (Ping timeout: 480 seconds)
06:41:29 <truebrain> This time it should not have failed πŸ˜›
06:47:09 <peter1138> Yay
07:36:12 *** XYZ has joined #openttd
08:32:41 *** HerzogDeXtEr has joined #openttd
08:57:24 <peter1138> Hmm, okay. town cargo stats are not very interesting.
10:50:25 <DorpsGek> [OpenTTD/actions] LordAro opened pull request #83: Codechange: Use curl --fail-with-body to get additional diagnostics on failure https://github.com/OpenTTD/actions/pull/83
10:50:30 <LordAro> truebrain: happy?
10:50:40 <truebrain> Don't know; should I be? πŸ˜›
10:51:07 <LordAro> always
10:51:32 <DorpsGek> [OpenTTD/actions] TrueBrain approved pull request #83: Codechange: Use curl --fail-with-body to get additional diagnostics on failure https://github.com/OpenTTD/actions/pull/83#pullrequestreview-2432647610
10:52:06 <DorpsGek> [OpenTTD/actions] TrueBrain merged pull request #83: Codechange: Use curl --fail-with-body to get additional diagnostics on failure https://github.com/OpenTTD/actions/pull/83
10:52:25 <DorpsGek> [OpenTTD/actions] TrueBrain created new tag: v5.2.1 https://github.com/OpenTTD/actions/releases/tag/v5.2.1
10:52:36 <truebrain> LordAro: happy?
10:52:40 <LordAro> :)
10:52:57 <truebrain> πŸ˜„
10:58:30 <peter1138> I look await for a minute and all hell breaks loose.
10:58:35 <peter1138> away...
11:00:24 <LordAro> async
11:27:44 <xarick> hi
11:29:06 <xarick> _glx_: how do you calculate how many bytes are required?
11:30:41 <peter1138> I mean, size of element * number of elements...
11:34:10 <xarick> max of 64000 towns if someone tries hard enough to create them
11:34:45 <xarick> 30Β 720Β 000 bytes
11:36:48 <xarick> hmm
11:37:41 <xarick> I initially though about it being a bool
11:38:07 <xarick> but i wouldn't know how to keep track on the number of each type
11:40:54 <xarick> how often are there 240 types of industry on the game? it's usually much less
11:41:05 <xarick> need to optimize i guess
11:46:00 <andythenorth> what shall we do today pinky?
11:49:07 *** merni has joined #openttd
11:49:07 <merni> I burned two fingers today
11:49:10 <merni> Not the pinky though
11:49:13 <xarick> andythenorth: we, and by that, I mean I, need a NewGRF with 240 different types of industries
11:51:20 *** XYZ_ has joined #openttd
11:51:40 <andythenorth> you won't get that in a single grf
11:51:44 <andythenorth> you'll have to stack them
11:52:00 *** XYZ has quit IRC (Ping timeout: 480 seconds)
11:53:54 <xarick> oh Clang stands for C lang
11:54:07 <xarick> i thought it was about clinging
11:54:11 <xarick> clanging
11:55:16 <LordAro> hah
11:55:23 <LordAro> it's certainly said 'clang' rather than 'c-lang'
11:56:05 <peter1138> Allegedly. I do call it c-lang.
11:56:16 <LordAro> :o
11:56:40 <peter1138> I also call png pee en gee, not ping.
11:57:45 <xarick> should I switch to std::vector<bool> maybe?
11:58:41 <LordAro> peter1138: well that's just obvious
11:58:49 <peter1138> I would probably try a std::vector of Industry *, then you only need to iterate the town's industries instead of all industries which are in the town.
11:59:10 <LordAro> the real question is is it sequel or s-q-l
11:59:21 <peter1138> Yes.
11:59:45 <peter1138> "ping" was the official way, btw.
11:59:56 <LordAro> that's just as wrong as jif
12:00:26 <_glx_> I'd try a vector of towns in IndustrySpec
12:02:18 <peter1138> Also a possibility.
12:02:36 <peter1138> 240 vectors tops, and they default to empty when the industry is not used.
12:03:17 <peter1138> Pick your insert/remove/find strategy carefull.y
12:03:34 <peter1138> LordAro: It's not, because jif is correct.
12:03:43 <LordAro> nope
12:04:09 <peter1138> Breaking News: OpenTTD developers shut down project due to pronunciation rift in team.
12:04:59 <xarick> isn't IndustrySpec supposed to be set in stone?
12:05:20 <peter1138> No.
12:07:23 <xarick> im confused
12:08:20 <peter1138> No change there really.
12:09:37 <xarick> the spec can be altered during a running game? I'm not following
12:27:48 <peter1138> Well it's not change the existing data.
12:28:47 *** keikoz has joined #openttd
12:31:01 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1306234867066867763/image.png?ex=6735ed84&is=67349c04&hm=93607b2746016b24f9a94ce52770c680528f39a78921cf8e3fb3ba994633670e&
12:31:01 <xarick> well, I solved one bottleneck, I expose the other
12:31:06 <xarick> kek
12:32:54 <truebrain> peter1138: We had a good run πŸ˜›
13:22:51 <peter1138> Uh huh `std::vector<std::pair<key, value>>` is probably fine.
13:30:25 <peter1138> (As long as inserts/erases are rare)
13:52:01 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1306255253800353833/image.png?ex=67360081&is=6734af01&hm=54accaac703e844a7ad7e1188bfe959d6df360843f164f4fe36c460e225505b0&
13:52:01 <xarick> this is master
13:52:25 <xarick> i fail at interpreting this data
13:53:25 <xarick> the red is pointing to the lines after
13:53:35 <xarick> the profiler is bugged?
13:56:30 <peter1138> Optimisations can make the compiled code not necessarily line up with the source.
14:07:26 <johnfranklin> https://cdn.discordapp.com/attachments/1008473233844097104/1306259130821906552/IMG_5845.jpg?ex=6736041d&is=6734b29d&hm=ae804e46c7100a7f838747ddfc6be08aecf452388bdbea8f380910dba0ed0673&
14:07:26 <johnfranklin> On topic, it will get dark in 2h
14:25:27 <xarick> IndustrySpec is a const
14:25:40 <xarick> can't change it
14:34:03 <andythenorth> I'm sure the originator of GIF was trolling with the official pronunciation
14:34:17 <andythenorth> "yeah, it's like in giraffe [lolz inside]"
14:42:12 <peter1138> Like gin.
14:43:36 <peter1138> `struct IndustrySpecCache { std::vector<lol> maybe; }`
14:43:53 <peter1138> `struct IndustrySpec { ... ; mutable IndustrySpecCache cache; }`
14:43:58 <peter1138> Something like that maybe.
14:44:15 <peter1138> Then it should not matter that it's const.
14:44:31 <peter1138> Or you can always make a non-const way to get to it.
14:45:07 <peter1138> But probably "mutable" and "cache" go some way to explaining it.
15:03:42 <kuhnovic> In Dutch we butcher "gif" even further by pronouncing the g with that guttural back-in-the-throat sound we are so often mocked for (and rightfully so)
15:04:55 <kuhnovic> It's also the Dutch word for poison. Seems appropriate.
15:09:38 <squirejames> ghhhghghghhif files
15:16:26 *** D-HUND has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
15:16:27 *** nielsm has joined #openttd
15:29:21 <andythenorth> can we discuss the pronunciation of mySQL next?
15:29:27 <andythenorth> endless entertainment
15:29:49 <andythenorth> I pronounce it "postgres", but then again, nobody knows how to say that either
15:30:40 <peter1138> That is correct. There is only one SQL database server.
15:31:08 <andythenorth> Oracle?
15:31:11 *** XYZ_ has quit IRC (Ping timeout: 480 seconds)
15:31:21 <andythenorth> AccessDB on 365?
15:32:52 <xarick> `struct IndustrySpecCache { std::vector<std::pair<Town, Industry>> town_industry_pairs; };`
15:33:06 <xarick> I don't understand the point of this
15:34:21 <peter1138> Why are you doing it then?
15:34:33 <xarick> I don't know, you told me to
15:35:56 <peter1138> Okay, the reason for having the separate struct that is used as a member of the IndustrySpec class is it means it is clearly delineated. Everything in it is nothing to do with the data about how industries work.
15:36:01 <andythenorth> 'told' can be confusing in chat
15:36:13 <andythenorth> I used to do things because other people suggested it
15:36:29 <andythenorth> but it's ultimately voluntary
15:36:47 <peter1138> Yes, just a suggestion.
15:36:50 <andythenorth> I stopped because people kept telling me how to "fix" my python environment πŸ˜›
15:37:24 <peter1138> Something about venv.
15:37:36 <andythenorth> then I learnt that the problem with my python environment was listening to other people
15:38:08 <andythenorth> xarick: TL;DR if you don't know why you're doing it, first maybe stop πŸ™‚
15:38:31 <xarick> I wanted an alternative to 480 bytes per town
15:38:54 <peter1138> Oh, and if you're using std::vector<std::pair<>> because of something I said earlier, that was completely unrelated and was to do with something I was looking at.
15:39:24 <xarick> oh, my bad
15:40:22 <xarick> isn't there an IndustryCounts
15:40:48 <kuhnovic> He hasn't quite reached the "is this really worth it?"-phase just yet πŸ˜›
15:41:31 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
15:41:47 <xarick> GetIndustryTypeCount
15:42:19 <xarick> wondering if i can expand on this
15:44:59 <andythenorth> should xarick see the 83MB of Iron Horse nml?
15:46:38 <andythenorth> Iron Horse compile consumes 1.1 GB of RAM just for the nmlc step
15:47:38 <xarick> :|Β΄~
15:49:13 <xarick> Town data structure 1952 bytes, this includes my 480 stuff, right?
15:49:36 <xarick> yep, it did
15:50:05 <johnfranklin> andythenorth: Isn’t it read alphabetically?
15:52:39 <andythenorth> dunno, it's English
15:52:47 <andythenorth> what are the rules even?
15:54:51 <kuhnovic> Learning English is _tough, though through_ practice you might get better
15:55:27 <talltyler> Be sure to be thorough with it though
15:55:41 *** XYZ has joined #openttd
15:55:47 <andythenorth> it's quite thought-provoking
15:56:04 <kuhnovic> 2TT might cheat and use thru πŸ˜‰
15:56:17 <andythenorth> that's a bit rough
15:57:17 <talltyler> I’ve never seen thru used anywhere not absolutely necessary, like a road sign, e.g. β€œThru traffic left lane only”
15:57:28 <andythenorth> dough or doh?
15:58:32 <kuhnovic> talltyler: Reminds me of the first time I saw a road sign with "Xing" on it. It took me a second to figure out what it meant.
15:59:24 <kuhnovic> Ah man, I'm getting hungry. I might start eating out of a trough.
16:00:11 <andythenorth> you could hang your trough from the bough of a tree
16:00:28 <andythenorth> "other languages are available"
16:02:08 <_glx_> talltyler: but road signs using plain text is silly
16:02:08 <mnhebi> If you try to understand English logically you will fail cause every time English encounters another language it has children with it, and randomly distributes the results in the dictionary.
16:02:40 <andythenorth> :this:
16:03:04 <kuhnovic> https://translate.google.com/?sl=no&tl=en&text=skj%C3%A6re%20kj%C3%A6re%20tj%C3%A6re&op=translate Here's a fun one in Norwegian. How is anyone supposed to tell these words apart when pronounced?
16:03:11 <johnfranklin> talltyler: Drive-THRU Macdonald, for β€œshorter word signs more attention”
16:03:20 <mnhebi> its like trying to understand a 2000's chatbot that hung around in a room full of 15 years and younger, its just gibberish.
16:03:23 <andythenorth> hmm shall I do the nmlc PR for these cargo classes? https://grf.farm/polar_fox/overview.html
16:04:55 <andythenorth> hmm my local nmlc is still on the 309 branch πŸ˜›
16:05:19 <andythenorth> I think FIRS now depends on that branch, which might be difficult for other people trying to compile FIRS
16:05:28 <peter1138> johnfranklin: FGI?
16:05:43 <andythenorth> Effigy?
16:06:25 <johnfranklin> Sometimes JPEG is read phonetically. Others are alphabetically.
16:06:58 <peter1138> I don't think alphabetically is what you mean there.
16:07:18 <peter1138> And jpeg is "jay-peg"
16:07:22 <johnfranklin> Ji-Ai-Ef
16:07:46 <kuhnovic> jay-peghghhghghgh in Dutch πŸ˜›
16:08:18 <johnfranklin> How to read newgrf?
16:08:33 <kuhnovic> "mods"
16:08:37 <andythenorth> that
16:08:50 <andythenorth> does anyone use nmlc besides me?
16:08:52 <_glx_> new g r f
16:08:58 <andythenorth> newgraph
16:09:12 <johnfranklin> NewGraph? NewJiArEf?
16:09:15 <peter1138> Always "new grph" for me.
16:09:24 <andythenorth> yeah, shortened 'graph'
16:09:25 <peter1138> Like graph but without the a.
16:09:50 <andythenorth> and mySQL is myskwull
16:09:51 <johnfranklin> peter1138: This sounds like some hard Polish words
16:10:15 <peter1138> Well there is a vowel there... but it's not really an a πŸ™‚
16:11:32 <johnfranklin> Everyone saying Milton Keynes too β€œcar brain”
16:12:01 <peter1138> It is.
16:12:08 <andythenorth> hmm could someone approve this? https://github.com/OpenTTD/nml/pull/343
16:12:09 <peter1138> Roundabouts all over the place.
16:12:18 <andythenorth> otherwise my classes PR is going to be weirdly based
16:12:25 <peter1138> It does have some hidden paths and cycle lanes, but there're not really very ... nice.
16:13:13 <johnfranklin> So only potable non-potable changes, or all classes change like in Polar Fox?
16:15:58 <andythenorth> that PR only adds potable and non-potable
16:16:21 <andythenorth> there will be a subsequent PR to add constants for other classes
16:17:24 <peter1138> Aliases innit?
16:17:37 <andythenorth> exactly
16:17:40 <peter1138> "Mostly the same but reworded to satisfy the pedantics"
16:17:57 <andythenorth> pedantics / andythenorth /s
16:18:03 <andythenorth> so meta
16:26:24 <xarick> `static std::vector<std::pair<TownID, uint16_t`>> counts[NUM_INDUSTRYTYPES] I'm not sure this is working
16:27:14 <xarick> im so confused, I have no idea what i want
16:28:00 <xarick> there are 240 industry types, each industry type has a vector
16:28:59 <xarick> inside each vector for an industry type, there are towns... what do I want the uint16_t for?
16:32:06 <xarick> IndustryID perhaps?
16:35:13 <peter1138> glx β€” Today at 12:00
16:35:13 <peter1138> I'd try a vector of towns in IndustrySpec
16:35:18 <peter1138> Is what glx wrote.
16:35:34 <peter1138> a std::vector of std::pair of TownID, uint16_t ... not a vector to Town.
16:43:55 *** XYZ has quit IRC (Ping timeout: 480 seconds)
16:44:51 <peter1138> Of course, you can do what you want πŸ™‚
17:30:54 <xarick> i can't do this because I'm illiterate
17:37:18 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1306311945342681210/image.png?ex=6736354d&is=6734e3cd&hm=fdb87188657b2fd9d3fbd8b3a6b2f6856e4935ace991d021f2672886b87f26cb&
17:37:19 <andythenorth> not sure that's true
17:37:35 <xarick> i want a pair
17:37:43 <xarick> I only get half the pair
17:42:25 <xarick> nevermind, i found the problem
17:42:44 <xarick> I did not correctly defined the pair in the declaration
17:45:09 <peter1138> https://cdn.discordapp.com/attachments/1008473233844097104/1306313921359249509/image.png?ex=67363724&is=6734e5a4&hm=9a3be6c56fd863d30a2b5414c022da0a00298fe65692dc20c208e5d52a4f6d54&
17:45:09 <peter1138> Did I break it?
18:14:14 <xarick> getting problems in the saveload INDYchuck
18:14:34 <xarick> industries have no towns defined yet?
18:18:36 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1306322339541155932/image.png?ex=67363efc&is=6734ed7c&hm=525f71d40fb0f1695e6f91b0b50bc2bc6c134db00231268c78f28d9636a89f15&
18:18:36 <xarick> i->town is not nullptr but it's also not anything right
18:21:17 <_glx_> when loading it's the townID IIRC
18:21:36 <_glx_> and it's converted at a later stage
18:23:11 <_glx_> handled in FixPointers()
18:24:23 <xarick> oh, 😐
18:26:41 <xarick> I hope i can move this to there
18:28:09 *** gelignite has joined #openttd
18:35:40 <peter1138> This data does not need to be saved, surely?
18:37:32 <xarick> i'm unsure, but about 85% it doesn't
18:38:50 <xarick> `counts[type].push_back(std::make_pair(*town, 1));`
18:38:50 <xarick> this is trying to undo the town
18:39:01 <xarick> ~Town
18:40:00 <_glx_> Expected
18:40:19 <xarick> hmm how to fix
18:41:23 <_glx_> Why not just store TownID in the vector ?
18:41:42 <xarick> i could do that
18:41:53 <xarick> i thought that wasn't wanted
18:42:21 <peter1138> If you want to store a pointer, you store town, not *town. But you can also store a TownID. It's smaller, and just needs Town::Get().
18:54:55 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1306331481563463810/image.png?ex=6736477f&is=6734f5ff&hm=0afb452547bd86ee35542d9c6674f6ab02cc4c037c224717ca156fb6d475836a&
18:54:55 <xarick> not again
18:56:30 <xarick> std::pair<TownID, uint16_t> &pair = *it;
19:01:35 <xarick> counts[type].push_back(std::make_pair(tid, 1));
19:01:49 <xarick> I'm such a sad coder
19:05:54 <andythenorth> try PHP πŸ™‚
19:08:58 *** ahyangyi has joined #openttd
19:08:58 <ahyangyi> try Rust πŸ˜›
19:10:01 *** SigHunter has quit IRC ()
19:12:37 <exceptik> try javascript
19:12:42 *** SigHunter has joined #openttd
19:14:12 <michi_cc[d]> try whitespace πŸ˜›
19:15:22 <andythenorth> nobody went for Perl?
19:15:25 <andythenorth> disappointed
19:19:28 <wensimehrp> 😠 try nml
19:20:49 <ahyangyi> wensimehrp: Does anyone use nml without any kind of preprocessor? πŸ˜›
19:35:59 <andythenorth> I wouldn't
19:40:19 <talltyler> ahyangyi: I do, albeit in a bunch of smaller NML files that get combined together before compiling. But there’s no preprocessing going on, just automated copy and pasting. πŸ™‚
19:41:00 <ahyangyi> Ah, yes! I remember studying the code of your industry sets πŸ˜›
19:41:09 <peter1138> That is... basically preprocessing.
19:41:37 <talltyler> I suppose, but it’s not pnml or whatever others use
19:59:13 <andythenorth> pnml is not a thing πŸ™‚
20:02:30 <ahyangyi> andythenorth: "python nml"
20:02:42 <ahyangyi> Pretty sure it's a thing πŸ˜„
20:02:50 <andythenorth> .pnml was CPP originally
20:06:42 <ahyangyi> It still is, but you can redefine the spec πŸ˜›
20:12:55 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1306351107718643712/image.png?ex=673659c6&is=67350846&hm=6d84b8156854076aa2300269345c18f719850072c6ab2cff3ebef97b46578e1d&
20:12:55 <andythenorth> anyway, what shall we call this?
20:13:10 <andythenorth> the other channel is not really the place to get answers I guess
20:14:37 <wensimehrp> CCCS
20:15:25 <peter1138> FIRS-CLAS
20:16:12 <wensimehrp> F28e
20:22:18 <andythenorth> how about just 'cargo classes for OpenTTD'?
20:22:19 <andythenorth> dunno
20:22:47 <andythenorth> can't put these pages in the wiki, they have custom css
20:24:34 <xarick> can't invalidated derefece ...
20:24:39 <xarick> bah i'm about to give up
20:25:49 <xarick> what is wrong here <https://gist.github.com/SamuXarick/ef135267abf29df1ad4cd3e93d947fc3>
20:26:42 <xarick> complains in line 12
20:33:39 *** Wolf01 has joined #openttd
20:34:46 <andythenorth> maybe xarick can decide what to call this cargo class scheme?
20:38:23 <xarick> uh?
20:39:50 <andythenorth> someone has to
20:39:54 <andythenorth> I'm so bored of it all
20:46:27 *** gelignite has quit IRC (Quit: Stay safe!)
20:56:18 <xarick> omg, i have absolutely 0 idea what I did, but now it no longer asserts
20:56:28 <xarick> all I changed was auto everything
20:58:02 <xarick> black box auto solving my issues... how shameful
20:59:16 <andythenorth> I could get GPT to name the scheme?
21:00:35 <andythenorth> GPT says "Comprehensive Cargo Class Reference for OpenTTD Modding"
21:12:10 <xarick> sounds good
21:12:27 <xarick> I add Community
21:12:30 <xarick> in the end
21:22:34 *** nielsm has quit IRC (Ping timeout: 480 seconds)
21:25:39 *** Wolf01 has quit IRC (Ping timeout: 480 seconds)
21:26:16 *** Wolf01 has joined #openttd
21:33:46 <xarick> I have a feeling std::vector is bad
21:33:57 <xarick> for the task
21:34:35 <xarick> find_if is going to be massively used
21:39:11 <talltyler> New Cargo Classes πŸ˜›
21:39:25 <talltyler> Cargo Class 2.0
21:40:36 <xarick> finally get to test this...
21:40:53 <xarick> only took me the whole day to figure out how to code
21:48:31 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1306375167391563806/image.png?ex=6736702f&is=67351eaf&hm=55a6b5df9a74f46c852a48da70a98a582d0fc313ad2723014679b949f9f7dc25&
21:48:38 <xarick> expected worse
21:49:09 <xarick> too good to be true, something must be wrong πŸ™‚
21:52:37 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1306376197638193223/image.png?ex=67367124&is=67351fa4&hm=dd9a1103277f4fa065fdb4e411a953904c871a684e009a077703731f8bc34428&
21:52:37 <xarick> yep, only selected 30 seconds
21:52:42 <xarick> now it's all of it
21:54:35 <xarick> not as fast as the 480 bytes version
22:28:23 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
22:33:13 <xarick> dang, there's a mismatch
22:36:49 *** keikoz has quit IRC (Ping timeout: 480 seconds)
22:52:00 *** Flygon has joined #openttd
23:05:46 <xarick> ``` /** Resets industry counts. */
23:05:46 <xarick> static inline void ResetIndustryCounts()
23:05:46 <xarick> {
23:05:46 <xarick> std::ranges::for_each(counts, [](auto type) { type.clear(); });
23:05:46 <xarick> }```
23:05:53 <xarick> this didn't clear
23:08:03 <xarick> `static std::array<std::vector<std::pair<TownID, uint16_t>>, NUM_INDUSTRYTYPES> counts;`
23:08:59 <xarick> `auto type` gets me `std::vector<std::pair<TownID, uint16_t>>`, I wanna empty it
23:09:08 <xarick> why it didn't
23:16:21 <michi_cc[d]> You want both `auto &` and a C++ tutorial.
23:16:59 <xarick> oh 😦
23:17:10 <xarick> thx
23:17:31 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
23:19:34 <xarick> that was it, thanks very much
23:32:47 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1306401406298751046/image.png?ex=6736889f&is=6735371f&hm=ac0156ad740dc7d1c202fc4c93df10afbb774026d90e9b329e16c0e608055846&
23:33:11 <xarick> slower than the 480 bytes town cache
23:34:09 <xarick> 14 seconds is measurable
23:34:42 <xarick> oh
23:34:43 <xarick> 1.4 seconds
23:35:38 <xarick> leaving you with my work
23:35:40 <xarick> <https://github.com/OpenTTD/OpenTTD/compare/master...SamuXarick:OpenTTD:industry-type-counts-tracks-towns>
23:35:45 <xarick> good night
23:37:23 <xarick> DecIndustryTypeCount isn't tested yet, must test tomorrow