IRC logs for #openttd on OFTC at 2022-10-09
            
00:01:11 *** pickpacket8 has joined #openttd
00:08:28 *** pickpacket has quit IRC (Ping timeout: 480 seconds)
00:08:28 *** pickpacket8 is now known as pickpacket
00:32:43 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
00:41:19 <pickpacket> "4 of 2816 pixels (0%) are animated, but ANIM isn't in flags"
00:41:23 <pickpacket> oh noes...
00:41:34 <pickpacket> that has to be some special colour from the palette
00:42:03 <pickpacket> https://newgrf-specs.tt-wiki.net/images/grfwiki/b/be/Dospal.png <-- the "block cycles" one?
00:44:10 <Eddi|zuHause> or any of the ones after that
00:46:02 <EmperorJake> Ah yes, the dreaded blinky pixels
00:46:11 <Eddi|zuHause> i think there's a trick where you load a palette without the animated colours, and then load the original one back
00:47:21 <EmperorJake> in GIMP you can select by colour and find them that way
00:50:46 <pickpacket> I can only find one colour that I only have 4 pixels of, but that's within the normal range
00:51:50 <pickpacket> No! I'm editing the wrong file!!
00:53:11 <pickpacket> I've removed the offending pixels some while ago, but I'm saving it down to another directory 😝
00:55:35 <pickpacket> uh... apparently not
00:59:29 <pickpacket> Found them!!
01:21:02 *** Wormnest has joined #openttd
01:30:43 *** Deep3D has quit IRC (Remote host closed the connection)
01:31:28 *** Deep3D has joined #openttd
01:47:13 *** Deep3D has quit IRC (Remote host closed the connection)
01:51:49 *** Deep3D has joined #openttd
02:13:44 *** Wormnest has quit IRC (Quit: Leaving)
02:18:43 *** D-HUND has joined #openttd
02:22:12 *** debdog has quit IRC (Ping timeout: 480 seconds)
04:22:30 *** Tirili has quit IRC (Quit: Leaving)
04:31:47 <wallabra> I wish my trams actually balanced across the two lanes.
04:31:57 <wallabra> So if one broke down, only one of the lanes would be halted.
04:38:08 *** _aD has quit IRC (Quit: leaving)
05:38:58 <pickpacket> wallabra: but... trams can't pass each other
05:39:07 <pickpacket> on the same track, I mean
05:39:42 <pickpacket> I'm trying to add animation to an industrytile but I have no idea what I'm doing
05:43:09 <pickpacket> I have a question about performance rating. Why does the lowest profit of any vehicle count? It pretty much makes it impossible to get the max rating as long as you have buses. They hardly ever make 10 grand a year
05:44:28 <pickpacket> *sigh* I need to try to find an example of an industry written in NML that uses animation. I feel like I'm missing something between the spriteset and spritelayout
05:45:27 <pickpacket> The "anim_next_frame" callback returns the next frame, but where is the next frame defined?
05:55:35 <pickpacket> the industrytile contains info on 1) whether the animation loops or not, 2) how many frames it has, 3) how fast it moves.
05:55:53 <pickpacket> it doesn't have info on where to find the sprites for the frames
05:56:47 <pickpacket> I feel like that should be in the spritelayout, imported from the spriteset. But the spritelayout interprets a spriteset with several realsprites as construction stages
06:10:04 *** nielsm has joined #openttd
06:11:21 <DorpsGek> [OpenTTD/OpenTTD] Bouke opened pull request #10072: Change: Strip symbols from bundles except macOS https://github.com/OpenTTD/OpenTTD/pull/10072
06:15:53 <pickpacket> Yes! I can probably learn from this: https://github.com/2TallTyler/improved_town_industries/blob/master/src/oil_wells.nml
06:30:05 <Bouke> LordAro: sounds good, I've implemented this in #10072
06:37:33 <DorpsGek> [OpenTTD/OpenTTD] LordAro commented on pull request #10072: Change: Strip symbols from bundles except macOS https://github.com/OpenTTD/OpenTTD/pull/10072#issuecomment-1272469116
06:38:58 <DorpsGek> [OpenTTD/OpenTTD] LordAro commented on pull request #10070: Change: Widget layout tweaks https://github.com/OpenTTD/OpenTTD/pull/10070#pullrequestreview-1135306926
06:39:17 <DorpsGek> [OpenTTD/OpenTTD] LordAro approved pull request #10070: Change: Widget layout tweaks https://github.com/OpenTTD/OpenTTD/pull/10070#pullrequestreview-1135306956
06:58:25 *** HerzogDeXtEr has joined #openttd
07:03:42 *** Flygon has joined #openttd
07:07:18 <andythenorth> pickpacket: the tile animation has remarkable flexibility and control, which can make it hard to understand initially
07:07:31 <andythenorth> generally, in nml, it is driven by a spriteset with n frames
07:07:34 <andythenorth> and advancing through them
07:08:06 <pickpacket> andythenorth: I've managed to get it animated :D Though I need more frames, and I need to start at a random place in the cycle to avoid everything being synced
07:08:28 <andythenorth> there are various extra controls you can use
07:08:48 <andythenorth> to desync between tiles you can choose a random first frame
07:09:02 <pickpacket> yeah, I'm looking at the random_switch, but I'm not sure how to use it.
07:09:21 <pickpacket> https://github.com/2TallTyler/improved_town_industries/blob/master/src/oil_wells.nml <-- this looks more convoluted than necessary
07:11:01 <andythenorth> try anim_control
07:11:13 <andythenorth> then return (extra_callback_info1 % n)
07:11:19 <andythenorth> where n is number of frames in the spriteset
07:11:24 <andythenorth> extra_callback_info1 has 32 random bits in it
07:12:09 <andythenorth> this desyncs smoke plumes in FIRS https://gist.githubusercontent.com/andythenorth/6c1af108f1d9ee9cd65d05880b692ede/raw/7a5bac5f47084bc6b1d16df9bd706c7cffe2d9f6/gistfile1.txt
07:21:31 <pickpacket> thanks! I'll try that :D Just going to draw some more sprites for a smoother animation. And maybe sleep a bit since I've been up since 01:00am
07:28:21 *** sla_ro|master has joined #openttd
07:30:13 *** WormnestAndroid has quit IRC (Remote host closed the connection)
09:48:05 <pickpacket> I am so immensely grateful for the fact that I've drawn my sprites in many many layers and kept them that way...
10:09:51 <pickpacket> andythenorth: I'm looking at your example now. What do you do with the numbers returned by the switch statement?
10:10:19 <andythenorth> they're numbers in the spriteset
10:10:26 <andythenorth> they're used by anim_control, can't remember how πŸ™‚
10:10:30 <andythenorth> I'd have to read the docs
10:10:43 <andythenorth> my knowledge of grf is rudimentary πŸ™‚
10:12:17 *** gelignite has joined #openttd
10:13:22 *** gelignite has quit IRC (Read error: Connection reset by peer)
10:13:36 <pickpacket> could you send me the whole file? I can figure it out from that
10:14:23 *** gelignite has joined #openttd
10:14:36 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1028611430280335400/carbon_black_plant.nml
10:14:42 <andythenorth> you could have the whole of FIRS, but
10:15:08 <andythenorth> it's 276k lines
10:15:37 <pickpacket> πŸ˜†
10:21:58 <DorpsGek> [OpenTTD/OpenTTD] nielsmh commented on issue #10066: [Bug]: Missing original_windows music set https://github.com/OpenTTD/OpenTTD/issues/10066
10:34:38 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on pull request #10072: Change: Strip symbols from bundles except macOS https://github.com/OpenTTD/OpenTTD/pull/10072#issuecomment-1272511654
10:37:06 <DorpsGek> [OpenTTD/OpenTTD] James103 commented on issue #10067: [Bug]: `ΓÇÄ` before `***` in dedicated server console window https://github.com/OpenTTD/OpenTTD/issues/10067
10:58:54 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on issue #10067: [Bug]: `ΓÇÄ` before `***` in dedicated server console window https://github.com/OpenTTD/OpenTTD/issues/10067
11:33:21 <DorpsGek> [OpenTTD/OpenTTD] Bouke updated pull request #10072: Change: Strip symbols from bundles except macOS https://github.com/OpenTTD/OpenTTD/pull/10072
11:36:10 <DorpsGek> [OpenTTD/OpenTTD] Bouke commented on pull request #10072: Change: Strip symbols from bundles except macOS https://github.com/OpenTTD/OpenTTD/pull/10072#issuecomment-1272522461
11:36:39 <DorpsGek> [OpenTTD/OpenTTD] Bouke updated pull request #10072: Change: Strip symbols from bundles except macOS https://github.com/OpenTTD/OpenTTD/pull/10072
11:48:33 *** D-HUND is now known as debdog
12:00:21 <FLHerne> https://www.canalworld.net/forums/uploads/monthly_2022_10/img028.jpg.d022b02705efcc57d0802e90285e91ef.jpg
12:00:35 <FLHerne> missing OTTD feature: wide loads that can only travel on one-way roads :p
12:01:44 <andythenorth> see also: mining trucks
12:11:38 <pickpacket> https://lounge.warmedal.se/uploads/26232e5681523fc4/image.png I do believe something has gone a wee bit wrong
12:13:57 <andythenorth> tea flare
12:16:34 *** tokai|noir has joined #openttd
12:16:34 *** ChanServ sets mode: +v tokai|noir
12:18:18 <pickpacket> indeed
12:19:11 <pickpacket> I was trying to do something smart with PERM storage, but it can't be used in an industrytile switch so I used TEMP instead. Which is of course discarded before I tried to read from it 🀷
12:19:15 <pickpacket> But it's consistent!
12:21:04 <andythenorth> you can read industry storage from tiles iirc
12:21:10 <andythenorth> you have to use parent scope, not self
12:21:25 <andythenorth> can't remember if you can write to them
12:23:04 *** tokai has quit IRC (Ping timeout: 480 seconds)
12:24:38 <DorpsGek> [OpenTTD/OpenTTD] Limyx826 commented on issue #10066: [Bug]: Missing original_windows music set https://github.com/OpenTTD/OpenTTD/issues/10066
12:24:41 <pickpacket> hmm. I'll try that
12:40:12 <pickpacket> andythenorth: Yay! I gave up trying to be smart and went with your switch statement :D It wooooorked
12:40:50 <pickpacket> I could use about twice as many sprites to make it flow properly though...
12:41:37 <pickpacket> for some reason the livery colours aren't replaced anymore πŸ€”
12:53:09 <petern> I think my legs are dead
12:53:45 <petern> 🚲🚲🚲
13:05:29 <pickpacket> petern: well done :)
13:24:13 *** gelignite has quit IRC (Quit: Stay safe!)
13:33:04 <LordAro> petern: mine are, but for different reasons
14:00:22 <pickpacket> I don't understand why livery colours disappeared from my farm. Not just on the animated tiles, but all of them
14:10:55 <pickpacket> ah. I figured it out.
14:11:27 <pickpacket> I'm not gonna say it's because I was dumb. But. Let's just say that sometimes I shouldn't try to be smart
14:12:01 *** WormnestAndroid has joined #openttd
14:18:46 <petern> It's almost like this stuff isn't intuitive...
14:21:32 <andythenorth> it's quite uncanny valley
14:21:35 <andythenorth> what's easy is easy
14:21:40 <andythenorth> and what's not will smack you in the face
14:25:26 <andythenorth> meanwhiel
14:25:32 <andythenorth> https://cdn.discordapp.com/attachments/1008473233844097104/1028674583462678569/unknown.png
14:25:38 <andythenorth> 48 ships, but only 1 dock type πŸ˜›
14:29:32 <pickpacket> petern: in this case I removed a couple of settings and thought "nml probably sets sane defaults for that"
14:29:40 <pickpacket> but I didn't check that it actually di
14:29:42 <pickpacket> *did
14:37:13 <pickpacket> Things are woooooorkiiiiiing!!! :D :D :D :D
14:48:28 <pickpacket> this is addictive. Now I just wanna draw LOTS of animated sprites
14:49:22 <FLHerne> oh no
14:49:28 <FLHerne> now there are two andys
14:49:54 <pickpacket> relax. This andy doesn't have time for it XD
14:50:43 <pickpacket> I am going to draw... ugh... probably at least 8 more, maybe 16, to smoothen out the movements in the current animation. It looks rather jerky.
15:42:08 *** Wormnest has joined #openttd
16:05:04 <pickpacket> Done with the animated sprites! https://lounge.warmedal.se/uploads/4059884babf0583c/image.png
16:05:51 <pickpacket> I want your opinions. 1) Should I draw a couple of more buildings for the farm? 2) How many fields should a tea tree farm have?
16:09:37 <TallTyler> That looks really nice. Much better than your original sprite. You might consider some subtle color variations in the fields to break up those blobs of dark green.
16:10:07 <TallTyler> Also I'd like to see the actual animation; you posted a static png. πŸ™‚
16:20:42 <pickpacket> https://lounge.warmedal.se/uploads/f2a94e472a1bd7f6/68702521606__5147AF6A-E941-432D-8F89-1F94E9167B4F.MOV
16:20:58 <pickpacket> Hmm. Sometimes it skips a few sprites :/
16:22:21 <pickpacket> Ohh... I think I know why. Hmmm
16:28:41 <pickpacket> Fixed it
16:29:21 <pickpacket> https://lounge.warmedal.se/uploads/cabde17ab6b52f3b/68702573446__F50D2F27-DA7A-499D-8EE5-3E07050DDC3D.MOV
16:37:05 <andythenorth> but was it lunch?
16:40:23 <pickpacket> andythenorth: was what lunch?
16:47:24 <pickpacket> TallTyler: what do you think of the one on the left? Better? https://lounge.warmedal.se/uploads/6640b020b713edf7/image.png
16:49:09 <TallTyler> Much!
16:53:26 <pickpacket> πŸ‘Just gonna copy that to the other 23 sprites :D
16:59:15 <pickpacket> Again so very happy that I'm working in layers
17:04:51 <pickpacket> TallTyler: looks a lot better in the game too now
17:07:00 <pickpacket> hmm. Those farm workers are oddly synchronised.
17:09:33 *** gelignite has joined #openttd
17:30:01 *** wallabra_ has joined #openttd
17:34:36 <pickpacket> Fixed!
17:34:51 <pickpacket> I believe I'm beginning to understand how things work
17:34:53 *** wallabra has quit IRC (Ping timeout: 480 seconds)
17:34:53 *** wallabra_ is now known as wallabra
17:37:38 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
18:53:45 *** albert[m] has quit IRC (Quit: Client limit exceeded: 20000)
19:27:41 <pickpacket> https://lounge.warmedal.se/uploads/3b25cb8b6e053990/image.png
19:30:09 <pickpacket> I think that'll do. At least for today. Tomorrow I'll probably decide to make a mirrored version of the animated fields as well. Because I apparently hate myself
19:42:24 <andythenorth> moar boats vicar?
19:44:51 <pickpacket> andythenorth: MOAR BOATIES!
19:47:49 <pickpacket> andythenorth: I figured out a *really* simple way to get that randomised starting sprite in the animation
19:49:38 <andythenorth> you can just write frame % random
19:50:30 <andythenorth> FIRS has reasons not to, but eh
19:50:45 <pickpacket> ... what? :P
19:50:58 <pickpacket> https://lounge.warmedal.se/uploads/d5a83bf3954269c2/sprite-animation.txt
19:55:08 <andythenorth> animation, so many ways to do it πŸ™‚
19:55:24 <pickpacket> Yeah :D
20:05:34 <petern> Did you say "sidetracked again?"
20:20:04 *** gelignite has quit IRC (Quit: Stay safe!)
20:26:23 <andythenorth> sorry I was distracted
20:26:27 <andythenorth> what was the question?
20:38:29 *** nielsm has quit IRC (Ping timeout: 480 seconds)
20:49:24 *** _aD has joined #openttd
21:03:15 <petern> Cheese
21:07:15 <andythenorth> oof
21:07:19 <andythenorth> I bought cheese in tesco
21:07:25 <andythenorth> but it's too late to eat cheese now
21:07:27 <andythenorth> I forgot
21:10:02 *** sla_ro|master has quit IRC ()
21:12:15 <TallTyler> Can anyone explain the difference between Post and Do when sending commands?
21:33:24 <TallTyler> https://cdn.discordapp.com/attachments/1008473233844097104/1028782257051287582/mass.png
21:33:24 <TallTyler> Loading towns from GeoJSON files is going quite well. Next step: Growing them to the target size. πŸ˜„
21:40:45 <andythenorth> was it lunch yet?
21:40:49 <andythenorth> I think I missed out
21:47:15 <TallTyler> Even for me that was a long time ago
22:00:47 <TallTyler> Ugh, I should probably display a progress bar when growing and placing lots of towns because it's rather slow
22:00:53 <TallTyler> Progress bars look not-fun
22:17:38 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
22:37:42 <DorpsGek> [OpenTTD/OpenTTD] James103 opened issue #10073: [Bug]: `listai` and similar commands truncate output after 4096 bytes https://github.com/OpenTTD/OpenTTD/issues/10073
22:44:32 <DorpsGek> [OpenTTD/OpenTTD] James103 opened issue #10074: [Bug]: Console command `help list_ai` instead runs just `list_ai` https://github.com/OpenTTD/OpenTTD/issues/10074
22:48:35 *** Wormnest has quit IRC (Quit: Leaving)
23:11:13 <petern> TallTyler: One does the command directly, the other sends it through the command queue, which in multiplayer will get sent to the server.
23:11:43 <petern> I'm tempted to make a progress bar widget, because we have a few and they're all different :/
23:12:21 <TallTyler> I'm about to open a PR you can practice on πŸ˜›
23:32:23 <TallTyler> Growth is done. Now on to documentation before I can open a PR and beg for help with Bananas support and a progress bar πŸ™‚
23:33:51 <TallTyler> But not today...I've already spent the last 13 hours on this
23:35:10 <TallTyler> https://cdn.discordapp.com/attachments/1008473233844097104/1028812903962378250/screenshot.png