IRC logs for #openttd on OFTC at 2019-04-15
⏴ go to previous day
00:00:32 <pnda> fatal: You are not currently on a branch. To push the history leading to the current (detached HEAD) state now, use "git push origin HEAD:<name-of-remote-branch>"
00:01:01 <nielsm> if it says that you're usually in a bad state
00:01:12 <pnda> ah yes the rebase wasn't finished
00:01:27 <nielsm> and should check "git status" to get some hints on why the state is bad
00:01:47 <nielsm> ("git status" will tell you if you're in the middle of a rebase, merge, or whatever)
00:02:37 <glx> if you're on windows there is posh-git for powershell
00:03:04 <glx> a nice extension displaying the state in the prompt
00:03:34 <pnda> But I like sticking to cmd
00:04:19 <glx> there's also autocompletion for git commands with posh-git
00:11:04 <michi_cc> pnda: If you are more into GUIs, I'd recommend Git Extensions. As usual, there are always some things the command line can do better, but git extensions map quite a lot of the git cmds.
00:11:21 <pnda> I'm mostly into usability
00:11:58 <michi_cc> Well, the graphical repo view is _the_ advantage of any GUI tool.
00:14:00 <DorpsGek_II> [OpenTTD/OpenTTD] michicc commented on pull request #7480: Fix #6666: brackets in arabic strings https://git.io/fjm1a
00:37:27 <Samu> aircraft and ships are switched in the finances window
00:38:18 <Samu> everywhere else, ships come first, aircraft comes last
00:39:58 <Samu> max num of aircraft / ships also switched
00:40:10 <Samu> hmm, looks like it's not everywhere else
00:43:04 *** arikover has joined #openttd
01:13:31 <pnda> i rly need a new irc client
01:13:34 <pnda> but I want to make my own
01:22:37 <Eddi|zuHause> "make my own"? none of the two dozen existing ones suit your needs?
01:33:06 <Samu> stack overflow is actually not just a website
01:33:26 <Samu> could it be the cause of this crash?
01:39:22 <Samu> reading random answers on what could corrupt a stack: "Throwing an exception inside a destructor is a good candidate. It would mess up the stack unwinding."
01:40:00 <milek7> compile with addresssanitizer?
01:53:32 <Samu> the stack got something now
01:57:32 <Samu> oops, can't comment, more than 65536 characters
02:01:05 <pnda> Eddi|zuHause, well, most are written in C, which I have no idea of, and I hate all of their GUIs. There's one or two web apps like thelounge which are quite good, but I'd like to make my own.
02:03:58 <pnda> Just a quick question, what's a good loading_speed for a train? Is 38 a lot?
02:05:43 <Eddi|zuHause> i would do something like capacity/4 or so
02:08:53 <pnda> huh maybe I have always had my trains load slowly.... Had a few of them at around 10
02:09:06 <pnda> Maybe the complaints on tt-forums were real
02:32:12 <glx> looks like a loop in garbage collection
02:32:48 <glx> squirrel probably allocated more memory than available at some point
02:36:25 <glx> AI creates too many and too big arrays I think (but expected with this map size and the number of towns and industries I guess)
02:41:32 <Samu> how much memory is available, do you know? I always notice it's around the 4GB mark
02:42:14 *** rocky11384497 has joined #openttd
02:45:06 <glx> unlimited unless it's a 32bit exe
02:47:18 <Samu> it was 64bit debug build
02:48:02 <Samu> how much for the virtual machine?
02:48:09 <Samu> squirrel is a virtual machine, i hear
02:51:08 <glx> but visual studio is still 32bit
03:00:01 <glx> but in this case I think the stack is the limit
03:28:03 *** Supercheese has joined #openttd
03:33:49 <DorpsGek_II> [OpenTTD/OpenTTD] glx22 updated pull request #7509: Codechange: replace left QSortT() with std::sort() https://git.io/fjm0B
03:53:15 <DorpsGek_II> [OpenTTD/OpenTTD] glx22 updated pull request #7509: Codechange: replace left QSortT() with std::sort() https://git.io/fjm0B
04:22:12 <Samu> dang, random deviation and random range occurring when in-game, I set up scripts
04:23:06 <Samu> I'm not sure if that's okay
04:24:10 <Samu> they're not started as random, part of me says that's not okay
04:25:04 <Samu> i've just selected them from a list of available scripts, and their config is already loaded with the parameters randomized
04:26:23 <Samu> i mean, the script didn't start yet, i still can reset parameters to their defaults
04:27:08 <Samu> I suppose it is okay to randomize in this case, it's just that the behaviour is not consistent with its definition.
04:37:23 *** Smedles has joined #openttd
04:43:01 *** Smedles has joined #openttd
04:49:12 *** Smedles_ has joined #openttd
06:59:21 *** Supercheese has joined #openttd
07:46:02 <DorpsGek_II> [OpenTTD/OpenTTD] PeterN commented on pull request #7270: Introduce CMake (and removing all other project-related code) https://git.io/fjmSz
08:31:07 *** Smedles has joined #openttd
08:42:42 *** andythenorth has joined #openttd
09:25:56 <DorpsGek_II> [OpenTTD/OpenTTD] PeterN commented on pull request #7512: Replace SmallStackSafeStackAlloc and AutoFreePtr https://git.io/fjmHe
10:37:04 *** andythenorth is now known as Guest284
10:37:04 *** andythenorth has joined #openttd
11:08:15 <Artea> I reinstalled CentOS 7 in VPS
11:08:25 <Artea> is giving me errors compiling UnrealIRCd
11:08:45 <Artea> I was so fire up yesterday
11:08:54 <Artea> thinking I would make my test irc server
11:08:55 <peter1138> Missing dev packages?
11:09:17 <Artea> OpenSSL has been a b**** on CentOS 7
11:09:27 <Artea> is using very old version, 1.0.2k
11:10:02 <Artea> and error that gave me, was due to OpenSSL binary not be installed
11:10:04 <peter1138> See the problem is you are using CentOS, not Debian.
11:10:26 <peter1138> But you probably want an openssl dev package, not just the binaries.
11:10:27 <Artea> I tried a long time ago
11:10:37 <Artea> and I liked so I sticked with it
11:11:00 <peter1138> I looked after a CentOS machine for a while. It was horrible. I Debianed it eventually.
11:11:02 <Artea> I installed openssl-libs
11:11:12 <peter1138> openssl-libs is not dev packages, I would guess.
11:11:29 <Artea> it seems like OS don't know OpenSSL is there
11:12:50 <peter1138> Come back with Debian ;)
11:13:14 <peter1138> Nah, that's just a 3rd rate imposter.
11:13:52 <peter1138> Feel free to ignore me about this, I'm just a little bit biased :)
11:14:18 <Artea> I dont ignore people for talking and helping me out :)
11:31:28 *** andythenorth has joined #openttd
11:31:53 *** andythenorth has left #openttd
11:35:33 *** Artea is now known as _Artea
11:36:46 <_Artea> Reinstalling the VPS (95%)
11:38:13 <_Artea> I really wanna test out IRC Services under MySQL DB
11:47:52 <_Artea> made the SSL cert for UnrealIRCd in CentOS 6
12:22:58 <_Artea> I installed UnrealIRCd with SSL support :D
12:23:53 <_Artea> now install the rest of the stuff
13:13:51 *** gelignite has joined #openttd
13:16:26 *** Corns343434 has joined #openttd
13:22:20 <Corns343434> Patch idea, map Generation creates roads that connect every town together
13:23:40 <Corns343434> Like in transport fever or Simon
13:23:42 <peter1138> "There's a gamescript for that"
13:23:58 <peter1138> But yeah, if you want to make a patch and PR, go for it.
13:24:30 <Corns343434> Wait is there actually a game script for it already? I know about the AI that does it kinda
13:45:39 <peter1138> Not sure, I thought there was.
14:28:53 <Artea> but already got stuff sorted out :)
15:28:05 <Samu> check again in a year can be at times annoying
15:34:08 <Samu> making it checking daily can also be annoying, if the start_date of the next ai is also a big number
15:35:49 <Samu> how to solve... hmmm thinnk
15:37:45 <Samu> it should check the start_date of the AI once an AI can start and reset the counter
15:43:20 <Samu> it should return a special number that is to be treated as "unable to check at the moment"
15:44:06 <Samu> once it gets a value that is not the special number, it then sets the daily countdown
15:55:56 <Samu> _next_competitor_start is a uint
15:56:23 <Samu> GetStartNextTime is a int
15:57:33 <Samu> what will happen if GetStartNextTime returns UINT_MAX?
15:58:10 <Samu> what exactly is returned?
16:04:49 <Samu> -1 is then turned to 1 tick
16:20:40 <Corns> hello update: there is no city-road building gamescript
16:28:25 <Samu> oh snap, CityConnected is an AI
16:32:14 <Samu> no idea how to download v2 then
16:32:27 <Corns> dw i'm just reverse engineering it for a PR
16:34:27 <Artea> can't setup sendmail :(
16:37:34 <Samu> oh, INT_MAX is also a thing!
16:38:01 <Samu> solves needlessly conversions from int to uint
16:38:11 <DorpsGek_II> [OpenTTD/OpenTTD] glx22 commented on pull request #7270: Introduce CMake (and removing all other project-related code) https://git.io/fjmxX
16:38:25 <Corns> were you relying on uint = -1
16:40:16 <Samu> if (_next_competitor_start == 0 || _next_competitor_start == (INT_MAX / DAY_TICKS) * DAY_TICKS - 1) {
16:41:15 <Samu> - 1 would make it check daily
16:41:37 <Samu> if (_next_competitor_start == 0 || _next_competitor_start == (INT_MAX / DAY_TICKS) * DAY_TICKS - DAY_TICKS) {
16:42:42 *** Wormnest has joined #openttd
16:44:18 <DorpsGek> Samu: Error: There's really no reason why you should have underscores or brackets in your mathematical expression. Please remove them.
16:50:55 <peter1138> Probably doesn't know any better.
16:51:05 <peter1138> Artea, don't use sendmail, simply.
16:53:25 <Artea> I need a break from VPS now
16:53:27 <Corns> Are commit messages supposed to be typed in present tense?
16:53:36 <Artea> I think I going screw the things up if I continue
16:53:53 <Artea> at least have my IRCd working with SSL
16:54:43 <milek7> use exim or postfix instead of sendmail
16:58:45 *** Thedarkb-T60 has joined #openttd
17:00:19 <Artea> I was thinking of Postfix
17:00:27 <Artea> but dont know how to config
17:00:59 <Artea> but is a pain in the backhead
17:01:37 *** Wormnest has joined #openttd
17:23:20 *** WWacko1976-work has quit IRC
17:34:31 <Samu> i need an english expert
17:34:43 <Samu> /* Currently no AI can be started. Return an indefinited number of days. */
17:34:43 <Samu> return INT_MAX / DAY_TICKS;
17:35:55 <nielsm> infinite, indefinite, undefined
17:35:59 <Samu> unknown? indeterminate? unsettled? unfixed?
17:36:31 <nielsm> but undefined is a tricky word
17:36:49 <nielsm> because in programming context it tends to have a specific meaning
17:37:08 <nielsm> "anything can happen/any value is possible, there is no rule to it"
17:37:30 <nielsm> also is this a sentinel value that will need to be compared against?
17:38:54 <Samu> if this value is set, code handles it differently than a real value
17:39:02 <nielsm> if this is a value you'll actually need to check "is it the sentinel value" then make it a defined constant
17:39:54 <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
17:40:19 <Samu> hmm, can't be INT_MAX then?
17:40:37 <Samu> well, some value higher than 3600
17:40:59 <nielsm> it's dangerous to assume that INT_MAX has the same value on any compiler
17:41:03 *** HerzogDeXtEr has joined #openttd
17:42:25 <Samu> max permitted value for start_date is 3600
17:42:35 <Samu> so, anything above that range
17:47:43 <Samu> return AI::START_NEXT_MAX + DAY_TICKS;
17:58:41 <Samu> crap, this is already days
17:58:44 <Samu> return AI::START_NEXT_MAX + 1;
17:59:22 <Samu> i was adding 74 days lol
18:04:25 <Samu> does it still warrant a defined constant? I think not
18:04:40 <Samu> if (_next_competitor_start == 0 || _next_competitor_start == AI::START_NEXT_MAX * DAY_TICKS) {
18:04:53 <Samu> return AI::START_NEXT_MAX + 1;
18:04:58 <Samu> that's how it's being used
18:05:25 <Samu> _next_competitor_start = max(1, AI::GetStartNextTime() * DAY_TICKS);
18:06:12 <Samu> if (_game_mode != GM_MENU && AI::CanStartNew() && --_next_competitor_start == 0) {
18:07:32 <Samu> it won't use the YEARLY check counter
18:07:46 <DorpsGek_II> [OpenTTD/OpenTTD] nielsmh opened pull request #7514: Scale oil refinery edge distance up by map size https://git.io/fjmhp
18:08:46 <Samu> every 74 ticks it rechecks if there's an AI that can start
18:09:11 <Samu> if there is, it first restarts the counter with that AI's start_date value
18:09:52 <Samu> and now the value is no longer going to be 3600, so, it will reach 0, which is when the company starts
18:10:48 *** Thedarkb1-X40 has joined #openttd
18:11:11 *** Thedarkb1-T60 has joined #openttd
18:13:45 <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
18:14:34 <Samu> if it couldn't start, another 365*74 countdown was started
18:18:54 <Artea> that is why AI dont start if start_date = 1 ?
18:21:23 <Samu> it happens when there's no more company slots for AIs to start
18:22:03 <Samu> if then a company is removed, the counter was not reset
18:22:12 <Samu> it still isn't, but now it's checked daily
18:22:42 <Samu> instead of ... having to wait for the remaining countdown
18:22:53 <Samu> which could be anywhere from 1 to 365 * 74
18:25:13 <Samu> well, there is random deviation
18:25:25 <Samu> can add up to +60 to that
18:25:58 <Samu> but the problem i'm solving is not that
18:26:31 <Samu> it's only really happening when there's no more room for extra companies
18:30:00 *** sla_ro|master has joined #openttd
18:33:54 *** Supercheese has joined #openttd
18:34:49 *** Progman has joined #openttd
18:43:23 <Samu> i'm so bad at comments, i'm gonna need help
18:48:49 <Samu> crap, i submited to master, stupid me
18:54:06 <Samu> omg i can't believe i commited the same mistake twice
18:55:43 <Artea> How to "undo" rebasing commits ?
18:56:23 <Samu> i went with rebase -i and dropped :(
18:56:27 <nielsm> "git reflog" shows all the commit hashes that have been HEAD so you can reset your branches to one of those
18:56:43 <rubenwardy> git reset --hard HEAD~1
18:56:57 <glx> no --hard removes the changes
18:57:20 <nielsm> uh git reset HEAD^ will just remove the top commit, it won't undo whatever a rebase did
18:57:27 <nielsm> it won't get you dropped commits back
18:57:51 <nielsm> nor will it un-squash commits
18:58:29 <glx> but it's enough if there's only one commit
18:58:51 <nielsm> no because it will just remove the top commit
18:58:55 <nielsm> it won't undo the rebase
18:59:05 <nielsm> it won't restore the old tree
18:59:15 <Samu> i typed git reflog, how to get out of this?
19:00:42 <Eddi|zuHause> the reflog will tell the ID where the rebase started, then use reset with that ID
19:03:30 <nielsm> 1>------ Build started: Project: version, Configuration: Debug Win32 ------
19:03:30 <nielsm> 1>Error HRESULT E_FAIL has been returned from a call to a COM component.
19:03:35 <nielsm> and then my entire build fails
19:04:02 <Samu> ah, i had that when i updated visual studio
19:04:19 <Samu> i solved it by removing ... uhm... some files
19:07:47 <nielsm> hmm yeah removing the suo did fix it
19:25:01 <V453000> arrived to the end of 55k lines of nuts.nml :D ofc I missed some things ._.
19:25:19 <Eddi|zuHause> why would you go through that manually?
19:29:45 <glx> yeah I got this error too when I upgraded VS2019
19:33:15 <DorpsGek_II> [OpenTTD/OpenTTD] SamuXarick opened pull request #7515: Fix: Really check for start_date once an AI company slot becomes available. https://git.io/fjYeA
19:33:50 <Samu> descriptions, comments, etc...
19:36:13 <Samu> basically, if there's no slots, it checks daily, using the interval 3601 - 3600
19:37:24 <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
19:41:35 <Samu> i could make it check every tick
19:42:05 <Samu> for now it's checking every 74 ticks
19:42:19 <Samu> which is what truebrain likes
19:43:34 <Samu> _next_competitor_start == (AI::START_NEXT_MAX + 1) * DAY_TICKS - 1 to check every tick
19:58:22 * peter1138 fudges with road removal/conversion costs.
20:00:59 <peter1138> Heh, AIs running trams all over the place instead of trains.
20:03:04 * peter1138 blasts a bit of Foxtrot for old-times sake.
20:03:09 <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!
20:04:20 * nielsm works on another try at keeping track of squirrel allocations
20:10:45 <LordAro> peter1138: where's the bike?
20:12:41 <peter1138> At the shop. Gear cable snapped and I cba doing it myself.
20:13:16 <peter1138> These new-fangled brifters and internal cable routing are too much for me :p
20:13:33 <peter1138> I can cope with down-tube friction shifters.
20:15:17 <peter1138> [[epic instrumental-section]]
20:17:10 <peter1138> I wonder, should road and tram vehicles be separated in the UI?
20:18:13 <peter1138> Nothing major, I decided to walk instead of drive so I can pig out on more food ;)
20:20:09 *** andythenorth has joined #openttd
20:20:17 <peter1138> Uh oh, this guy again
20:20:30 <nielsm> I'm not sure if it context switches the allocator correctly
20:20:53 <nielsm> but at least it measures something :P
20:22:06 <peter1138> I got as far as simple counting in the console, but had some weird values.
20:25:27 <peter1138> Now run one of Samu's AIs :p
20:26:40 <peter1138> I suppose you *could* count the memory used by vehicles etc... but... eh... no.
20:27:16 <peter1138> That's simple anyway, count * sizeof train etc
20:27:57 <nielsm> unless we let newgrf allocate arbitrary memory :P
20:28:25 <peter1138> Those varaction chains add up ;)
20:30:42 <V453000> Eddi|zuHause: adding support for 1 cargo to all vehicles :D and let's say the code isn't exactly clean.
20:35:59 <Artea> for who adviced not use sendmail
20:36:18 <Artea> seems I need to use it in IRC Services
20:45:54 <peter1138> Artea, no, you don't need *sendmail*
20:46:52 <Artea> I going need for Anope IRC Services apparently
20:47:00 <milek7> 'sendmail - Postfix to Sendmail compatibility interface'
20:47:10 <Artea> or really learn how to send mails via services
20:47:14 <milek7> The Postfix sendmail(1) command implements the Postfix to Sendmail compatibility interface.
20:48:41 <Artea> milek: I'm building a test irc server
20:48:45 *** circ-user-nH1UG has joined #openttd
20:49:22 <Artea> on services the mail uses sendmail -t
20:49:24 <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
20:49:48 <Artea> I have no clue what need to do
20:49:54 *** circ-user-nH1UG is now known as supermop_work
20:51:25 <peter1138> Ok, that's dinner done.
20:51: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)
20:52:02 <Artea> having issues connecting my services to server
20:54:19 <Samu> were u testing with 10k ops?
20:57:49 <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"
21:00:38 <andythenorth> peter1138: what was dinner?
21:00:51 <Samu> waiting for NoCAB to crash/poof openttd
21:01:08 <DorpsGek_II> [OpenTTD/OpenTTD] michicc commented on pull request #7512: Replace SmallStackSafeStackAlloc and AutoFreePtr https://git.io/fjYfy
21:01:45 <andythenorth> square plates improve all food
21:02:37 <peter1138> Although it's actually a square cereal bowl. Portion control, and keeps things from falling off :p
21:03:00 <peter1138> Eh, probably a soup bowl, that'd be a lot of cereal.
21:03:39 <peter1138> So road conversion costs, eh?
21:03:54 <peter1138> Can I just make it cost the same as removal & build?
21:04:12 <peter1138> It's not like rails where you can reuse or sell the rails...
21:04:16 <peter1138> Although for trams? Hmm...
21:04:19 <andythenorth> removal and build
21:04:56 <peter1138> The money bug currently is that you get the removal cost... *back*... whoever came up with that idea, I dunno.
21:06:55 <Samu> eh, openttd poofed, when I wasn't here at the desk
21:14:03 <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
21:14:09 *** raphikov has joined #openttd
21:19:51 <Samu> boom, poofed at 3.38 GB memory
21:26:44 <peter1138> What are you running 32 bit?
21:30:51 <peter1138> nielsm, hmm, any way to do the allocator without the indirection through function pointers?
21:32:27 <nielsm> well could just remove sqmem.cpp and implement those functions somewhere outside squirrel
21:32:46 <glx> 32 or 64bit, the issue is in the garbage collector I think
21:32:48 <nielsm> and not extend the squirrel api with sq_setallocator at all
21:33:30 <glx> but AI can allocate way too more memory ;)
21:34:27 <peter1138> nielsm, yeah, nielsm's PR could allow a memory limit per VM.
21:35:31 <nielsm> also need to check how squirrel deals with an allocation failing...
21:35:37 <glx> even in your video, a starting AIAI use twice the memory of the AI started before it
21:35:53 <nielsm> maybe allocation failure needs to be handled by an exception bubbling up through the entire VM?
21:36:30 <milek7> is allocation failure even a thing?
21:36:52 <nielsm> if you put each squirrel VM in its own arena it can be a thing
21:37:11 <Samu> i'm imagining 240 nocabs on a 4096x4096 map
21:37:14 <nielsm> where one AI runs out of memory allowed and fails allocating, while the rest of the game is fine
21:37:22 <peter1138> Yeah, return nullptr; might cause breakage :)
21:38:31 <peter1138> Hmm, maybe I should spreadsheet this build/sell/convert cost bullshit.
21:38:52 <peter1138> Oh, I can just printf on init ;)
21:43:40 <Samu> maybe one day in the future, 1 TB of ram will be the norm
21:43:52 <glx> Samu: tried to crash with 2 AIs ?
21:44:58 <glx> try with 2, to see if the fails happen on same memory level
21:45:25 <Samu> yesterday I tried 15 NoCABs, turns out I dont have enough ram for it
21:45:38 <Samu> but the system was already too slow to cope
21:45:52 <peter1138> glx, I think he's in write-only mode again.
21:46:17 <peter1138> Yes, we'll let you do that o_O
21:50:46 <Samu> i was wondering, just disable the garbage collector
21:51:26 <glx> no because without it the memory is not reused
21:55:32 <peter1138> Hmm, well, nothing is negative now.
21:56:11 <peter1138> "SamuPatchPack" ... that's a terrifying idea.
21:58:00 <Samu> memory keeps rising in task manager, but over there in openttd it's still 3.18 GB for each
21:58:11 <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
21:58:25 <nielsm> and yes his secret vehicle is not controllable with mouse and keyboard
22:03:40 *** Thedarkb-T60 has joined #openttd
22:04:10 <Samu> interesting, no crash yet
22:04:11 <andythenorth> what was I doing?
22:04:44 <Samu> they reached the point they built vehicles
22:05:23 <peter1138> andythenorth, deciding how much road should cost to remove.
22:05:42 <peter1138> Should highway cost the same as dirt tracks to remove?
22:05:46 <glx> so same memory level ? more ? less ?
22:07:14 <andythenorth> peter1138: I usually just level all that crap
22:07:20 <andythenorth> they're not interesting costs
22:07:36 <peter1138> andythenorth, not interesting, but it affects road conversion cost.
22:07:45 <peter1138> andythenorth, which is currently exploitable.
22:07:57 <andythenorth> is it exploitable if they all cost same to remove?
22:08:24 <glx> Samu: but with double memory this time it seems
22:08:24 <peter1138> andythenorth, not really. The exploit is that currently conversion can give you more money than you spent in the first place.
22:08:33 <peter1138> andythenorth, which is obviously wrong.
22:08:55 <andythenorth> if it was left to me, cost to clear would be same in all cases
22:09:06 <peter1138> Well I'm asking you.
22:09:07 <andythenorth> and would just use the default cost to clear road
22:09:19 <peter1138> Yes, and the conversion cost?
22:09:38 <andythenorth> sum of cost of clearing + cost of building
22:09:47 <peter1138> So zero benefit. Okay.
22:10:32 <andythenorth> tram tracks are slightly awkward, because realism + precedent with trains
22:11:19 <peter1138> It's possible to have different behaviour between roads and trams.
22:11:44 <Samu> gonna try borkai, think it also hoards memory like crazy
22:20:31 <nielsm> gn, I'll do some more with that memory management tomorrow, probably
22:21:59 <andythenorth> I should probably be doing some newgrf or something
22:24:05 <peter1138> Flat fee for roads, variable for tram tracks.
22:24:53 <peter1138> But never beneficial to build one type and then convert.
22:26:36 <peter1138> Hmm, of course, AIs only ever build original ROAD and ELRL.
22:38:15 <Artea> compiling OTTD in VPS :D
22:38:34 <andythenorth> I should make new Road Hog
22:38:42 <andythenorth> or HEQS or something
22:39:28 <andythenorth> or I should finish Iron Horse, Unsinkable Sam and FIRS
22:39:34 <andythenorth> before wrecking anything new :P
22:40:23 *** arikover has joined #openttd
22:42:52 <andythenorth> any Eddi|zuHause? o_O
22:44:57 <peter1138> I should find my soldering iron.
22:45:15 <andythenorth> you been watching Big Clive again?
22:45:55 <peter1138> Building my freezer temperature sensor :p
22:46:33 <peter1138> Hmm, removing tram tracks now returns some money.
22:47:05 <peter1138> Which is kinda odd :/
22:47:39 <peter1138> But at least you never make money now.
22:49:03 <peter1138> Something like that.
22:49:05 <dwfreed> RCT had the same behavior; you'd get some money back from demolishing a ride
22:49:23 <peter1138> Normal rail track already does it.
22:52:33 <peter1138> Oh, silly road types. This one changes visual style based on date.
22:56:41 <glx> <@peter1138> Oh, silly road types. This one changes visual style based on date. <-- desync possible no ?
23:03:23 *** andythenorth is now known as Guest320
23:03:56 *** andythenorth has joined #openttd
23:04:05 <andythenorth> laptop hard crashed :(
23:04:14 <andythenorth> strictly speaking, I did kill -9 the windowserver
23:04:23 <andythenorth> but why should that crash it? :P
23:17:06 <peter1138> Okay, regression test still passes.
23:20:36 <peter1138> Oh, I need to rebase due to conflicts... in a comment :p
23:51:58 <DorpsGek_II> [OpenTTD/OpenTTD] LordAro commented on pull request #7512: Replace SmallStackSafeStackAlloc and AutoFreePtr https://git.io/fjYkq
23:52:35 <DorpsGek_II> [OpenTTD/OpenTTD] LordAro approved pull request #7512: Replace SmallStackSafeStackAlloc and AutoFreePtr https://git.io/fjYkm
23:52:53 <DorpsGek_II> [OpenTTD/OpenTTD] LordAro merged pull request #7512: Replace SmallStackSafeStackAlloc and AutoFreePtr https://git.io/fjmoj
23:57:31 *** Thedarkb1-T60 has joined #openttd
23:57:43 <DorpsGek_II> [OpenTTD/OpenTTD] LordAro commented on pull request #7515: Fix: Really check for start_date once an AI company slot becomes available. https://git.io/fjYkc
continue to next day ⏵