IRC logs for #openttd on OFTC at 2019-04-16
            
00:00:00 *** Thedarkb-T60 has quit IRC
00:10:13 *** Gustavo6046 has joined #openttd
00:18:38 *** arikover has quit IRC
00:27:43 *** HerzogDeXtEr has joined #openttd
00:29:08 <Samu> start_date is a hack in itself, maybe
00:29:11 <Samu> kek
00:38:42 <Samu> start_date could become a global parameter, similar to difficulty preset currently is
00:40:26 <Samu> what do you think?
01:02:52 *** tokai has quit IRC
01:06:10 *** tokai has joined #openttd
01:06:10 *** ChanServ sets mode: +v tokai
01:15:11 <Samu> nielsm, got a crash
01:15:20 <Samu> FramerateWindow::DrawElementAllocationsColumn + 230 (D:\OpenTTD\OpenTTD GitHub\OpenTTD\src\framerate_gui.cpp:606)
01:19:39 <Samu> it was trying to GetAllocatedMemory() of a dead instance
01:19:54 <Samu> ai that crashed
01:29:43 <glx> it's just a quick test, needs more work
01:46:03 *** Thedarkb1-T60 has quit IRC
01:52:46 *** Thedarkb1-T60 has joined #openttd
01:56:27 *** Supercheese has quit IRC
02:05:53 <Samu> borkai is approaching 3 GiB
02:06:00 <Samu> it sure takes time
02:06:24 <Samu> sitting at 2.76 GiB at the moment
02:12:27 *** Smedles has quit IRC
02:15:29 *** Smedles has joined #openttd
02:33:56 <Samu> 3.00 GiB
02:34:04 <Samu> crashing soon?
03:19:57 *** Flygon has joined #openttd
03:29:10 *** HerzogDeXtEr has quit IRC
03:31:23 <Samu> 3.58 GiB, still no crash
03:33:02 *** WWacko1976-work has joined #openttd
03:39:20 *** Gustavo6046 has quit IRC
03:55:47 <Samu> 3.63... still going, hmm I was expecting a crash
04:27:27 *** Wormnest has quit IRC
04:30:21 *** debdog has joined #openttd
04:33:38 *** D-HUND has quit IRC
04:34:58 <Samu> 4.00 GiB, still no crash
04:36:35 <Samu> 4.01... well i have no more time today, gonna hibernate system and resume tomorrow
04:38:57 *** glx has quit IRC
04:45:05 *** Samu has quit IRC
05:47:32 *** Corns343434 has joined #openttd
06:28:37 *** Corns343434 has quit IRC
06:39:59 *** Corns343434 has joined #openttd
07:23:12 *** Corns343434 has quit IRC
07:23:24 *** Corns343434 has joined #openttd
08:05:01 <DorpsGek_II> [OpenTTD/OpenTTD] ghisvail commented on issue #6873: Jukebox not working in the flatpak version https://git.io/fjYqj
08:17:54 *** andythenorth has joined #openttd
08:31:20 *** Lejving has quit IRC
09:22:27 *** D-HUND has joined #openttd
09:25:48 *** debdog has quit IRC
10:01:02 <andythenorth> moin
10:01:07 <peter1138> Hi
10:04:54 <peter1138> Hmm, sign warnings in NRT, oops.
10:05:29 <peter1138> MSVC-only of course.
10:10:47 *** Corns343434 has quit IRC
10:11:23 <LordAro> but of course
10:12:24 *** Corns343434 has joined #openttd
10:14:58 <peter1138> git diff
10:15:01 <peter1138> Not here :D
10:36:44 *** Corns343434 has quit IRC
10:51:28 *** andythenorth has quit IRC
11:06:06 <DorpsGek_II> [OpenTTD/OpenTTD] PeterN updated pull request #6811: Feature: Add NotRoadTypes (NRT) https://git.io/vhlfg
11:06:43 *** andythenorth has joined #openttd
11:06:50 <peter1138> Did that summon you?
11:07:22 <andythenorth> perhaps
11:26:11 <peter1138> Hm
11:29:37 <peter1138> Well, that made no difference :-)
11:32:31 <DorpsGek_II> [OpenTTD/OpenTTD] PeterN updated pull request #6811: Feature: Add NotRoadTypes (NRT) https://git.io/vhlfg
11:46:11 *** Corns343434 has joined #openttd
11:54:12 *** Corns343434 has quit IRC
12:07:04 *** Smedles_ has joined #openttd
12:09:17 *** Smedles has quit IRC
12:22:48 *** fanioz has joined #openttd
12:35:36 <Artea> https://www.youtube.com/watch?v=jSFsrmLhC00
12:35:45 <Artea> Transport Tycoon 2014 Soundtrack (remaster with real instrument from original creator)
12:35:53 <Artea> anyone had listen to this ?
12:40:29 *** gelignite has joined #openttd
12:44:01 <V453000> how am I not aware of this Artea ? :D I will give it a listen in the evening, thanks.
12:47:22 <peter1138> wet roads?
12:48:04 <peter1138> "Alpinea v3.5 (4096x4096, for players with low-end PCs)
12:48:04 <peter1138> This one is 4096 x 4096 instead of 8192 x 8192, so most players should be able to play."
12:48:08 <peter1138> Those crazy redditors...
12:48:15 <peter1138> 4k x 4k... low-end ...
12:48:36 <V453000> well they don't build vehicles on it so...
12:50:14 *** tycoondemon has joined #openttd
12:51:41 <peter1138> https://i.ibb.co/LgXDC4C/TIME-YEAR.gif < bad feature :/
12:52:17 <Artea> I havent heard neither, V453000
12:52:37 <Artea> popup on my youtube for days now, but only started to listen
12:52:48 <V453000> peter1138: do you need to reload the save to make it show?
12:52:51 <Artea> but had to pause, Dragon Ball Super in Portuguese is on TV ;)
12:53:23 <peter1138> V453000, no, but you do need to force a screen redraw otherwise the new road is only painted where vehicles move...
12:53:30 <V453000> :D
12:53:37 <V453000> I like the latter option
12:53:49 <peter1138> They should be using separate road types, and introduction dates.
12:53:56 <V453000> that would actually be really cool :)
12:54:02 <V453000> you would have unused roads remain old
12:54:14 <peter1138> Well, as far as I know it's in NRT already.
12:54:30 <V453000> :D
12:54:34 <peter1138> Maybe it needs a new flag "definitely don't introduce this type until its introduction date" or something.
12:56:02 <peter1138> brix roadtypes? ;)
13:02:40 <V453000> I'll probably stay with railtypes :P
13:04:42 <peter1138> Aww
13:05:20 <V453000> I still have a glorious train set plan, but now I'm stuck getting NUTS to behave at least half-decently
13:17:13 *** Lejving has joined #openttd
13:29:11 <Artea> :(
13:29:30 <Artea> why I had to use sudo to use make install ? :S
13:29:49 <Artea> now bundle folder is with root permissions
13:31:40 <peter1138> Because you need privileges to install.
13:32:14 <Artea> :S
13:32:19 <Artea> I know
13:32:23 <Artea> gave the same error
13:32:35 <peter1138> What?
13:32:40 <peter1138> If you want a bundle, do make bundle.
13:33:10 *** tycoondemon has quit IRC
13:33:34 <peter1138> If you want to install, do make install, which needs root privileges, unless you told it to install somewhere else.
13:35:14 <Artea> it gave me error finding pixmaps
13:35:24 <Artea> regardless is there
13:39:24 <Artea> install: cannot remove ‘///usr/local/games/openttd’: Permission denied
13:39:26 <Artea> this is new
13:45:47 <peter1138> Why?
13:48:08 <andythenorth> peter1138: so I _should_ make an NRT grf eh :P
13:48:17 <peter1138> Yes?
13:48:21 <andythenorth> and not worry about finishing unfinished things :D
13:48:42 <andythenorth> so 2 kinds of trams then?
13:48:43 <peter1138> You'll never finish them anyway, so what's the difference?
13:48:54 <andythenorth> eh what? Yes I agree
13:49:06 <Artea> damn
13:49:12 <Artea> now isn't installing in bundle
13:49:14 <Artea> wth
13:50:09 <Artea> well its there
13:50:21 <Artea> don't know what I'm doing :S
13:51:53 *** tycoondemon has joined #openttd
13:54:03 <Artea> seems I can upload to bundle now
13:54:08 <Artea> seriously
14:00:31 *** Samu has joined #openttd
14:03:42 <Artea> ok
14:03:51 <Artea> already run dedicated server
14:03:59 <Artea> but now cannot put aside
14:04:00 <Artea> :S
14:05:03 <Samu> hi
14:05:39 <Artea> hi
14:07:11 <Artea> hmmmmmm
14:07:13 <Artea> peter1138
14:07:35 <Artea> shouldnt -f parameter put openttd in the background ?
14:09:37 <Artea> oh
14:09:57 <Artea> it worked just didnt get to bash back
14:10:09 <Artea> * get back to bash
14:10:25 <Artea> https://servers.openttd.org/en/server/127004
14:10:29 <Artea> password: test
14:12:41 <peter1138> Heh, -f is normally "foreground", not "fork into background" :-)
14:13:16 <Artea> I can't see server in OTTD
14:13:24 <Artea> grrrrrr
14:14:58 <Artea> so I cant put in fork ?
14:15:49 <Artea> I tried use screen
14:15:56 <Artea> but no use :(
14:16:52 *** andythenorth has left #openttd
14:18:50 <Artea> -f = Fork into the background (dedicated only)
14:19:12 <Artea> not working :(
14:19:55 <Artea> HA
14:19:58 <Artea> missing -D
14:24:24 <peter1138> Yeah, I've never but it in the background.
14:24:29 <peter1138> ...
14:24:30 <peter1138> *put
14:24:49 <Artea> its running :D
14:25:14 <Samu> borkai continuation, 4.16 GiB, still running
14:38:04 <peter1138> How nice.
14:47:42 *** andythenorth has joined #openttd
14:47:49 <andythenorth> is it lunch time?
14:50:02 <Artea> yes
14:50:16 <Artea> at least in for me is
14:50:54 <Artea> * is
14:50:59 <Artea> andy
14:51:06 <Artea> can u join my test dedicated server ?
14:51:16 <Artea> or you are busy ?
14:51:28 <peter1138> Busy.
14:51:38 <peter1138> andythenorth, it was lunch time, but that ship's sailed.
14:51:55 <andythenorth> I had mac + cheese
14:51:58 <andythenorth> was that correct?
14:52:55 <Artea> from macdonaldas ?
14:53:21 <Artea> I mean, McDonalds :P
14:53:27 <andythenorth> nope :P
14:53:30 <andythenorth> from my freezer
14:53:34 <andythenorth> so NRT stuff
14:53:36 <Artea> hahaha
14:53:44 <andythenorth> freight trams are kind of this http://www.outsidelands.org/Image/700/wnp14.1557.jpg
14:53:51 <andythenorth> and exist in Road Hog already, running on tram tracks
14:54:16 <andythenorth> I want to do a type for this type of industrial train https://i.pinimg.com/originals/fd/92/96/fd9296e98223d9b33f4a96335f8affd6.jpg
14:54:22 <andythenorth> totally separate
14:58:09 <Samu> pathfinding cosumes memory, interesting
15:00:30 <LordAro> well... yeah
15:02:28 <Samu> https://imgur.com/5QHeov1
15:02:37 <Samu> on the top left, borkai, refusing to crash just yet
15:03:06 <Samu> top right, my AI patch pack
15:03:21 <Samu> bottom right, same savegame as top right, but with fixed 250k ops
15:03:50 <Samu> bottom left, same savegame as top right, with fixed 250k ops, running on nielsm memory thing
15:34:42 *** Corns has joined #openttd
15:36:42 <Artea> LordAro: using AroAI in my dedicated server :D
15:37:08 <Artea> let's see how much time needs to make 1000 road vehicles :P
15:38:39 <Corns> Last time I tried bus spamming between two large cities, it took me about 3 to 4 years to hit vehicle limit in reddit S1
15:40:04 *** starraid has joined #openttd
15:40:41 *** nielsm has joined #openttd
15:40:48 *** sla_ro|master has joined #openttd
15:40:49 <Artea> hmmmmmm
15:41:04 <Artea> it should have a command to reset server password
15:44:39 <starraid> Hey I'm trying to compile JGR 0.30.3 on Linux. I've got as far as actually using "make" and it does all the "[SRC] Compiling *.cpp" but it makes an error "story_gui.o: file not recognised: File truncated" after "[SRC] Linking openttd". Can anyone help me? I'm on Ubuntu server 18.04.2
15:48:15 <peter1138> Run out of disk space?
15:49:44 <peter1138> Try a "make clean" and then "make" again to rebuild all the .o files.
15:50:07 <starraid> I doubt it is disk space, this is a fresh install of Ubuntu on a brand new 120 GB SSD
15:50:19 <starraid> but I will try this, thanks
15:50:20 <andythenorth> is it this? https://www.tt-forums.net/viewtopic.php?p=1220614#p1220614
15:51:04 <starraid> hmmm I don't think so
15:52:43 <peter1138> That error means it tried to build but didn't, and left an empty file there.
15:52:48 <peter1138> Not something that normally happens.
15:53:55 <starraid> while I'm here, how do I make it a dedicated server? It says use the flag "--enable-dedicated" but I couldn't figure out where
15:54:33 <Artea> is in ./configure --enable-dedicated
15:54:45 <Artea> then
15:54:51 <starraid> it doesn't let me do that
15:55:24 *** andythenorth has quit IRC
15:55:25 <Artea> are you using ubuntu files or source ?
15:55:33 <starraid> ?
15:55:39 <Artea> when you downloaded
15:55:52 <Artea> is Ubuntu version or Source version
15:56:02 <starraid> I think it's just Source
15:56:17 <nielsm> are you getting an error message?
15:56:31 <nielsm> or is the computer reaching out with a robot arm and preventing you from typing that command?
15:56:49 <starraid> error message
15:56:56 <nielsm> then share that error :)
15:57:03 <Samu> borkai at 5.06 GiB, still running
15:57:06 <starraid> if it happens again then I will
15:57:23 *** Thedarkb1-T60 has quit IRC
15:57:38 <starraid> do you mean the original "story_gui.o" one or the --enable-dedicated one?
15:57:57 <nielsm> what you get with --enable-dedicated
15:58:15 <starraid> ok, I'll show that when it stops trying to compile again
16:03:36 *** Corns_ has joined #openttd
16:03:47 *** Corns has quit IRC
16:03:51 *** Thedarkb-T60 has joined #openttd
16:06:19 <Samu> why isn't it crashing?
16:06:33 <Samu> seems that the crash isn't related to memory amount
16:08:48 *** andythenorth has joined #openttd
16:09:03 <Samu> heh LordAro that topic rename :(
16:09:16 <Samu> is no longer true
16:12:39 *** Flygon has quit IRC
16:16:04 <Samu> openttd.exe commit memory is resource monitor is ~8.6 GB atm
16:16:22 *** andythenorth has left #openttd
16:16:22 <Samu> in nielsm memory column is 5.29 GiB
16:16:30 <Samu> borkai
16:19:05 <starraid> actually I think it managed to compile sucessfully
16:19:08 <Samu> borkai doesn't want to make more than 500 road vehicles
16:19:55 <Artea> nice, starraid
16:19:58 <Samu> garbage collector stalls are becoming huge... about 7 seconds, at least i think it's the garbage collector
16:20:13 <Artea> with --enable-dedicated ?
16:20:22 <starraid> I don't think so
16:20:45 <Artea> well, I think you need to activate in order to run dedicated server
16:20:52 <Artea> so you will have to compile again
16:20:54 <peter1138> No, you don't.
16:20:59 <Artea> no ?
16:21:00 <starraid> I went to the directory it claims to have put it in, but when I run it it says "Error: No available language packs (invalid versions?)"
16:21:11 <peter1138> It simply disables trying to compile a non-dedicated version.
16:22:25 <starraid> yeah it just complains it has no langauge packs, though when compiling it listed quite a few it compiled
16:22:54 <starraid> and I just add -D as an argument when launching the server to make it dedicated I found out
16:23:39 <Artea> for dedicated server
16:23:44 <Artea> you going need a new cfg
16:24:36 <Samu> oh, bork ai with 501 road vehicles!
16:24:41 <Samu> that's over 500!
16:25:46 *** Thedarkb-T60 has quit IRC
16:29:34 *** supermop_work has quit IRC
16:29:53 <DorpsGek_II> [OpenTTD/OpenTTD] nielsmh updated pull request #7516: Custom allocators for Squirrel https://git.io/fjYfW
16:30:11 <starraid> this is what I get when I try to launch it, along with the files within the directory it put the binary I think https://www.dropbox.com/s/swj0cuqoqbgranp/compile1.PNG?dl=0
16:32:52 <Samu> nielsm, yesterday night, an AI died, and it made it crash in your GetAllocatedMemory()
16:33:01 <Samu> openttd crashed
16:33:22 <Samu> FramerateWindow::DrawElementAllocationsColumn + 230 (D:\OpenTTD\OpenTTD GitHub\OpenTTD\src\framerate_gui.cpp:606)
16:34:06 <Artea> no "" on -c
16:34:15 <Artea> is just -c file.cfg
16:34:42 <Artea> and rest dont know how to help you
16:34:50 <nielsm> Samu maybe something in the framerate window didn't pick up on the ai being crashed
16:34:53 <Artea> I didn't compiled that patch pack
16:37:40 <DorpsGek_II> [OpenTTD/OpenTTD] nielsmh updated pull request #7516: Custom allocators for Squirrel https://git.io/fjYfW
16:37:40 <Samu> try a crashing AI, like AroAI with disabled road vehicles in its config
16:39:18 <Samu> meanwhile, BorkAI - 5.45 GiB
16:44:10 <Artea> starraid
16:44:42 <Artea> nevermind
16:44:54 <Artea> I would going to say to check bundle folder
16:45:06 <Artea> but forgot you're using patch pack :S
16:45:24 *** Corns_ has quit IRC
16:48:28 *** Gustavo6046 has joined #openttd
16:48:43 <DorpsGek_II> [OpenTTD/OpenTTD] SamuXarick commented on pull request #7514: Scale oil refinery edge distance up by map size https://git.io/fjYWN
16:50:46 *** Wormnest has joined #openttd
17:01:26 *** WWacko1976-work has quit IRC
17:03:06 *** Wormnest has quit IRC
17:33:20 <Samu> BorkAI - 5.84 GiB
17:37:03 <nielsm> I wrote an allocator! I hope it works!!
17:37:37 <Samu> i was honestly expecting a crash before 4 GB
17:38:11 <nielsm> it does not work :D
17:38:23 <Samu> don't know what causes a crash in garbage collector
17:38:33 <Samu> it's not the amount it allocates
17:47:50 <Samu> https://imgur.com/56W5phA this is really weird to look at
17:48:09 <Samu> memory usage poe vs openttd
17:49:43 <V453000> musa is python 2 onlyeh
17:49:45 <V453000> :D
17:49:47 <V453000> fuck.
17:50:03 <LordAro> V453000: oh noes
17:50:14 <LordAro> someone should probably resurrect that and put it on the github
17:52:21 *** gelignite has quit IRC
17:56:06 <nielsm> cool, my assert for "tried to handle memory outside the arena it should be using" triggered
17:56:19 <nielsm> so something is wrong about my allocator context switching
17:57:59 <nielsm> ah yeah I see what it is
18:00:18 <V453000> yay new nuts, lets see if I broke more than I fixed :D
18:08:35 <nielsm> no longer crashing during startup, at least that's a beginning
18:19:08 <nielsm> and now it's actually running without crashing :D
18:19:27 <nielsm> of course my first ever allocator is stupid slow :P
18:22:10 <Artea> yay
18:22:21 <Artea> another server in Portugal
18:22:24 <Artea> sad is 1.8.0
18:22:41 *** Thedarkb-T60 has joined #openttd
18:24:55 *** HerzogDeXtEr has joined #openttd
18:31:35 <DorpsGek_II> [OpenTTD/OpenTTD] nielsmh updated pull request #7516: Custom allocators for Squirrel https://git.io/fjYfW
18:31:41 <nielsm> here enjoy babbys first malloc
18:32:05 <nielsm> (currently it just has a fixed size 64 MB arena which will obviously be far too small for real world uses)
18:33:46 <Samu> but it doesn't look like it's a memory amount issue
18:34:12 <Samu> borkai currently at 6.22 GiB
18:34:31 <Samu> at this point, I dunno if I expect a crash
18:34:46 <Samu> maybe it will
18:37:17 <nielsm> it kinda smells like BorkAI is a memory leak...
18:40:55 <Samu> it seems to cache all pathfind results
18:42:33 <Samu> also caches other stuff, cargo acceptance, industries, towns
18:42:38 <nielsm> a cache that does not invalidate items is a fancy name for a memory leak
18:42:55 <Samu> but what really raises mem usage is the RoadTransport
18:43:01 <Samu> in comparison
18:43:13 <Samu> the pathfinder results
18:44:03 <Samu> it then goes through all the results to pick the best, before building a route
18:44:06 <Samu> seems to be what it does
18:44:10 <Samu> didn't verify in code
18:44:28 <Samu> but yeah, it doesn't look like it's clearing the cache
18:44:53 <Samu> keeps the results maybe for posterior use? I dunno
18:52:18 <DorpsGek_II> [OpenTTD/OpenTTD] nielsmh updated pull request #7516: Custom allocators for Squirrel https://git.io/fjYfW
18:53:01 *** gelignite has joined #openttd
18:54:33 <nielsm> hmm, supposedly MogulAI has allocated 100 MB, more than the heap size...
18:54:37 <nielsm> wtf
18:56:31 <Samu> :)
19:00:39 <nielsm> ...oh
19:00:47 <nielsm> I forgot to update usage in Free
19:02:39 <DorpsGek_II> [OpenTTD/OpenTTD] nielsmh updated pull request #7516: Custom allocators for Squirrel https://git.io/fjYfW
19:04:44 <LordAro> lol
19:05:45 <V453000> is there some setting for maximum amount of newgrf stations or something?
19:07:52 <V453000> oh they're just missing labels in the station menu :0
19:08:25 <V453000> weird
19:11:15 <LordAro> V453000: upgrade to 1.9.1
19:11:43 <V453000> https://dev.openttdcoop.org/attachments/download/9403/wtf-station-list.png
19:11:45 <V453000> oh
19:11:48 <V453000> (:
19:11:53 <LordAro> :))
19:11:57 <V453000> will have to fix our updater script for that :D
19:12:33 <nielsm> hmm, allocating a 2 GB heap for each script is kinda slow
19:12:36 <nielsm> (in a debug build)
19:12:57 <peter1138> Hi.
19:13:00 <LordAro> strange that
19:13:31 * peter1138 ponders running an NRT server.
19:14:26 * peter1138 ponders having some beer.
19:14:44 <peter1138> Purchased from the local brewery, came in 2 litre plastic milk bottle :p
19:14:45 <Samu> what u say about that mem configurable?
19:15:05 <Samu> making the arena a configurable amount in config file
19:15:14 <Samu> bah my english today is bad
19:15:50 <LordAro> nielsm: why is an arena allocator necessary? what's wrong with just keeping track of amount of allocation and failing/erroring if it tries to go over that limit?
19:16:12 <nielsm> maybe it's not necessary
19:16:22 <nielsm> I'm just having fun
19:16:31 <peter1138> I wonder if it would be become possible to save the memory state of a VM/
19:16:35 <LordAro> fun? in a PR? shocking.
19:16:45 <Samu> AIs are fun, confirmed. nielsm AI soon
19:16:48 <peter1138> That would mean all the saveload crap AIs have to do would be unnecessary.
19:16:49 * LordAro hands peter1138 a 500MB save file
19:17:01 <peter1138> LordAro, true, but...
19:17:21 <LordAro> it could be compressible, but i wouldn't expect much
19:17:23 <peter1138> Limit AIs to 1MB each? :D
19:17:26 <nielsm> saving a memory image isn't quite feasible, it'd need a lot of pointer fixuppery
19:17:33 <peter1138> Oh, true.
19:17:40 <peter1138> Hmm, well.
19:19:28 <Samu> have you tried testing in a 32_bit openttd.exe?
19:21:00 <peter1138> So this AI sign in the top corner of a map...
19:21:07 <peter1138> With garbage in it.
19:21:15 <Samu> that's SCP
19:21:31 <peter1138> Which is?
19:21:40 <peter1138> Not Secure Copy Protocol.
19:22:03 <Samu> it's for NoCarGoal or CompanyValue GS
19:22:10 <Samu> ask zuu
19:22:15 <peter1138> What does SCP stand for?
19:22:18 <peter1138> And what does it do?
19:22:35 <Samu> script communication protocol
19:22:46 <Samu> communicate AI-GS via signs
19:22:49 <peter1138> I'm not running a GS so it's neither of them.
19:26:18 <nielsm> I guess the main advantage of an arena allocator would be that you can kill a squirrel VM with a single deallocation
19:27:34 <peter1138> Hmm
19:27:39 <nielsm> https://0x0.st/zNUk.png <-- that's a lot of commit!
19:27:39 *** glx has joined #openttd
19:27:39 *** ChanServ sets mode: +v glx
19:28:10 <peter1138> WrightAI fails... cos it's 1880 :D
19:28:32 <peter1138> However, it managed to build an airport, even though there are no airports available.
19:28:37 <peter1138> I guess that could be fixed.
19:28:52 <Samu> you mean aircraft?
19:29:04 <peter1138> Yes.
19:29:23 <peter1138> As a player, I can't build them.
19:29:38 <peter1138> So I guess that is GUI-side :/
19:31:10 *** andythenorth has joined #openttd
19:31:23 <peter1138> Hi
19:31:41 <Samu> hi?
19:31:43 <Samu> hi
19:32:05 <peter1138> Hmm.
19:32:11 <peter1138> Infrastructure window needs love :-)
19:32:41 <Samu> borkai approaching 7 GiB soon
19:32:46 <nielsm> okay time to try running a release build for a while
19:33:16 <peter1138> http://fuzzle.org/~petern/ottd/nrt6.png
19:33:23 <Samu> bored of waiting for a crash that may or may not happen
19:33:27 <nielsm> lol
19:33:47 <glx> Samu: how much memory for now ?
19:33:57 <nielsm> electrified road, rubber boots required for pedestrian use
19:34:02 <andythenorth> yo
19:34:09 <Samu> 6.95 GiB
19:34:14 <peter1138> I wonder if it's that sign removal bug manifesting as a crash elsewhere? :p
19:34:23 <peter1138> nielsm, trolley bus!
19:34:36 <glx> so the memory is not the cause of the crash
19:34:43 <Samu> nop
19:34:56 <glx> it's about how garbage collector works I think
19:35:59 <Samu> garbage collector stalls are approaching 10 seconds each
19:36:04 <Samu> but doesn't crash
19:37:58 <nielsm> does windows task manager roughly agree with the memory usage figures in the framerate window?
19:38:18 <Samu> not sure
19:39:23 <Samu> https://imgur.com/aizBcjw
19:39:27 <Samu> looks like that
19:40:06 <nielsm> it's not entirely wrong at least
19:42:31 <glx> add the map, the vehicles, the stations, the orders, all the debug messages, ~2Go for OpenTTD itself not counting the VM seems right yes
19:43:52 <glx> and all the cargo packets ;)
19:46:01 *** Progman has joined #openttd
19:46:01 <peter1138> Hmm, so... scroll bar on this window I think :/
19:47:01 <peter1138> http://fuzzle.org/~petern/ottd/nrt7.png
19:47:04 <peter1138> Bit better, but...
19:47:17 <andythenorth> probs a scroll bar :P
19:47:35 <andythenorth> do we need to show pieces where the count is 0?
19:47:39 <andythenorth> it's not information
19:47:45 <Eddi|zuHause> peter1138: a collapsible tree?
19:48:04 <andythenorth> hiding 0 count pieces, doesn't solve any actual problems, just adds complexity :P
19:48:51 <Eddi|zuHause> (with compound statistics)
19:57:20 *** Wolf01 has joined #openttd
19:58:36 <Samu> glx, could gc crash be the result of memory fragmentation? or it's nothing to do with that?
19:59:57 * peter1138 ponders doing dinrar.
20:00:53 <Samu> woa, for the first time borkai reduced memory usage!
20:01:04 <Samu> 6.96 GiB -> 6.95 GiB
20:01:27 <dwfreed> something something margin of error
20:02:26 <Samu> i also dont see him pathfinding more routes
20:02:37 <Samu> maybe it pathfound them all
20:02:42 <Samu> i dunno, lol
20:03:32 <nielsm> can someone answer this? https://www.tt-forums.net/viewtopic.php?f=68&t=85150
20:05:54 <Samu> I was wrong, it just started more pathfinds
20:06:03 <peter1138> Ooh, a crash.
20:06:57 <Samu> gonna play path of exile for a bit, while there's still ram
20:09:31 *** Wormnest has joined #openttd
20:11:11 *** Eddi|zuHause2 has joined #openttd
20:15:56 *** Eddi|zuHause has quit IRC
20:28:41 *** Eddi|zuHause2 is now known as Eddi|zuHause
20:30:38 *** Thedarkb-T60 has quit IRC
20:35:13 <DorpsGek_II> [OpenTTD/OpenTTD] PeterN opened pull request #7518: Fix #7235: Ensure catchment area of neutral station covers entire industry. https://git.io/fjYEt
20:46:06 *** Thedarkb-T60 has joined #openttd
21:02:00 <andythenorth> well
21:02:10 <andythenorth> I should probably work
21:04:31 <peter1138> You should work on NRT.
21:05:02 <Wolf01> I should work on NRT too
21:05:46 <Wolf01> But I don't even know if I recognize it :P
21:06:33 *** Wormnest has quit IRC
21:06:59 <peter1138> What did you want to do to it?
21:07:26 <peter1138> There is a... slightly... minor... change.
21:07:56 <Wolf01> Town road types
21:08:59 *** HerzogDeXtEr has quit IRC
21:10:20 <peter1138> Oh, that's... kinda done.
21:10:57 <Wolf01> Really? I should compile a more recent version then
21:11:10 <peter1138> I recommend current?
21:13:14 <peter1138> There's a vague heuristic which could probably do with improvement :p
21:25:27 <peter1138> Wolf01, I guess I've been a bit keen in squashing it all, there's quite a few bug fixes other the past months.
21:27:54 <DorpsGek_II> [OpenTTD/OpenTTD] michicc approved pull request #7518: Fix #7235: Ensure catchment area of neutral station covers entire industry. https://git.io/fjYEy
21:29:11 <Wolf01> Nice
21:30:11 <DorpsGek_II> [OpenTTD/OpenTTD] PeterN merged pull request #7518: Fix #7235: Ensure catchment area of neutral station covers entire industry. https://git.io/fjYEt
21:35:22 *** arikover has joined #openttd
21:36:42 *** Thedarkb1-T60 has joined #openttd
21:40:09 *** sla_ro|master has quit IRC
21:42:16 *** Gustavo6046 has quit IRC
21:42:28 *** Thedarkb-T60 has quit IRC
21:42:39 *** Gustavo6046 has joined #openttd
21:56:37 * andythenorth got distracted
21:56:47 <andythenorth> Wolf01: this is really good https://virantha.github.io/bricknil/index.html
21:59:36 <V453000> :0
22:11:30 <peter1138> Is it a newgrf?
22:14:56 <andythenorth> kinda
22:15:03 <Wolf01> andythenorth: bookmarked, thanks
22:15:12 <andythenorth> I have it running
22:15:22 <andythenorth> there are alternatives but none were as simple
22:17:46 <Wolf01> Indeed, it looks readable even to me
22:32:45 *** gareppa has joined #openttd
22:38:06 <Samu> back
22:38:16 <Samu> BorkAi at 7.07 GiB, no crash
22:39:15 <acklen> why are you expecting it to crash?
22:39:32 <acklen> as long as there's enough memory on your system, it should continue to run...
22:39:37 <DorpsGek_II> [OpenTTD/OpenTTD] nielsmh updated pull request #7516: Custom allocators for Squirrel https://git.io/fjYfW
22:40:08 <nielsm> the crash is probably not related to memory exhaustion/allocation failure then
22:40:25 <acklen> ah, you're trying to reproduce a crash
22:40:34 <nielsm> and more likely (as glx has been guessing at) a problem with the gc
22:41:14 <Samu> seems to be reproducible with NoCAB
22:41:15 <nielsm> someone mentioned the gc might be a recursive mark-and-sweep which can definitely have issues with complex or deep object graphs
22:41:44 <Samu> what does NoCAB do different than BorkAI?
22:43:15 <glx> maybe NoCAB use more local arrays than BorkAI
22:43:57 <glx> anyway a good GC should handle any kind of data without crashing
22:45:16 <Samu> BorkAI at 7.05 GiB, receeding, at times
22:46:16 *** Supercheese has joined #openttd
22:46:19 <glx> but high number of objects to be garbage collected, and recursion can clearly go wrong
22:46:25 <nielsm> yay linux is compiling again, and passing the regressions
22:47:54 <nielsm> hmm macos is being very slow on regressions
22:48:57 <glx> regression is slow for me locally but may be related to scanning ~1800 newgrfs ;)
22:49:58 <LordAro> nielsm: perhaps someone should try upgrading squirrel more thoroughly than TB did :)
22:50:16 <LordAro> @seen Truebrain
22:50:16 <DorpsGek> LordAro: Truebrain was last seen in #openttd 2 days, 2 hours, 49 minutes, and 11 seconds ago: <TrueBrain> if that is the excuse, I am done
22:50:19 <LordAro> :(
22:50:42 <glx> isn't there a compatibility issue for current script with newer squirrel ?
22:51:21 <LordAro> "possibly"
22:51:41 <LordAro> i don't think anyone's got far enough to prove as such
22:51:58 <nielsm> you mean upgradint to squirrel 3?
22:52:18 <LordAro> yeah
22:53:24 *** gelignite has quit IRC
22:54:15 <glx> the main issue is to merge our local changes I think
22:55:03 <LordAro> mm
22:55:11 <LordAro> the changes are not insiginificant
22:55:54 <nielsm> I definitely remember lua 5.0 to 5.1 upgrading being incompatible at the syntax level, and there's also been some issues with lua 5.1 to 5.2 though not as great
22:56:16 <nielsm> squirrel-lang.org doesn't seem to have any documentation on the differences in the language between version 2, 3 and 3.1
22:56:50 <glx> squirrel doc is not the best ;)
23:00:14 <nielsm> yeah the syntax is not compatible between sq 2 and 3
23:00:24 <nielsm> there's keywords both added and removed
23:01:15 <peter1138> And if it's not compatible, why sq?
23:01:21 *** gareppa has quit IRC
23:03:06 <peter1138> Oh right, that setting is client-side only. hMM.
23:03:07 <peter1138> Hmm.
23:06:26 <LordAro> nielsm: are there keyword differences? i didn't see any...
23:06:35 <nielsm> so upgrading to squirrel 3 would mean either hacking up the parser so it still accepts the old syntax and somehow translates it to new syntax/semantics, or just announcing "guess all your GS and AI no longer work"
23:07:05 <LordAro> unless it's a keyword that no one had ever used
23:08:14 <nielsm> "delegate", "vargc", "vargv" removed
23:08:26 *** Progman has quit IRC
23:09:18 <peter1138> Should "Disable infrastructure building when no suitable vehicles are available" be... a server setting?
23:09:56 <nielsm> "base" added, and also __LINE__ and __FILES__ are keywords since squirrel 3.1
23:10:54 <LordAro> i feel like these are either uncommon enough to not worry about
23:11:08 <nielsm> and with the poor documentation who knows what unexpected semantic changes may have been made
23:11:21 <LordAro> s/either//
23:11:45 <LordAro> still think it's worth trying to play with any way
23:11:50 <peter1138> Terron AI uses delegate
23:11:57 <LordAro> damn.
23:12:08 <peter1138> return delegate new_container : {}; // returns "{}"
23:12:13 <peter1138> (No really?)
23:12:24 <LordAro> ...what
23:12:27 <peter1138> So, er, what's it replaced with? heh
23:12:37 <LordAro> is that a lambda function thing?
23:13:25 <peter1138> Anyway, it's GPL so can be fixed :p
23:13:36 <LordAro> lol
23:14:54 * peter1138 'accidentally' downloads everything available.
23:14:55 <nielsm> delegate keyword is apparently used to set the "parent" for a table
23:15:18 <nielsm> which is kinda like inheritance I guess?
23:15:58 <nielsm> it's replaced with a function call x.setdelegate()
23:16:22 <nielsm> and in sq 2 you retrieved the delegate via x.parent, in sq 3 you do it via x.getdelegate()
23:17:01 <peter1138> Only 3 files have the word delegate in them./
23:17:31 <glx> looking in current squirrel on github, nothing really changed in GC code
23:18:31 <peter1138> Not sure if the other 2 are actually squirrel delegates, or just a variable/method named delegate.
23:19:58 <peter1138> vargc/vargv used a bit more
23:20:20 *** andythenorth has left #openttd
23:22:41 <nielsm> so there's probably nothing to gain other than syntax trouble
23:22:46 <nielsm> if the gc isn't any different
23:23:04 <nielsm> unless there was a chance to get JIT? supposedly that exists in some form
23:23:16 <nielsm> (JIT to native code, presumably)
23:23:51 <peter1138> vargv still exists
23:23:58 <peter1138> vargc is replaced with vargv.len()
23:24:19 <nielsm> anyway it's way late and I should sleep,
23:24:21 <nielsm> gn
23:24:26 <peter1138> May be possible to fudge that one.
23:25:41 *** Thedarkb1-T60 has quit IRC
23:31:19 *** starraid has quit IRC
23:32:25 *** nielsm has quit IRC
23:44:52 *** Wolf01 has quit IRC