IRC logs for #openttd on OFTC at 2022-06-19
            
01:17:54 <DorpsGek> [OpenTTD/OpenTTD] Joel-Milligan opened pull request #9928: Change: Remove scrollbar from town authority actions panel https://github.com/OpenTTD/OpenTTD/pull/9928
01:34:31 *** glx has quit IRC ()
02:06:28 *** Wormnest has quit IRC (Quit: Leaving)
02:36:03 *** D-HUND has joined #openttd
02:39:28 *** debdog has quit IRC (Ping timeout: 480 seconds)
02:56:10 *** wallabra has quit IRC (Remote host closed the connection)
02:58:16 *** wallabra has joined #openttd
03:12:48 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
03:12:55 *** Smedles has joined #openttd
05:33:09 *** jpw has quit IRC (Remote host closed the connection)
05:33:44 *** jpw has joined #openttd
05:45:42 *** jpw has quit IRC (Remote host closed the connection)
05:46:51 *** jpw has joined #openttd
05:52:53 *** Flygon has joined #openttd
05:59:21 *** Etua has joined #openttd
06:12:39 *** Etua has quit IRC (Quit: Etua)
06:33:27 *** nielsm has joined #openttd
06:35:51 *** smoke_fumus has joined #openttd
06:35:53 *** smoke_fumus has quit IRC ()
06:43:32 <DorpsGek> [OpenTTD/OpenTTD] nielsmh commented on pull request #9928: Change: Remove scrollbar from town authority actions panel https://github.com/OpenTTD/OpenTTD/pull/9928#issuecomment-1159630151
06:53:26 *** andythenorth has joined #openttd
07:04:00 *** Etua has joined #openttd
07:12:18 *** Etua has quit IRC (Quit: Etua)
07:23:47 *** Wolf01 has joined #openttd
07:44:13 *** HerzogDeXtEr has joined #openttd
07:48:19 <andythenorth> moin
08:58:02 *** Samu has joined #openttd
09:11:58 *** andythenorth has quit IRC (Quit: andythenorth)
09:13:43 *** sla_ro|master has joined #openttd
09:36:06 <DorpsGek> [OpenTTD/OpenTTD] Joel-Milligan commented on pull request #9928: Change: Remove scrollbar from town authority actions panel https://github.com/OpenTTD/OpenTTD/pull/9928#issuecomment-1159669258
10:53:17 *** Joel has quit IRC (Ping timeout: 480 seconds)
11:03:33 *** D-HUND is now known as debdog
11:11:30 *** Joel has joined #openttd
12:29:25 <DorpsGek> [OpenTTD/OpenTTD] LC-Zorg commented on pull request #9928: Change: Remove scrollbar from town authority actions panel https://github.com/OpenTTD/OpenTTD/pull/9928#issuecomment-1159712253
13:14:15 *** Joel has quit IRC (Ping timeout: 480 seconds)
13:33:58 <Samu> im editing choochoo, tweaking some stuff
13:34:19 <TrueBrain> I am on the toilet, pooping
13:34:44 <Samu> ;P
13:37:24 <Samu> comparing choochoo vs my tweaked choochoo
13:37:33 <Samu> i'm still on the first network
13:37:35 <TrueBrain> I am not comparing my poop, sorry
13:37:38 <Samu> with 53 trains
13:38:13 <Samu> the original only was able to make 2 trains, then switched to two new networks
13:47:15 *** Joel has joined #openttd
14:02:13 *** Joel__ has joined #openttd
14:09:02 *** Joel has quit IRC (Ping timeout: 480 seconds)
14:09:03 *** andythenorth has joined #openttd
14:16:12 *** glx has joined #openttd
14:16:12 *** ChanServ sets mode: +v glx
14:20:01 <andythenorth> well
14:25:32 *** Joel__ has quit IRC (Ping timeout: 480 seconds)
14:35:57 <Samu> still on the first network, that's ~25% of the map, and still going
14:36:04 <Samu> a 1024x1024 map
14:37:34 <Samu> https://i.imgur.com/AkcQwAb.png
14:37:46 <Samu> original choochoo on the left
14:38:02 <Samu> tweaked chocho on the right
14:38:54 <Samu> wait, this pic is better, maps are at the same zoom https://i.imgur.com/3eIPGvW.png
14:40:34 <Samu> on the left, choochoo failed at expanding the 3 first networks until the 4th time, where it was sticking with it, until it crashed
14:40:55 <Samu> on the right, that's still the first network, fantastic
14:48:17 <Samu> massive jams though
14:50:32 <Xaroth> I'm more of a peanutbutter person.
14:52:02 <Samu> im testing with breakdowns set to normal
14:53:11 <Samu> seems that the older part of the network is running dry with nearly no trains, the way the ai works, it sells the 10% least profitable and clones the 10% most profitable
14:53:45 <Samu> old trains with breakdowns are suscept to being the least profitable, makes sense
14:54:46 <Samu> problem is, the ai doesn't build newer engines running on the old parts
14:55:27 <Samu> so much room for improvements, I wish the real author would look at these
15:01:07 <andythenorth> hmmm
15:01:13 <andythenorth> if not os.path.exists(generated_files_path):
15:01:13 <andythenorth> os.mkdir(generated_files_path)
15:01:37 <Samu> it finally failed to expand the first network further! https://i.imgur.com/LqlD8K0.png
15:01:43 <andythenorth> that exists in a python file; with make -j 2, occasionally they collide ^^
15:01:44 <Samu> covers about 50% of the map
15:01:57 <andythenorth> I could try / except and pass
15:01:58 <andythenorth> but I hate that
15:02:10 <andythenorth> I could have the makefile make the dir
15:14:17 * andythenorth oh just for once, the top Stack Overflow result is the exact problem :D https://stackoverflow.com/questions/12468022/python-fileexists-error-when-making-directory
15:30:03 *** jpw has quit IRC (Ping timeout: 480 seconds)
15:34:10 <glx> typical concurrency issue
15:35:44 <glx> you could skip the if and put mkdir in a try except, I think it's the only way here
15:36:20 *** jpw has joined #openttd
15:38:09 <TrueBrain> Nah, what the stack overflow says is the right thing to do .. Well, including the skipping of the if
15:38:27 <TrueBrain> Using try/except here is unneeded complex :)
15:39:02 <glx> ah yes, didn't click the link :)
15:39:06 <TrueBrain> mkdir -p basically, but in Python ;)
15:45:04 *** Wormnest has joined #openttd
15:48:58 <andythenorth> thanks
15:50:52 <andythenorth> give or take the bugs, multi-grf compile now works
15:58:00 <andythenorth> ok this recipe is failing because it runs before docs are built https://github.com/andythenorth/iron-horse/blob/multi-grf-roster-refactor/Makefile#L156
15:58:08 <andythenorth> but $(HTML_DOCS) is a pre-requisite, so I don't understand :P
15:59:03 <andythenorth> maybe it's https://github.com/andythenorth/iron-horse/blob/multi-grf-roster-refactor/Makefile#L77
16:01:41 <andythenorth> works without -j arg to make :P
16:12:51 <andythenorth> 'le oof'
16:28:35 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
16:28:43 *** Smedles has joined #openttd
16:33:28 <andythenorth> maybe I need to add copy_docs_to_grf_farm to .PHONY list?
16:38:19 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
16:38:25 *** Smedles has joined #openttd
16:41:36 <andythenorth> ok I absolutely misunderstand something about make :P
16:41:54 <andythenorth> '1 last thing' :P
16:43:59 <andythenorth> ok I think the problem is bundle_tar: clean tar
16:43:59 <andythenorth> release: bundle_tar copy_docs_to_grf_farm
16:44:39 <andythenorth> with -j 2, the deps for copy_docs_to_grf_farm are satisfied, but meanwhile bundle_tar is causing them to be cleaned
16:46:31 <LordAro> don't mix clean & build deps
16:48:10 <andythenorth> hmm
16:48:31 <andythenorth> for release only, there was some reason to clean first
16:48:54 <andythenorth> I think it's related to git tags not causing deps to need rebuilt
16:49:00 <andythenorth> but git tags being needed in the nml
16:49:13 <andythenorth> I wondered if I could use .NOTPARALLEL on some recipes, but seems not
16:54:21 <peter1138> LordAro, madness
16:57:29 <andythenorth> meh, so maybe I need to check if git tag is outdated
16:57:35 *** glx has quit IRC (Read error: Connection reset by peer)
16:59:59 *** glx has joined #openttd
16:59:59 *** ChanServ sets mode: +v glx
17:10:34 <andythenorth> yeah if I build, then tag, it doesn't regenerate, as expected
17:10:44 <andythenorth> so the grf will have wrong version
17:12:24 <glx> add a version rule maybe
17:12:34 <nielsm> if you're okay with potentially undefined behaviour, or rather relying on implementation details, you could maybe make a target depending on a file inside the .git dir
17:13:10 <nielsm> that would also make it annoying to build outside of a git working tree
17:13:59 <glx> a target to create a version file used by other targets
17:14:18 <nielsm> yeah something like that
17:15:17 <glx> and this file can be included in source package without git
17:15:46 <nielsm> like having a 'version_info' file with the tag name in it, a 'version_info: check_version' target, and the check_version target is then marked .PHONY and will regenerate the version_info file
17:17:44 <andythenorth> I need to make it only pick up tags
17:17:51 <andythenorth> otherwise everything will rebuild on every commit
17:18:27 <andythenorth> I can probably write the output of this into a file https://github.com/andythenorth/iron-horse/blob/master/src/polar_fox/git_info.py
17:19:17 <nielsm> in my idea, the check_version target would only rewrite/touch the version_info file if the version had logically changed
17:20:12 <nielsm> like if it was just on a branch it could fill the file with branch:main' or something and check if the content would change before writing to the file
17:20:43 <andythenorth> I wonder if there's a flag or built in target to force recompiling all prerequisites
17:20:52 <andythenorth> rather than just relying on clean
17:21:33 <andythenorth> https://www.gnu.org/software/make/manual/html_node/Force-Targets.html
17:36:23 <andythenorth> nah not what I need
17:39:04 <TrueBrain> sounds what you need is what nielsm is telling you .. PHONY target that always executed, write a new version_info in like version_info.new .. compare the files, if changed, rename, if not, remove. That is how OpenTTD used to do it :)
17:40:41 <Samu> i've been searching for AIs using search in github site
17:40:53 <Samu> i find too many tutorial copies
17:42:38 <peter1138> https://user-images.githubusercontent.com/639850/174493721-6bb10836-3022-453d-9dd1-d6245c89122e.png
17:42:41 <peter1138> ^ That price tho'
17:43:15 <LordAro> suspicious price
17:43:48 <LordAro> TrueBrain: targets that always rebuild make me sad
17:44:01 <TrueBrain> the target doesn't "rebuild" :)
17:44:04 <TrueBrain> it is just always triggered
17:44:08 <TrueBrain> like all PHONY targets :P
17:44:21 <TrueBrain> or you consider "all" also "rebuilding" :P
17:44:39 <peter1138> (It's a heap of shit, they've gone for "luxury item" pricing, worse than say Apple...)
17:44:39 <LordAro> nothing better than seeing "nothing to do" message
17:45:00 <andythenorth> looks like I can just dump the output of my git script to a file
17:45:29 <andythenorth> then add it as a pre-requisite for everything
17:45:30 <andythenorth> or something
17:45:36 <TrueBrain> LordAro: we can all dream :P
17:46:18 <peter1138> https://uk.camelcamelcamel.com/product/B00CXSJUZS < mad pricing
17:50:22 <andythenorth> frigging makefile tabs
17:50:24 <andythenorth> every time
17:50:38 <TrueBrain> haha :D
17:50:42 <TrueBrain> we all know that pain :P
17:51:21 <andythenorth> ach, now I have to test in shell if a file exists :P
17:55:25 *** Compu has joined #openttd
17:56:07 *** Compu has quit IRC ()
18:01:25 <TrueBrain> if [ -f <filename> ]; then ... fi
18:01:45 <TrueBrain> euh, f = e
18:01:46 <TrueBrain> oops
18:09:51 <andythenorth> this seems to maybe work https://gist.githubusercontent.com/andythenorth/fee97362943a96e724ec5753ce3d4818/raw/f3a5ea1b3182c3f946545a7add436ba556b6e127/gistfile1.txt
18:09:54 <andythenorth> ish
18:10:09 *** virtualrandomnumber has joined #openttd
18:10:11 <andythenorth> it's probably wrong :P
18:11:18 *** virtualrandomnumber has quit IRC ()
18:21:37 <andythenorth> ugh this is wrong
18:22:25 *** gelignite has joined #openttd
18:24:13 <andythenorth> might be dummy spit time
18:25:55 <peter1138> That's it, remove all your NewGRFs?
18:31:50 <andythenorth> no just write a shell script for release
18:31:57 <andythenorth> instead of using make
18:32:49 <andythenorth> or have make release call a shell script
18:33:16 <andythenorth> that then calls make clean (without -j) and make real_release (with -j)
18:33:27 <andythenorth> imagine the horror
18:45:21 <DorpsGek> [OpenTTD/OpenTTD] DorpsGek pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/79af42e992d1b2cccc06748ae1fd306b16c97875
18:45:22 <DorpsGek> - Update: Translations from eints (by translators)
18:46:50 <andythenorth> well
18:46:51 <andythenorth> https://github.com/andythenorth/iron-horse/blob/master/Makefile#L162
18:46:55 <andythenorth> it seems to work
18:47:17 <andythenorth> lego brick solutions
19:13:39 *** Flygon has quit IRC (Remote host closed the connection)
19:30:39 *** tokai has joined #openttd
19:30:39 *** ChanServ sets mode: +v tokai
19:37:27 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
19:51:32 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
20:08:05 *** gelignite has quit IRC (Quit: Stay safe!)
20:19:00 *** Wormnest has joined #openttd
20:41:02 *** nielsm has quit IRC (Ping timeout: 480 seconds)
21:10:30 *** sla_ro|master has quit IRC ()
21:15:39 *** sla_ro|master has joined #openttd
21:18:40 *** andythenorth has quit IRC (Quit: andythenorth)
21:57:10 *** Samu has quit IRC (Quit: Leaving)
22:00:28 *** sla_ro|master has quit IRC ()
22:10:15 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
22:25:54 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
23:15:43 *** Joel has joined #openttd
23:53:00 *** Joel has quit IRC (Ping timeout: 480 seconds)