Back to Home / #openttd / 2019 / 04 / Prev Day | Next Day
#openttd IRC Logs for 2019-04-15

---Logopened Mon Apr 15 00:00:57 2019
00:59-!-Supercheese [] has quit [Read error: Connection reset by peer]
00:59-!-Supercheese [] has joined #openttd
00:59-!-Supercheese is "Caseum" on #openttd
01:46<DorpsGek_II>[OpenTTD/OpenTTD] PeterN commented on pull request #7270: Introduce CMake (and removing all other project-related code)
02:31-!-Smedles [] has joined #openttd
02:31-!-Smedles is "Paul Smedley" on #openttd
02:42-!-andythenorth [] has joined #openttd
02:42-!-andythenorth is "andythenorth" on #openttd
03:25<DorpsGek_II>[OpenTTD/OpenTTD] PeterN commented on pull request #7512: Replace SmallStackSafeStackAlloc and AutoFreePtr
03:58<DorpsGek_II>[OpenTTD/OpenTTD] PeterN commented on issue #7513: OpenTTD closes itself with no crash dump
04:09-!-Supercheese [] has quit [Quit: Valete omnes]
04:37-!-andythenorth is now known as Guest284
04:37-!-andythenorth [] has joined #openttd
04:37-!-andythenorth is "andythenorth" on #openttd
04:38-!-Guest284 [] has quit [Ping timeout: 480 seconds]
04:40-!-andythenorth [] has quit []
05:08<Artea>I reinstalled CentOS 7 in VPS
05:08<Artea>is giving me errors compiling UnrealIRCd
05:08<Artea>I was so fire up yesterday
05:08<Artea>thinking I would make my test irc server
05:08<@peter1138>Missing dev packages?
05:09<Artea>OpenSSL has been a b**** on CentOS 7
05:09<Artea>is using very old version, 1.0.2k
05:10<Artea>and error that gave me, was due to OpenSSL binary not be installed
05:10<@peter1138>See the problem is you are using CentOS, not Debian.
05:10<@peter1138>But you probably want an openssl dev package, not just the binaries.
05:10<Artea>I tried a long time ago
05:10<Artea>and I liked so I sticked with it
05:10<Artea>but was CentOS 6
05:11<@peter1138>I looked after a CentOS machine for a while. It was horrible. I Debianed it eventually.
05:11<Artea>I installed openssl-libs
05:11<@peter1138>openssl-libs is not dev packages, I would guess.
05:11<Artea>it seems like OS don't know OpenSSL is there
05:12<Artea>it's installed too
05:12<Artea>I will be back later
05:12<@peter1138>Come back with Debian ;)
05:12<Artea>or Ubuntu, no ?
05:13<@peter1138>Nah, that's just a 3rd rate imposter.
05:13<@peter1138>Feel free to ignore me about this, I'm just a little bit biased :)
05:14<Artea>I dont ignore people for talking and helping me out :)
05:16-!-Artea [~Lufia@2001:41d0:52:d00::802] has quit [Quit: ZNC 1.6.2 -]
05:31-!-andythenorth [~andytheno@] has joined #openttd
05:31-!-andythenorth is "andythenorth" on #openttd
05:31-!-andythenorth [~andytheno@] has left #openttd []
05:35-!-Artea [] has joined #openttd
05:35-!-Artea is "..." on #openttd
05:35<Xaroth>Ubuntu is fine
05:35-!-Artea is now known as _Artea
05:36<_Artea> Reinstalling the VPS (95%)
05:38<_Artea>I really wanna test out IRC Services under MySQL DB
05:38<_Artea>I miss that so much
05:47<_Artea>it worked
05:47<_Artea>made the SSL cert for UnrealIRCd in CentOS 6
06:10<DorpsGek_II>[OpenTTD/OpenTTD] nielsmh commented on issue #7513: OpenTTD closes itself with no crash dump
06:19<DorpsGek_II>[OpenTTD/OpenTTD] PeterN commented on issue #7513: OpenTTD closes itself with no crash dump
06:22<_Artea>I installed UnrealIRCd with SSL support :D
06:23<_Artea>now install the rest of the stuff
07:07-!-juzza1 [] has quit [Read error: Connection reset by peer]
07:10-!-juzza1 [] has joined #openttd
07:10-!-juzza1 is "juzza1" on #openttd
07:13-!-gelignite [] has joined #openttd
07:13-!-gelignite is "gelignite" on #openttd
07:16-!-Corns343434 [~androirc7@] has joined #openttd
07:16-!-Corns343434 is "Android IRC Client" on #openttd #/r/openttd
07:22<Corns343434>Patch idea, map Generation creates roads that connect every town together
07:23<Corns343434>Like in transport fever or Simon
07:23<@peter1138>"There's a gamescript for that"
07:23<@peter1138>But yeah, if you want to make a patch and PR, go for it.
07:24<Corns343434>Wait is there actually a game script for it already? I know about the AI that does it kinda
07:24<DorpsGek_II>[OpenTTD/OpenTTD] JGRennison commented on issue #7513: OpenTTD closes itself with no crash dump
07:45<@peter1138>Not sure, I thought there was.
07:57-!-Corns [~androirc7@] has joined #openttd
07:57-!-Corns is "Android IRC Client" on #openttd #/r/openttd
07:59-!-Corns [~androirc7@] has left #openttd []
08:02-!-Corns343434 [~androirc7@] has quit [Ping timeout: 480 seconds]
08:06-!-Artea [] has joined #openttd
08:06-!-Artea is "Got ZNC?" on #openttd
08:19-!-_Artea [] has quit []
08:27<Artea>I'm tired
08:28<Artea>but already got stuff sorted out :)
09:08-!-Samu [] has joined #openttd
09:08-!-Samu is "realname" on #openttd
09:27<Samu>I've been thinking about this line
09:28<Samu>check again in a year can be at times annoying
09:34<Samu>making it checking daily can also be annoying, if the start_date of the next ai is also a big number
09:35<Samu>how to solve... hmmm thinnk
09:36<Xaroth>monthly check?
09:37<Samu>it should check the start_date of the AI once an AI can start and reset the counter
09:42-!-nielsm [] has joined #openttd
09:42-!-nielsm is "Niels Martin Hansen" on #openttd
09:43<Samu>it should return a special number that is to be treated as "unable to check at the moment"
09:44<Samu>once it gets a value that is not the special number, it then sets the daily countdown
09:55<Samu>_next_competitor_start is a uint
09:56<Samu>GetStartNextTime is a int
09:57<Samu>what will happen if GetStartNextTime returns UINT_MAX?
09:58<Samu>what exactly is returned?
10:01-!-Flygon [] has quit [Quit: A toaster's basically a soldering iron designed to toast bread]
10:04<Samu>-1 is then turned to 1 tick
10:05<Samu>can't do that
10:05<Samu>i dont like it
10:08<Samu>@calc 0xffffffff / 74
10:08<@DorpsGek>Samu: 58040098.5811
10:19-!-Corns [~oftc-webi@] has joined #openttd
10:19-!-Corns is "OFTC WebIRC Client" on #openttd
10:20<Corns>hello update: there is no city-road building gamescript
10:22<Corns>author is on hiatus
10:25<Corns>oh hey thanks :)
10:28<Samu>oh snap, CityConnected is an AI
10:28<Samu>i gave u a GS lib
10:30<Samu>i fail at helping
10:31<Samu> it only lists version 3 :(
10:32<Samu>no idea how to download v2 then
10:32<Corns>oh LOL
10:32<Corns>dw i'm just reverse engineering it for a PR
10:34<Artea>can't setup sendmail :(
10:34<Artea>I sux configuring VPS
10:37<Samu>oh, INT_MAX is also a thing!
10:38<Samu>solves needlessly conversions from int to uint
10:38<DorpsGek_II>[OpenTTD/OpenTTD] glx22 commented on pull request #7270: Introduce CMake (and removing all other project-related code)
10:38<Corns>were you relying on uint = -1
10:40<Samu> if (_next_competitor_start == 0 || _next_competitor_start == (INT_MAX / DAY_TICKS) * DAY_TICKS - 1) {
10:41<Samu>- 1 would make it check daily
10:41<Samu>if (_next_competitor_start == 0 || _next_competitor_start == (INT_MAX / DAY_TICKS) * DAY_TICKS - DAY_TICKS) {
10:41<Samu>maybe this is better
10:42<Samu>-1 wouldn't*
10:42-!-glx [] has joined #openttd
10:42-!-mode/#openttd [+v glx] by ChanServ
10:42-!-glx is "Loïc GUILLOUX" on #openttd.noai #openttd.notice +#openttd
10:42-!-Wormnest [~Wormnest@] has joined #openttd
10:42-!-Wormnest is "Wormnest" on #openttd
10:44<Samu>@calc INT_MAX / 74
10:44<@DorpsGek>Samu: Error: There's really no reason why you should have underscores or brackets in your mathematical expression. Please remove them.
10:44<Samu>@calc 2147483647 / 74
10:44<@DorpsGek>Samu: 29020049.2838
10:44<Samu>@calc 29020049 * 74
10:44<@DorpsGek>Samu: 2147483626
10:45<Samu>@calc 21474863626 - 74
10:45<@DorpsGek>Samu: 21474863552
10:47<Samu>@calc 2147483626 - 74
10:47<@DorpsGek>Samu: 2147483552
10:50<milek7>Artea: why sendmail?
10:50<@peter1138>Probably doesn't know any better.
10:51<@peter1138>Artea, don't use sendmail, simply.
10:53<Artea>I need a break from VPS now
10:53<Corns>Are commit messages supposed to be typed in present tense?
10:53<Artea>I think I going screw the things up if I continue
10:53<Artea>at least have my IRCd working with SSL
10:54<milek7>use exim or postfix instead of sendmail
10:58-!-Thedarkb-T60 [] has joined #openttd
10:58-!-Thedarkb-T60 is "realname" on #oolite #openttd
11:00-!-Wormnest [~Wormnest@] has quit [Read error: Connection reset by peer]
11:00<Artea>I was thinking of Postfix
11:00<Artea>but dont know how to config
11:00<Artea>and this CentOS 7
11:00<Artea>I like it
11:00<Artea>but is a pain in the backhead
11:01-!-Wormnest [~Wormnest@] has joined #openttd
11:01-!-Wormnest is "Wormnest" on #openttd
11:23-!-WWacko1976-work [] has quit [Ping timeout: 480 seconds]
11:34-!-acklen [] has quit [Quit: leaving]
11:34<Samu>i need an english expert
11:34<Samu> /* Currently no AI can be started. Return an indefinited number of days. */
11:34<Samu> return INT_MAX / DAY_TICKS;
11:35<nielsm>that's not a word
11:35<nielsm>infinite, indefinite, undefined
11:35<Samu>unknown? indeterminate? unsettled? unfixed?
11:36<nielsm>but undefined is a tricky word
11:36<nielsm>because in programming context it tends to have a specific meaning
11:37<nielsm>"anything can happen/any value is possible, there is no rule to it"
11:37<nielsm>also is this a sentinel value that will need to be compared against?
11:38<Samu>if this value is set, code handles it differently than a real value
11:39<nielsm>if this is a value you'll actually need to check "is it the sentinel value" then make it a defined constant
11:39<nielsm>and if it may need to be transmitted over the network in some way, make sure it does not depend on compiler-defined values such as INT_MAX
11:40<Samu>hmm, can't be INT_MAX then?
11:40<Samu>well, some value higher than 3600
11:40<Samu>or 3600 * DAY_TICKS
11:41<nielsm>it's dangerous to assume that INT_MAX has the same value on any compiler
11:41<Samu>have to check
11:41-!-HerzogDeXtEr [] has joined #openttd
11:41-!-HerzogDeXtEr is "purple" on #openttd
11:42<Samu>max permitted value for start_date is 3600
11:42<Samu>so, anything above that range
11:47<Samu>return AI::START_NEXT_MAX + DAY_TICKS;
11:47<Samu>let me see
11:58<Samu>crap, this is already days
11:58<Samu>return AI::START_NEXT_MAX + 1;
11:59<Samu>i was adding 74 days lol
12:01-!-Corns [~oftc-webi@] has quit [Remote host closed the connection]
12:04<Samu>does it still warrant a defined constant? I think not
12:04<Samu>if (_next_competitor_start == 0 || _next_competitor_start == AI::START_NEXT_MAX * DAY_TICKS) {
12:04<Samu>return AI::START_NEXT_MAX + 1;
12:04<Samu>that's how it's being used
12:05<Samu>_next_competitor_start = max(1, AI::GetStartNextTime() * DAY_TICKS);
12:06<Samu>if (_game_mode != GM_MENU && AI::CanStartNew() && --_next_competitor_start == 0) {
12:06<Samu>it will never reach 0
12:06-!-acklen [] has joined #openttd
12:06-!-acklen is "Matt" on #openttd
12:07<Samu>it won't use the YEARLY check counter
12:07<DorpsGek_II>[OpenTTD/OpenTTD] nielsmh opened pull request #7514: Scale oil refinery edge distance up by map size
12:08<Samu>every 74 ticks it rechecks if there's an AI that can start
12:09<Samu>if there is, it first restarts the counter with that AI's start_date value
12:09<Samu>and now the value is no longer going to be 3600, so, it will reach 0, which is when the company starts
12:10-!-Thedarkb1-X40 [] has joined #openttd
12:10-!-Thedarkb1-X40 is "realname" on #openttd #/r/openttd #oolite
12:11-!-Thedarkb1-T60 [] has joined #openttd
12:11-!-Thedarkb1-T60 is "realname" on #openttd #oolite
12:13<Samu>what it was doing was: check every 365 * 74 ticks if it could start next AI. And once that counter reached 0, it would try to start an AI, without caring about the start_date
12:14<Samu>if it couldn't start, another 365*74 countdown was started
12:14-!-Thedarkb-X40 [] has quit [Ping timeout: 480 seconds]
12:14-!-Thedarkb-T60 [] has quit [Ping timeout: 480 seconds]
12:18<Artea>that is why AI dont start if start_date = 1 ?
12:21<Samu>it happens when there's no more company slots for AIs to start
12:21<Samu>so, 15 companies
12:22<Samu>if then a company is removed, the counter was not reset
12:22<Samu>it still isn't, but now it's checked daily
12:22<Samu>instead of ... having to wait for the remaining countdown
12:22<Samu>which could be anywhere from 1 to 365 * 74
12:24<Artea>I not sure
12:24<Artea>AIAI = start_date=1
12:24<Artea>isnt by days ?
12:25<Samu>well, there is random deviation
12:25<Samu>can add up to +60 to that
12:25<Samu>it's a bit complex
12:25<Samu>but the problem i'm solving is not that
12:26<Samu>it's only really happening when there's no more room for extra companies
12:30-!-sla_ro|master [slamaster@] has joined #openttd
12:30-!-sla_ro|master is "slamaster" on #sla #openttd
12:33-!-Supercheese [] has joined #openttd
12:33-!-Supercheese is "Supercheese" on #openttd
12:34-!-Progman [] has joined #openttd
12:34-!-Progman is "Peter Henschel" on #openttd
12:43<Samu>i'm so bad at comments, i'm gonna need help
12:48<Samu>crap, i submited to master, stupid me
12:48<Samu>how to undo?
12:51<Samu>rebase -i drop ?
12:54<Samu>omg i can't believe i commited the same mistake twice
12:55<Artea>How to "undo" rebasing commits ?
12:55<nielsm>use the reflog
12:55<+glx>only one commit ?
12:56<+glx>git reset HEAD^
12:56<+glx>keep the changes
12:56<Samu>i went with rebase -i and dropped :(
12:56<nielsm>"git reflog" shows all the commit hashes that have been HEAD so you can reset your branches to one of those
12:56<rubenwardy>git reset --hard HEAD~1
12:56<+glx>no --hard removes the changes
12:57<rubenwardy>or soft
12:57<nielsm>uh git reset HEAD^ will just remove the top commit, it won't undo whatever a rebase did
12:57<nielsm>it won't get you dropped commits back
12:57<nielsm>nor will it un-squash commits
12:58<+glx>but it's enough if there's only one commit
12:58<nielsm>no because it will just remove the top commit
12:58<nielsm>it won't undo the rebase
12:59<nielsm>it won't restore the old tree
12:59<Samu>i typed git reflog, how to get out of this?
12:59<Samu>ctrl-c ?
13:00<Eddi|zuHause>the reflog will tell the ID where the rebase started, then use reset with that ID
13:03<nielsm>1>------ Build started: Project: version, Configuration: Debug Win32 ------
13:03<nielsm>1>Error HRESULT E_FAIL has been returned from a call to a COM component.
13:03<nielsm>and then my entire build fails
13:04<Samu>ah, i had that when i updated visual studio
13:04<Samu>i solved it by removing ... uhm... some files
13:04<Samu>forgot where
13:07<Samu>v16 for me
13:07<Samu>not v15
13:07<nielsm>hmm yeah removing the suo did fix it
13:15-!-Wolf01 [] has joined #openttd
13:15-!-Wolf01 is "Wolf01" on #openttd
13:25<V453000>arrived to the end of 55k lines of nuts.nml :D ofc I missed some things ._.
13:25<Eddi|zuHause>why would you go through that manually?
13:29<+glx>yeah I got this error too when I upgraded VS2019
13:29<nielsm>he's... nuts?
13:30<+glx>Sacro: v15 is 2017
13:31<@LordAro>Samu: &
13:33<DorpsGek_II>[OpenTTD/OpenTTD] SamuXarick opened pull request #7515: Fix: Really check for start_date once an AI company slot becomes available.
13:33<Samu>i fail at explanations
13:33<Samu>descriptions, comments, etc...
13:34<Samu>who can help?
13:36<Samu>basically, if there's no slots, it checks daily, using the interval 3601 - 3600
13:36<Samu>and never reaches 0
13:37<Samu>if it gets a start_date lower than that 3601-3600 interval, then the real countdown starts, using that start_date value. When it reaches 0, it tries to make ai company
13:39<+glx>say that in the PR :)
13:40<@peter1138>Hmm, cold fnigers
13:41<Samu>i could make it check every tick
13:42<Samu>for now it's checking every 74 ticks
13:42<Samu>which is what truebrain likes
13:43<Samu>_next_competitor_start == (AI::START_NEXT_MAX + 1) * DAY_TICKS - 1 to check every tick
13:45-!-HerzogDeXtEr [] has quit [Read error: Connection reset by peer]
13:58*peter1138 fudges with road removal/conversion costs.
14:00<@peter1138>Heh, AIs running trams all over the place instead of trains.
14:03*peter1138 blasts a bit of Foxtrot for old-times sake.
14:03<@peter1138>@seen belugas
14:03<@DorpsGek>peter1138: belugas was last seen in #openttd 2 years, 2 weeks, 0 days, 21 hours, 44 minutes, and 37 seconds ago: <Belugas> yeah, a birthday :) a good friend of mine!
14:04*nielsm works on another try at keeping track of squirrel allocations
14:09*peter1138 ponders dinner
14:10<@LordAro>peter1138: where's the bike?
14:12<@peter1138>At the shop. Gear cable snapped and I cba doing it myself.
14:13<@peter1138>These new-fangled brifters and internal cable routing are too much for me :p
14:13<@peter1138>I can cope with down-tube friction shifters.
14:15<Samu>cat !
14:15<@peter1138>WAITING FOR BATTLE
14:15<@peter1138>[[epic instrumental-section]]
14:15-!-APTX [~APTX@2001:470:24:137f:2ff:ffff:fe00:1] has quit [Quit: No Ping reply in 180 seconds.]
14:16-!-APTX [~APTX@2001:470:24:137f:2ff:ffff:fe00:1] has joined #openttd
14:16-!-APTX is "APTX" on #kernelnewbies #openttd
14:17<@LordAro>peter1138: oh dear
14:17<@peter1138>I wonder, should road and tram vehicles be separated in the UI?
14:18<@peter1138>Nothing major, I decided to walk instead of drive so I can pig out on more food ;)
14:19<nielsm>something happens!
14:20<@peter1138>Nice work.
14:20-!-andythenorth [] has joined #openttd
14:20-!-andythenorth is "andythenorth" on #openttd
14:20<@peter1138>Uh oh, this guy again
14:20<nielsm>I'm not sure if it context switches the allocator correctly
14:20<nielsm>but at least it measures something :P
14:22<@peter1138>I got as far as simple counting in the console, but had some weird values.
14:24<nielsm>now also featuring GS
14:25<@peter1138>Now run one of Samu's AIs :p
14:25<Samu>ohhh, memory!
14:26<@peter1138>I suppose you *could* count the memory used by vehicles etc... but... eh... no.
14:27<@peter1138>That's simple anyway, count * sizeof train etc
14:27<nielsm>well yeah
14:27<nielsm>unless we let newgrf allocate arbitrary memory :P
14:28<@peter1138>Those varaction chains add up ;)
14:30<V453000>Eddi|zuHause: adding support for 1 cargo to all vehicles :D and let's say the code isn't exactly clean.
14:31<nielsm>there's a branch
14:34<nielsm>make a PR of it yet?
14:35<Artea>for who adviced not use sendmail
14:36<Artea>I'm busted
14:36<Artea>seems I need to use it in IRC Services
14:40<DorpsGek_II>[OpenTTD/OpenTTD] nielsmh opened pull request #7516: Custom allocators for Squirrel
14:44<Samu>gonna test
14:45<@peter1138>Artea, no, you don't need *sendmail*
14:46<Artea>I going need for Anope IRC Services apparently
14:47<milek7>'sendmail - Postfix to Sendmail compatibility interface'
14:47<Artea>or really learn how to send mails via services
14:47<milek7>The Postfix sendmail(1) command implements the Postfix to Sendmail compatibility interface.
14:48<Artea>milek: I'm building a test irc server
14:48-!-circ-user-nH1UG [~circuser-@] has joined #openttd
14:48-!-circ-user-nH1UG is "A CIRC user" on #openttd
14:49<DorpsGek_II>[OpenTTD/OpenTTD] stormcone opened pull request #7517: Fix: Fix typos.
14:49<Artea>on services the mail uses sendmail -t
14:49<nielsm>what you need is not the specific software package called "sendmail", what you need is something implementing the correct API that is compatible with sendmail
14:49<Artea>I have no clue what need to do
14:49-!-circ-user-nH1UG is now known as supermop_work
14:51<@peter1138>Ok, that's dinner done.
14:51<@peter1138>Now for dessert...
14:51<nielsm>I gave one of my birds a bit of pizza and I think he liked it (but he also wanted to get back to sleepytime)
14:52<Artea>having issues connecting my services to server
14:54<Samu>ewww really slow
14:54<Samu>were u testing with 10k ops?
14:54<Samu>250k ops too slow now
14:55<Samu>hehe, NoCab eats memory
14:57<nielsm>I did not test with any particular settings, I did not test for performance, I only did smoke testing for "looks not entirely incorrect"
14:59-!-crem1 [~crem@2a02:169:160a:0:201:c0ff:fe08:8328] has joined #openttd
14:59-!-crem1 is "crem" on #openttd
15:00*andythenorth ponders desert
15:00<andythenorth>peter1138: what was dinner?
15:00<Samu>waiting for NoCAB to crash/poof openttd
15:00<Samu>unless you fixed that
15:01<DorpsGek_II>[OpenTTD/OpenTTD] michicc commented on pull request #7512: Replace SmallStackSafeStackAlloc and AutoFreePtr
15:01-!-crem [~crem@2a02:169:1677:0:201:c0ff:fe08:8328] has quit [Ping timeout: 480 seconds]
15:01<andythenorth>that's not bad
15:01<andythenorth>square plates improve all food
15:02*andythenorth had kebabs
15:02<@peter1138>Although it's actually a square cereal bowl. Portion control, and keeps things from falling off :p
15:03<@peter1138>Eh, probably a soup bowl, that'd be a lot of cereal.
15:03<@peter1138>So road conversion costs, eh?
15:03<@peter1138>Can I just make it cost the same as removal & build?
15:04<@peter1138>It's not like rails where you can reuse or sell the rails...
15:04<@peter1138>Although for trams? Hmm...
15:04<andythenorth>removal and build
15:04<andythenorth>oof trams
15:04<@peter1138>The money bug currently is that you get the removal cost... *back*... whoever came up with that idea, I dunno.
15:06<Samu>I agree, nerf trains
15:06<Samu>eh, openttd poofed, when I wasn't here at the desk
15:11<andythenorth>nerf everything
15:14<nielsm>I should derail the valley a bit again some time soon, they apparently fixed my number one complaint now: trees and rocks on the tracks
15:14-!-raphikov [~raphikov@2a02:2168:a40d:4e00:642e:24fd:3135:e72b] has joined #openttd
15:14-!-raphikov is "Marseille Raphikov" on #openttd
15:14-!-raphikov [~raphikov@2a02:2168:a40d:4e00:642e:24fd:3135:e72b] has quit []
15:14-!-Gustavo6046 [~Gustavo60@] has quit [Ping timeout: 480 seconds]
15:19<Samu>boom, poofed at 3.38 GB memory
15:26<@peter1138>What are you running 32 bit?
15:30<Samu>release x64
15:30<@peter1138>nielsm, hmm, any way to do the allocator without the indirection through function pointers?
15:31<nielsm>I doubt it
15:32<nielsm>well could just remove sqmem.cpp and implement those functions somewhere outside squirrel
15:32<+glx>32 or 64bit, the issue is in the garbage collector I think
15:32<nielsm>and not extend the squirrel api with sq_setallocator at all
15:33<+glx>but AI can allocate way too more memory ;)
15:34<@peter1138>nielsm, yeah, nielsm's PR could allow a memory limit per VM.
15:35<nielsm>also need to check how squirrel deals with an allocation failing...
15:35<+glx>even in your video, a starting AIAI use twice the memory of the AI started before it
15:35<nielsm>maybe allocation failure needs to be handled by an exception bubbling up through the entire VM?
15:36<milek7>is allocation failure even a thing?
15:36<milek7>or it just oom-kills
15:36<nielsm>if you put each squirrel VM in its own arena it can be a thing
15:37<Samu>i'm imagining 240 nocabs on a 4096x4096 map
15:37<nielsm>where one AI runs out of memory allowed and fails allocating, while the rest of the game is fine
15:37<@peter1138>Yeah, return nullptr; might cause breakage :)
15:38<@peter1138>Hmm, maybe I should spreadsheet this build/sell/convert cost bullshit.
15:38<@peter1138>Oh, I can just printf on init ;)
15:41<Samu>@calc 3.38 * 240
15:41<@DorpsGek>Samu: 811.2
15:41<Samu>I need 811 GB of ram
15:43<Samu>maybe one day in the future, 1 TB of ram will be the norm
15:43<+glx>Samu: tried to crash with 2 AIs ?
15:44<Samu>no, only with 1
15:44<+glx>try with 2, to see if the fails happen on same memory level
15:45<Samu>yesterday I tried 15 NoCABs, turns out I dont have enough ram for it
15:45<Samu>didn't crash
15:45<Samu>but the system was already too slow to cope
15:45<@peter1138>glx, I think he's in write-only mode again.
15:46<Samu>Heh, ok let me try 2
15:46<@peter1138>Yes, we'll let you do that o_O
15:50<Samu>i was wondering, just disable the garbage collector
15:50<Samu>fix all problemos!
15:51<+glx>no because without it the memory is not reused
15:52-!-Thedarkb1-T60 [] has quit [Ping timeout: 480 seconds]
15:55<Samu>almost there
15:55<@peter1138>Hmm, well, nothing is negative now.
15:56<@peter1138>"SamuPatchPack" ... that's a terrifying idea.
15:56<Samu>it was your idea
15:56<@peter1138>I doubt it.
15:58<Samu>memory keeps rising in task manager, but over there in openttd it's still 3.18 GB for each
15:58<nielsm>oh well, I delivered some stuff in derail valley without derailing, enjoyed running on clear rails, and then teleported over to old bob's garage and unlocked it
15:58<nielsm>and yes his secret vehicle is not controllable with mouse and keyboard
16:03-!-Thedarkb-T60 [] has joined #openttd
16:03-!-Thedarkb-T60 is "realname" on #oolite #openttd
16:04<Samu>interesting, no crash yet
16:04<andythenorth>what was I doing?
16:04<Samu>they reached the point they built vehicles
16:05<Samu>aha, crash
16:05<Samu>spoke too early
16:05<@peter1138>andythenorth, deciding how much road should cost to remove.
16:05<@peter1138>Should highway cost the same as dirt tracks to remove?
16:05<+glx>so same memory level ? more ? less ?
16:06<DorpsGek_II>[OpenTTD/OpenTTD] michicc approved pull request #7517: Fix: Fix typos.
16:06<DorpsGek_II>[OpenTTD/OpenTTD] michicc merged pull request #7517: Fix: Fix typos.
16:07<andythenorth>peter1138: I usually just level all that crap
16:07<andythenorth>they're not interesting costs
16:07<@peter1138>andythenorth, not interesting, but it affects road conversion cost.
16:07<Samu>aha here it is
16:07<@peter1138>andythenorth, which is currently exploitable.
16:07<andythenorth>is it exploitable if they all cost same to remove?
16:08<+glx>Samu: but with double memory this time it seems
16:08<@peter1138>andythenorth, not really. The exploit is that currently conversion can give you more money than you spent in the first place.
16:08<@peter1138>andythenorth, which is obviously wrong.
16:08<andythenorth>if it was left to me, cost to clear would be same in all cases
16:09<@peter1138>Well I'm asking you.
16:09<andythenorth>and would just use the default cost to clear road
16:09<andythenorth>as prior to NRT
16:09<@peter1138>Yes, and the conversion cost?
16:09<andythenorth>sum of cost of clearing + cost of building
16:09<@peter1138>So zero benefit. Okay.
16:09<andythenorth>zero benefit
16:10<andythenorth>tram tracks are slightly awkward, because realism + precedent with trains
16:11<@peter1138>It's possible to have different behaviour between roads and trams.
16:11<Samu>gonna try borkai, think it also hoards memory like crazy
16:14<Samu>afk dinner
16:17-!-sla_ro|master [slamaster@] has quit []
16:20<nielsm>gn, I'll do some more with that memory management tomorrow, probably
16:21<andythenorth>I should probably be doing some newgrf or something
16:22<@peter1138>Or testing NRT.
16:22<@peter1138>Finding the bugs.
16:24<@peter1138>Flat fee for roads, variable for tram tracks.
16:24<@peter1138>But never beneficial to build one type and then convert.
16:26<@peter1138>Hmm, of course, AIs only ever build original ROAD and ELRL.
16:28-!-nielsm [] has quit [Ping timeout: 480 seconds]
16:32-!-Progman [] has quit [Remote host closed the connection]
16:38<Artea>compiling OTTD in VPS :D
16:38<andythenorth>I should make new Road Hog
16:38<andythenorth>to test NRT
16:38<andythenorth>or HEQS or something
16:39<andythenorth>or I should finish Iron Horse, Unsinkable Sam and FIRS
16:39<andythenorth>before wrecking anything new :P
16:40-!-arikover [] has joined #openttd
16:40-!-arikover is "unknown" on #openttd
16:42<andythenorth>any Eddi|zuHause? o_O
16:44<@peter1138>I should find my soldering iron.
16:45<andythenorth>you been watching Big Clive again?
16:45<@peter1138>Building my freezer temperature sensor :p
16:46<@peter1138>Hmm, removing tram tracks now returns some money.
16:47<@peter1138>Which is kinda odd :/
16:47<@peter1138>But at least you never make money now.
16:49<@peter1138>Something like that.
16:49<dwfreed>RCT had the same behavior; you'd get some money back from demolishing a ride
16:49<@peter1138>Normal rail track already does it.
16:52<@peter1138>Oh, silly road types. This one changes visual style based on date.
16:54<Samu>borkai didn't crash yet
16:54<Samu>it's sitting at 800 MiB
16:56<+glx><@peter1138> Oh, silly road types. This one changes visual style based on date. <-- desync possible no ?
16:57<@peter1138>varaction date
16:57<@peter1138>Not load date
16:57<+glx>ah it's at runtime
17:03-!-andythenorth is now known as Guest320
17:03-!-andythenorth [] has joined #openttd
17:03-!-andythenorth is "andythenorth" on #openttd
17:04<andythenorth>laptop hard crashed :(
17:04<andythenorth>strictly speaking, I did kill -9 the windowserver
17:04<andythenorth>but why should that crash it? :P
17:06-!-gelignite [] has quit [Quit: Good fight, good night!]
17:06-!-Guest320 [] has quit [Ping timeout: 480 seconds]
17:17<@peter1138>Okay, regression test still passes.
17:17<DorpsGek_II>[OpenTTD/OpenTTD] PeterN updated pull request #6811: Feature: Add NotRoadTypes (NRT)
17:19-!-Wolf01 [] has quit [Quit: Once again the world is quick to bury me.]
17:20<DorpsGek_II>[OpenTTD/OpenTTD] PeterN commented on pull request #6811: Feature: Add NotRoadTypes (NRT)
17:20<@peter1138>Oh, I need to rebase due to conflicts... in a comment :p
17:22<andythenorth>also bed :P
17:22-!-andythenorth [] has quit [Quit: andythenorth]
17:22<@peter1138>Nah, easy fix.
17:22<@peter1138>BYE THEN
17:23<DorpsGek_II>[OpenTTD/OpenTTD] PeterN updated pull request #6811: Feature: Add NotRoadTypes (NRT)
17:51<DorpsGek_II>[OpenTTD/OpenTTD] LordAro commented on pull request #7512: Replace SmallStackSafeStackAlloc and AutoFreePtr
17:52<DorpsGek_II>[OpenTTD/OpenTTD] LordAro approved pull request #7512: Replace SmallStackSafeStackAlloc and AutoFreePtr
17:52<DorpsGek_II>[OpenTTD/OpenTTD] LordAro merged pull request #7512: Replace SmallStackSafeStackAlloc and AutoFreePtr
17:57-!-Thedarkb1-T60 [] has joined #openttd
17:57-!-Thedarkb1-T60 is "realname" on #openttd #oolite
17:57<DorpsGek_II>[OpenTTD/OpenTTD] LordAro commented on pull request #7515: Fix: Really check for start_date once an AI company slot becomes available.
17:58<DorpsGek_II>[OpenTTD/OpenTTD] LordAro commented on pull request #7510: Emscripten support
18:00-!-Thedarkb-T60 [] has quit [Ping timeout: 480 seconds]
18:10-!-Gustavo6046 [~Gustavo60@2804:14d:4cd8:81a4:9480:fbcf:421:6e69] has joined #openttd
18:10-!-Gustavo6046 is "Non dico nomen." on #openttd #oftc #moocows
18:18-!-arikover [] has quit [Remote host closed the connection]
18:27-!-HerzogDeXtEr [] has joined #openttd
18:27-!-HerzogDeXtEr is "purple" on #openttd
18:29<Samu>start_date is a hack in itself, maybe
18:38<Samu>start_date could become a global parameter, similar to difficulty preset currently is
18:40<Samu>what do you think?
19:02-!-tokai [] has quit [Remote host closed the connection]
19:06-!-tokai [] has joined #openttd
19:06-!-tokai is "Christian Rosentreter" on #openttd
19:06-!-mode/#openttd [+v tokai] by ChanServ
19:15<Samu>nielsm, got a crash
19:15<Samu>FramerateWindow::DrawElementAllocationsColumn + 230 (D:\OpenTTD\OpenTTD GitHub\OpenTTD\src\framerate_gui.cpp:606)
19:19<Samu>it was trying to GetAllocatedMemory() of a dead instance
19:19<Samu>ai that crashed
19:29<+glx>it's just a quick test, needs more work
19:46-!-Thedarkb1-T60 [] has quit [Ping timeout: 480 seconds]
19:52-!-Thedarkb1-T60 [] has joined #openttd
19:52-!-Thedarkb1-T60 is "realname" on #openttd #oolite
19:56-!-Supercheese [] has quit [Quit: Valete omnes]
20:05<Samu>borkai is approaching 3 GiB
20:06<Samu>it sure takes time
20:06<Samu>sitting at 2.76 GiB at the moment
20:12-!-Smedles [] has quit [Ping timeout: 480 seconds]
20:15-!-Smedles [] has joined #openttd
20:15-!-Smedles is "Paul Smedley" on #openttd
20:33<Samu>3.00 GiB
20:34<Samu>crashing soon?
21:19-!-Flygon [] has joined #openttd
21:19-!-Flygon is "Flygon" on #openttd
21:29-!-HerzogDeXtEr [] has quit [Read error: Connection reset by peer]
21:31<Samu>3.58 GiB, still no crash
21:33-!-WWacko1976-work [] has joined #openttd
21:33-!-WWacko1976-work is "YO!" on #openttd #/r/openttd
21:39-!-Gustavo6046 [~Gustavo60@2804:14d:4cd8:81a4:9480:fbcf:421:6e69] has quit [Ping timeout: 480 seconds]
21:55<Samu>3.63... still going, hmm I was expecting a crash
22:27-!-Wormnest [~Wormnest@] has quit [Quit: Leaving]
22:30-!-debdog [~debdog@2a00:79c0:648:8a00:7a24:afff:fe8a:d04d] has joined #openttd
22:30-!-debdog is "Wowbagger" on #bitlbee #openttd
22:33-!-D-HUND [~debdog@2a00:79c0:61a:be00:7a24:afff:fe8a:d04d] has quit [Ping timeout: 480 seconds]
22:34<Samu>4.00 GiB, still no crash
22:36<Samu>4.01... well i have no more time today, gonna hibernate system and resume tomorrow
22:38-!-glx [] has quit []
22:45-!-Samu [] has quit [Ping timeout: 480 seconds]
23:47-!-Corns343434 [~androirc7@] has joined #openttd
23:47-!-Corns343434 is "Android IRC Client" on #openttd #/r/openttd
---Logclosed Tue Apr 16 00:00:59 2019