IRC logs for #openttd on OFTC at 2022-06-13
            
00:07:51 *** SoniEx2 has quit IRC (Ping timeout: 480 seconds)
00:52:31 *** glx has quit IRC ()
00:52:59 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
00:53:06 *** Smedles has joined #openttd
01:08:34 *** Soni has joined #openttd
01:28:39 *** Wormnest has quit IRC (Quit: Leaving)
02:42:39 *** D-HUND has joined #openttd
02:46:03 *** debdog has quit IRC (Ping timeout: 480 seconds)
05:28:47 *** jpw has joined #openttd
05:35:52 *** andythenorth has joined #openttd
05:58:21 *** andythenorth has quit IRC (Quit: andythenorth)
06:12:40 *** andythenorth has joined #openttd
06:55:19 <andythenorth> hmm, how to pass a list as shell args?
06:55:38 <andythenorth> e.g. `my.sh foo=ham,eggs`
06:55:54 <andythenorth> just split on some delimiter?
06:56:53 *** Flygon has joined #openttd
07:21:00 *** sla_ro|master has joined #openttd
07:23:46 *** felix has quit IRC ()
07:23:58 *** andythenorth has quit IRC (Quit: andythenorth)
07:24:08 *** felix has joined #openttd
08:05:16 *** Etua has joined #openttd
08:05:21 *** Etua has quit IRC ()
08:20:13 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
08:20:20 *** Smedles has joined #openttd
08:57:17 *** andythenorth has joined #openttd
09:26:52 *** Samu has joined #openttd
09:40:51 *** Deep3D has joined #openttd
09:45:52 *** sla_ro|master has quit IRC ()
10:21:49 *** WormnestAndroid has quit IRC (Remote host closed the connection)
10:27:58 *** Etua has joined #openttd
10:28:07 *** Etua has quit IRC ()
10:47:00 *** WormnestAndroid has joined #openttd
12:08:41 *** glx has joined #openttd
12:08:41 *** ChanServ sets mode: +v glx
13:36:52 *** virtualrandomnumber has joined #openttd
13:37:11 *** virtualrandomnumber has quit IRC (Remote host closed the connection)
13:49:59 *** sla_ro|master has joined #openttd
14:16:47 *** nielsm has joined #openttd
14:24:08 *** sla_ro|master has quit IRC ()
14:37:01 *** andythenorth has quit IRC (Quit: andythenorth)
14:53:10 *** Wormnest has joined #openttd
15:24:39 *** andythenorth has joined #openttd
16:00:37 *** gelignite has joined #openttd
16:16:46 *** HerzogDeXtEr has joined #openttd
16:23:01 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
16:23:07 *** Smedles has joined #openttd
16:24:01 *** andythenorth has quit IRC (Quit: andythenorth)
16:25:41 *** andythenorth has joined #openttd
16:26:32 *** andythenorth has quit IRC ()
16:32:40 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
16:32:46 *** Smedles has joined #openttd
16:56:56 *** gelignite has quit IRC (Quit: Stay safe!)
17:02:54 *** D-HUND is now known as debdog
17:04:38 *** andythenorth has joined #openttd
17:12:21 <andythenorth> is cat?
17:37:22 <andythenorth> so I need to generate 3 grfs from one compile
17:38:29 <TrueBrain> Who is stopping you? :)
17:38:59 <andythenorth> andythenorth is stopping me
17:49:26 <andythenorth> is there an established way to parse a list of items from a shell arg?
17:49:32 <andythenorth> google didn't find much
17:58:26 <andythenorth> to put it another way, I want to give make an arg
17:58:45 <andythenorth> which will compile any of grf 1, 2, 3, in any combination :P
17:59:28 <andythenorth> I did wonder if I should be using named targets for each grf
17:59:37 * andythenorth clueless about make
18:05:37 *** Wormnest_ has joined #openttd
18:05:37 *** Wormnest has quit IRC (Read error: Connection reset by peer)
18:05:37 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
18:06:45 *** WormnestAndroid has joined #openttd
18:14:46 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
18:15:07 *** WormnestAndroid has joined #openttd
18:18:45 *** gelignite has joined #openttd
19:07:52 *** sla_ro|master has joined #openttd
19:30:24 *** tokai has joined #openttd
19:30:24 *** ChanServ sets mode: +v tokai
19:36:20 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
19:37:13 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
20:12:27 <DorpsGek> [OpenTTD/team] SeeAmm opened issue #322: [cs_CZ] Translator access request https://github.com/OpenTTD/team/issues/322
20:21:46 *** wallabra_ has quit IRC ()
20:21:59 *** wallabra has joined #openttd
20:26:47 <DorpsGek> [OpenTTD/nml] JGRennison opened issue #256: Object company_colour variable points to wrong NFO variable number https://github.com/OpenTTD/nml/issues/256
20:28:28 *** nielsm has quit IRC (Ping timeout: 480 seconds)
20:41:54 * andythenorth reading about conditional makefiles
20:41:57 <andythenorth> are these wise? :P
20:46:42 * andythenorth found 'foreach' also
20:48:37 <andythenorth> or I could just do it all in python :|
20:48:56 <andythenorth> I have no idea how to set up conditional deps or targets
20:49:00 <LordAro> andythenorth: generally at the point you reach foreach you should write it in something else
20:49:21 <andythenorth> so it's more like noreach :P
20:55:56 * andythenorth piles in blindly to make something work :P
20:58:13 <andythenorth> hmm
20:58:30 <andythenorth> I think it's going to be near impossible to conditionally generate 3 grfs from one compile
21:03:41 * andythenorth reading a makefile tutorial
21:04:35 <andythenorth> wait what
21:04:39 <andythenorth> targets are filenames?
21:04:56 <LordAro> ...you didn't know?
21:05:01 <andythenorth> no
21:05:04 <LordAro> oh dear
21:05:09 <LordAro> targets are filenames
21:05:15 <LordAro> targets depend on other targets
21:05:26 <andythenorth> but they're only actually filenames if the rule actually writes a file?
21:05:35 <andythenorth> otherwise they're a bit phony?
21:05:40 <LordAro> yeah
21:05:42 <andythenorth> ok
21:05:46 <andythenorth> mind blown, but also
21:05:51 <andythenorth> that might finally make sense
21:05:56 <andythenorth> I assumed make was just magic
21:06:06 <LordAro> well, make still treats them as filenames, just that the target never actually gets created, so it always runs
21:06:06 *** Samu has quit IRC (Quit: Leaving)
21:06:21 <andythenorth> yes
21:06:34 <LordAro> (.PHONY changes the behaviour of such targets to ensure that it *always* treats the rule as if the file doesn't exist, iirc)
21:06:36 <andythenorth> only took me 14 years to understand
21:06:52 <LordAro> so even if a file named 'run' exists, `make run` will always run the rule
21:07:02 <LordAro> whereas normally it would decide that there's nothing to do
21:07:33 <DorpsGek> [OpenTTD/nml] glx22 commented on issue #256: Object company_colour variable points to wrong NFO variable number https://github.com/OpenTTD/nml/issues/256
21:08:11 <andythenorth> I wonder if I can just chain makefiles
21:08:27 <LordAro> you can, but it makes the dependencies a bit weird
21:08:36 <andythenorth> annoyingly the existing makefile is already 99% parameterised
21:08:59 <andythenorth> so if I wanted to make iron-moose.grf I could just pass `make PROJECT_NAME=iron-moose`
21:09:15 <LordAro> sure
21:09:19 <andythenorth> but I want to dispatch all grfs at once sometimes
21:09:40 <LordAro> iron-moose.grf: <something>\n\t$(MAKE) PROJECT_NAME=iron-moose
21:10:03 <LordAro> all_grf: iron-moose.grf iron-moose2.grf iron_moose3.grf
21:10:06 <LordAro> make all_grf
21:10:08 <andythenorth> ah
21:10:27 <andythenorth> can a makefile call itself? :P
21:10:30 <LordAro> sure
21:10:32 <LordAro> $(MAKE)
21:10:34 <andythenorth> seems evil
21:10:45 <LordAro> it's a bit evil to do it *explicitly*
21:10:58 <LordAro> but it's essentially all it's doing when you define a rule with dependencies
21:11:13 <LordAro> useful for defining an explicit order too
21:11:16 <andythenorth> ok so a specific target for `all` might be what I need
21:11:27 <andythenorth> otherwise it has to be passed to be passed a project name for a single grf compile
21:11:41 <andythenorth> dunno, there's other targets like install
21:11:44 <andythenorth> and docs
21:11:50 <andythenorth> this is what breaks my brain
21:11:59 <andythenorth> can't do `make all install`
21:12:16 <LordAro> i'd recommend something like `make grf PROJECT_NAME=iron-moose` for the actual grf-making rules
21:12:26 <LordAro> so that `make` actually does something useful
21:12:41 <LordAro> make all install can do something useful, if you've got the dependencies set up correctly
21:12:44 <LordAro> can be hard to do
21:13:16 <andythenorth> if I could wrap all my current targets in 'foreach' it would ... probably work
21:13:20 <andythenorth> but I doubt that's a thing
21:13:40 <LordAro> you probably just need a list
21:14:56 <andythenorth> probably :)
21:15:44 *** felix has quit IRC ()
21:15:52 <andythenorth> oh
21:16:01 <andythenorth> each target could redefine the value of all the vars
21:16:10 <LordAro> yup
21:16:24 <andythenorth> https://github.com/andythenorth/iron-horse/blob/master/Makefile#L18
21:16:45 <andythenorth> the project name is used most of the places it would be needed https://github.com/andythenorth/iron-horse/blob/master/Makefile#L45
21:16:52 <LordAro> grf-%: ...\n\t$(MAKE) PROJECT_NAME=$* grf
21:17:18 <LordAro> then `make grf-iron-moose.grf`
21:17:45 <LordAro> other prefixes are available
21:18:20 <andythenorth> ok I kind of get it, I kind of don't :P
21:19:04 <andythenorth> some of the python stuff currently just runs everything for all rosters
21:19:08 <andythenorth> I'll need to adjust that
21:19:19 <andythenorth> many moving parts
21:21:57 <andythenorth> might be easier to reliably find deps if I encapsulate the graphics etc in separate dir for each grf
21:26:33 <andythenorth> ok I sleep on it :)
21:26:37 <andythenorth> thanks for the help
21:26:59 *** andythenorth has quit IRC (Quit: andythenorth)
21:47:36 *** crem has quit IRC (Ping timeout: 480 seconds)
21:53:15 *** uhren has joined #openttd
21:53:21 *** uhren has quit IRC (Remote host closed the connection)
21:58:23 *** crem has joined #openttd
22:18:22 *** sla_ro|master has quit IRC ()
22:25:04 *** gelignite has quit IRC (Quit: Stay safe!)
23:18:48 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
23:37:27 <wallabra> Why are cities always uniformly spaced?
23:43:22 *** Vadtec has quit IRC (Ping timeout: 480 seconds)
23:47:00 *** Vadtec has joined #openttd