Config
Log for #openttd on 30th October 2016:
Times are UTC Toggle Colours
00:15:27  *** guru3 has quit IRC
00:15:58  *** guru3 has joined #openttd
01:02:51  *** goodger has quit IRC
01:02:54  *** goodger has joined #openttd
01:20:52  *** manjaro has joined #openttd
01:41:29  *** innocenat has quit IRC
01:41:51  *** innocenat has joined #openttd
01:46:39  *** DorpsGek has quit IRC
01:46:52  *** DorpsGek has joined #openttd
01:46:52  *** ChanServ sets mode: +o DorpsGek
02:10:28  *** manjaro has quit IRC
02:24:40  *** welshdragon has joined #openttd
02:38:01  *** mikegrb has quit IRC
02:38:07  *** mikegrb has joined #openttd
02:53:31  *** Mazur has quit IRC
02:53:55  *** Mazur has joined #openttd
03:06:08  *** Lejving has quit IRC
03:06:36  *** tneo has quit IRC
03:06:48  *** tneo has joined #openttd
03:08:11  *** planetmaker has quit IRC
03:08:19  *** planetmaker has joined #openttd
03:08:19  *** ChanServ sets mode: +o planetmaker
03:11:37  *** Alkel_U3 has quit IRC
03:11:50  *** Alkel_U3 has joined #openttd
03:20:15  *** lastmikoi has quit IRC
03:20:20  *** lastmikoi has joined #openttd
03:32:25  *** Clockworker has quit IRC
03:39:03  *** Clockworker has joined #openttd
03:39:53  *** wCPO has quit IRC
03:42:39  *** kais58 has quit IRC
03:42:53  *** kais58 has joined #openttd
03:50:51  *** jonty-comp has quit IRC
03:50:55  *** jonty-comp has joined #openttd
04:12:39  *** welshdragon has quit IRC
04:14:42  *** Webster has joined #openttd
04:25:45  *** theholyduck has quit IRC
04:26:09  *** theholyduck has joined #openttd
04:42:39  *** LadyHawk has quit IRC
04:42:45  *** LadyHawk has joined #openttd
04:53:51  *** Antheus has quit IRC
04:53:55  *** Antheus has joined #openttd
04:56:15  *** yorick has quit IRC
04:56:26  *** yorick has joined #openttd
05:21:03  *** berndj has quit IRC
05:21:15  *** berndj has joined #openttd
05:43:37  *** gnu_jj has quit IRC
05:43:39  *** gnu_jj has joined #openttd
05:53:07  *** luaduck has quit IRC
05:53:11  *** luaduck has joined #openttd
06:05:40  *** sla_ro|master has joined #openttd
06:17:11  *** andythenorth has joined #openttd
06:18:41  *** Extrems has quit IRC
06:18:46  *** Alberth has joined #openttd
06:18:46  *** ChanServ sets mode: +o Alberth
06:18:54  *** Extrems has joined #openttd
06:27:52  *** sim-al2 has quit IRC
06:29:03  *** Sheogorath has quit IRC
06:29:08  *** Sheogorath has joined #openttd
06:35:53  *** Compu has quit IRC
06:36:20  *** Compu has joined #openttd
06:41:31  *** Mek has quit IRC
06:41:31  *** Mek has joined #openttd
07:13:07  <andythenorth> o/
07:14:40  *** plp has quit IRC
07:14:40  *** plp has joined #openttd
07:16:10  <andythenorth> haz CHIPS
07:17:29  <Alberth> yummy!
07:17:35  <Alberth> lo andy
07:19:33  *** Ttech has quit IRC
07:20:41  *** Ttech has joined #openttd
07:27:57  <andythenorth> such releases
07:28:15  *** zwamkat has quit IRC
07:28:26  *** zwamkat has joined #openttd
07:30:41  *** Wolf01 has joined #openttd
07:30:51  <Wolf01> o/
07:30:56  <andythenorth> lo Wolf01
07:30:58  <Wolf01> WTF o'clock
07:32:07  <Wolf01> I got up in time to feel the last earthquake :|
07:32:14  <andythenorth> :o
07:35:54  *** |JackYF| has quit IRC
07:37:14  *** Arveen has joined #openttd
07:38:17  <andythenorth> hmm
07:38:28  * andythenorth is patching nml for tramtypes
07:38:38  <andythenorth> but it’s a huge copy-paste patch of roadtypes
07:39:02  <andythenorth> ~100% duplication, except for maybe an ID or two
07:39:18  <Wolf01> Move same code in functions?
07:39:28  <Wolf01> If there are "functions"
07:39:31  <andythenorth> there are
07:39:32  <andythenorth> many
07:39:36  <andythenorth> it’s just a python app
07:39:52  <andythenorth> but it’s slightly magic, becuase it’s a compile
07:39:55  <andythenorth> compiler *
07:40:16  *** Progman has joined #openttd
07:40:17  <Wolf01> Better keeping everything separate then, so it's easy to track bugs
07:41:44  <andythenorth> at least copy-paste requires no skill
07:42:21  <andythenorth> and I have a whole extra hour to do it in
07:47:31  <Alberth> :)
07:50:44  <andythenorth> all it has to do is substitute a different feature ID when writing out the grf
07:50:59  <andythenorth> seems to be a lot of duplication to change a single byte
07:51:28  <andythenorth> but making it conditional on [something] might cause failures, dunno :|
07:54:06  <Alberth> in theory, you can write the optimal code the first time
07:54:36  <andythenorth> theory :)
07:54:37  <Alberth> in practice, you first figure out how it works and what you must do/change to make it work
07:54:40  <andythenorth> concerned I might get colliding data structures
07:54:50  <andythenorth> the parser might build structures for ‘roadtype’
07:55:00  <andythenorth> and they’d collide with ‘tramtype'
07:55:06  <Alberth> and then you write it all again a second or third time for good code
07:55:36  <andythenorth> this is tending to convince me I should just copy-paste the existing code :)
07:56:10  <Alberth> if you don't need to change anything, you might just as easily call the existing code :)
07:56:32  <Alberth> and make a duplicate when things do need to be changed
07:56:56  <Alberth> no point in making more mess you have to sort out later than needed
07:57:55  <andythenorth> in this case, I think the mess comes in the other way, from trying to unify classes and functions
07:58:05  <andythenorth> the copy-paste is clean
07:58:20  <andythenorth> but I’m worried that no-one will review it, because it will look like a big patch
07:58:42  <Alberth> that fear is correct
07:59:02  <Alberth> lots of duplicate code is not something you want to add to the compiler
08:00:15  <Alberth> as it makes any future maintenance or extensions a big mess
08:00:50  <andythenorth> I’m unclear atm on the goal
08:00:51  <Alberth> so it needs refactoring to better code
08:01:03  <Alberth> as I said, first make it work
08:01:04  <andythenorth> nml has a pretty clear stance on NewGRF features
08:01:19  <andythenorth> it doesn’t try to unify any code across features, except the most basic stuff
08:01:30  <andythenorth> i.e. common language structures
08:01:37  <Alberth> it's very much newgrf spec driven, I think
08:01:39  <andythenorth> each feature has self-contained code for what it needs
08:02:07  <andythenorth> so extension is safe, because no surprises
08:02:11  <andythenorth> but…
08:02:20  <andythenorth> tramtypes and roadtypes are being added as separate features
08:02:22  <andythenorth> but they’re identical
08:02:35  <andythenorth> they’re only being split for internal OpenTTD reasons, not newgrf spec reasons
08:02:57  <Alberth> nml follows newgrf specs afaik
08:03:36  <andythenorth> yes
08:03:54  <Alberth> ie it generates something that is newgrf compliant, it doesn't care about openttd
08:04:19  <andythenorth> hmm
08:04:30  <andythenorth> that suggests again to copy-paste everything
08:04:38  <andythenorth> because they’re separate features under the spec
08:05:00  <andythenorth> they just happen to be identical
08:05:20  <Alberth> but that's by design
08:06:56  <andythenorth> I will see how vehicles do it wrt shared code versus duplicated
08:07:36  *** Lejving has joined #openttd
08:14:50  *** Tharbakim has quit IRC
08:15:32  *** Tharbakim has joined #openttd
08:16:26  <andythenorth> hmm
08:16:49  <andythenorth> some of the ‘duplication’ would actually be the declaring of properties for the feature
08:17:01  <andythenorth> which are identical - by coincidence, not by design
08:17:27  <andythenorth> vehicles declare properties and such separately
08:17:46  <andythenorth> even where the values are identical
08:27:50  <Wolf01> I think that to avoid duplication you need to deduplicate things which do the exact same thing, doesn't matter if for trains or rvs or road or industry
08:32:09  *** greeter has quit IRC
08:32:38  *** greeter has joined #openttd
09:01:51  *** Stimrol has quit IRC
09:01:52  *** Supercheese has quit IRC
09:02:04  *** Stimrol has joined #openttd
09:10:45  <andythenorth> Wolf01: there are separate tables for road and tram labels?
09:10:50  <andythenorth> labels / types
09:11:13  <Wolf01> Yes, they are separate
09:11:57  <Wolf01> I think you can define the "ROAD" label even for tram
09:13:15  <Wolf01> I don't know how the function which finds by label will behave
09:14:54  <andythenorth> we’ll find out :P
09:15:12  <andythenorth> I could define ROAD for railtype as well :)
09:15:41  <andythenorth> seems like road and tram get 100% separated for data structures
09:23:33  *** roidal has joined #openttd
09:23:59  * andythenorth crosses fingers
09:24:04  <andythenorth> for nml make
09:24:10  <andythenorth> running tests
09:26:37  <Wolf01> https://www.tt-forums.net/viewtopic.php?f=26&t=34999 andy, next project? XD
09:29:08  <andythenorth> something for V :)
09:31:26  <Eddi|zuHause> <Wolf01> It's like suing lego because they started producing your moc <-- that's totally a legitimate thing to do...
09:31:46  *** Lamp- has quit IRC
09:31:47  *** Lamp- has joined #openttd
09:33:20  <Wolf01> Eddi, ideas website clearly states you give all rights to lego when you post it there, that already happened with the Ghostbuster's HQ and lego just sent a preview set to the original creator because even if they didn't accept the submission they produced the exact same thing
09:34:24  <Wolf01> I don't know how the story is now with pepaquin's Johnny 5, he's selling the instructions on bricklink after it didn't pass the review process
09:34:33  <Wolf01> I think lego could sue him
09:38:23  <Alberth> brickland project should get a home, so people aren't tempted to again make green-ish ground plates, and never get anywhere
09:39:47  <Eddi|zuHause> Wolf01: there's always some doubt whether clauses like "you lose all rights" are even valid in a single-sided contract like that
09:40:58  <Eddi|zuHause> Wolf01: at least in german law, any such doubt will be interpreted in favour of the person that didn't draft the contract
09:42:02  <Wolf01> Usually here too
09:43:01  <Wolf01> https://www.tt-forums.net/download/file.php?id=96291 My last attempt.. I wonder if I still have it somewhere
09:43:11  <Alberth> :o  new CHIPZ too!
09:43:28  <Wolf01> Yes, I attached the ldr file to the topic
09:44:01  <andythenorth> Alberth: there was a queue of stuff to do :)
09:44:31  <Alberth> great!  now to find time to play with the new gadgets.... :)
09:46:57  <Alberth> in particular as it's such nice weather outside :)
09:48:41  <andythenorth> not here :P
09:49:03  <andythenorth> Wolf01: presumably NRT fork doesn’t yet read tramtypes on feature 0x13?
09:49:12  <andythenorth> otoh, my grf isn’t crashing the game
09:49:30  <Wolf01> It should
09:49:38  <Wolf01> Read, not crash
09:49:41  <andythenorth> hmm
09:50:30  <andythenorth> http://dev.openttdcoop.org/attachments/download/8127/example_roadtype_and_tramtype.grf
09:50:35  <andythenorth> grf might be borked
09:50:40  * andythenorth will check
09:51:22  *** ToBeFree has quit IRC
09:51:28  *** ToBeFree has joined #openttd
09:52:03  <andythenorth> grf _looks_ ok
09:52:14  <andythenorth> bytecode is always a bit hard to check
09:58:08  *** frosch123 has joined #openttd
09:58:39  *** Keridos has quit IRC
09:59:06  *** Keridos has joined #openttd
10:01:02  <andythenorth> Wolf01: where do I find the code for loading newgrf roadtypes?
10:01:18  <andythenorth> I tried searching, but I get a lot of results for ‘roadtype’ :P
10:01:25  <Wolf01> newgrf.cpp?
10:01:26  <frosch123> newgrf.cpp
10:01:31  <frosch123> hoi btw :)
10:01:36  <Wolf01> Quak
10:03:10  <andythenorth> I am trying to see where it knows that roadtype is feature 0x12
10:03:32  <Wolf01> What the actual fuck.... Argument const RoadTypeInfo * is incompatible with parameter RoadTypeInfo *
10:03:47  <Wolf01> Fuck constants and pointers
10:04:06  <andythenorth> frosch123: tramtype is now feature 0x13 :P
10:04:17  <andythenorth> that was my understanding of what to do last time it was discussed
10:09:11  <Wolf01> andythenorth, the grf works
10:09:18  <Wolf01> It replaces the base tram
10:09:27  <andythenorth> ha ha
10:09:29  <andythenorth> of course :)
10:09:46  <andythenorth> I have no fricking trams loaded in this test game :P
10:09:50  * andythenorth forgot about that
10:09:57  <Wolf01> ^_^
10:10:03  <andythenorth> sorry
10:10:37  <andythenorth> ok I’ll add a second type to the example now
10:11:22  <Wolf01> Let me commit some changes for sprite handling, maybe you can change sprites too
10:16:43  <andythenorth> trying to get second type to show
10:17:32  <andythenorth> can only get one tramtype currently
10:18:04  <Wolf01> I copy/pasted the roadtype, it should work the same way
10:20:02  <andythenorth> multiple roads I can add
10:20:12  <andythenorth> is there still code checking for vehicles with tram type?
10:20:15  <andythenorth> used to be :P
10:20:24  <Wolf01> Yes
10:20:53  <andythenorth> I’ll post a grf in a minute
10:20:59  <Wolf01> But it enables the base type not the sub type, so every sub type should be enabled
10:22:29  *** welshdragon has joined #openttd
10:24:58  <andythenorth> Wolf01: http://dev.openttdcoop.org/attachments/download/8128/example_roadtype_and_tramtype.grf
10:25:15  <andythenorth> default road, two extra roads, default tram, two extra trams
10:25:27  <andythenorth> I only see one tram, the last defined
10:26:37  <Wolf01> I'll check
10:31:00  <Wolf01> It seem that everything uses roadtype reserve info instead of tramtype reserve info
10:31:58  <Wolf01> Roadtypes have grf spec feature 18, Tramtypes have 19
10:32:27  *** Dakkus has quit IRC
10:32:28  *** Dakkus has joined #openttd
10:32:53  <andythenorth> must be an offset from newgrf spec, it’s 0x12 and 0x13 there :)
10:33:01  <Wolf01> Oh, wait, I could have missed a check
10:33:46  <Wolf01> Yes, was that
10:35:12  <Wolf01> Committed
10:37:27  <Wolf01> I think even spritegroups might work
10:38:19  *** gelignite has joined #openttd
10:38:50  <andythenorth> Wolf01: awesome, that works :D
10:39:15  <Wolf01> You can define 16 roadbits as an array (I don't know if it should be split up to 16 variables as rail bits are), slope offset, oneway base, excavation sprites
10:39:30  <andythenorth> ho
10:39:34  <andythenorth> well maybe graphics next?
10:39:38  <andythenorth> or vehicle compatibility? o-O
10:39:47  <Wolf01> I would go with graphics
10:40:18  <Wolf01> Vehicles are a different beast, try to keep the thing contained :P
10:41:12  <Wolf01> Once we'll have a full working roadtytpes and a full patch against trunk, we'll revise it, clean and submit, then vehicles
10:41:17  <andythenorth> I _think_ they’re probaly quite easy, but yeah
10:41:43  <andythenorth> so currently the grf is encoding some sprites, but not sure what
10:41:44  <andythenorth> I’ll dig
10:41:51  *** LongyanG has quit IRC
10:41:52  *** LongyanG has joined #openttd
10:42:00  <Wolf01> Also it was requested to add a "cities don't build houses along this roadtype"-flag
10:42:18  <andythenorth> grf has only UI sprites it seems
10:42:36  <Wolf01> Which don't seem to work :|
10:43:37  *** Alberth has left #openttd
10:45:44  <Wolf01> I think we'll need to start to look for serious help here, because I'm reaching my limit too
10:46:03  <andythenorth> maybe it’s quak-shaped
10:47:49  <andythenorth> ok the test grf does encode some rail sprites (for legacy reasons, it’s copied from a railtype grf)
10:49:34  <andythenorth> Wolf01: road_rti->base_sprites?
10:49:40  <Wolf01> yes
10:49:40  <andythenorth> there’s some support for sprites already?
10:50:09  <Wolf01> <Wolf01> You can define 16 roadbits as an array (I don't know if it should be split up to 16 variables as rail bits are), slope offset, oneway base, excavation sprites <-
10:51:26  <Wolf01> I think I'll remove slope offset as it should only be used to load base sprites in orig_roadtypes
10:51:37  <Wolf01> And add 4 slope variables
10:52:14  <frosch123> andythenorth: Wolf01 18=0x12, 19=0x13
10:52:20  <andythenorth> oops :)
10:52:41  <andythenorth> devloloper
10:52:45  <Wolf01> Yes, I know, I'm only lazy to do the conversion as VS tells me the decimal value
10:54:05  <Wolf01> I was only surprised to find trams in the road code (0x12) while they should have been in the tram code
10:58:27  <andythenorth> Wolf01: so what’s the goal?
10:58:34  <andythenorth> get some sprites on the screen?
10:58:37  <Wolf01> Yup
10:58:39  <andythenorth> hmm
10:59:00  <Wolf01> Code and spec might change a lot with this goal
10:59:10  *** tokai has joined #openttd
10:59:10  *** ChanServ sets mode: +v tokai
11:04:04  <Wolf01> Do you know what is missing on the settings? The real name of the setting...
11:04:10  *** tycoondemon has quit IRC
11:04:22  <Wolf01> Now I have to look up what to change with rcon
11:04:24  *** tycoondemon has joined #openttd
11:04:37  <frosch123> yay, i managed to update git checkout
11:04:54  <frosch123> million of warnings :p
11:05:13  <Wolf01> :D
11:05:36  <Wolf01> Also why tab suggest city names in chat?
11:06:01  *** tokai|noir has quit IRC
11:06:03  <andythenorth> it’s useful
11:06:10  <andythenorth> although would be better if clickable :P
11:06:54  <Wolf01> Yeah
11:07:20  <Wolf01> http://imgur.com/a/hgj1L people, I would like to introduce you my friend
11:07:38  <andythenorth> is it Sariel’s hamster?
11:07:40  * andythenorth looks
11:08:27  <Wolf01> He sent me a phone photo, because taking screenshots is too mainstream
11:09:30  <frosch123> my customers always do that
11:10:04  <frosch123> some also use the regular print function of the application and then scan the paper result to email
11:10:27  <andythenorth> do they fax it?
11:10:54  * andythenorth should draw some roads or something
11:10:55  <andythenorth> hmm
11:10:59  <frosch123> no, just modern copy machines being able to send emails
11:11:00  <andythenorth> must be lots of GPL road sets
11:11:09  *** welshdragon has quit IRC
11:11:27  <frosch123> at least they add handwriting notes to the latter to point out the issue
11:11:34  <Wolf01> How do I change cargodist with rcon?
11:11:36  <frosch123> it's better than an uncommented screenshot :)
11:12:42  <Wolf01> andythenorth, start by using *cough*toyland*burp* sprites
11:13:07  <Wolf01> *prot* also
11:16:58  <Wolf01> Oh, I finally found the setting
11:18:39  *** czaks has quit IRC
11:18:40  *** czaks has joined #openttd
11:23:22  <frosch123> https://paste.openttdcoop.org/ptspgfzdz?/ptspgfzdz <- fix some warnings
11:23:38  <frosch123> let's see whether it actually starts :p
11:24:22  <Wolf01> ^_^
11:27:10  <andythenorth> wfm
11:29:54  *** wCPO has joined #openttd
11:30:11  *** JacobD88 has joined #openttd
11:31:32  <frosch123> i have 3 raodtypes in the menu
11:31:59  <Wolf01> Add a tram grf
11:32:14  <frosch123> what kind of sprites does the grf add for them?
11:32:29  <andythenorth> it’s a copy of the railtype sprites in nml examples
11:32:50  <andythenorth> obviously junk for a real grf, but anything will do to start with :P
11:33:21  <andythenorth> e.g. http://dev.openttdcoop.org/projects/nml/repository/entry/examples/railtype/gfx/rails_overlays.png
11:33:22  <andythenorth> and others
11:34:03  <Wolf01> Ok, we should manage to have 16 sprites on the first line, and load them into the array
11:34:07  <andythenorth> but the interpretation of spec within nml might be inappropriate currently, as it’s just straight copy of railtypes
11:34:09  <andythenorth> dunno yet
11:38:11  <frosch123> https://paste.openttdcoop.org/pxubdgomf?/pxubdgomf <- is this the target drawing order?
11:39:35  <andythenorth> frosch123: yes
11:40:15  <andythenorth> frosch123: are walkways in the drawing order list?
11:40:32  <frosch123> at the bottom, via baseset
11:48:15  *** dpk has quit IRC
11:48:20  *** [dpk] has joined #openttd
11:58:56  *** JacobD88 has quit IRC
12:02:21  *** JacobD88 has joined #openttd
12:04:11  *** asie has quit IRC
12:04:53  *** asie has joined #openttd
12:05:01  *** welshdragon has joined #openttd
12:08:13  <frosch123> @calc 0x546 + 15
12:08:13  <DorpsGek> frosch123: 1365
12:08:27  <frosch123> @calc 0x546 + 15 - 19
12:08:27  <DorpsGek> frosch123: 1346
12:09:06  <Wolf01> Eddi already did the counts, I'll search it
12:11:25  <Eddi|zuHause> that one probably: https://paste.openttdcoop.org/pk7rfjl3t
12:11:39  <Wolf01> Yup
12:12:53  <frosch123> @calc 1343 - 1332
12:12:53  <DorpsGek> frosch123: 11
12:13:27  <frosch123> hmm, so do we want to keep the hillarious ordering of the baseset
12:13:36  <frosch123> or change it to something intuitive?
12:14:16  <Eddi|zuHause> what would that solve?
12:14:27  <frosch123> the rail ones is just as bonkers
12:14:30  <Wolf01> Let's do the intuitive way, with a converter for the hardcoded ones
12:14:32  <frosch123> so, i guess keep the baseset ordering
12:29:05  <Eddi|zuHause> i think keeping the order makes it easier for a "dumb" person to just copy the baseset and overdraw it
12:29:39  <Eddi|zuHause> being consistent might be more valuable than an intrinsic logic behind it
12:31:05  <Eddi|zuHause> also, it's "hilarious", has nothing to do with "hillary" :p
12:34:18  <frosch123> it compiles, but i have no custom graphics
12:35:05  <Eddi|zuHause> there are about 5 basesets you could scramble together
12:38:24  <frosch123> andythenorth: does the grf only provide bridge graphics?
12:38:31  <frosch123> or it the loading borked?
12:41:27  <frosch123> looks like the loading is borked
12:46:30  *** sim-al2 has joined #openttd
12:47:51  <andythenorth> frosch123: FWIW https://github.com/andythenorth/nml-andythenorth/tree/NotRoadTypes/examples/roadtype_and_tramtype
12:49:51  *** Fuco has quit IRC
12:49:56  *** Fuco_ has joined #openttd
12:49:58  *** efess has joined #openttd
12:50:35  <frosch123> https://devs.openttd.org/~frosch/nrt1.png <- obvious success :p
12:53:03  *** Eddi|zuHause has quit IRC
12:53:50  <andythenorth> ha ha
12:54:04  <andythenorth> nearly done
12:54:37  *** Eddi|zuHause has joined #openttd
12:54:46  <frosch123> do i need to register to github to transmit the stuff to you?
12:55:16  <Wolf01> Mmmh, my friend is still able to run trains without brake wagon
12:56:58  <frosch123> https://paste.openttdcoop.org/ph9qo3swv https://paste.openttdcoop.org/p2fjj0a2y <- the other two commits i made
12:58:11  <Wolf01> :o
13:00:22  <andythenorth> frosch123: one of us can paste them in, or you can fork the repo on github and make pull requests...
13:00:32  <andythenorth> Wolf01: do I have commit rights on your repo? o_O
13:00:47  <Wolf01> No, I don't even know how it works
13:01:08  <Wolf01> I would use yours as hub
13:06:35  * andythenorth has to do chores
13:06:56  <andythenorth> need a pumpkin
13:07:55  <andythenorth> Wolf01: could you apply the patches from frosch123? o_O
13:08:10  <Wolf01> I'll try
13:09:09  <frosch123> "What are you interested in?" <- does github ban me, if i enter "mercurial"?
13:09:25  <asie> try entering "subversion"
13:09:27  <andythenorth> ha ha
13:09:47  <andythenorth> github is a bit weird
13:10:00  <andythenorth> and the fork->pull request workflow is weird for a small group
13:10:08  <andythenorth> but it’s free and convenient :P
13:14:22  <andythenorth> frosch123: got a username? o_O
13:14:37  <frosch123> same as here
13:14:43  <frosch123> without the number it was taken
13:14:52  <frosch123> as usual :)
13:15:12  <andythenorth> I just invited you to the NotRoadTypes repo
13:15:19  <Wolf01> Always happen with animals :P
13:15:48  <andythenorth> https://github.com/andythenorth/NotRoadTypes/invitations
13:17:38  <andythenorth> might need a new branch to pull Wolf’s current branch in
13:17:41  <andythenorth> can’t remember
13:17:43  <andythenorth> kids are fighting :P
13:17:48  * andythenorth bbl
13:19:10  *** markjones has joined #openttd
13:20:26  <Eddi|zuHause> in my experience, when kids are fighting, the older one wins...
13:20:32  <Eddi|zuHause> nothing you can do about it
13:21:09  <frosch123> were you the younger one?
13:21:19  <Eddi|zuHause> some of the time...
13:23:24  *** welshdragon has quit IRC
13:28:47  *** Gja has joined #openttd
13:37:31  *** argoneus has quit IRC
13:37:31  *** argoneus has joined #openttd
13:39:02  *** Alberth has joined #openttd
13:39:02  *** ChanServ sets mode: +o Alberth
13:39:07  <Wolf01> o/
13:39:08  <Alberth> o/
13:40:57  <asie> o/
13:41:45  *** HerzogDeXtEr has joined #openttd
13:44:39  *** JacobD88 has quit IRC
13:47:09  *** HerzogDeXtEr1 has quit IRC
13:49:55  <frosch123> what is next?
13:50:06  <frosch123> some grf with actual graphics, so you can tell what is going on?
13:50:39  <frosch123> purr-style red/green/blue roads and trams should be possible
13:53:37  <Wolf01> \o/
13:54:17  <Wolf01> I was able to patch my working copy, but I should pull from your repo instead
13:54:24  *** JacobD88 has joined #openttd
13:55:03  <Alberth> :o  it's running?
13:55:12  <Wolf01> Yeah
13:55:25  <Wolf01> <frosch123> https://devs.openttd.org/~frosch/nrt1.png <- obvious success :p
13:56:02  <Alberth> :o  congratulations to you and andy
13:56:10  <Wolf01> And frosch123
13:56:50  <Alberth> and frosch :)
13:59:35  <Ethereal_Whisper> Wolf01, I made a mistake again and have almost 1000 trains what do I do
13:59:50  <Wolf01> Start from scratch? :O
14:00:48  *** JacobD88 has quit IRC
14:04:24  *** markjones has quit IRC
14:05:33  *** sla_ro|master has quit IRC
14:08:18  *** DDR has quit IRC
14:08:19  <Alberth> send all to the depot?
14:09:07  <Wolf01> Load in scenario editor and remove the companies :D
14:13:51  *** OsteHovel has quit IRC
14:14:02  *** OsteHovel has joined #openttd
14:22:02  *** welshdragon has joined #openttd
14:24:30  *** sim-al2 has quit IRC
14:34:51  *** Cursarion has quit IRC
14:34:52  *** Cursarion has joined #openttd
14:54:23  *** Myhorta has joined #openttd
15:12:29  <Wolf01> https://youtu.be/VNgqKKNttBw :o
15:17:47  *** LadyHawk has quit IRC
15:21:12  * andythenorth back
15:23:05  * andythenorth branch headache
15:23:16  <andythenorth> so we’re keeping the UI branch separate, yes?
15:24:51  <Wolf01> We could merge it if you want
15:26:38  <andythenorth> I am going to tidy up branches
15:28:30  *** LadyHawk has joined #openttd
15:29:28  <andythenorth> Wolf01: we call this branch ‘newgrf’?
15:29:43  <andythenorth> or something else?
15:30:13  <Wolf01> dev?
15:30:41  <Wolf01> Full patch will be in master
15:31:34  <andythenorth> in my repo, ‘dev’ contains ‘gui’ :|
15:31:35  <andythenorth> for reasons
15:32:09  <andythenorth> I could revert it, but reverting merges can have surprising results :)
15:40:59  *** welshdragon has quit IRC
15:44:06  <andythenorth> I made a road-and-tram-types branch
15:44:14  <andythenorth> and merged your dev branch in Wolf01
15:44:20  <Wolf01> Ok
15:44:55  * andythenorth lives in a world where branch names match ticket numbers
15:45:00  <andythenorth> don’t usually have to think about the name :D
15:48:11  <Wolf01> I would have merged in my master dev+gui, and then you could pull my master to one of your branches
15:48:37  <andythenorth> so frosch123 have you got patches? o_O
15:49:28  <frosch123> https://paste.openttdcoop.org/ptspgfzdz?/ptspgfzdz https://paste.openttdcoop.org/ph9qo3swv https://paste.openttdcoop.org/p2fjj0a2y
15:49:35  <frosch123> i didn't know where to push :)
15:49:52  <Wolf01> road-and-tram-types branch <- seem a god idea
15:49:58  <Wolf01> *good
15:50:34  <andythenorth> Wolf01: pull that branch into your fork?
15:50:49  <andythenorth> the fork stuff is overhead in github :|
15:51:33  <Wolf01> I think I made a mistake with the first fork, I forked the entire repo instead of master
15:51:47  <andythenorth> I think that’s how it works
15:51:57  <andythenorth> but tbh, you could just work in my repo, but in a branch
15:52:06  <Wolf01> So we now have different things in same branches and I don't even know how to push/pull :D
15:52:17  <andythenorth> for small number of people, one repo, and many branches works well
15:52:54  <Wolf01> Also we should sync with trunk
15:52:58  <andythenorth> yeah
15:53:11  <andythenorth> I’ll figure that out
15:56:39  <andythenorth> Wolf01: https://github.com/andythenorth/NotRoadTypes/commits/master
15:56:40  <andythenorth> done
15:56:52  *** Arveen has quit IRC
15:58:32  <andythenorth> Wolf01: looks like trunk conflicts with the NRT gui branch
15:58:37  <andythenorth> saveload code changed
15:58:52  <Wolf01> Yes, I know
15:58:53  <andythenorth> can probably fix that later tbh
15:59:12  <Wolf01> I'm trying to figure out the merge
15:59:47  <andythenorth> frosch123: are all 3 patches one commit, or separate?
15:59:48  <Wolf01> base (yours) -> head (mine)?
15:59:55  <frosch123> andythenorth: separate :)
16:00:06  <andythenorth> are they applied in the order you pasted them at 3.49?
16:00:11  <frosch123> first one fixes warnings
16:00:15  <frosch123> the rest have messages in them
16:00:23  <andythenorth> ok
16:00:28  <frosch123> andythenorth: yes, but i guess they don't conflict
16:01:56  *** welshdragon has joined #openttd
16:03:28  <Wolf01> Bah, why is github the reverse of how a decent VCS should work?
16:03:37  <Wolf01> Ignore my pull request
16:03:57  <andythenorth> frosch123: https://github.com/andythenorth/NotRoadTypes/commits/road-and-tram-types
16:04:10  <andythenorth> Wolf01: I don’t really understand github :)
16:04:15  <andythenorth> or any git gui tools
16:04:20  <andythenorth> I just shell git
16:04:25  <Wolf01> Neither do I...
16:04:42  *** Myhorta has quit IRC
16:04:49  <andythenorth> just clone the NRT main repo and work in that, our lives will be much simpler :)
16:04:49  *** funnel has quit IRC
16:04:57  *** funnel has joined #openttd
16:05:01  *** Myhorta has joined #openttd
16:05:31  <Wolf01> Nice, I can't merge your changes int mine, it won't let me do that
16:05:46  <Wolf01> Only mine into yours
16:08:02  *** sla_ro|master has joined #openttd
16:08:43  <Wolf01> Wolfolo wants to merge 45 commits into Wolfolo:master from andythenorth:master ... then ... Add more commits by pushing to the master branch on andythenorth/NotRoadTypes.
16:08:55  <Wolf01> What am I doing?
16:09:11  <andythenorth> that looks right
16:09:18  <andythenorth> accept that PR
16:09:27  <andythenorth> I have never done it this way before, but let’s see
16:09:50  <Wolf01> But I'm pushing into mine, why it says yours? Because it's a fork?
16:10:04  <andythenorth> it’s just explaining how to get more commits in the PR
16:10:21  <andythenorth> if I pushed more to master, this pull request might get bigger maybe
16:10:34  <andythenorth> this won’t modify the andythenorth repo
16:10:44  <andythenorth> if it does, I’ll go buy a hat and eat it
16:10:49  <Wolf01> Github is a total mess
16:11:13  <andythenorth> even if tried (which would be weird) it can’t modify andythenorth repo, becuase there’s no diff
16:11:34  <andythenorth> all the commits in your master are already in mine
16:11:50  <andythenorth> git isn’t magic, just fiddly sometimes :)
16:13:49  <andythenorth> frosch123: I like the construction sprites for road :D
16:23:11  <Wolf01> How do I select only the last 3 revisions to merge?
16:23:28  * andythenorth looks
16:23:42  <andythenorth> which fork:branch on each side?
16:23:57  <andythenorth> usually that would be cherry-picked using the cherry-pick tool
16:24:04  <Wolf01> Your road+tram to my master
16:24:19  * andythenorth looks
16:24:59  <Wolf01> If I do it as it tells, I'll revert trunk sync
16:25:32  <Wolf01> Maybe I should have done it later
16:25:46  <andythenorth> nah it will be fine, just needs a bit of care
16:26:58  <andythenorth> problem is, your dev branch is in road-and-tram-types
16:27:10  <andythenorth> so that will get merged to your master if we just merge last 5 commits
16:27:21  <Wolf01> Ok, I'll do it with SVN
16:28:40  <andythenorth> I could do it if I had access to your repo
16:28:40  <Wolf01> Oh... SVN relies on rev number...
16:28:50  <andythenorth> but I can’t push back to that
16:29:36  <Wolf01> I think I sent you an invite
16:30:09  <Wolf01> I only need the frosch commits
16:31:27  * andythenorth cherry-picking
16:32:15  <andythenorth> Wolf01: these into your master branch, yes?
16:32:22  <Wolf01> Yes
16:32:46  <Wolf01> I'll discard dev and guy once I'll merge the gui one
16:32:52  <Wolf01> *gui
16:33:02  <Wolf01> I'm hungry
16:34:44  <andythenorth> Wolf01: pushed one of them
16:35:46  <andythenorth> Wolf01: all there now
16:35:59  <Wolf01> Thanks
16:37:01  <Wolf01> Github doesn't work well with svn... it timeouts everytime when I try to get the commits history of my branches to do a merge :|
16:37:29  <andythenorth> yeah
16:37:35  <andythenorth> I just did it with shell
16:37:49  <andythenorth> git hashes are unique across repos, afaik
16:38:04  <andythenorth> so you can cherry-pick individual commits in from another remote source
16:38:04  *** welshdragon has quit IRC
16:38:23  <Wolf01> Yes, that's why git works between repos and svn doesn't
16:38:38  <Wolf01> But with svn you just do a patch
16:39:42  <andythenorth> before I learnt to cherry-pick, I was doing patch > foo.diff
16:41:37  *** welshdragon has joined #openttd
16:43:05  * Wolf01 is still waiting for the revision history...
16:45:31  <andythenorth> https://github.com/Wolfolo/NotRoadTypes/commits/master
16:45:44  <Wolf01> Tell it to tortoise svn :D
16:46:15  *** Supercheese has joined #openttd
16:46:52  <andythenorth> are you using https://tortoisegit.org/
16:46:53  <andythenorth> ?
16:47:10  <Wolf01> No, tortoise svn, I don't even have git installed
16:47:18  <Wolf01> I must use bash for git
16:47:30  <Wolf01> And cli only
16:49:40  <Wolf01> ... still waiting...
16:54:36  <andythenorth> :o
16:55:01  <Wolf01> Oh, at least not it managed to close the window
16:55:03  * andythenorth must ISO 270001 for a bit
16:55:07  <andythenorth> audit tomorrow
16:56:49  <Alberth> good luck
17:04:04  <Wolf01> 9MB transferred of what... the diff was 120kb
17:07:05  <Wolf01> Bah, going out to dine, I'll leave it running... yes, it's still merging 1 revision
17:09:50  <Wolf01> 24MB now
17:09:52  <andythenorth> :o
17:10:05  <Wolf01> 29...
17:10:10  <andythenorth> I wonder what it’s doing
17:10:21  <Wolf01> I'm wondering it too
17:10:28  <andythenorth> I added andythenorth repo as a git remote so I could cherrypick from it
17:10:38  <andythenorth> but git doesn’t need to copy all of the data for that, as it has it already
17:10:44  <Wolf01> And it's a dry-run, so I'll have to run it again
17:10:45  <andythenorth> would make no sense :P
17:11:01  <Wolf01> 44MB
17:11:19  <Wolf01> It's downloading the entire source?
17:11:24  <Wolf01> For a diff?
17:11:45  <andythenorth> seems odd
17:11:49  <Wolf01> Btw, got to go, see you later
17:11:56  <Wolf01> 50MB
17:14:48  <frosch123> 46.09 MiB was the whole clone for me :p
17:18:44  *** ccfreak2k has quit IRC
17:18:55  *** ccfreak2k has joined #openttd
17:22:01  <andythenorth> frosch123: if I get this ISO stuff done, I’ll draw some rainbow road style sprites
17:22:08  <andythenorth> then we can have mario-kart trams
17:24:11  *** m1cr0man has quit IRC
17:24:22  *** m1cr0man has joined #openttd
17:26:51  *** heffer has joined #openttd
17:26:51  *** heffer_ has quit IRC
17:29:40  <DorpsGek> Commit by frosch :: r27670 /trunk/src (13 files in 7 dirs) (2016-10-30 18:29:33 +0100 )
17:29:41  <DorpsGek> -Add: [FS#6471] Assign descriptive names to (GNU pthread) threads. (JGR)
17:31:36  <Alberth> rainbow road
17:37:02  <DorpsGek> Commit by frosch :: r27671 /trunk/src (toolbar_gui.cpp widgets/toolbar_widget.h) (2016-10-30 18:36:57 +0100 )
17:37:03  <DorpsGek> -Codechange: Replace magic numbers in the toolbar with the already existing WID_TN_xxx. (Wolf01)
18:04:26  <DorpsGek> Commit by frosch :: r27672 trunk/src/vehicle_gui.cpp (2016-10-30 19:04:20 +0100 )
18:04:27  <DorpsGek> -Doc [FS#6489]: Fix comment. (Yho)
18:17:35  *** ABCRic has quit IRC
18:17:47  *** ABCRic has joined #openttd
18:23:01  <DorpsGek> Commit by michi_cc :: r27673 /trunk/src (7 files in 5 dirs) (2016-10-30 19:22:55 +0100 )
18:23:02  <DorpsGek> -Add: [Win32] Thread names for windows debuggers.
18:29:57  *** Snail has joined #openttd
18:30:15  <andythenorth> Snail: o/
18:30:22  <Snail> hi andythenorth
18:30:24  <andythenorth> I shouldn’t get Sierra then
18:30:26  <andythenorth> :P
18:30:28  <Snail> haha
18:30:39  <Snail> well, you can still use the precompiled version
18:30:51  <Snail> and I still code my own set (through “make”)
18:31:43  <Snail> and frankly, the new OS’s graphics totally sucks
18:32:11  <Snail> it’s like a dumbed-down version of Mavericks… all the icons and windows are so simplistic, not to say plain ugly
18:32:14  <andythenorth> it changed?
18:32:22  <Snail> well, it changed a lot from Mavericks
18:32:28  <Snail> don’t know about the newer OS
18:32:40  <andythenorth> ah, I got Yosemite a while ago
18:32:42  <andythenorth> you get used to it
18:32:43  <goodger> it got turned into a ten-minute photoshop mockup of itself
18:32:47  <andythenorth> got a retina screen Snail ?
18:38:09  <Snail> yes I do… I have a 2013 macbook pro
18:38:37  <Snail> I think you can get used to it, but I still think Mavericks was just the best with its nice 3d effects
18:40:06  *** Milek7 has quit IRC
18:40:07  *** Milek7 has joined #openttd
18:40:12  <andythenorth> I got used to it quick :)
18:42:51  *** APTX has quit IRC
18:42:51  *** APTX has joined #openttd
18:47:54  *** welshdragon has quit IRC
19:01:45  *** DDR has joined #openttd
19:03:39  *** DDR has quit IRC
19:04:28  *** DDR has joined #openttd
19:25:17  <andythenorth> Snail: you have up-to-date XCode, right?
19:25:37  <Snail> yep, I  updated it right after installing the new OS
19:25:51  <andythenorth> what does /usr/bin/clang --version
19:25:53  <andythenorth> give?
19:27:01  <Snail> Apple LLVM version 8.0.0 (clang-800.0.38)
19:27:02  <Snail> Target: x86_64-apple-darwin16.0.0
19:27:03  <Snail> Thread model: posix
19:27:04  <Snail> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
19:27:14  <DorpsGek> Commit by michi_cc :: r27674 trunk/src/os/windows/win32.h (2016-10-30 20:27:07 +0100 )
19:27:15  <DorpsGek> -Fix (r27673): Mingw...
19:29:07  <andythenorth> so it’s there
19:29:57  <Snail> yep… no idea why it’s giving me the error message
19:30:04  <andythenorth> Snail: FWIW, CC=/usr/bin/clang ./configure works for me on Yosemite :|
19:30:53  <Snail> hmmm
19:31:00  <Snail> If I do “cd /usr/bin/clang"
19:31:05  <Snail> it gives me “not a directory"
19:31:15  <andythenorth> it’s probably a binary
19:31:31  <Snail> but if I do “ls”, it does list “clang” ...
19:31:39  <Snail> I mean it’s in the list
19:31:56  <Snail> no idea why I can’t go there
19:33:01  <Alberth> ls -l /usr/bin/clang
19:33:17  <Alberth> does the ourtput start with a "-" or a "d" ?
19:33:27  <Alberth> for comparison:   ls -l /usr
19:34:02  <Alberth> "-" means it's a normal file
19:36:21  *** Defaultti has quit IRC
19:36:40  *** Defaultti has joined #openttd
19:37:16  <Snail> -rwxr-xr-x  1 root  wheel  18240 Sep 13 20:57 /usr/bin/clang
19:37:32  <Snail> Alberth: that’s the output of “ls -l /usr/bin/clang”
19:38:06  <Alberth> it starts with a - so it's a file
19:38:28  <Alberth> why do you want to cd into a file?
19:38:49  <Snail> ah ok, I thought it was a directory
19:39:50  <Snail> so if I go to /usr/bin and I type “clang ./configure”, this the output I get:
19:39:51  <Snail> clang: error: no such file or directory: './configure'
19:39:52  <Snail> clang: error: no input files
19:40:23  <Alberth> you can use ls -F   then you get / at the end of a directory name, and * at the end of an executable program
19:40:34  <Alberth> the "CC=" is essential
19:41:08  <Alberth> FOO=bar  program      means "set environment var FOO to "bar", and run "program"
19:41:41  <Alberth> no spaces in FOO=bar  or the shell breaks it into pieces
19:42:16  <Alberth> and yeah, I would hope you don't have the configure file in /usr/bin  :)
19:42:19  <Snail> ok, so I went into /usr/bin and tried "CC=clang ./configure"
19:42:55  <Snail> well, what made me perplex, is that “CC=/usr/bin/clang ./configure” works for Andy on Yosemite
19:42:59  <Snail> but not for me on Sierra
19:43:10  <Alberth> depends on directory
19:43:36  <Alberth> "./foo" means "in the current directory find 'foo', and run it"
19:45:03  <Alberth> it's a protection that you don't have "." in your path, so you don't run arbitrary programs by accident. Instead you have to explicitly say you want to run the thing in your current directory by prefixing it with "./"
19:45:23  <Alberth> or "./thing" rather :)
19:46:44  <Alberth> does plain  ./configure work?   (if you are in the directory with the configure file)
19:47:18  <michi_cc> Snail: I suspect you don't have your source checkout in /usr/bin. You need to be in the source directory and reference to clang and not the other way around.
19:47:51  <Snail> Alberth: yes, if I go to the “trunk” directory of a freshly-downloaded openttd (from SVN), ./configure works
19:48:15  <Alberth> ok, so the file itself is fine
19:49:41  <Alberth> the CC=<stuff>  doesn't work apparently?
19:49:50  <Alberth> what's your shell?
19:49:55  <Alberth> echo $SHELL
19:50:10  <Alberth> no doubt something insane :p
19:50:23  <Snail> Alberth: "/bin/tcsh"
19:50:32  <Alberth> indeed :p
19:51:07  <Alberth> maybe it doesn't understand the CC=<stuff>  prefix
19:51:16  <Snail> is it strange? but I guess it’s the one that shipped with the OS
19:51:21  <Snail> I never actively changed it
19:51:24  <Alberth> try CC=/usr/bin/clang
19:51:47  <Alberth> you don't actually trust Apple to do sane things do you?
19:51:47  <Snail> “CC=/usr/bin/clang: Command not found.”
19:51:59  <Snail> Alberth: you might have a point :)
19:52:06  <Alberth> setenv CC=/usr/bin/clang
19:52:15  <michi_cc> http://stackoverflow.com/questions/5946736/how-to-set-an-environment-variable-for-just-one-command-in-csh-tcsh
19:52:37  <Alberth> thanks michi
19:52:39  <Snail> setenv: Variable name must contain alphanumeric characters.
19:52:51  *** sim-al2 has joined #openttd
19:52:55  <michi_cc> no =
19:53:18  <Snail> oh, so “setenv CC/usr/bin/clang"?
19:53:25  <Snail> or “setenv CC /usr/bin/clang"?
19:53:49  <Alberth> (setenv CC /usr/bin/clang ; ./configure )
19:54:00  <Alberth> maybe add a space after (
19:54:12  <michi_cc> stackoverflow suggest the latter, or alternative env CC=/usr/bin/clang ./configure
19:55:01  <Snail> ok it’s doing something
19:55:50  <Snail> it gave me a long output
19:56:13  <Alberth> yep, all the stuff it found and did not find
19:56:23  <Snail> it appears there are no errors. Should I attempt to “make” OTTD now?
19:56:33  <Alberth> never hurts :p
19:56:36  <Snail> haha
19:56:45  <Snail> yeah, worst case, it fails, right
19:56:50  *** welshdragon has joined #openttd
19:56:53  <Snail> ok let me give it a try
19:56:55  <Alberth> although you may be missing some crucial libraries to get it really working
19:57:11  <Alberth> you'll have to read the output more carefully for that
19:58:37  <Alberth> where "really working" means you have screen output, can load arbitrary save games and save them, and  have sound
19:59:35  <Snail> I’m getting many warnings, for example: “/roba/ottd2016/trunk/src/fontdetection.cpp:504:21: warning: 'ATSFontIteratorNext' is deprecated: first
19:59:36  <Snail>       deprecated in macOS 10.8 [-Wdeprecated-declarations]”
20:00:14  <Snail> there ya go, error
20:00:32  <Snail>                         AUGraphNodeInfo(graph, node, &desc, &unit);
20:00:32  <Snail>                         ^~~~~~~~~~~~~~~
20:00:46  <Snail> sorry here is the full text
20:00:50  <Snail>                         AUGraphNodeInfo(graph, node, &desc, &unit);
20:00:51  <Snail>                         ^~~~~~~~~~~~~~~
20:01:01  <Snail> ottd2016/trunk/src/music/cocoa_m.cpp:76:4: error: no matching function for call to 'AUGraphNodeInfo'
20:01:01  <Snail>                         AUGraphNodeInfo(graph, node, &desc, &unit);
20:01:02  <Snail>                         ^~~~~~~~~~~~~~~
20:01:17  <Snail> Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUGraph.h:179:1: note:
20:01:17  <Snail>       candidate function not viable: no known conversion from 'ComponentDescription *' to
20:01:19  <Snail>       'AudioComponentDescription * _Nullable' (aka 'AudioComponentDescription *') for 3rd argument
20:01:20  <Snail> AUGraphNodeInfo(        AUGraph                                                                 inGraph,
20:01:20  <Snail> ^
20:01:23  *** frosch123 has quit IRC
20:01:36  <Snail> ottd2016/trunk/src/music/cocoa_m.cpp:162:7: error: no matching function for call to
20:01:37  <Snail>       'MusicSequenceFileLoad'
20:01:38  <Snail>                 if (MusicSequenceFileLoad(_sequence, url, 0, 0) != noErr) {
20:01:39  <Snail>                     ^~~~~~~~~~~~~~~~~~~~~
20:01:47  <Snail> Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/MusicPlayer.h:799:1: note:
20:01:48  <Snail>       candidate function not viable: no known conversion from 'int' to 'MusicSequenceFileTypeID' for 3rd
20:01:49  <Snail>       argument
20:01:50  <Snail> MusicSequenceFileLoad (MusicSequence                            inSequence,
20:01:51  <Snail> ^
20:01:54  <Snail> looks like something’s wrong with the music?
20:02:06  <Alberth> probably you don't have a sound library
20:02:16  <Alberth> ./configure output should indicate that
20:02:28  <Alberth> nn
20:02:34  *** Alberth has left #openttd
20:10:36  <andythenorth> Snail: did you try it with the .configure option from ottd wiki?
20:10:46  <andythenorth> ./configure sorry - it links a different SDK
20:11:10  <andythenorth> LDFLAGS="-stdlib=libstdc++"
20:11:17  <andythenorth> from https://wiki.openttd.org/Compiling_on_Mac_OS_X#Configuring_on_Mavericks_.28and_Yosemite.29
20:11:23  <Snail> let me see
20:11:30  <Snail> andythenorth: yes
20:11:39  <Snail> tried them all. They worked before I upgraded
20:11:48  <Snail> looks like neither works on Sierra
20:11:58  <andythenorth> tried it now that you have the environment var set?
20:12:36  <Snail> ok, let me try
20:13:08  <Snail> so do you suggest —> ./ configure LDFLAGS="-stdlib=libstdc++"
20:13:10  <Snail> right?
20:14:03  <Snail> think I tried it already, but I’m doing it again
20:18:24  <Wolf01> Ha! Merge error after 60MB
20:18:42  <Wolf01> "Malformed xml: no element found"
20:20:59  <michi_cc> Snail: Try commenting out (add a #) lines 1616, 1621, 1624 of config.lib (i.e. the CFLAGS="$CFLAGS ... lines). If that still doesn't work, I'd suspect that some older API was completely removed while OTTD doesn't support a replacement.
20:21:02  <Wolf01> [18:37:04] <DorpsGek> -Codechange: Replace magic numbers in the toolbar with the already existing WID_TN_xxx. (Wolf01) <- funny, I was trying to merge exactly that
20:22:37  <Snail> michi_cc: I’ll give it a try
20:23:31  *** plp has quit IRC
20:23:32  *** plp has joined #openttd
20:23:45  <Snail> 1616 —> CFLAGS="$CFLAGS -mmacosx-version-min=10.5"
20:23:58  <Snail> 1621 —> CFLAGS="$CFLAGS -mmacosx-version-min=10.3"
20:24:07  <Snail> 1624 —>  CFLAGS="$CFLAGS -mmacosx-version-min=10.4"
20:24:12  <Snail> I’ll comment these three
20:25:35  <michi_cc> Hmm, will probably not help. At least for the lines you quoted in your errors the min version isn't checked.
20:25:39  <Snail> michi_cc: now ./configure gives me an error
20:25:40  <Snail> line 1617: syntax error near unexpected token `else'
20:26:03  <Snail> I think it’s because I’m commenting the only line in the “if-then-else” clause
20:26:27  <Snail> i.e. it becomes meaningless now, because there are no commands in either “if” or “else”
20:26:28  <michi_cc> Yeah, but it won't help anyway I'd think.
20:27:55  *** txtsd has quit IRC
20:27:57  <Snail> ok
20:28:01  <Snail> let me revert back
20:28:03  *** txtsd has joined #openttd
20:30:13  <michi_cc> Better idea to try: https://paste.openttdcoop.org/pdsbqvchh
20:30:47  <michi_cc> It's coding by guessing tough, might work or might not work (and even if it works, it'll break all older SDKs :)
20:30:57  *** welshdragon has quit IRC
20:33:02  *** welshdragon has joined #openttd
20:34:56  *** welshdragon has quit IRC
20:35:34  <andythenorth> michi_cc: I can test on Yosemite in a bit
20:36:08  <michi_cc> That's not old :) 10.5 is old (compile farm old :)
20:36:35  *** umgeher_ has joined #openttd
20:36:50  <andythenorth> I know :) I just don’t have old
20:37:56  *** welshdragon has joined #openttd
20:38:15  <Snail> michi_cc: should I type all that into the terminal window?
20:38:19  <Snail> line by line?
20:38:44  <michi_cc> No, it's a diff that you either apply with patch or by hand to the source file.
20:39:28  <Snail> ok
20:39:41  <Snail> so just run  “ diff --git a/src/music/cocoa_m.cpp b/src/music/cocoa_m.cpp “ right?
20:40:03  <Snail> hmmm
20:40:07  <Snail> diff: unrecognized option `--git’
20:43:19  *** umgeher has quit IRC
20:43:23  <andythenorth> Snail: 30s
20:43:29  *** welshdragon has quit IRC
20:43:55  <Eddi|zuHause> something makes my clock go wrong, and it's not the summer time shift
20:44:19  <Eddi|zuHause> i put it correctly earlier today, and now it's like 15 minutes off
20:44:19  <andythenorth> Snail: should be
20:44:34  <andythenorth> curl https://paste.openttdcoop.org/pdsbqvchh/ym5bub/raw | patch -p1
20:44:36  <Snail> we haven’t shifted yet on this side
20:44:48  <andythenorth> but that has failed hunks (on line-endings I think)
20:45:15  <Eddi|zuHause> you can make patch ignore those?
20:45:26  <Snail> 2 out of 2 hunks FAILED -- saving rejects to file src/music/cocoa_m.cpp.rej
20:45:49  *** welshdragon has joined #openttd
20:45:54  <Snail> you need to see what’s in that .rej file?
20:46:17  <Eddi|zuHause> patch -l
20:46:20  <andythenorth> I can’t figure out what’s wrong there
20:46:27  * andythenorth doing too many things at once right now :)
20:47:27  <Wolf01> Eddi, preordered TF
20:47:38  <Wolf01> I lost my battle to it
20:48:01  <Eddi|zuHause> i was just about to, when someone sent me some free game i should try
20:48:16  <Eddi|zuHause> http://store.steampowered.com/app/530330/
20:48:45  <Wolf01> Oh, I purchased the Talos principle too
20:53:10  <Eddi|zuHause> also, master of orion is on sale, and i was debating whether to get one or the other
20:55:15  <Wolf01> I'm not too much on that genre, but I have some of its derivates
20:58:04  *** Ttech has quit IRC
20:59:16  <andythenorth> Snail: I don’t know why those hunks failed
20:59:19  <andythenorth> paste them?
20:59:31  <andythenorth> https://paste.openttdcoop.org/
21:00:49  <Snail> andythenorth: https://paste.openttdcoop.org/pguiiod6f
21:01:04  <andythenorth> looks like same failure I got
21:02:56  *** sla_ro|master has quit IRC
21:06:05  *** welshdragon has quit IRC
21:08:36  *** Ttech has joined #openttd
21:11:18  *** welshdragon has joined #openttd
21:13:37  *** Myhorta has quit IRC
21:21:04  <michi_cc> andythenorth: Try http://www.icosahedron.de/openttd/patches/osx_music_ver.patch instead. It might even work on the compile farm as well.
21:21:48  <andythenorth> applied
21:21:51  <andythenorth> compiling now
21:24:45  <andythenorth> compiled
21:26:31  <andythenorth> music doesn’t play for me in game, but that’s not new
21:26:49  <Snail> should I try that too?
21:27:27  <andythenorth> yes
21:27:38  <andythenorth> curl http://www.icosahedron.de/openttd/patches/osx_music_ver.patch | patch -p1
21:28:21  <Snail> ok patched
21:28:25  <Snail> should I run configure now?
21:28:27  <Snail> or just make it?
21:28:42  <andythenorth> try make
21:28:50  <andythenorth> I didn’t need to configure
21:29:21  <Snail> ok, making
21:30:22  <Snail> I’m getting an incredible number of warnings...
21:31:15  <Snail> all the warnings say, —> unused typedef ‘__ct_assert__’
21:31:40  <Wolf01> Uhm, shit... I broke my working copy beyond any known imagination
21:32:11  *** Xaroth_ has quit IRC
21:32:22  *** Xaroth has joined #openttd
21:34:32  <andythenorth> Wolf01: :P
21:34:45  <Wolf01> I forgot to update before merge
21:35:03  <andythenorth> you’re using svn as the client?
21:35:06  <Wolf01> Luckily there are only 3 conflicts
21:35:10  <Wolf01> Yeah
21:35:12  <andythenorth> got a mergetool?
21:35:20  <Wolf01> I use tortoisemerge
21:35:44  <Snail> nope, still get an error
21:36:10  <Snail> ottd2016/trunk/src/video/cocoa/wnd_quartz.mm:115:7: error: use of undeclared identifier
21:36:11  <Snail>       'CMGetSystemProfile'
21:36:12  <Snail>                 if (CMGetSystemProfile(&sysProfile) == noErr) {
21:36:12  <Snail>                     ^
21:36:13  <andythenorth> Wolf01: it’s usually ok with git, unlesss 2 parts of the 3 way merge change same code
21:36:19  <Snail> ottd2016/trunk/src/video/cocoa/wnd_quartz.mm:117:4: error: use of undeclared identifier
21:36:19  <Snail>       'CMCloseProfile'
21:36:20  <Snail>                         CMCloseProfile(sysProfile);
21:36:21  <andythenorth> then it’s manual unpicking :P
21:36:21  <Snail>                         ^
21:37:08  <Wolf01> Thats not a problem even on svn merge, but I got 3 changes of the same code which I need to fix by hand
21:37:30  *** joho^_^ has quit IRC
21:37:40  <andythenorth> no magic for that :)
21:37:42  *** joho has joined #openttd
21:52:39  <Wolf01> Nice, I need to convert a const StringID to WindowDesc*
21:54:18  * andythenorth -> bed
21:54:20  <andythenorth> bye
21:54:22  *** andythenorth has quit IRC
21:54:25  *** Darkfirst has quit IRC
21:54:55  <michi_cc> Snail: Try http://www.icosahedron.de/openttd/patches/osx_video_ver.patch on top.
21:54:59  *** Darksecond has joined #openttd
22:16:03  <Snail> same error as before
22:21:47  <michi_cc> Ah, of course, configure manually sets the min version. Change (patched) line 119 of wnd_quartz.mm from MAC_OS_X_VERSION_10_6 to MAC_OS_X_VERSION_10_5
22:32:22  *** Xaroth|Work has quit IRC
22:32:51  *** Xaroth|Work has joined #openttd
22:35:10  *** DDR has quit IRC
22:41:00  *** Hirundo has quit IRC
22:41:19  *** Hirundo has joined #openttd
22:46:15  *** michi_cc has quit IRC
22:47:23  *** michi_cc has joined #openttd
22:47:23  *** ChanServ sets mode: +v michi_cc
22:48:57  *** womble has quit IRC
22:49:03  *** womble has joined #openttd
22:52:58  *** roidal has quit IRC
23:09:02  <Wolf01> http://img-9gag-fun.9cache.com/photo/avrLdWZ_460s.jpg python programming
23:13:35  <goodger> aww
23:16:59  *** Ethereal_Whisper has quit IRC
23:17:25  *** Ethereal_Whisper has joined #openttd
23:23:43  *** Gja has quit IRC
23:34:33  *** Progman has quit IRC
23:51:55  *** urdh has quit IRC
23:52:06  *** urdh has joined #openttd

Powered by YARRSTE version: svn-trunk