IRC logs for #openttd on OFTC at 2016-04-30
            
00:00:19 <sim-al2> Of course, the modern electircs have center walkways, since they have so much equipment
00:01:34 <sim-al2> Hmm, the Chinese diesels seem to have them: https://upload.wikimedia.org/wikipedia/commons/5/5c/China_Railways_DF11G_20110402_399.jpg
00:02:33 *** Wormnest has quit IRC
00:03:23 <drac_boy> that looks like a dual unit russia-style to me :)
00:04:07 <sim-al2> Yeah, they seem to like those. The high power electrics for coal haulage are also built that way
00:04:22 <drac_boy> btw looking more through the catalogue booklet here I also found this which probably is amusing gift idea to some steam lover in an english country perhaps heh: https://images-na.ssl-images-amazon.com/images/I/51K5jFHiRlL._SX258_BO1,204,203,200_.jpg
00:04:24 <sim-al2> However, most of the locomotives are still single units
00:05:45 <drac_boy> hm too bad the catalogue doesn't seem to list any books for ivatt steam locomotives (I wouldn't had mind thinking about ordering one)
00:07:57 <Samu> split IsValidAiID from IsDead
00:08:17 <Samu> or just IsValid
00:08:17 *** FLHerne has joined #openttd
00:08:21 <Samu> for both AI and GS
00:08:41 <Samu> IsStarted
00:08:48 <Samu> instead of IsValid
00:09:12 <drac_boy> ah.. bluebell railway for £5 clearance .. too bad its not something I would want to read much
00:11:16 <drac_boy> btw sim-a12 about 'single units' .. did you know that one of the green russia electric locomotive (I'll have to look it up later re which one) actually was semi-permanently coupled together together with the unused cab being boarded up and corridors added
00:11:24 <drac_boy> only a few examples were done
00:11:46 <drac_boy> kinda a bit unusual move but I guess if they often needed the extra power .. this seem to make sense
00:12:01 <sim-al2> Yeah, I guess they didn't want to change the body work
00:12:49 <drac_boy> well it was only a few of them too...so probably not worth the cost of new units ;)
00:12:54 <sim-al2> I think they actually did that on serveral types. I remember the M62 having it more often, there were even a few 4 packs
00:13:22 <drac_boy> reminds me of old emd geeps having their doors sealed and some windows boarded up to basically turn them into slave units
00:13:30 <sim-al2> I assume the assembly line just cranked them, and the windows were plated over afterwards
00:13:55 <Samu> arf.... it's too difficult to split this function
00:13:57 <drac_boy> yeah M62 looks like the exactly same thing http://www.freetexturesblueprints.com/albums/userpics/10001/normal_locomotive-2M622C_M62.gif
00:17:48 <sim-al2> Oh, the North Koreans made some interesting mods to a few M62s
00:18:36 <sim-al2> And Azerbaijan too, apparently
00:18:38 <sim-al2> https://upload.wikimedia.org/wikipedia/commons/e/eb/Electric_locomotive_at_Baku_Station.JPG
00:18:54 <drac_boy> heh...good name for a book "disconnected! broken links in britian's rail policy" .. it doesn't mention so but I suspect its mainly about the breech axe era too :)
00:19:19 <drac_boy> (I think the gov probably somewhat forgot that small lines actually feeds the big heavy lines)
00:20:22 <drac_boy> anyway sim..sorry about this but have to afk to grill some supper so have fun till another time ok? :)
00:20:29 <sim-al2> Ok later
00:20:35 *** drac_boy has left #openttd
00:26:04 <Samu> https://paste.openttdcoop.org/pna6tfy4s
00:26:10 <Samu> 2 functions now
00:31:12 *** liq3 has joined #openttd
00:34:00 *** liq3 has quit IRC
00:34:14 *** Samu has quit IRC
00:34:21 *** Samu has joined #openttd
00:46:31 <Samu> assert (IsStarted(slot));
00:50:22 <Samu> static inline bool or static bool?
01:04:23 <Wolf01> at least try to understand what are you asking
01:06:55 *** tokai|noir has quit IRC
01:12:12 *** smoke_fumus has joined #openttd
01:15:24 <Samu> i can't do this split at least now
01:16:15 <Samu> well, i could, but i'm tired, and the function already works
01:16:52 <Samu> it would also mean, wherever it would be used, splitting it into 2 functions would only increase the size of those lines
01:17:12 <Samu> and those lines are already quite sized
01:17:56 <Samu> are these comments clear? https://paste.openttdcoop.org/pcutdxwf1
01:18:04 <Wolf01> just not saying that a function which just returns the result of another function is useless
01:18:30 *** _johannes has joined #openttd
01:19:15 <Wolf01> it makes some sense
01:21:36 <Samu> ty ty
01:28:05 <Samu> AssumeDead?
01:28:10 <Samu> instead of IsDead
01:28:38 <Samu> AssumedDead
01:29:48 <Wolf01> IsDead is right
01:33:21 <Samu> ;)
01:48:01 *** _johannes has quit IRC
01:54:41 <Wolf01> also, good night
01:54:43 *** Wolf01 has left #openttd
02:05:29 *** Quatroking has quit IRC
02:12:33 *** Stimrol has quit IRC
02:18:07 *** tokai has joined #openttd
02:18:07 *** ChanServ sets mode: +v tokai
02:19:40 *** FLHerne has quit IRC
02:19:49 *** FLHerne has joined #openttd
02:20:59 *** Mazur has quit IRC
02:30:38 *** Mazur has joined #openttd
02:35:47 *** Stimrol has joined #openttd
02:44:39 *** gelignite_ has joined #openttd
02:48:02 *** Samu has quit IRC
02:52:02 *** gelignite has quit IRC
03:02:07 *** Defaultti has quit IRC
03:02:36 *** Bluelight has joined #openttd
03:09:56 *** drac_boy has joined #openttd
03:09:59 <drac_boy> back for a bit :)
03:10:26 *** Defaultti has joined #openttd
03:27:00 <drac_boy> hm think just going to go to bed
03:27:02 *** drac_boy has left #openttd
03:47:43 *** Bluelight has quit IRC
04:02:44 *** _dp_ has quit IRC
04:06:41 *** ConductCat has joined #openttd
04:07:35 *** ConductCat has quit IRC
04:09:12 *** dP has joined #openttd
04:09:14 *** dP is now known as _dp_
04:12:47 *** ConductorCat has quit IRC
04:16:44 *** ConductorCat has joined #openttd
04:58:40 *** smoke_fumus has quit IRC
05:16:30 *** glx has quit IRC
05:23:02 *** Myhorta has quit IRC
05:27:09 <Flygon> Ah crap
05:27:21 <Flygon> terrain.party website won't let me cover the entirety of New Zealand
06:06:14 *** ToneKnee has joined #openttd
06:07:59 *** ToneKnee_ has quit IRC
06:39:30 *** MonkeyDrone has joined #openttd
07:58:56 *** sla_ro|master has joined #openttd
09:05:57 *** Progman has joined #openttd
09:10:20 *** efess has quit IRC
09:12:49 *** frosch123 has joined #openttd
09:19:04 *** Alberth has joined #openttd
09:19:04 *** ChanServ sets mode: +o Alberth
09:52:24 *** gelignite has joined #openttd
10:11:04 *** Alberth has left #openttd
10:28:48 <DorpsGek> Commit by frosch :: r27552 trunk/src/lang/spanish_MX.txt (2016-04-30 10:28:40 +0200 )
10:28:49 <DorpsGek> -Feature: Mexican Spanish (Absay)
10:48:01 *** Hiddenfunstuff has joined #openttd
11:04:57 *** efess has joined #openttd
11:09:40 *** Wormnest has joined #openttd
11:26:16 *** Quatroking has joined #openttd
11:33:32 *** Myhorta has joined #openttd
11:45:05 *** tokai|noir has joined #openttd
11:45:05 *** ChanServ sets mode: +v tokai|noir
11:46:02 *** Myhorta has quit IRC
11:47:02 *** Samu has joined #openttd
11:47:06 <Samu> hi
11:48:01 <Samu> there is an issue related with the translation of strings
11:48:22 <Samu> makes it harder for translations
11:48:41 <Samu> I have to give an example, it's not easy to explain
11:49:20 <Samu> The tittle for the AI/Game Script window
11:50:26 <Samu> this tittle is either "Available AIs" or "Available Game Scripts"
11:50:38 <Samu> but the way the title is constructed
11:50:53 <Samu> makes it confusing for translators
11:51:52 *** tokai has quit IRC
11:52:07 <Samu> "Available {STRING}", then 2 other strings that completes it: "AIs" or "Game Scripts"
11:52:54 <Samu> Wouldn't it be better to have 2 full strings?
11:55:23 <Samu> When this is translated to Portuguese, the translator didn't take into account how this is constructed, and translated it separately. When the 2 strings merge, the reading makes no sense
11:59:15 <Samu> "Available {STRING}" = "Disponível {STRING}"
12:00:01 <Samu> "AIs" = "IAs" / "Game Scripts" = "Scripts de Jogo"
12:00:42 <Samu> "Disponível IAs" - makes little sense
12:00:54 <Samu> "Disponível Scripts de Jogo" - makes little sense
12:01:39 <Samu> it should have been "IAs disponíveis" and "Scripts the Jogo disponíveis"
12:04:51 <Samu> just checked brazillian portuguese, it's also making little sense
12:05:21 <Samu> same kind of problem, due to how the title is constructed
12:06:45 <Samu> "Disponíveis Scripts do Jogo" - makes slightly more sense than "Disponível Scripts de Jogo", but it's still wrong
12:09:20 <Samu> the word disponíveis must be at the end of the title, the string would have to be constructed like "{STRING} Available" for the translator
12:22:00 <argoneus> morning
12:23:17 *** Wolf01 has joined #openttd
12:23:29 <Wolf01> o/
12:33:57 <argoneus> \o
12:34:42 *** sla_ro|master2 has joined #openttd
12:37:31 *** sla_ro|master has quit IRC
12:46:23 <Samu> uhmm, what are these errors Severity Code Description Project File Line Suppression State Warning STR_AI_CONFIG_CAPTION: Param idx #0 '<empty>' doesn't match with template command 'STRING' (warning) langs D:\OpenTTD\trunk\src\lang\arabic_egypt.txt 3471
12:46:38 <Samu> for every language but english
12:47:47 <Samu> STR_AI_CONFIG_CAPTION :{WHITE}AI/Game Script {STRING}
12:48:51 <Samu> I am changing "AI/Game Script Configuration" to "AI/Game Script {STRING}" with 2 more strings to complete that one, "Configuration" and "Settings"
12:49:30 <Samu> how would I fix this for the other languages?
13:00:02 <Samu> t.t
13:05:06 <Samu> i hate strings
13:05:38 <Samu> the world should have just 1 language, things would be so much easier
13:10:30 <frosch123> learn esperanto then
13:10:59 <Samu> why are the other languages complaining?
13:11:08 <Samu> except english?
13:12:33 <Ketsuban> Esperanto is a terrible candidate for a world language. Lojban is better, but has the disadvantage of being spoken only by the kind of people who'd learn Lojban.
13:12:43 <Flygon> Everyone should learn Wiradjuri
13:12:46 <Flygon> IT HAS THE DJ SOUND
13:12:51 <Samu> :(
13:13:03 <Flygon> Actually
13:13:03 <Flygon> No
13:13:09 <Flygon> Everyone should learn Pitjantjatjara
13:13:15 <Samu> i edited english.txt, isn't this the master language?
13:13:18 <Flygon> It has a perfectly consistant spelling system!
13:13:30 <Flygon> And fits inside ASCII
13:13:31 <Samu> the others are getting errors
13:15:07 <Samu> Warning STR_AI_CONFIG_CAPTION: Param idx #0 '<empty>' doesn't match with template command 'STRING' (warning) langs
13:17:22 *** Ketsuban has quit IRC
13:17:55 <Samu> how do i fix the other languages without editing them 1 by 1
13:25:29 <Wolf01> by regenerating them
13:25:35 *** Progman_ has joined #openttd
13:27:16 *** Progman has quit IRC
13:27:30 *** Progman_ is now known as Progman
13:29:39 <Samu> they are missing the {STRING} part
13:29:55 <Samu> is this a parameter?
13:33:23 <Samu> here's what I've done to english
13:33:24 <Samu> https://paste.openttdcoop.org/pqvhmf0bu
13:33:50 <Samu> the other languages (I picked english_US), does that
13:34:11 <Samu> it complains about the {STRING} that I added
13:34:14 <Wolf01> bah, I've done all wrong, working with async changes how all the code works, the UI shouldn't await the entire list, the UI should pass the list to the function which fills it with time and the UI should await the function... now it might be fun to rewrite all the code
13:35:03 <Samu> :)
13:35:03 <Wolf01> samu, run the fucking strgen
13:35:30 <Samu> i did it :
13:35:38 <Samu> it complains
13:40:35 <frosch123> just run "sed -i '/STR_AI_CONFIG_CAPTION/ D' src/lang/*.txt"
13:40:57 <frosch123> if that command does not exist on your system, then get a better one
13:41:16 <Wolf01> mmmh, how the fuck do I order items without having all the items?
13:43:31 <Wolf01> I could run parallel tasks to get all the items in less time, but still I have to wait for everything
13:44:55 *** yorick_ has quit IRC
13:45:11 <Wolf01> I don't know what could happen with items popping out in the middle of the list, the UI might explode
13:53:37 *** sla_ro|master has joined #openttd
13:57:47 *** sla_ro|master has quit IRC
14:00:10 *** sla_ro|master has joined #openttd
14:00:11 *** sla_ro|master2 has quit IRC
14:00:20 *** sla_ro|master has quit IRC
14:18:44 <Wolf01> it's nice how a for explodes inside an async function
14:20:50 <Wolf01> for (int i = 0; i < n; i++) -> n = 5, I find i = 5 (out of range exception)
14:21:59 *** sla_ro|master has joined #openttd
14:23:52 <Wolf01> http://stackoverflow.com/questions/17449926/index-out-of-range-exception-using-tasks
14:31:11 *** Supercheese has quit IRC
14:31:47 *** Supercheese has joined #openttd
14:37:20 *** sla_ro|master has quit IRC
14:47:38 * Wolf01 must to something else
14:54:40 *** Islacrusez has joined #openttd
15:18:18 *** keoz has joined #openttd
15:18:32 *** Leanden_ has joined #openttd
15:18:35 <Leanden_> grrr
15:18:44 <Leanden_> Sprite Offsets doing my head in
15:19:32 <Leanden_> the sprite aligner numbers don't tie up at all with the NML offset figures
15:19:47 <Leanden_> can someone help me?
15:20:51 <Leanden_> Even the bounding blocks arent really useful as the default openttd wagons dont sit properly inside their bounding boxes
15:23:13 <V453000> they are values for x4 zoom
15:23:17 <V453000> just divide by 4
15:24:15 <Leanden_> so move by the relevant number in the sprite aligner and divide the absolute offset by 4 to get the actual result?
15:25:08 <Leanden_> (i.e. the Absolute Offset/4 is what i should put into the NML code?)
15:25:11 <V453000> the absolute offset is quite pointless I think
15:25:19 <V453000> you need to worry about the relative one
15:25:26 <V453000> and then substract/add that from your code
15:25:42 <V453000> that's what I always did
15:25:43 <Leanden_> ok so relative/4 added to whatever my NML says?
15:25:47 <V453000> yeah
15:25:52 <Leanden_> cool thanks
15:26:00 <Leanden_> that helps :)
15:26:04 <V453000> I am not sure if the current thing actually gives proper absolute values, but the relative always does
15:26:19 <Leanden_> Im trying to code this BRTrains set
15:26:35 <Leanden_> but had to go right back to the beginning because i was writing without testing and its all messed up lol
15:26:52 <Leanden_> progress :D
15:27:18 <Leanden_> is there an NML snippet which disables all default trains and wagons?
15:27:22 <V453000> hm :) good luck
15:31:00 *** drac_boy has joined #openttd
15:31:02 <drac_boy> hi
15:33:00 <drac_boy> got an interesting 'problem' here .. one book is 128 pages about crocodiles in general (sbb/db/etc) while another book is 110 pages that goes quite deep into just the swiss crocodile alone and its quite more expensive
15:33:19 *** Islacrusez has joined #openttd
15:33:59 <Islacrusez> o/
15:35:28 <drac_boy> if you want know these are the two of them: http://i.ebayimg.com/00/s/NTAwWDQwNQ==/z/VKEAAOxyUylTVkNN/$_35.JPG vs http://www.heel-verlag.de/cosmoshop/pix/a/n/654704-1446806418.jpg
15:35:56 <drac_boy> hi isla :)
15:39:07 *** Alberth has joined #openttd
15:39:07 *** ChanServ sets mode: +o Alberth
15:40:42 <Islacrusez> Ayo Alberth
15:41:32 *** andythenorth has joined #openttd
15:41:49 <Alberth> hi hi
15:43:11 <andythenorth> moin
15:44:54 <Wolf01> o/
15:50:47 <drac_boy> hi wolf01 .. want me bore you? :P
15:53:40 <Wolf01> I'm already bored, building-new-outpost-bored
15:54:11 * drac_boy pokes wolf01 with a 850mm diameter driver axle then
15:55:39 <andythenorth> Lego isn’t usually dimensioned in mm
15:55:44 <andythenorth> except for tube
15:55:51 <andythenorth> and maybe string
15:55:55 <andythenorth> the standard unit is studs
15:56:31 <Wolf01> meh... wrong place for accumulators, there should be a station instead
15:57:01 * drac_boy throws something 1 stud and 10 studs long at andy :)
15:58:04 <Wolf01> wrong place for forest, there should be accumulators farm instead
16:00:00 <Islacrusez> so what's ottd development like these days; any significant changes in the past few years?
16:00:13 * Islacrusez is out of the loop
16:00:23 <Wolf01> ottd development these days resembles more factorio playing
16:00:58 * Islacrusez chuckles
16:01:14 <Islacrusez> don't blame you, that game is perfect on so many levels
16:07:01 <Samu> i installed sed, already ruined everything
16:07:05 <Samu> uninstalled it
16:07:13 <Samu> now fixing what i broke
16:07:25 * drac_boy is going stick to ttdxp+simutrans for now partially due to installers
16:07:29 <drac_boy> samu .. heh? :-s
16:07:47 <Samu> i broke the language files
16:10:44 <planetmaker> Samu, if your fixing what you broke with sed is much more difficult than running something like "hg revert src/lang/*" then you should consider to change how you work on the files :)
16:11:44 <Wolf01> btw, I should prepare myself, AFOL dinner this evening ;)
16:12:33 <Samu> i reverted but it is also reverting some vcxproj files for lang?
16:12:38 <Samu> i did not edit that
16:13:12 <Samu> something about spanish_MX.lng
16:14:57 <Leanden_> Well this is a nice milestone
16:15:01 <Samu> ... that's it... deleting entire trunk
16:15:04 <Samu> brb
16:15:06 <Leanden_> I have just successfully coded my first ever train in NML :D
16:15:14 <Leanden_> and its properly aligned :)
16:16:34 <Samu> re-downloading entire trunk again
16:16:48 <Samu> should fix my problems
16:17:05 <Samu> while getting rid of my code as well, bah... dont care, as long as it fixes it
16:19:46 <andythenorth> iz forums today?
16:20:40 <Alberth> not much
16:21:06 <Alberth> people stopped sleeping in tents on a slope, in australia, mostly
16:21:13 <Samu> no longer complaining about spanish_MX
16:21:17 <Samu> nice
16:21:26 <andythenorth> maybe I should play the game
16:22:06 <Alberth> I tried that yesterday with mostly vanilla, but tropical is too boring
16:22:39 <andythenorth> the economy, the vehicles, or the landscape?
16:22:41 <andythenorth> o_O
16:23:00 <Alberth> the climate, in particular the industry chains
16:23:10 <Alberth> perhaps I should concentrate on pax there
16:23:18 <drac_boy> going off for now here
16:23:20 *** drac_boy has left #openttd
16:23:26 <Alberth> all these towns needing food & water
16:24:16 <Samu> oh, so it seems I was working with an old lang version without spanish_MX
16:24:26 <Samu> wasn't this the language just added?
16:24:35 <Alberth> yes
16:24:49 <Samu> oki, mystery solved
16:25:38 <andythenorth> I never liked micro-managing the lumber mill :)
16:26:12 <Samu> reverting now reverts correctly
16:26:16 <Samu> problem solved
16:26:57 <Alberth> it probably reverted correctly before too, except in a way you didn't expect?
16:27:18 <frosch123> Leanden_: https://newgrf-specs.tt-wiki.net/wiki/NML:Disable_items
16:28:34 <frosch123> Leanden_: V453000: the absolute values in the sprite aligner are affected by the transparency-cropping when compiling the nml file. that is, if your sprites have transparency along some border, the absolue offsets will differ
16:32:05 <Samu> it was creating a patch and the patch was adding changes to many lang vcx files
16:32:13 <Samu> v80 v90 v120 etc
16:32:22 <Samu> and i remember not touching that
16:32:24 <Wolf01> http://i2.wp.com/farm2.staticflickr.com/1457/26208725460_6dd10f7871_z.jpg?resize=625%2C417&ssl=1 neat
16:32:46 <Samu> then i wanted to revert, and it was touching them again
16:33:42 <Samu> at least now the trunk is 100% equal
16:33:45 <DorpsGek> Commit by frosch :: r27553 /trunk/projects (6 files) (2016-04-30 16:33:36 +0200 )
16:33:46 <DorpsGek> -Update: Project files
16:34:26 <Samu> or not...
16:34:40 <Samu> brilliant timing
16:35:32 <V453000> frosch123: they do, pretty much always :D
16:38:06 <Islacrusez> Wolf01, that's pretty awesome
16:41:43 <V453000> jayzus
16:43:00 <andythenorth> ha
16:43:19 * andythenorth doesn’t get excited by that kind of lego build :)
16:44:11 <Leanden> can someone help me quickly
16:44:21 <Leanden> ive managed to code a refit for a train in my BRTrains set
16:44:40 <andythenorth> what kind of refit? :)
16:44:41 <Leanden> but the artist has cleverly used 2CC colours, how can i disable the 2CC recolouring?
16:44:46 <Leanden> loco
16:44:57 <andythenorth> livery refit?
16:45:11 <Islacrusez> andythenorth, do you get excited by the guy who did HMS Hood with SNOTwork lego in minifig scale?
16:45:30 <andythenorth> nah
16:45:39 <Islacrusez> pfft
16:45:40 <Islacrusez> :P
16:45:41 <Leanden> yep livery refit
16:45:45 <Leanden> goods -> goods
16:45:48 <Leanden> but the capacity is 0
16:45:57 <andythenorth> oh that kind of livery refit
16:45:57 <Leanden> the refit works fine but the livery recolours to CC
16:46:11 <andythenorth> got photoshop or similr?
16:46:13 <andythenorth> similar *
16:46:15 <Leanden> i assume there is a callback
16:46:17 <andythenorth> I’d just repaint it
16:46:18 <Leanden> i have GIMP
16:46:24 <Islacrusez> what sort of lego work does excite you then? xD
16:46:31 <andythenorth> I’d just global replace the 2CC
16:46:37 <andythenorth> you can do it in code, but meh
16:46:41 <andythenorth> why add string?
16:46:44 <Leanden> id prefer code
16:46:50 <Leanden> instead of faffing with changing pixels :P
16:47:40 <Alberth> write a program to faf pixels :p
16:48:33 <andythenorth> you might be able to just ignore it in action 0
16:48:36 <V453000> just recolour code
16:48:50 <andythenorth> can’t remember, but I think there is a flag to enable 2CC for some vehicle types,
16:48:58 * andythenorth could look in the docs for you
16:49:19 <V453000> ie recolour_sprite { //CCblue 0xC6: 0x92; 0xC7: 0x93; 0xC8: 0x94; 0xC9: 0x95; 0xCA: 0x96; 0xCB: 0x97; 0xCC: 0x98; 0xCD: 0x99; } //CCblue
16:49:19 <andythenorth> TRAIN_FLAG_2CC
16:49:28 <andythenorth> V453000: very naughty :P
16:49:32 <V453000> cc1 ti blue
16:49:35 <andythenorth> recolour sprites are evils
16:49:37 <andythenorth> http://newgrf-specs.tt-wiki.net/wiki/NML:Vehicles
16:49:53 <V453000> are nice
16:50:08 <frosch123> Leanden: remove TRAIN_FLAG_2CC ?
16:51:40 <V453000> not for subrefits I guess
16:54:05 <Leanden> i dont have TRAIN_FLAG_2CC in there hmm
16:54:54 <Leanden> oh that looks good V45
16:54:59 <Leanden> can you do one for Green too? :D
16:55:57 <Leanden> wait recolour sprite
16:56:03 <Leanden> where does that variable/callback go?
16:56:10 <Leanden> in the spriteset?
16:56:52 <frosch123> you only need "recolour_sprite" for new colours
16:56:59 <frosch123> not for normal cc
16:57:20 <Leanden> i am so confused lol
16:57:29 <Leanden> i just want a line of code to change CC blue to Blue
16:57:32 <Leanden> and CC green to green :P
16:58:01 <frosch123> so, you do not want cc at all?
16:58:09 <frosch123> i have no idea what you want :p
16:58:14 <Leanden> indeed
16:58:20 <Leanden> i want to completely disable CC for all my trains :P
16:58:22 <V453000> Leanden: just pu there the right colour numbers :P
16:58:23 <frosch123> you said artist uses 2cc, but you did not enable 2cc
16:58:57 <Leanden> the artist designed the sprite in 2CC, but i want to use the CC as just a normal green
16:59:12 <frosch123> Leanden: ok, then just add "colour_mapping: return PALETTE_CC_FIRST;" to your graphics block
16:59:36 <frosch123> that will disable all cc, 1cc and 2cc
16:59:59 <Leanden> that worked a treat
17:00:01 <Leanden> thanks very much
17:00:45 <Leanden> YAY!!!
17:00:48 <Leanden> BRTrains set is go!
17:00:58 <Leanden> Thanks Frosch
17:01:05 <frosch123> yw
17:07:00 <andythenorth> Leanden: what scale is it roughly? UKRS or UKRS 2?
17:15:12 *** keoz has quit IRC
17:21:07 * andythenorth ponders 1 tile locks some more
17:22:16 <andythenorth> locks can have custom graphics? o_O
17:22:35 <andythenorth> L760 or so in water_cmd.cpp
17:22:56 <andythenorth> in fact all of DrawWaterLock()
17:23:15 <andythenorth> well that’s a pisser :)
17:23:19 <andythenorth> no 1 tile locks then
17:23:26 <andythenorth> ‘newgrf cannot be broken’ :P
17:24:20 * andythenorth reverts everything
17:41:46 <Samu> i just posted new version http://www.tt-forums.net/viewtopic.php?p=1167722#p1167722
17:42:56 <Samu> now i wanna get rid of the vertical scrollbar :|
17:49:27 <Wolf01> bye
17:49:30 *** Wolf01 has quit IRC
17:54:52 <Samu> http://i.imgur.com/6Go6VdG.png
17:55:21 <Samu> want to remove vertical scrollbar, then enumerate the slots
17:55:35 <Samu> and then... drag and drop
17:55:43 <Samu> which i assume is the most complicated one
18:12:43 <_dp_> hi, can openttd to reverse pathfinding? eg find closest depot from which current station is reachable.
18:12:56 <_dp_> *do
18:14:02 <Samu> just found another bug :(
18:14:17 <Samu> it's also present in 1.6.0
18:15:36 <Samu> click License from an AI, then select another AI and chose Random AI
18:15:41 <Samu> crash
18:16:07 <Samu> Random AI doesn't have a license
18:17:32 <Samu> also happens for the (none) GS
18:21:07 <Samu> changelog of Random AI
18:21:15 <Samu> hmm, I see the pattern
18:23:47 <Samu> void ChangeAI() - this thing will have to close every possible window that can leak information from the old AI to the new
18:27:16 *** Mazur has quit IRC
18:30:53 *** HerzogDeXtEr1 has joined #openttd
18:35:49 *** Mazur has joined #openttd
18:37:17 *** HerzogDeXtEr has quit IRC
18:54:32 <Samu> can crash with readme, license and changelog
18:55:04 <Samu> and configure
18:55:15 <Samu> both AI and GS slots
19:04:57 <Samu> I guess i could post a patch for flyspray
19:05:42 *** sla_ro|master has joined #openttd
19:07:24 *** MonkeyDronez has joined #openttd
19:14:28 *** MonkeyDrone has quit IRC
19:23:42 *** Mazur has quit IRC
19:33:26 *** Mazur has joined #openttd
19:41:30 *** Mazur has quit IRC
19:49:09 *** keoz has joined #openttd
19:49:27 *** Mazur has joined #openttd
19:54:04 <Samu> uhm... i rather not
19:57:33 *** MonkeyDrone has joined #openttd
19:57:53 *** Ketsuban has joined #openttd
20:01:26 *** Mazur has quit IRC
20:09:29 *** Mazur has joined #openttd
20:14:18 <andythenorth> bah
20:14:43 <Samu> hi
20:15:33 <Samu> teach me how to remove a scrollbar
20:17:52 <Eddi|zuHause> _dp_: you can run the pathfinder from each depot
20:18:12 <Eddi|zuHause> but it's not very efficient, probably
20:18:52 <_dp_> Eddi|zuHause, yeah, but I hoped there was some better way)
20:19:52 <Eddi|zuHause> the pathfinder algorithm is not really made for something like "get me the shortest path to station involving a depot"
20:20:02 <Rubidium> make some sort of reverse pathfinder where it interprets signals as being reversed and then find the closest depot?
20:22:17 <Eddi|zuHause> just build your depots so all stations are reachable...
20:22:54 <_dp_> Eddi|zuHause, that's completely different problem
20:23:13 <_dp_> generally speaking it's not that hard to reverse pathfind in graph
20:23:41 <_dp_> but now that you mentioned signals... this is't exactly a graph I guess
20:24:24 <Eddi|zuHause> sure, it's just a directed graph
20:24:27 * andythenorth pissing about trying to draw an irone ore mine
20:24:43 <andythenorth> maybe I should just use the one from V453000
20:25:01 <Eddi|zuHause> an ironic ore mine?
20:25:17 *** FLHerne has joined #openttd
20:25:28 <Eddi|zuHause> produces irony and thrives on sarcasm as feedback?
20:25:36 *** keoz has quit IRC
20:25:47 <andythenorth> nice idea
20:26:15 <Eddi|zuHause> this must be what V453000 thinks when he makes an industry chain :p
20:27:29 *** Myhorta has joined #openttd
20:27:44 <V453000> pf
20:27:49 * V453000 is making new stockyard
20:27:50 <V453000> doesn
20:27:53 <_dp_> Eddi|zuHause, not quite, it changes as train goes on it
20:27:54 <V453000> t give a shit
20:28:17 <_dp_> but for what I want I can ignore that, only direction matters
20:28:38 <_dp_> but I guess I'll settle for looping over deport, should work fast enough
20:29:12 <_dp_> don't want to write own pathfinder if there is no reverse already
20:29:23 <V453000> andythenorth: if you can convert it to 8bpp nicely, feel free to use anything from me, but .. :) idk if it would fit, probably not
20:29:25 *** Mazur has quit IRC
20:31:47 <andythenorth> probably not :)
20:31:57 <andythenorth> avoids me doing it :P
20:32:05 <andythenorth> ore mines http://www.travelling-australia.info/MainGraphics2006/P065260067Bz-750.jpg
20:39:24 *** M-E has joined #openttd
20:49:46 *** glx has joined #openttd
20:49:46 *** ChanServ sets mode: +v glx
20:49:53 *** Mazur has joined #openttd
20:50:33 *** Myhorta has quit IRC
20:52:35 *** Myhorta has joined #openttd
20:57:24 *** Mazur has quit IRC
21:04:59 *** Myhorta has quit IRC
21:09:37 <Samu> :) just successfully removed vertical scrollbar and maintained clicking
21:09:44 <Samu> can select!
21:10:16 *** Islacrusez has quit IRC
21:10:43 <Samu> this->selected_slot = (CompanyID)this->GetRowFromWidget(pt.y, widget, 0, this->line_height);
21:13:24 <Samu> now, what next
21:13:34 <Samu> drag & drop slots
21:13:41 <Samu> is it easy to do? drag & drop?
21:14:37 *** Mazur has joined #openttd
21:27:26 *** Mazur has quit IRC
21:31:54 <Eddi|zuHause> _dp_: but a train on it doesn't change the topology of the graph, only the edge weights (except maybe for firstred_twoway_eol)
21:34:37 <Eddi|zuHause> and the pathfinder has a mode which irgnores train positions
21:40:25 *** MonkeyDronez has joined #openttd
21:41:36 *** MonkeyDronez has quit IRC
21:45:01 *** Mazur has joined #openttd
21:46:18 *** smoke_fumus has joined #openttd
21:46:37 *** sla_ro|master has quit IRC
21:47:26 *** MonkeyDrone has quit IRC
21:48:41 *** sla_ro|master has joined #openttd
21:51:33 *** srhnsn has joined #openttd
21:53:10 *** Myhorta has joined #openttd
22:03:28 *** Mazur has quit IRC
22:09:45 *** drac_boy has joined #openttd
22:09:47 <drac_boy> hi
22:09:55 <_dp_> Eddi|zuHause, it does change, even without signals. just make a small loop, train can't go through it
22:10:16 <Eddi|zuHause> what do you mean?
22:10:27 <_dp_> Eddi|zuHause, or, rather, they can, but only because they can't crash into themselvel
22:10:38 <andythenorth> iron catz
22:10:57 <Eddi|zuHause> _dp_: i don't see the relevance
22:11:08 <drac_boy> just curious about it but how often any of you heard of using one single traction motor (sandwiched inbetween or so) to power both adjacent axles with? (kinda like a B'B with only two motors)
22:11:32 <drac_boy> I mean I know some high power locomotives had two motors per axle...but I'm curious about the other way around
22:12:59 <_dp_> Eddi|zuHause, that's example of train changing topology, it couldn't go there because it has non-zero length
22:12:59 <Eddi|zuHause> sure, B'B' was a thing (4 individual motors would be Bo'Bo')
22:13:17 * andythenorth wonders how to represent traction motors in TTD scale
22:13:24 <Eddi|zuHause> _dp_: i don't think you understand what i mean with topology
22:13:40 <andythenorth> I imagine the rating for continous tractive effort might be lower
22:13:46 <andythenorth> continuous *
22:14:06 <drac_boy> andy, don't bother. it'll be like 1/10th of a pixel :P
22:15:04 <Eddi|zuHause> andythenorth: i don't think it matters much stat-wise
22:15:37 <andythenorth> NO IT’S VERY IMPORTANT
22:15:42 * andythenorth back to drawing
22:16:08 <_dp_> Eddi|zuHause, regardless of what you mean, graph is a well-defined thing; neither pathfinding for trains is same as general graph pathfinding nor track network with signals is a graph, strictly speaking
22:16:54 <Eddi|zuHause> _dp_: but it still IS a graph. it may be a different graph for each individual pathfinder run, but it's still a graph
22:17:59 *** frosch123 has quit IRC
22:18:14 <drac_boy> graph path...reminds me of Train Dispatcher if you ask me :)
22:21:09 *** Mazur has joined #openttd
22:23:26 *** M-E has quit IRC
22:24:51 <_dp_> Eddi|zuHause, you can make some graph, but pathfinding on will not be 100% correct (and it's not in openttd)
22:28:45 <_dp_> Eddi|zuHause, http://imgur.com/a/RJ0zq
22:28:45 *** mykoserocin has joined #openttd
22:29:20 <_dp_> Eddi|zuHause, for any sensible graph you can do that's probably a fine path, but train can never go there
22:30:23 *** liq3 has joined #openttd
22:34:00 *** mykoserocin has quit IRC
22:43:10 *** andythenorth has left #openttd
22:46:42 *** Mazur has quit IRC
22:50:58 <drac_boy> think going for now as usual
22:51:01 *** drac_boy has left #openttd
22:55:20 *** Mazur has joined #openttd
23:13:16 *** Alberth has quit IRC
23:14:06 *** Leanden has quit IRC
23:18:55 *** Myhorta has quit IRC
23:20:36 *** Myhorta has joined #openttd
23:21:02 *** Gja has joined #openttd
23:21:25 *** Myhorta has quit IRC
23:29:34 *** Mazur has quit IRC
23:34:51 *** Gja has quit IRC
23:38:50 *** Mazur has joined #openttd
23:48:57 *** MonkeyDrone has joined #openttd
23:51:03 *** Progman has quit IRC
23:56:17 *** Wormnest has quit IRC