Config
Log for #openttd on 20th May 2018:
Times are UTC Toggle Colours
00:04:51  *** sim-al2 is now known as Guest3131
00:04:52  *** sim-al2 has joined #openttd
00:08:26  *** Guest3131 has quit IRC
00:39:59  *** KouDy has joined #openttd
00:57:56  *** chomwitt has quit IRC
01:07:36  *** glx has quit IRC
01:37:38  *** supermop_work has joined #openttd
01:45:59  *** KouDy has quit IRC
01:57:47  *** Supercheese has quit IRC
01:58:04  *** Supercheese has joined #openttd
02:27:21  *** muffindrake2 has joined #openttd
02:29:13  *** muffindrake1 has quit IRC
03:08:11  *** KouDy has joined #openttd
03:18:59  *** Flygon has joined #openttd
03:35:49  *** HerzogDeXtEr1 has joined #openttd
03:42:48  *** HerzogDeXtEr has quit IRC
04:02:05  *** KouDy has quit IRC
04:15:16  *** KouDy has joined #openttd
05:23:11  *** Supercheese has quit IRC
05:28:37  *** sla_ro|master has joined #openttd
05:33:09  *** Pikka has joined #openttd
05:42:13  *** Thedarkb-X40 has quit IRC
05:42:52  *** Thedarkb-X40 has joined #openttd
05:47:24  *** Thedarkb-X40 has quit IRC
05:47:31  *** Thedarkb-X40 has joined #openttd
05:50:24  *** Alberth has joined #openttd
05:50:24  *** ChanServ sets mode: +o Alberth
06:10:58  *** nielsm has joined #openttd
06:15:57  *** Wacko1976 has joined #openttd
06:23:30  *** snail_UES_ has quit IRC
06:24:03  *** Wacko1976 has quit IRC
06:30:42  *** andythenorth has joined #openttd
06:33:27  <andythenorth> o/
06:40:11  <Alberth> moin
06:40:55  <Pikka> o/
06:44:51  *** sim-al2 is now known as Guest3144
06:44:52  *** sim-al2 has joined #openttd
06:45:40  <andythenorth> is it done then Pikka?
06:45:49  <Pikka> more or less
06:45:50  <andythenorth> it's nice to play a game with
06:45:59  <andythenorth> better than playing MP with humans :P
06:46:12  <andythenorth> it's not very good at amusing chat though
06:46:33  <Pikka> true
06:47:00  <andythenorth> I had 2 of them in my game
06:48:44  <Pikka> two is a good number
06:48:54  *** Guest3144 has quit IRC
06:49:30  <Pikka> and they seem to be a little less prone to traffic jams now that they don't build bus stops on top of each other. maybe.
06:57:25  * andythenorth looks in game
06:58:12  <andythenorth> they've made some 30 tile jams, but nothing deadlocked
06:58:22  <andythenorth> they're not competing in the same cities, which helps
07:04:16  <Alberth> and not in city that you serve :)
07:13:06  <andythenorth> I serve it with trains
07:13:12  <andythenorth> they grow it with buses :P
07:13:45  <Alberth> :)
07:17:38  <andythenorth> what laptops do people buy now?
07:17:51  * andythenorth has no idea how to know which ones are good
07:17:56  <andythenorth> it used to be 'just buy Dell'
07:18:50  * andythenorth on the HP store, very confusing
07:20:08  <debdog> https://minifree.org/product/libreboot-t400/
07:22:10  *** Progman has joined #openttd
07:24:43  <andythenorth> dissapointingly 'best high end laptops' reviews are saying buy a mac :x
07:25:24  <andythenorth> or a Surface
07:25:38  <andythenorth> but Surface has ridiculous failure rate due to silly engineering
07:44:19  *** chomwitt has joined #openttd
07:46:48  <peter1138> debdog, what is this, 2006?
07:51:05  <andythenorth> I found some kind of Lenovo thing
07:52:07  <andythenorth> same crap battery life as what I've got though ~55 watt hours
07:52:34  <andythenorth> based on 'what laptop to buy in 2018' reviews, it's not currently possible to buy a good laptop of any kind :P
07:56:03  <nielsm> the personal computer is dying
07:57:01  <andythenorth> we have ipad pros for the kids
07:57:05  <andythenorth> they're awesome
07:57:12  <andythenorth> unless you want to type, or use a real OS
07:57:33  <andythenorth> although the plugin keyboard solves typing :P
07:57:42  <nielsm> rent a server somewhere and use a chromebook as thin client
07:57:43  <andythenorth> but iOS is total crap
07:58:01  <andythenorth> I could get a VT220 terminal :P
07:58:09  <andythenorth> one colour, saves on GPU
08:12:52  <peter1138> Er, what does it mean when you have a DirDiff of 5?
08:22:42  *** Wacko1976 has joined #openttd
08:29:54  *** sim-al2 has quit IRC
08:34:46  *** Progman has quit IRC
08:35:14  *** KouDy has quit IRC
08:37:02  *** Wacko1976 has quit IRC
08:38:37  <peter1138> Cool, got it working.
08:39:31  <Eddi|zuHause> dirdiff is in 45° steps, so you have 8 steps for 360°?
08:39:56  <peter1138> Yeah, it means 135 deg rotation, but those are not listed in the enum for some reason.
08:40:59  <Eddi|zuHause> maybe it assumed some kind of normalization?
08:41:06  <peter1138> Possibly.
08:41:20  <peter1138> Hmm, awkard, there's a 1 position shift :S
08:42:10  *** KouDy has joined #openttd
08:45:42  <peter1138> The enum documents that it only contains 6 of the 8.
08:45:51  <peter1138> And you can just add together to get the remaining two.
08:45:53  <peter1138> Seems odd :p
09:01:10  <peter1138> Oh, interesting.
09:01:32  <peter1138> I accidentally made it so that the viewport is only refreshed every MILLISECONDS_PER_TICK.
09:02:00  <peter1138> That means in FFWD with no much going on, several game ticks happen before anything is drawn.
09:02:11  <peter1138> Super-FFWD!
09:02:13  <andythenorth> is it super fast? o_O
09:02:23  *** Fuco has joined #openttd
09:03:13  <Eddi|zuHause> that doesn't sound too unreasonable
09:03:33  <peter1138> http://fuzzle.org/~petern/ottd/superffwd.png
09:03:59  <peter1138> There's a bit of income there :p
09:05:01  <peter1138> I changed the income text to move in realtime as well, so yeah, it sticks around.
09:05:02  <michi_cc> Bah, who disallowed using µ in OTTD sources?
09:05:08  <peter1138> Is it disallowed?
09:05:32  <michi_cc> "b/src/music/dmusic.cpp:37: Non-ASCII found:"
09:05:33  <peter1138> Hmm, oh, maybe there's some test about ASCII or something. Probably an oversight?
09:05:38  <michi_cc> It's in a comment.
09:06:28  <Eddi|zuHause> we discussed the possibility of allowing utf-8 in code files recently
09:06:58  *** frosch123 has joined #openttd
09:07:03  <andythenorth> bbbls
09:07:04  <Eddi|zuHause> no idea what came out of it
09:07:06  *** andythenorth has quit IRC
09:08:23  <peter1138> michi_cc, changes to src/debug.cpp too?
09:10:08  <michi_cc> Was too lazy to do another PR for that.
09:10:16  <peter1138> o_O
09:14:37  <peter1138> Hmm, I wonder if I can prevent ships driving into the dock after finishing loading.
09:15:23  <Eddi|zuHause> by allowing ships to turn inplace and pathfinding in all directions on start?
09:16:38  <nielsm> michi_cc, I'm not entirely sure, but I think the reason my "Sleep(100) hack" works for making all-notes-off actually transmit when the game exits in current dmusic player is just that it allows other threads to process messages, i.e. lets whatever background thread dmusic uses also run its message loop a few times
09:16:51  <nielsm> so it shouldn't need to depend on anything actual timing-related
09:16:59  <nielsm> in fact even Sleep(0) might be enough
09:17:35  <peter1138> Eddi|zuHause, I've got the turn in place thing working.
09:18:30  <peter1138> Pathfinding only happens on a new tile, the issue is loading also happens on a new tile, and once it's finished loading, it's now on that tile and is permitted to travel across it... (into the dock)
09:20:07  <michi_cc> nielsm: Whatever performance Stop does, I couldn't exactly replicate it anyway because I fail to see how to stop an already submitted buffer. As such, the new TransmitNotesOff does a sleep anyway.
09:20:50  <peter1138> Hmm, actually loading happens once it's in the new tile. Maybe doing it before would help.
09:21:51  <nielsm> michi_cc: ahh
09:24:03  <Alberth> so a switch from eg NE to N is first straight to the edge and then diagonal?
09:24:30  <michi_cc> nielsm: I don't own a HW synth though, so it of course might not work like I think it works :)
09:25:57  <nielsm> michi_cc I think it might be okay to also just let dmusic only support the softsynth, and leave hardware synth support to the win32 driver
09:28:33  <peter1138> Oh, found a simple solution. When finished unloading, just force a reverse.
09:28:46  <peter1138> Ideally it should only do that if it's directly facing the dock though.
09:28:58  <nielsm> this sounds dumb, routing midi out to my cheap electric piano, it only has 10 instruments or so, so most things get mapped to piano
09:29:36  <peter1138> nielsm, should I've plug my synth in? It's only got 8 voices, and it's analogue modelling...
09:30:11  <peter1138> Looks a lot better when reversing after docking anyway
09:30:54  <peter1138> Just need to check if the current direction matches the dock direction? Hmm.
09:34:07  <nielsm> http://0x0.st/se6B.MP3  <-- mic-to-speakers recording so also features some bonus bird peeping
09:35:40  <Alberth> tile + 1 == dock :)
09:35:51  <Eddi|zuHause> peter1138: maybe you should still just perform pathfinding in both directions, like when deciding for trains whether they should reverse in station?
09:36:16  <Alberth> preparing for drive-through docks
09:36:18  <peter1138> Eddi|zuHause, no point, if it's facing the dock there'll never be a path.
09:36:39  <peter1138> Alberth, hahah
09:36:59  <nielsm> peter1138: playing GM music through totally inappropriate synths is part of the fun!
09:37:28  <peter1138> nielsm, I had a Gravis Ultrasound back in the day. It was supposedly really good but lack of memory made *everything* a compromise.
09:38:01  <peter1138> I had the 256KB model. The 1MB model was a lot better. Percussion tendded to lose out on the smaller one.
09:38:18  <Eddi|zuHause> peter1138: yeah, but it'll catch other cases like dock-in-river where the ship is maybe continuing on the river but maybe turning back?
09:38:28  <nielsm> my first decent-sounding midi synth was an AWE64
09:38:48  <nielsm> I believe I still have the card, but not sure if it works (and don't have a PC with ISA slot anyway)
09:38:50  <Eddi|zuHause> i had an AWE32
09:38:53  <peter1138> Hmm, ok. Doesn't need to pathfind though. Just check if the next tile is traversable.
09:41:53  <michi_cc> nielsm: It doesn't sound too bad, John Broomhall seems to have done quite a good job :)
09:42:34  <nielsm> damn the brass parts sound so nice on the SC-55 :)
09:42:44  <nielsm> also the bass
09:43:53  <Eddi|zuHause> i remember being totally blown away by one of the midi demos that came with the AWE32
09:44:50  <Eddi|zuHause> (before that the only sound i had was from the speaker)
09:50:52  <peter1138> Yay, working.
09:51:11  <peter1138> Hmm, should we have a NewGRF property... turning speed. :p
09:54:16  *** iSoSyS has joined #openttd
10:00:20  *** gelignite has joined #openttd
10:01:50  <peter1138> Do ships drive or sail?
10:02:00  <peter1138> I'll go with move :p
10:02:21  <Alberth> +1
10:03:11  *** Gja has joined #openttd
10:05:47  <Eddi|zuHause> i'd prefer "drive" over "sail"
10:06:20  <peter1138> The old title game is saved with one of the hovercraft already heading into the dock.
10:06:30  <peter1138> I don't bother preventing that :p
10:09:28  <Alberth> :)
10:09:40  *** synchris has joined #openttd
10:10:00  *** Wormnest has joined #openttd
10:10:05  <Alberth> "float"  :)
10:10:28  <nielsm> "go"!
10:10:37  <peter1138> Grr, twitch.tv has OpenTTD listed as "Open Transport Tycoon Deluxe" :(
10:10:39  <nielsm> or travel
10:11:02  <Eddi|zuHause> sue them? :p
10:17:52  <peter1138> Hmm, I think I need to use TrainExitDir
10:18:06  <peter1138> Which is static inline in train_cmd.cpp o_O
10:18:25  <peter1138> q
10:18:30  <peter1138> Oo, not vim.
10:21:03  <peter1138> Hmm, TileAddByDir is also not good enough when moving N
10:23:51  <peter1138> Ok, better.
10:25:28  <FLHerne> peter1138: Using exactly the order-distance limit isn't going to work well
10:25:51  <peter1138> FLHerne, probably needs a little extra, indeed.
10:25:57  <FLHerne> peter1138: If a boat happens to leave the dock going in the wrong direction, it'll immediately be over the limit and get lost :-/
10:26:39  <Eddi|zuHause> you can easily go 2*limit
10:27:21  <Eddi|zuHause> when the point is that there is *some* limit, it doesn't have to be so strict
10:31:35  <peter1138> Eddi|zuHause, the point of the limit is to reduce pathfinding cost, so 2* is a bit excessive.
10:37:42  *** andythenorth_ has joined #openttd
10:37:54  <peter1138> Right, that tweak works better. It didn't work on non-diagonal directions.
10:38:27  <andythenorth_> Pikka: so US Horse, just a GP40 then?
10:45:44  <peter1138> https://www.twitch.tv/peter1138 < yay stuck :p
10:51:31  *** andythenorth_ has quit IRC
10:51:49  *** andythenorth_ has joined #openttd
10:51:59  <andythenorth_> lawks
10:52:10  <andythenorth_> twitch crashed my phone :p
10:56:01  *** andythenorth_ has quit IRC
10:56:03  <peter1138> Oh no!
10:56:07  <peter1138> And I closed it now anyway.
10:56:36  *** andythenorth_ has joined #openttd
10:59:34  *** andythenorth_ has quit IRC
11:06:24  *** andythenorth_ has joined #openttd
11:09:20  <Pikka> lawks indeeed
11:32:20  <nielsm> I've spent almost £18,000 listening to music this game
11:32:50  <nielsm> (loan interest and "other" expenses for almost 8 years of game time doing nothing)
11:32:54  <peter1138> You can pretend you are an audiophool!
11:33:18  <peter1138> £18,000? That's just the oxygen-free directional power cable.
11:33:50  <Eddi|zuHause> "glutenfree","bio"?
11:34:00  <peter1138> Ok, when skipping drawing the viewport in the title game, months pass by at about the same rate as days when not skipping.
11:34:38  <Eddi|zuHause> you mean finally fast forward is actually fast?
11:35:08  <peter1138> Only when not much is going on.
11:35:20  <peter1138> The old title game is pretty minimal.
11:35:30  <peter1138> Pikka-update!"
11:35:32  <peter1138> -"
11:36:19  <Eddi|zuHause> peter1138: so actually, we will get more reports of "fast-forward is not fast", because now the discrepancy between empty map and full map is even bigger?
11:36:32  <peter1138> Right.
11:36:47  <peter1138> I'm going to fix this so it doesn't skip.
11:42:56  <peter1138> orudge, does your changes pile include Windows gesture support?
12:08:22  <Pikka> Pikka-update <- such as it is :P
12:08:33  <Pikka> too much uni this week
12:44:15  <michi_cc> nielsm: Thanks for the look.
12:44:42  <peter1138> michi_cc, building it now
12:46:53  <peter1138> Hmm, sounds different to the win32 driver.
12:47:04  <peter1138> Didn't expect that.
12:47:43  <peter1138> No reverb with win32.
12:47:43  <michi_cc> peter1138: The default DirectMusic synth is *not* the normal Windows MCI synth.
12:47:49  <peter1138> Ahh
12:47:55  <peter1138> :-)
12:48:36  <michi_cc> If both APIs had the identical soft synth backend, I wouldn't have bothered.
12:49:00  <nielsm> michi_cc, and it merged with my dosmusic branch easily as well, so all is good :)
12:50:00  <michi_cc> I think you had a small change to the dmusic driver writing out the smf file, that should be unnecessary then.
12:50:06  <nielsm> yes
12:50:24  <nielsm> instead it needs to check the music file type and call the MPS MIDI loader
12:50:37  <nielsm> maybe that part should also be abstracted...
12:50:47  <nielsm> or moved to midifile.cpp so it can be shared
12:50:56  <nielsm> +rather
12:52:05  *** andythenorth has joined #openttd
12:53:18  <peter1138> Hmm, someone posted the Doom music... isn't that somewhat copyrighted?
12:53:23  <nielsm> yeah
12:53:35  <nielsm> it shouldn't be on bananas
12:53:48  <andythenorth> how long is copyright now?
12:53:52  <andythenorth> probably longer than that
12:53:56  <nielsm> more than 25 years ;)
12:54:05  <andythenorth> it's 50 years since 1968 though eh
12:54:11  <andythenorth> time flies :P
12:55:46  <nielsm> michi_cc, when playing the TTO theme I get a little time compression at the very beginning, as if the first 200 ms or so are compressed into one instant
12:57:42  <Eddi|zuHause> some initialisation missing?
12:57:53  *** sim-al2 has joined #openttd
12:59:18  <nielsm> you don't hear it with the original_windows set since gm_tt00.gm has a bunch of delay at the beginning, but it's also slightly apparent in the Modern Motion theme
13:00:25  <nielsm> (to be fair, TTD DOS running in dosbox actually has a similar problem with songs hurrying a bit right at the beginning)
13:01:14  <nielsm> (hmm, I should make a utility to pack standard midi files into .cat format so you can use any music with ttd dos :)
13:01:39  <Eddi|zuHause> so just add some delay for all files you convert?
13:02:41  <nielsm> (alternatively, write a new music driver for ttd dos that calls something entirely different to play mp3's or whatever :D)
13:02:48  <michi_cc> nielsm: Can you try adding "playback_start_time += _playback.preload_time * MS_TO_REFTIME;" after line 675?
13:02:56  <Eddi|zuHause> TTOPatch?
13:05:28  <nielsm> trying
13:05:38  <nielsm> yeah that seems to fix it
13:08:46  <nielsm> btw, regarding the start/end point and loop flag, I have that in my win32 driver because of the other misc music fixes, the 6 latest commits here: https://github.com/nielsmh/OpenTTD/commits/newmusic
13:09:30  <nielsm> one of those is fixing the delays in the original_windows gm_tt00.gm file ;)
13:19:07  <peter1138> Hmm, okay, I kinda want a daylength patch ;(
13:23:36  *** Pikka has quit IRC
13:29:58  *** gelignite has quit IRC
13:50:04  <andythenorth> such daylength
14:02:02  <_dp_> hm, that reminds me of one more GS patch I wanted to do...
14:06:33  <peter1138> Looping the year? That would probably suffice.
14:07:04  <peter1138> Whew, my nose
14:07:11  <peter1138> Just made some horseradish.
14:08:53  <andythenorth> come back pikka
14:10:07  * andythenorth is planning north american Horse
14:12:15  <andythenorth> stuff like this is OP for most ottd games https://www.american-rails.com/images/WendoverWP402.jpg
14:12:27  <andythenorth> - nerf the stats?
14:12:37  <andythenorth> - leave it out? (there are plenty of smaller trains)
14:12:51  <andythenorth> - nerf the freight wagon capacity to force longer trains?
14:13:03  <peter1138> erm
14:13:27  <peter1138> But it looks cool
14:17:41  <_dp_> peter1138, nah, setting engine availability flags
14:20:59  <andythenorth> - advise freight weight multiplier
14:21:03  <andythenorth> or chibi everything
14:22:54  *** sim-al2 has quit IRC
14:28:09  <nielsm> just make it intensely expensive so it's only worth using with 15+ tile length trains?
14:28:30  <andythenorth> how many 15+ tile stations do you build? o_O
14:28:40  <nielsm> (and maybe have a setting flag for the newgrf to disable ultra heavy duty machines)
14:28:53  <nielsm> some multiplayer games may want to do that...
14:28:56  <andythenorth> I have screenshots somewhere of games where I used to build massive stations
14:29:05  <andythenorth> then co-op bullied me into TL 5
14:31:17  <peter1138> Silly.
14:32:03  <peter1138> Strange, getting tons of ICU crashes :(
14:32:25  *** KouDy has quit IRC
14:32:53  <peter1138> When do we get savegame cloud-storage? :p
14:33:39  * andythenorth shouldn't draw pixels with sunglasses on
14:55:50  *** gelignite has joined #openttd
14:56:01  <_dp_> freight multiplier? I'd rather see a divider :p
14:56:27  <_dp_> passengers are op even without multiplier
14:57:36  <andythenorth> because payment rates? o_O
14:57:50  <andythenorth> or because they're usually payment for both legs of journey?
14:58:29  <_dp_> both
14:58:33  <_dp_> also weight less
14:58:51  <nielsm> or because passengers are generated in absurd amounts compared to town size?
14:59:05  <_dp_> and that too)
15:02:56  <peter1138> LordAro, nice riding
15:03:39  <LordAro> :)
15:04:09  <peter1138> Typical that I get a minor lurgy this lovely weekend :(
15:04:23  <LordAro> :(
15:04:23  <peter1138> Went out yesterday but had no energy.
15:05:31  <FLHerne> andythenorth: I often see max-length trains for steel/goods in MP games
15:05:51  <LordAro> peter1138: a felt a bit meh friday/saturday, luckily didn't progress at all
15:06:22  <LordAro> https://jguegant.github.io/blogs/tech/meta-crush-saga.html hmmmm
15:06:29  <FLHerne> (those tend to have much more centralised/long-distance/efficient networks than SP, for reasons)
15:06:59  <FLHerne> Not sure people would use Horse in such games, though
15:07:37  <FLHerne> (ftr, the last time I built a 15-tile station was yesterday evening on the Reddit server :P)
15:11:48  <_dp_> someone should do a fast food grf
15:12:03  <_dp_> that increases passengers weight with the amount of industries on the map
15:15:08  <peter1138> Hmm, is there a script that will add roads between towns on start up?
15:18:56  <_dp_> there was something like that somewhere
15:23:57  *** KouDy has joined #openttd
15:24:11  <frosch123> there are multiple, i think also pikka wrote one
15:24:19  <frosch123> some are gs, some are ai
15:34:05  *** ToBeFree has joined #openttd
15:36:30  <LordAro> frosch123: is there a particular reason the attributes of CompanyProperties are ordered the way they are? they seem inconsistent
15:38:20  *** ToBeFree has quit IRC
15:39:56  <peter1138> Probably just the order they were in Company?
15:40:22  <frosch123> original order by cs, then people added stuff where they liked
15:40:32  <frosch123> anyway, it does not look that bad to me
15:40:47  <LordAro> name_2 & name_1 are backwards
15:41:00  <LordAro> and i'd probably put them after name anyway
15:41:04  <LordAro> similar for president_name
15:41:27  <frosch123> in those cases, i would not even trust the comments :p
15:41:42  <frosch123> names are magic, which got changed at least twice
15:41:59  <LordAro> hehe
15:42:10  <LordAro> fair enough
15:51:32  *** Thedarkb1 has joined #openttd
15:55:56  <andythenorth> 40% sprites done for Horse :P
15:56:43  * LordAro notes that INVALID_COMPANY == INVALID_OWNER == COMPANY_SPECTATOR
15:56:47  <LordAro> i guess that makes sense
16:01:27  *** KouDy has quit IRC
16:16:19  <LordAro> frosch123: any particular reason for MemCpyT?
16:16:38  <LordAro> in my perfect world, it wouldn't exist at all - std::copy does everything you need it to
16:16:54  <LordAro> (and you also recommended copy_backward later)
16:17:38  <frosch123> memcpy is for pod, std::copy is for non-pod
16:18:05  <frosch123> i would expect using std::copy in the blitter makes ottd unplayable in non-optimised build
16:18:36  <frosch123> memcpy a big block is different to looping and copying 4 bytes at a time
16:18:48  <LordAro> do they not compile to the same code?
16:19:38  <LordAro> https://stackoverflow.com/q/4707012/995325
16:20:04  <LordAro> which is admittedly using -Ofast
16:23:01  <LordAro> https://godbolt.org/g/QMB7Ko godbolt appears to agree
16:23:11  <frosch123> i would expect std::copy to always copy blocks of size of the structure
16:23:17  <frosch123> while memcpy may do bigger blocks
16:23:28  <frosch123> (without optimisation)
16:24:11  <LordAro> i remain unconvinced :p
16:24:58  <frosch123> https://gcc.godbolt.org/#g:!((g:!((g:!((h:codeEditor,i:(j:1,lang:c%2B%2B,source:%27%23include+%3Calgorithm%3E%0A%23include+%3Ccstring%3E%0A%0Astruct+data%0A%7B%0A++int+x,+y%3B++++%0A%7D%3B%0A%0Avoid+foo(data+*a,+data+*b,+size_t+n)%0A%7B%0A++++memcpy(b,+a,+n)%3B%0A%7D%0A%0Avoid+bar(data+*a,+data+*b,+size_t+n)%0A%7B%0A++std::copy(a,+a+%2B+n,+b)%3B%0A%7D%27),l:%275%27,n:%270%27,o:%27C%2B%2B+source+%231%27,t:%270%27)),k:50,l:%274%27,n:%270%27,o:%27%
16:24:59  <frosch123> 27,s:0,t:%270%27),(g:!((h:compiler,i:(compiler:g81,filters:(b:%270%27,binary:%271%27,commentOnly:%270%27,demangle:%270%27,directives:%270%27,execute:%271%27,intel:%271%27,trim:%271%27),lang:c%2B%2B,libs:!(),options:%27-O1%27,source:1),l:%275%27,n:%270%27,o:%27x86-64+gcc+8.1+(Editor+%231,+Compiler+%231)+C%2B%2B%27,t:%270%27)),k:50,l:%274%27,n:%270%27,o:%27%27,s:0,t:%270%27)),l:%272%27,n:%270%27,o:%27%27,t:%270%27)),version:4 <- without
16:25:01  <frosch123> optimisation
16:25:04  <frosch123> oops, long link :p
16:25:09  <LordAro> haha
16:25:13  <frosch123> well, your link, but without "-O1"
16:25:26  <LordAro> true
16:25:39  <frosch123> so, imho blitter also needs to run fast when not optimising
16:27:02  <LordAro> Error: Assertion failed at line 91 of /home/lordaro/dev/openttd/src/tile_map.h: tile < MapSize()
16:27:15  <LordAro> turns out initialising some properties to their "invalid" values didn't go so well
16:28:17  *** Ttech has quit IRC
16:39:06  *** glx has joined #openttd
16:39:06  *** ChanServ sets mode: +v glx
16:40:53  <LordAro> frosch123: i notice no significant difference if i swap the memcpy call inside MemCpyT with std::copy
16:41:26  *** Ttech has joined #openttd
16:44:45  *** iSoSyS has quit IRC
16:45:06  *** snail_UES_ has joined #openttd
16:45:16  *** andythenorth has quit IRC
16:45:20  *** pjpe has joined #openttd
16:57:25  *** KouDy has joined #openttd
17:01:25  *** Flygon has quit IRC
17:19:37  *** snail_UES_ has quit IRC
17:19:59  <LordAro> ew, TinyEnumT
17:20:08  <LordAro> that can be immediately wiped out with c++11
17:21:41  <LordAro> frosch123: any idea about the error on 6781? it doesn't seem to make sense, and my compilers don't error
17:23:05  <peter1138> avail_railtypes was removed.
17:23:32  <peter1138> CI is building it rebased to master.
17:23:48  <LordAro> but i rebased to master?
17:23:52  * LordAro tries again
17:24:05  <peter1138> Is your master up to date?
17:24:23  <LordAro> i rebased to origin/master
17:24:34  <LordAro> but apparently that doesn't mean it gets fetched
17:24:41  <peter1138> Is your origin/master up to date? :p
17:24:52  <LordAro> it would seem not
17:46:34  <LordAro> i like how github now can't order the commits properly
17:48:52  *** Wacko1976 has joined #openttd
17:52:51  *** synchris has quit IRC
17:53:34  *** synchris has joined #openttd
18:02:04  <peter1138> Could you not just set everything to 0?
18:02:20  <peter1138> That's what the memset does, right?
18:03:12  <LordAro> yeah, but they don't seem like the right values
18:03:22  <LordAro> as some of them are "valid", even if they've not been set
18:04:06  <peter1138> It's just awkward because it's gone from a patch to just make it compile without warnings on gcc8, to changing functionality.
18:04:18  <peter1138> Everything creeps :)
18:04:22  <LordAro> hehe
18:04:29  <LordAro> shouldn't be any change in functionality
18:08:25  <peter1138> src/widget_type.h has some strangeness. this->disp_flags = lowered ? SETBITS() : CLRBITS();
18:08:50  <peter1138> this->disp_flags = is not necessary?
18:09:27  <peter1138> Dunno if ternary that ignores value is permitted though.
18:10:58  <LordAro> it's fairly nasty regardless
18:12:10  *** kais58 has quit IRC
18:12:41  <peter1138> Hmm, forums are pretty quiet.,
18:18:16  *** kais58 has joined #openttd
18:20:08  <V453000> ded
18:24:16  <peter1138> Oh
18:34:50  <peter1138> Bah, two horses, one slow, one with barely any health :(
18:39:30  *** tokai has joined #openttd
18:39:30  *** ChanServ sets mode: +v tokai
18:42:41  *** KouDy has quit IRC
18:46:23  *** tokai|noir has quit IRC
18:55:19  *** Gja has quit IRC
19:09:43  *** Thedarkb1 has quit IRC
19:28:26  <peter1138> Hmm. Gone quiet here now, I suppose.
19:29:32  *** synchris has quit IRC
19:32:51  <peter1138> Is 32 cargo types enough?
19:35:32  <nielsm> what's the cost of extending to 256?
19:38:08  *** sla_ro|master has quit IRC
19:39:19  <nielsm> (apart from unwieldy UI)
19:39:30  <peter1138> :-)
19:39:43  <peter1138> Not sure. It's not stored on the map so feasible.
19:39:49  <Alberth> I believe andy thinks so
19:40:04  <peter1138> I think for the moment I will just replace uint32 -> CargoTypes
19:40:16  <peter1138> (which will be typedef uint32)
19:53:21  <Alberth> good night
19:53:28  <peter1138> Night
19:53:33  *** Alberth has left #openttd
19:55:41  <V453000> :( Finally a fun thread and TB locks it
19:55:55  <peter1138> That was so last week!
19:57:41  *** Thedarkb1 has joined #openttd
19:58:20  *** andythenorth has joined #openttd
19:59:48  <peter1138> Speaking of which!"
20:00:53  <V453000> oh.
20:05:37  *** Gja has joined #openttd
20:10:14  <andythenorth> peter1138: I don't see need for more
20:10:18  <andythenorth> 32 is a sweet spot
20:10:27  <peter1138> Indeed.
20:10:32  <andythenorth> more, and things like refit menu, cargo menus etc get horrible
20:17:00  <andythenorth> I ran up against the (old) industry limit quite hard, I've never hit the cargo limit
20:17:40  <andythenorth> biggest economy has one slot free http://bundles.openttdcoop.org/firs/push/LATEST/docs/html/economies.html#extreme
20:21:59  *** KouDy has joined #openttd
20:42:18  *** gelignite has quit IRC
20:46:38  *** iSoSyS has joined #openttd
21:02:36  <peter1138> Woo, crashes!
21:05:10  <andythenorth> congrats
21:05:14  <andythenorth> not ICU?
21:05:44  <peter1138> No. That was earlier.
21:10:00  *** sim-al2 has joined #openttd
21:23:45  *** andythenorth has left #openttd
21:36:38  *** Eddi|zuHause2 has joined #openttd
21:42:18  *** Eddi|zuHause has quit IRC
21:45:33  *** Wacko1976 has quit IRC
21:52:01  *** iSoSyS has quit IRC
21:53:16  *** Thedarkb-X40 has quit IRC
21:53:41  *** Thedarkb-X40 has joined #openttd
22:01:11  *** Eddi|zuHause2 is now known as Eddi|zuHause
22:09:48  *** Thedarkb1 has quit IRC
22:26:13  *** Progman has joined #openttd
22:36:13  *** nielsm has quit IRC
22:45:42  *** Wormnest has quit IRC
22:53:13  *** Fuco has quit IRC
22:56:52  *** KouDy has quit IRC
23:42:10  *** KouDy has joined #openttd
23:47:40  *** frosch123 has quit IRC
23:47:49  *** Progman has quit IRC

Powered by YARRSTE version: svn-trunk