IRC logs for #openttd on OFTC at 2018-10-11
⏴ go to previous day
00:35:29 *** GroovyNoodle has joined #openttd
00:43:05 *** Thedarkb-T60 has joined #openttd
01:02:54 *** ToBeFree has joined #openttd
01:04:35 <DorpsGek_II> [OpenTTD/OpenTTD] MiguelHorta opened pull request #6936: Fix #6898: Replace atoi() with strtoul() https://git.io/fxWPM
01:17:15 <DorpsGek_II> [OpenTTD/OpenTTD] MiguelHorta updated pull request #6936: Fix #6898: Replace atoi() with strtoul() https://git.io/fxWPM
01:33:46 *** Oroburos has joined #openttd
01:34:38 <DorpsGek_II> [OpenTTD/OpenTTD] MiguelHorta dismissed a review for pull request #6936: Fix #6898: Replace atoi() with strtoul() https://git.io/fxWXw
01:34:39 <DorpsGek_II> [OpenTTD/OpenTTD] MiguelHorta updated pull request #6936: Fix #6898: Replace atoi() with strtoul() https://git.io/fxWPM
01:35:42 <Eddi|zuHause> wtf does "dismiss a review" mean?
01:37:35 <LordAro> it's github's terminology
01:38:03 <DorpsGek_II> [OpenTTD/OpenTTD] MiguelHorta commented on pull request #6936: Fix #6898: Replace atoi() with strtoul() https://git.io/fxW1x
01:38:34 <Eddi|zuHause> but if it's an automatic thing when updating a pull request, it's maybe a bit over the top to announce it like that
01:38:34 * LordAro wonders about error handling...
01:39:25 <Eddi|zuHause> whenever i say that, it's guaranteed that i'm still here in 3 hours
01:44:57 <iSoSyS> oh snap :/ My whole embarrassing journey to github's pull requests is logged here. At least I got it right in the end. I think :D
02:02:52 <DorpsGek_II> [OpenTTD/OpenTTD] SamuXarick opened pull request #6937: Fix #4109: Add more water checks to the Oil Rig layout https://git.io/fxWDM
03:20:49 *** WWacko1976-work has joined #openttd
03:38:34 *** peter1138 has joined #openttd
03:38:34 *** ChanServ sets mode: +o peter1138
03:55:09 *** sim-al2 has joined #openttd
03:57:40 *** triolus has joined #openttd
05:37:39 *** haudrauf has joined #openttd
06:19:14 *** ToBeFree has joined #openttd
07:03:38 *** ToBeFree has joined #openttd
07:33:24 *** sla_ro|master has joined #openttd
07:34:46 *** andythenorth has joined #openttd
07:40:18 *** FLHerne has joined #openttd
07:48:19 *** sla_ro|master2 has joined #openttd
08:01:30 *** sla_ro|master2 has quit IRC
10:10:47 *** andythenorth has joined #openttd
10:15:08 *** ChanServ sets mode: +o orudge
11:17:06 *** matt21347 has joined #openttd
11:20:39 *** ChanServ sets mode: +v tokai
12:11:53 <DorpsGek_II> [OpenTTD/OpenTTD] James103 opened issue #6938: Incorrect value for "Cost to Clear" for Company Headquarters in tile inspector https://git.io/fxlnU
12:16:00 *** GroovyNoodle has joined #openttd
12:41:01 *** andythenorth has joined #openttd
13:20:21 *** andythenorth has joined #openttd
14:34:34 <DorpsGek_II> [OpenTTD/OpenTTD] MiguelHorta commented on issue #6938: Incorrect value for "Cost to Clear" for Company Headquarters in tile inspector https://git.io/fxluN
14:59:39 *** snail_UES_ has joined #openttd
16:25:26 *** sla_ro|master has joined #openttd
16:32:27 *** Wormnest has joined #openttd
16:33:05 *** Gustavo6046 has joined #openttd
16:48:05 *** Alberth has joined #openttd
16:48:05 *** ChanServ sets mode: +o Alberth
17:21:33 *** Thedarkb has joined #openttd
17:35:38 *** TheMask96 has joined #openttd
17:57:47 *** Thedarkb has joined #openttd
18:04:08 *** HerzogDeXtEr has joined #openttd
18:17:21 <Xaroth> So you named your cat after me? how nice.
18:19:24 <Samu> i have 3 cats now, 2 died this year :(
18:21:49 <Samu> tintim died to a tumour in his brain
18:22:20 <Samu> oh well why do I talk about these things...
18:44:23 <Samu> i have a few more patches here, but I bet there's a 99.99% chance they won't be implemented
18:45:43 <Samu> generate lock-friendly rivers
18:46:51 <Samu> distribute cargo to multiple stations or industries
18:47:06 <Samu> allow attaching multiple train engines
18:47:12 <Samu> allow company level crossings
18:47:20 <Samu> allow large aeroplane on short runway
18:47:43 <Samu> Bridge Over Lock - this one needs a graphic expert
18:47:53 <Samu> build on competitor canal
18:48:42 <Samu> disallow multiplayer ai company takeover - this goes against the TODO comments
18:49:38 <Samu> no wait cursor when autosaving
18:49:44 <Samu> pause running costs on standard road stops
18:50:48 <Samu> unlimited destination distance for YAPF ships
18:51:33 <Samu> no plane crashes, unless runway is too short option
18:52:21 *** andythenorth has joined #openttd
18:52:31 <Samu> cargomonitor industry delivery fix - but I was told it's not a bug
19:00:37 *** andythenorth has joined #openttd
19:09:56 *** frosch123 has joined #openttd
19:20:19 *** andythenorth has joined #openttd
19:31:31 <andythenorth> it's fun, but I am temporarily tired of it :P
19:31:33 <andythenorth> has been a grind
19:31:44 <andythenorth> 167 trains drawn
19:35:04 *** haudrauf has joined #openttd
19:36:05 *** Progman has joined #openttd
20:18:06 *** Thedarkb has joined #openttd
20:25:59 *** Oroburos has joined #openttd
20:26:43 *** Oroburos has joined #openttd
21:23:08 <LordAro> osht, an orudge merge
21:48:11 *** Wacko1976 has joined #openttd
21:51:21 *** rocky11384497 has joined #openttd
22:03:24 *** haudrauf has joined #openttd
22:28:42 *** matt21347 has joined #openttd
22:32:07 <iSoSyS> has anyone tried to reproduce #6938? In my work's laptop I'm pretty sure I got the same result, but in my home pc I can't anymore, it just display N/A.
22:35:26 <LordAro> can't reproduce with just a basic AI test
22:35:32 <LordAro> would probably need a save game
22:37:01 <LordAro> i didn't see anything obvious when looking through the code earlier
22:37:11 <orudge> I can reproduce it if I enable the magic bulldozer cheat
22:38:57 <orudge> (this is with OpenTTD 1.8.0)
22:39:44 <LordAro> i was trying with the AI company's HQs
22:39:58 <LordAro> yeah, magic bulldozer + your own HQ
22:40:51 <iSoSyS> can confirm. Magic bulldozer does the trick. Although, I'm pretty sure I didn't use it before. I need to check it tomorrow.
22:41:19 * LordAro wonders how magic bulldozer affects it
22:42:31 <orudge> It looks like the explanation in the bug is correct - the magic bulldozer must calculate 10% of the company value
22:42:42 <orudge> since money is temporarily sent to INT64_MAX, 10% of that is the £9 whateverillion in question
22:42:53 <orudge> (well, 10% of the company value, which is now grossly inflated)
22:43:46 <LordAro> object_cmd.cpp:498 i think
22:57:41 *** Thedarkb-T60 has joined #openttd
22:59:46 <LordAro> now that's interesting, at the end of CalculateCompanyValue, it seems to think that my company has INT64_MAX money
23:00:00 <LordAro> (c->money attribute, not even a function)
23:01:20 <iSoSyS> because it has. Look at misc_gui.cpp:197
23:01:34 <iSoSyS> it is in the ticket, 1st comment.
23:21:36 <iSoSyS> yeah that's how far I can go. But I'm yet to figure why such strategy, DC_QUERY_COST was thing back then.
23:22:18 <LordAro> hell, it could be an TTD bug :p
23:22:36 <LordAro> TTD didn't have cheats
23:22:37 <iSoSyS> that would be a hell of a find :D
23:23:43 <LordAro> if you could hack TTD to allow removal of your own HQ, it's possible this bug might appear
23:24:32 <LordAro> i want to go digging now...
23:26:12 <iSoSyS> ok! 0.1 already had such entry
23:26:47 <LordAro> it also appears in the cvs repo
23:35:12 <LordAro> iSoSyS: but yeah, go for it, i'd say :)
23:35:28 <LordAro> you can even put a Fix (r1) in the commit message :)
23:37:38 <iSoSyS> too bad I can't process x86 assembly. It shouldn't be too hard to find a 0x7FFFFFFF in 16bit x86
23:37:58 <LordAro> shouldn't be too hard to find that in a hexdump...
23:38:13 <LordAro> objdump should get you most of the way
23:38:22 <LordAro> i think it can do 16bit binaries...
23:41:36 <DorpsGek_II> [OpenTTD/OpenTTD] LordAro commented on issue #6938: Incorrect value for "Cost to Clear" for Company Headquarters in tile inspector https://git.io/fx885
23:41:50 <LordAro> "ooh, someone said something to me"
23:41:54 <LordAro> "oh, yes, i just commented"
23:55:08 <iSoSyS> well, no luck. Either 7fffffff is load with two instruction. Or it is a zero negated and shifted somewhere, or some weird shit. Hand written assembly is bound to have little tricks :|
23:55:18 *** Thedarkb-T60 has joined #openttd
23:55:47 <LordAro> @calc 0x7fffffffffffffff
23:55:47 <DorpsGek> LordAro: 9223372036854775808
23:57:06 <iSoSyS> yeah, somewhere along the way we allowed the rich to be much much richer :D
23:58:07 <LordAro> iirc being able to overflow your money in TTD was a well known issue
23:58:50 <DorpsGek_II> [OpenTTD/OpenTTD] MiguelHorta commented on issue #6938: Incorrect value for "Cost to Clear" for Company Headquarters in tile inspector https://git.io/fx8Bm
continue to next day ⏵