IRC logs for #openttd.dev on OFTC at 2013-01-11
⏴ go to previous day
09:07:48 *** kamnet has joined #openttd.dev
09:18:59 *** kamnet has left #openttd.dev
09:40:47 *** Supercheese has left #openttd.dev
11:08:49 *** fonsinchen has joined #openttd.dev
11:08:49 *** ChanServ sets mode: +v fonsinchen
11:13:30 <fonsinchen> I've been thinking some more about the cargo loading algorithm.
11:13:49 <fonsinchen> Currently we have two settings governing that: improved and gradual loading.
11:14:32 <fonsinchen> Rubidium said that some people want improved loading to be switched off as that improved throughput in high throughput stations.
11:15:00 <fonsinchen> I assume that's because less cargo needs to be present in a station for all vehicles to start loading.
11:15:17 <fonsinchen> (in case of full load, that is)
11:16:21 <fonsinchen> Why do we keep the gradual loading setting, though?
11:16:45 <fonsinchen> I guess that is to equally distribute cargo among multiple vehicles which are non-full loading at the same station.
11:18:12 <fonsinchen> Is that actually right? Or is there some other story to those settings?
11:20:34 <fonsinchen> Basically the "gradual" setting should not matter when doing full load and the "improved" setting should not matter when doing non-full load.
12:34:44 *** ChanServ sets mode: +v Maedhros
13:59:09 *** ntoskrnl has joined #openttd.dev
15:08:05 *** Belugas has joined #openttd.dev
15:08:05 *** ChanServ sets mode: +v Belugas
17:59:01 *** frosch123 has joined #openttd.dev
17:59:01 *** ChanServ sets mode: +v frosch123
19:18:44 *** Supercheese has joined #openttd.dev
19:59:35 *** Alberth has joined #openttd.dev
19:59:35 *** ChanServ sets mode: +v Alberth
20:00:36 <planetmaker> what does it need to add a new language file to OpenTTD?
20:02:38 <michi_cc> Nothing except possible WT3 configuration for unfinished langs, otherwise a rerun of projects/generate.
20:04:28 <planetmaker> it might actually go straight into the normal languages... 4681 lines and 4712 for english
20:04:44 <planetmaker> need to verify that all is actually translated...
20:04:59 <frosch123> planetmaker: there is a lot of strings we do not need translating
20:05:07 <frosch123> usually rb started new languages with them present
20:05:20 <planetmaker> verfication failed ;-)
20:06:37 <planetmaker> Well, that person takes english.txt and translates it string by string. He was asked to provide some initial translation before we add the language
20:07:30 <planetmaker> he seems to be at line 700 or so
20:08:47 <michi_cc> English strings shouldn't be commit though. And you have to check the meta-infomation (lang code, winlang, plural, cases etc).
20:10:35 <planetmaker> yes of course. With 700/4800 it's not going to get committed yet. Other language meta info are correct (and we had some mail exchange about that)
20:13:37 <planetmaker> I wonder though why I don't end up with a gaelic_scottish.lng... hm
20:15:35 <Alberth> or a swedish_muppet_cook.lng :p
20:16:14 <michi_cc> It can be committed (to unfinished) as long as you simply cull the english strings. WT should fix file formatting.
20:21:40 <planetmaker> the problem with adding all language request "just so" is that each consumes a newgrf language slot. Those which are finite
20:24:20 <Alberth> how finite are those?
20:24:25 <frosch123> there are only 136 iso codes (not counting country variants)
20:24:30 <frosch123> there are 127 newgrf languages
20:24:49 <frosch123> no idea how many window language codes there are
20:24:56 <frosch123> and whether they match the iso codes
20:24:59 <michi_cc> Sure, but I'd consider 700 strings good enough.
20:25:42 <planetmaker> to recap what I suggested in the other channel: let's commit it to unfinished. And make the policy that 'unfinished' doesn't mean final assignment of a grflangid
20:26:16 <planetmaker> (though of course a proper one can be chosen as long as we're fine with them)
20:26:49 <planetmaker> I'm talking in this context of adding gd (scottish gaelic)
20:27:07 <planetmaker> which is winlangid 0x043C - and I'd assign grflangid 0x43
20:29:55 <michi_cc> As good as any other, I can't discern any pattern to the id list.
20:30:09 <frosch123> something said it uses phone numbers
20:30:13 <frosch123> no idea whether that is true
20:30:22 <frosch123> but i thought pm wanted to leave it blank
20:30:33 <michi_cc> German is 02, so there's at least one exception :)
20:31:07 <planetmaker> oh, phone numbers... then it should be 0x44
20:31:30 <planetmaker> 0x04. Which... is taken. so 0x44?
20:31:39 <Alberth> michi_cc: isn't german one of the original 6 or 7 languages?
20:31:42 <planetmaker> bah. spelling. bad is. today ;-)
20:32:03 <frosch123> the only other country i have been called from
20:32:23 <frosch123> hmm... i do not remember malaysia
20:32:37 <planetmaker> +44 is Britain. +49 is Germany. +32 is.. France? or was it +33?
20:32:46 <Alberth> frosch123: you should phone to it more often :p
20:33:14 <frosch123> it's just what the phone shows in its display at work when i am called
20:33:44 <frosch123> planetmaker: hex/dec?
20:35:12 <frosch123> yeah, finnish is 35, but also uses 35h
20:35:55 <frosch123> yeah, some are just random :p
20:36:20 <DorpsGek> frosch123: Error: invalid syntax (<string>, line 1)
20:36:36 <frosch123> some are correct :)
20:36:38 <planetmaker> yes, grflangIDs are... not all following a common system
20:36:59 <Rubidium> the grflandids are a mess
20:37:52 <Rubidium> but mostly following the phone number or something resembling that or just the first free number
20:38:06 <Alberth> nah, international phone codes are wrong, our numbers are good :p
20:38:06 <planetmaker> honestly it doesn't quite matter which is chosen as long as it's not yet taken
20:50:07 <planetmaker> code value 4 requires 5 plural entries as opposed to 3 in the wiki
20:50:18 <frosch123> it prints them to the console with some command line option
20:50:36 <frosch123> newgrf wiki likely also contains them
20:51:51 <frosch123> that's also the info shown in wt3
20:52:10 <planetmaker> and... what's the related code? Line number?
20:53:01 <frosch123> hmm, let's match them
20:53:13 <frosch123> strgen output should be the best, we validated them some time ago
20:53:56 <planetmaker> strgen doesn't give the code numbers - something which would be helpful :D
20:53:58 <frosch123> yeah, form 3 seems to be shuffled on newgrf specs
20:54:15 <frosch123> planetmaker: it has the format that wt3 can parse :)
20:55:39 <frosch123> source code says even different for plural 3
20:55:50 <planetmaker> ok, anyhow, we agreed that it's worth that I prepare a patch to commit the lang to unfinished?
20:56:43 <planetmaker> you're fixing that? Or shall I?
20:56:44 <frosch123> newgrf say: [^1][1], 0, rest; strgen says 0, [^1]1, rest; code says: [^1]1, rest, 0
20:58:22 <frosch123> planetmaker: question is which one is correct :p
21:00:25 <planetmaker> ok. And *I* think that then the gaelic plural number code is wrong... he wants 12. I'll need to verify that with him, I guess
21:08:01 <frosch123> ok, form 3 is the only one which is totally messed up
21:31:48 *** Alberth has left #openttd.dev
continue to next day ⏵