IRC logs for #openttd on OFTC at 2018-07-07
            
00:09:59 *** iSoSyS has quit IRC
00:33:27 *** KouDy has quit IRC
01:00:07 *** Wacko1976 has quit IRC
01:00:22 *** KouDy has joined #openttd
01:01:56 *** Thedarkb has joined #openttd
01:05:32 *** Progman has quit IRC
01:14:06 *** Thedarkb has quit IRC
01:36:12 *** supermop has joined #openttd
01:37:58 *** Wormnest has quit IRC
01:38:37 *** keoz has quit IRC
01:40:20 *** frosch123 has quit IRC
01:49:11 *** Thedarkb has joined #openttd
02:02:32 <Eddi|zuHause> turns out i hate this feeling when i get stuck in an adventure game
02:03:29 <Eddi|zuHause> at the edge of this moment where the urge to open a walkthrough rises, but not yet overcomes the feeling that would be cheating
02:10:02 *** Bobax has joined #openttd
02:10:41 <Supercheese> if you're lucky, there'll be an in-game hint system
02:11:22 <glx> sometime hint system is worse than a walkthrough
02:11:56 *** Stimrol has quit IRC
02:12:05 *** Bobax has quit IRC
02:12:55 <glx> what's the game ?
02:13:04 <glx> maybe we can help
02:24:39 <Eddi|zuHause> nah...
02:24:52 <Eddi|zuHause> i'll continue tomorrow, or so
02:34:54 *** mindlesstux has quit IRC
03:15:02 *** KouDy has quit IRC
03:21:13 *** Supercheese has quit IRC
03:29:24 *** KouDy has joined #openttd
03:37:50 *** Flygon has joined #openttd
03:38:13 *** KouDy has quit IRC
03:57:28 *** supermop has quit IRC
03:57:47 *** HerzogDeXtEr has quit IRC
04:08:35 *** Cthulhux has quit IRC
04:11:04 *** Thedarkb1 has joined #openttd
04:17:49 *** Thedarkb has quit IRC
04:19:27 *** muffindrake2 has joined #openttd
04:21:15 *** muffindrake1 has quit IRC
04:29:17 *** smoke_fumus has quit IRC
04:29:20 *** KouDy has joined #openttd
04:43:43 *** glx has quit IRC
05:20:31 *** KouDy has quit IRC
05:48:28 *** KouDy has joined #openttd
06:09:03 *** KouDy has quit IRC
06:14:50 *** KouDy has joined #openttd
06:50:00 *** rocky113844 has quit IRC
07:35:15 *** sla_ro|master has joined #openttd
07:44:16 *** synchris has joined #openttd
08:08:18 *** keoz has joined #openttd
08:23:43 *** Wacko1976 has joined #openttd
08:38:43 *** Wacko1976 has quit IRC
08:52:17 *** Alberth has joined #openttd
08:52:17 *** ChanServ sets mode: +o Alberth
08:52:21 <Alberth> o/
09:00:21 *** andythenorth has joined #openttd
09:01:25 *** nielsm has joined #openttd
09:01:45 <andythenorth> eh when did master stop compiling :|
09:01:47 * andythenorth bisecting
09:16:41 <Alberth> :o it did?
09:17:10 <Alberth> we had some warnings introduced recently, that kills the compilation?
09:17:32 <Alberth> also, you may want use 'blame' on the offending line :p
09:21:23 <Alberth> works for me
09:32:26 <andythenorth> L702 https://github.com/OpenTTD/OpenTTD/commit/5f86e1a390b4aa9510d43f97251484ca67934f1c#diff-ebbc445f07842947d83d0f98b7fa5140
09:32:52 <andythenorth> src/economy.cpp:702:20: error: expected expression
09:32:53 <andythenorth> c->cur_economy = {};
09:34:57 <Alberth> :O c++11 magic, probably
09:36:04 <peter1138> CI needs to enforce not-c++11?
09:39:47 <nielsm> what kind of ancient compiler are you using?
09:39:49 <nielsm> :(
09:40:08 <nielsm> but yeah it's probably because the {} invokes the "universal initialialization" rules
09:40:53 <nielsm> so the {} should really be replaced with Economy() or whatever the name is default constructor
09:41:38 <Alberth> Likely one of the fields in CompanyEconomyEntry is not a POD, so you shouldn't 0 the memory?
09:41:39 *** HerzogDeXtEr has joined #openttd
09:42:38 <Alberth> CompanyEconomyEntry has no constructor, so just CompanyEconomyEntry(); should work
09:46:09 <Alberth> or doesn;t a struct have constructors by default?
09:46:09 <Alberth> ok, it does compile with that change
09:46:51 <nielsm> yeah Money is not a POD type
09:47:06 <nielsm> because OverflowSafeInt<> has custom constructors
09:47:11 <andythenorth> FWIW Apple LLVM version 9.0.0 (clang-900.0.39.2)
09:47:33 <Alberth> other projects cast the pointer to a void* :p
09:47:55 <nielsm> that's called putting on a blindfold
09:48:07 <Alberth> c->cur_economy = CompanyEconomyEntry(); <-- andythenorth, does this work?
09:48:12 <nielsm> doesn't make the chasm disappear from around you :)
09:48:54 <Alberth> you got to introduce more sublte bugs with improved compiler bug detection, eh? :)
09:49:24 <nielsm> a little while ago I looked into trying to turn Money into a POD type but it's surprisingly hard, everywhere depends on having easy ways to put regular values into them
09:50:04 <Alberth> why did you try that? is a class wrong?
09:50:35 <nielsm> lots of things seem to assume OverflowSafeInt<> are actually POD, even though they technically aren't
09:51:06 <Alberth> ah, fair enough, and yes that sounds likely to happen
09:51:32 <nielsm> it's only by technicality since none of the constructors actually do anything interesting
09:51:46 <nielsm> so it's unlikely to cause real problems
09:51:57 <Alberth> must keep our lord busy :)
09:52:16 <nielsm> unless compilers end up making incorrect optimizations because of aliasing assumptions
09:52:59 <Alberth> they might at some point, the c++ language is moving as we speak
09:55:25 *** dvim has quit IRC
09:57:34 <andythenorth> Alberth: new error
09:57:40 <andythenorth> src/landscape.cpp:1083:9: error: non-aggregate type 'AyStar' cannot be initialized with an
09:57:41 <andythenorth> initializer list
09:57:42 <andythenorth> ;)
09:57:46 <andythenorth> so eh
09:57:58 <andythenorth> le joy
09:59:12 <Alberth> oh, different place at least :)
09:59:21 <nielsm> let's try adding a bunch of static_assert(std::is_pod<T>()); into the various custom container templates here
09:59:41 <nielsm> andythenorth for that one just remove the ={}
10:00:19 <Alberth> andy, revert to master, and run "make -k" that will try to compile all files even if there are errors. Then make an issue
10:00:29 <nielsm> since "AyStay finder;" also does default initialization
10:01:51 <Alberth> solving them one by one works too, of course :)
10:02:05 <andythenorth> ok
10:06:35 <andythenorth> hmm
10:06:44 <andythenorth> maybe there's a flag to print only errors
10:06:47 <andythenorth> not warnings
10:08:37 <Alberth> openttd does aim for a warning-less compile
10:08:50 <andythenorth> we're failing then :)
10:09:00 <Alberth> clearly :)
10:14:14 *** roidal has joined #openttd
10:15:32 <andythenorth> I need to pick out just the errors
10:15:40 <andythenorth> I'll do it manually
10:19:02 <planetmaker> o/
10:19:08 <nielsm> welllll https://0x0.st/sfKS.txt
10:19:45 <andythenorth> hi planetmaker
10:20:55 <andythenorth> seems to be the errors https://paste.openttdcoop.org/ppjajx8dt
10:20:58 <andythenorth> warnings are many more
10:40:35 <nielsm> https://gist.github.com/nielsmh/af22db0fc00f37afc857343f333e7c2b
10:40:58 <nielsm> making ottd compile with that patch is a good summer project!!
10:46:51 <LordAro> haha
10:46:56 <planetmaker> honest question: what would be the advantage of enforcing that, nielsm?
10:47:12 <LordAro> removing autofreeptr wouldn't go amiss either
10:49:50 <nielsm> autofreeptr should probably be replaced with std::unique_ptr
10:53:01 <nielsm> moving the codebase to modern more type-safe C++ or not I'd say is a question of whether you want OTTD to be a reotro-ish game for old systems or one for new systems
10:53:56 <planetmaker> aye. thx
10:53:58 <LordAro> removing the need for pretty much all of src/core has been something i've been keen on for a while
10:54:17 <planetmaker> :) you're Mr C++11 anyway :)
10:54:34 <LordAro> lol
10:54:39 <LordAro> Mr C++14, please
10:56:13 <Alberth> you're getting younger as time progresses :p
10:57:11 <planetmaker> hehe
10:58:40 *** sla_ro|master has quit IRC
10:59:28 <Alberth> hmm, grfcodec compile fails
11:12:12 <andythenorth> :{
11:13:43 <LordAro> nielsm: the first error i get appears to be related to SmallMap<int, QueryString*> - are pointers not acceptable to is_pod?
11:17:25 *** frosch123 has joined #openttd
11:17:29 <Alberth> o/
11:20:23 <frosch123> moo
11:20:35 <LordAro> o/
11:22:57 <nielsm> LordAro, pointers are supposed to be fine
11:23:14 <planetmaker> \o
11:23:35 <LordAro> nielsm: well they seem not to be, unless i'm misreading the error message
11:23:46 <LordAro> i just replaced it with a std::map anyway :)
11:23:55 <nielsm> unless SmallMap assumes the second type is a pointer that can be deref'd and free'd
11:25:46 *** WWacko1976-work has joined #openttd
11:27:07 <nielsm> ah
11:27:34 <nielsm> SmallMap<T,U> compiles to a SmallVector<SmallPair<T,U>> and SmallPair<> is not POD
11:27:43 <LordAro> ah right
11:28:56 <nielsm> but I somewhat want a "map" type that doesn't try to do anything fancy, litreally just inserts items in order, moves item from back into empty position when you remove one in the middle, and does linear search for lookups
11:29:19 <nielsm> since that really can be faster than doing hash tables or balanced trees
11:41:00 <michi_cc> andythenorth: That clang version should support c++11 AFAIK, but you might be a victim of #6773 and not getting the proper compile flags.
11:44:24 *** Progman has joined #openttd
11:44:48 <andythenorth> maybe I can apply JGR's patch
11:49:06 <Alberth> https://github.com/Alberth289346/OpenTTD/commit/c8d71848d32212a020e8dfb8b51cd90b5c1e9b64 might do the trick
11:49:28 <Alberth> AyStar is tricky, not sure if that should be allowed
11:49:58 <LordAro> shouldn't be a lot of other warnings anyway..
11:50:06 <LordAro> my bet is on the #6773 issue
11:50:09 *** Wormnest has joined #openttd
11:50:12 * andythenorth compiling
11:51:14 <andythenorth> yeah compiles with JGR's patch
11:51:20 <andythenorth> fewer warnings also
11:51:28 <andythenorth> I haven't tried yours yet Alberth
11:51:41 <LordAro> what warnings are there?
11:52:37 <Alberth> (10:20:55) andythenorth: seems to be the errors https://paste.openttdcoop.org/ppjajx8dt
11:52:50 <nielsm> Alberth I think it's fine with AyStay, the type is not a POD (because it has non-public members) so it should have a compiler-generated default constructor, which also default-constructs all members
11:52:52 <Alberth> there are a lot more warnings, apparently
11:52:58 <andythenorth> LordAro: these all look macOS specific https://paste.openttdcoop.org/pvb5lnrj7
11:52:59 <nielsm> i.e. zero initializes them for the most part
11:53:13 <Alberth> nielsm: ok
11:53:32 <LordAro> andythenorth: ah yeah, not a lot i can do about the deprecated stuff
11:53:50 <andythenorth> and these are the others https://paste.openttdcoop.org/pbrq6lrsm
11:53:51 <LordAro> perhaps there are some ifdef stuff that could be amended
11:55:47 <nielsm> hmm, maybe I'm wrong about that
11:59:53 <nielsm> yeah it'd be better to give AyStar a user-defined constructor that initializes it properly
12:03:57 <Alberth> hmm, perhaps make a few derived classes to get rid of the C-style OO
12:04:25 <Alberth> for me, not today at least
12:07:46 *** sla_ro|master has joined #openttd
12:20:44 *** andythenorth has quit IRC
12:29:34 *** andythenorth has joined #openttd
12:33:40 *** andythenorth has quit IRC
12:51:51 *** Thedarkb1 has quit IRC
13:13:23 *** Thedarkb1 has joined #openttd
13:27:37 *** Cthulhux has joined #openttd
13:40:06 *** sla_ro|master has quit IRC
13:46:41 *** iSoSyS has joined #openttd
13:56:57 *** Thedarkb1 has quit IRC
13:57:20 *** Thedarkb1 has joined #openttd
14:00:14 *** andythenorth has joined #openttd
14:09:26 <peter1138> burp
14:09:28 <andythenorth> yo
14:10:02 <peter1138> hot day
14:11:49 <andythenorth> isn't it
14:13:01 *** Laedek has joined #openttd
14:13:05 *** qwebirc52686 has joined #openttd
14:13:27 <qwebirc52686> Hello! I can't change to currency 'Euro (EUR)' ingame.. Can anyone help?
14:18:33 <qwebirc52686> I tried to change the currency at the main menu and that works, but when I get back into the saved game it gets back to USD
14:19:00 <peter1138> Did you try changing it in game?
14:19:08 <qwebirc52686> Yes, but I could not select it
14:20:34 *** Stimrol has joined #openttd
14:23:56 <qwebirc52686> Here: https://prnt.sc/k3mwfq
14:24:46 <michi_cc> qwebirc52686: Wait for the year 2000.
14:25:04 <qwebirc52686> I'll try
14:25:57 <michi_cc> OTTD models the Euro changeover for affected currencies.
14:31:49 <peter1138> Of which, USD isn't one...
14:38:36 <nielsm> yeah if you use D-Mark or Franc or some other pre-EUR currency it just gets converted to EUR on the date
14:41:02 *** Stimrol has quit IRC
14:46:27 *** qwebirc52686 has quit IRC
14:50:36 *** Stimrol has joined #openttd
15:08:02 *** Gja has joined #openttd
15:12:05 *** stefino has joined #openttd
15:14:18 <stefino> hello. Have bridges ground sprites like buildings and can I change them? I mean ends of the bridges.
15:14:58 *** Stimrol has quit IRC
15:18:04 <stefino> I need to change them to flat grass - not 3D https://s22.postimg.cc/z1w5j9sht/V_st_i_ek.jpg
15:19:40 <nielsm> you mean the ground sprites below bridgeheads?
15:21:02 <stefino> yes :)
15:22:24 <stefino> if it has the same code logic like buildings where can I choose ground sprite what will be displayed under the building
15:23:39 <stefino> the same mechanism is at industry tiles and stations - if I remember corectly
15:26:11 *** Gja has quit IRC
15:33:06 *** sim-al2 has quit IRC
15:35:45 *** RafiX has joined #openttd
16:04:29 *** HerzogDeXtEr has quit IRC
16:06:06 *** HerzogDeXtEr has joined #openttd
16:11:04 *** techmagus has quit IRC
16:15:25 *** stefino has quit IRC
16:20:26 *** sla_ro|master has joined #openttd
16:38:54 *** Flygon has quit IRC
16:45:24 *** Progman has quit IRC
17:12:12 <Eddi|zuHause> <michi_cc> qwebirc52686: Wait for the year 2000. <-- i don't think that was the answer he was looking for. but rather he was looking for the settings menu while in the game, instead of the main menu
17:13:13 *** snail_UES_ has joined #openttd
17:15:31 *** Xaroth has joined #openttd
17:15:33 <__ln__> i'm not aware of any countries introducing the euro already in 2000.
17:17:09 *** keoz has quit IRC
17:38:19 <Eddi|zuHause> well, there was this time period where the euro was already adopted by banks and bureaucracy, before the actual coins/bills were distributed
17:38:40 <Eddi|zuHause> at that point, the exchange rates were frozen
17:38:54 <__ln__> yes, that i remember
17:39:56 <while> does that mean starting in the year 2000, speculative attacks in Europe were no longer feasible (such as Black Monday in the UK in I think 1993)
17:41:14 <Eddi|zuHause> it might have been 1999 or 1998
17:42:32 <__ln__> i think 1999 is the earliest year stamped on euro coins
17:51:13 *** Thedarkb1 has quit IRC
17:58:19 *** Mahjong1 has quit IRC
17:58:37 *** Mahjong1 has joined #openttd
18:07:12 *** Alberth has left #openttd
18:19:49 *** HerzogDeXtEr1 has joined #openttd
18:22:55 *** HerzogDeXtEr has quit IRC
18:22:55 *** nauticalnexus has quit IRC
18:22:55 *** Compu has quit IRC
18:22:55 *** Sylf has quit IRC
18:22:55 *** Sacro has quit IRC
18:22:55 *** OsteHovel has quit IRC
18:22:55 *** TinoDidriksen has quit IRC
18:24:55 *** nauticalnexus has joined #openttd
18:25:32 *** Compu has joined #openttd
18:25:32 *** TinoDidriksen has joined #openttd
18:25:32 *** Sylf has joined #openttd
18:25:32 *** Sacro has joined #openttd
18:25:32 *** OsteHovel has joined #openttd
18:25:38 *** KouDy has quit IRC
18:26:14 *** OsteHovel has quit IRC
18:26:26 *** OsteHovel has joined #openttd
18:27:12 *** synchris has quit IRC
18:28:17 <__ln__> https://ec.europa.eu/eusurvey/runner/2018-summertime-arrangements
18:28:24 *** synchris has joined #openttd
18:30:03 <planetmaker> is that server functional again?
18:33:07 <__ln__> seems to be
18:37:38 *** KouDy has joined #openttd
18:45:46 *** Stimrol has joined #openttd
18:59:10 *** Thedarkb1 has joined #openttd
19:00:29 *** Guest616 has joined #openttd
19:11:41 <andythenorth> is 64 cargo FIRS yet? o_O
19:23:19 *** andythenorth has quit IRC
19:30:12 *** Gja has joined #openttd
19:53:17 <peter1138> Is it?
19:55:55 *** Dragonidus has joined #openttd
19:59:16 *** Dragonidus has quit IRC
20:01:43 *** Gja has quit IRC
20:03:18 *** Supercheese has joined #openttd
20:12:46 <berndj> are 2x2 city blocks better than 2x3? (or even 2x4 or more) i kinda like "dense" cities and having 55% of the space taken up by roads rather than 50% seems sub-optimal
20:18:21 <planetmaker> it doesn't matter really @ berndj
20:18:52 <planetmaker> berndj, it's only important that the houses have road contact. That means that 3x3 grid might not work well. But anything 2xn works
20:19:00 <berndj> i just wish cities didn't build their own roads so bizarrely lol
20:19:10 <planetmaker> as long as there's an occasional perpendicular road :)
20:19:32 <planetmaker> berndj, there's the config option to choose the city road build pattern. Regular ones are available
20:19:35 <planetmaker> like 2x2 iirc
20:19:36 <berndj> does it have to be lateral contact? i.e. not corner contact?
20:19:50 <planetmaker> indeed. corner is no contact
20:20:01 <berndj> is build pattern newish? i haven't seen such an option, but i'm on about 1.3 or 1.4
20:20:20 <planetmaker> new... no. But 1.3 is not new either. It's 5 years old
20:20:52 <berndj> sometimes i have 3x3 blocks and just have a single-square road to get to the middle house
20:22:08 <planetmaker> (svn r12534) -Feature: Add a new type of town road layouts - random for each town
20:22:15 <planetmaker> That must be older than a decade ;)
20:25:58 <Eddi|zuHause> pretty much
20:26:17 <planetmaker> 2008
20:26:30 <planetmaker> Date: Tue Apr 1 16:27:01 2008 +0000
20:26:56 <planetmaker> skidd13... long time ago :)
20:33:19 *** Progman has joined #openttd
20:36:51 *** KouDy has quit IRC
20:44:23 *** iSoSyS has quit IRC
21:00:07 *** glx has joined #openttd
21:00:07 *** ChanServ sets mode: +v glx
21:45:28 *** _dp_ has joined #openttd
21:55:48 *** KouDy has joined #openttd
22:00:17 *** KouDy has quit IRC
22:13:31 *** rocky113844 has joined #openttd
22:14:15 *** muffindrake2 has quit IRC
22:17:06 <while> I turn off local road building, and layout the towns in a custom manor
22:17:43 <while> also lower all towns to sea level, and build canals around them, if I want to build an airport, just let in some lake, build canals as it fills my desired selection
22:17:58 <while> then bulldoze the water, and plob an airport
22:26:14 *** sla_ro|master has quit IRC
22:42:54 *** sim-al2 has joined #openttd
22:51:03 *** KouDy has joined #openttd
22:51:50 *** roidal has quit IRC
22:55:41 <Eddi|zuHause> now imagine some real world dictator would do that
22:57:08 <nielsm> hmm, I know newgrfs can change the base costs of all kinds of things, can they also change it based on year?
22:57:24 <nielsm> (or other parameters)
22:57:38 <nielsm> (maybe even based on map coordinates of the action?)
22:57:49 <Eddi|zuHause> i think it is only evaluated on game start/load
22:58:49 <Eddi|zuHause> it wouldn't be much of a "base" cost if it were different depending on location
22:59:02 <nielsm> well true
22:59:59 <peter1138> Yeah, base cost is not variable.
23:00:11 <nielsm> same for costs of bridge types
23:01:00 <nielsm> was reading random things the other day, and it might make sense to model that certain types of construction have changed relative costs depending on technology and societal norms
23:02:19 <frosch123> cost only matters in the first 10 game years though
23:02:23 <nielsm> moving large amounts of dirt was infeasible until maybe after WW2? but making huge wooden constructions was easier to get done with large groups of workers
23:02:48 <nielsm> yeah and it's sad that every builder game ends up as a sandbox after getting the base income :)
23:04:17 <frosch123> i wouldn't consider that sad :p
23:34:15 *** tokai has joined #openttd
23:34:15 *** ChanServ sets mode: +v tokai
23:36:02 *** snail_UES_ has quit IRC
23:46:20 *** nielsm has quit IRC
23:47:44 *** Lejving has joined #openttd