Log for #openttdcoop.devzone on 10th October 2012:
Times are UTC Toggle Colours
01:00:38  *** Zuu has joined #openttdcoop.devzone
01:16:33  *** Zuu has quit IRC
06:47:58  *** andythenorth has joined #openttdcoop.devzone
06:48:44  <andythenorth> so if I make a new spriteset fro windmill ground, with same number of sprites as animated spriteset, it should work I think
06:57:51  *** andythenorth has quit IRC
08:29:41  *** andythenorth has joined #openttdcoop.devzone
08:32:58  *** andythenorth has left #openttdcoop.devzone
11:36:07  *** ODM has joined #openttdcoop.devzone
11:55:15  <Brot6> DevZone Help Center - Unresolveable Issues XAmmlerX @
16:19:20  *** Alberth has joined #openttdcoop.devzone
16:49:56  *** LordAro has joined #openttdcoop.devzone
17:29:19  *** andythenorth has joined #openttdcoop.devzone
17:39:02  *** frosch123 has joined #openttdcoop.devzone
17:52:02  <Brot6> Makefile for NewGRFs: Common part - Revision 21:45a8006c42e3: Added index generation. XAlberthX @
17:52:02  <Brot6> Makefile for NewGRFs - Revision 17:917f4f8f796e: Added index generation. XAlberthX @
17:52:55  <Alberth>  <-- Ammler
17:56:12  <Ammler> did you already decide, where to add the script? (nml or newgrf)
18:07:56  *** LordAro has quit IRC
18:19:28  <Alberth> planet maker added it to already
18:19:45  <Alberth> (a long time ago)
18:24:15  <andythenorth> Alberth: generating html directly from python o_O
18:24:22  <andythenorth> no templating language :P
18:24:23  <Ammler> are there already projects using it?
18:24:50  <Alberth> andythenorth: I use Python format strings :p
18:25:14  <Alberth> andythenorth: feel free to improve
18:25:17  <andythenorth> he
18:25:23  <andythenorth> could use Template
18:25:29  <andythenorth> it's a builtin, so no extra module needed
18:25:37  <andythenorth> seems that installing Chameleon makes people whine :(
18:25:38  <Alberth> that'd be very good
18:26:05  <Alberth> just stdlib is much easier for many
18:26:07  <andythenorth> I could do this in Chameleon without thinking :P
18:26:13  <andythenorth> but yeah, Template is probably ok
18:26:23  <andythenorth> let me find out if I'm going to the pub
18:26:27  * Alberth likes to have  a thinking andy :)
18:26:29  <Brot6> Polish PKP Set 2.0 - Revision 3:0888a2f63be5: New engines: EU07 & ET41 XTadeuszDX @
18:26:29  <Brot6> Polish PKP Set 2.0 - Revision 4:adc29e53162a: Deleting unused files... XTadeuszDX @
18:27:27  <Alberth> Ammler: not afaik, everybody uses the script by Terk hen, probably because it got added somewhere to a build sequence
18:28:36  <Alberth> which of course is logical, at the time there was nothing at all
18:30:32  <andythenorth> Alberth: I am going to the pub tonight, so can't write a template :)
18:30:37  <Ammler> Alberth: sometime, the firs makefile will be replaced by it, right?
18:30:50  <Ammler> so we could simply replace the lang_check file already
18:30:57  <Alberth> andythenorth: have fun :)
18:31:01  <andythenorth> a template it just needs a .html file, load it using Template class, and substitute using $
18:31:53  <Alberth> Ammler: I don't know how stuff is organized in the build, sorry
18:32:38  <andythenorth> Alberth:
18:32:40  <Webster> Title: 7.1. string — Common string operations Python v2.7.3 documentation (at
18:32:47  <Ammler> then I just do it
18:33:15  <andythenorth> Template() has no 'repeat' afaik, which might be lame
18:33:24  <Alberth> andythenorth: perhaps I should prepare for the untranslatable strings instead
18:33:32  <andythenorth> maybe
18:33:37  <andythenorth> this is only for formatting :P
18:33:42  <Ammler> well, you don't necessary need a template, just make xhtml and css :-P
18:33:42  <andythenorth> and separation of logic and display
18:33:43  <Alberth> assuming the nml devs accept my patch :)
18:34:03  <andythenorth> I have had separation of logic, content and display hammered into me very strongly
18:34:37  <Alberth> and /me throws it all onto one big heap again :)
18:34:44  <andythenorth> what works, works
18:34:49  <andythenorth> scales badly though :)
18:34:56  <andythenorth> scaling is not a known issue yet
18:34:59  <andythenorth> so meh
18:35:22  <Alberth> I know, I was not going to use this with something large
18:35:28  <Ammler> Alberth: what are default settings of the script?
18:35:47  <Ammler> what does it do called without any parameters?
18:36:11  <Alberth> scream that it needs arguments? :)
18:37:09  <Alberth> --html -d --output-dir=stuff --index=stuff/index.html --verbose lang/english.lng lang/*lng   <-- something like this
18:38:35  <Ammler> well, then I need to modify the spec anyway
18:41:22  <Ammler> Alberth: a little feature request: create output dir if not exists
18:41:43  <Brot6> Polish PKP Set 2.0 - pkp-2.0.3.grf XTadeuszDX @
18:42:02  * Alberth looks for a mkdir -p
18:43:31  <Ammler> abort: lang/english.lng: no such file in rev 1397ca596014
18:43:33  <Ammler> Failure: 'LanguageReadError(u"Non-zero exit code while annotating \'lang/english.lng\'")'
18:43:50  <Ammler> Alberth: ^ bad or ignoreable?
18:43:51  * Alberth nods
18:44:11  <Ammler> ./scripts/ --html -d --output-dir=languages --index=languages/index.html --verbose lang/english.lng lang/*lng
18:44:13  <Ammler> on firs
18:44:19  <Alberth> that's what you get when a translation exists before the master language file :p
18:45:37  <Alberth> it just reports that it cannot find the string for that revision, nothing more
18:46:32  <Ammler> hmm, should call it translations
18:47:04  <andythenorth> meh
18:47:10  <andythenorth> Twitter Bootstrap is always huge
18:47:11  <andythenorth>
18:47:13  <Webster> Title: Language report (at
18:47:20  <andythenorth> I haven't recompiled it to be smaller :P
18:47:33  <andythenorth> Alberth: ^
18:47:43  <andythenorth> *not* compact :P
18:47:53  <andythenorth> could use a tablesort too
18:47:55  <Alberth> :)
18:48:19  <Alberth> but I sorted on most completed language
18:48:39  <andythenorth> could do a css chart for that :P
18:48:41  <Alberth> (assuming everybody wants to be on top :p )
18:48:42  <Ammler> you could at least filter out "lang/" from the path
18:48:44  <andythenorth> % complete
18:49:12  <Ammler> and .lng
18:49:20  <andythenorth> Alberth: tomorrow I might look at this
18:49:24  <andythenorth> for entertainment
18:49:29  <Alberth> andythenorth: ok, thanks
18:49:36  <andythenorth> I *really* should learn how FIRS templates work
18:49:38  <andythenorth> but that's hard
18:49:43  <andythenorth> and this html stuff is trivial
18:49:49  <andythenorth> learning is over-rated
18:49:53  <andythenorth> especially over the age of 30
18:50:22  <andythenorth> I should right align all the numbers too
18:50:31  <Alberth> hmm, I must be doing something wrong then, I am still learning things, and a decade beyond that :)
18:50:54  <andythenorth> I am still learning things
18:50:55  <Alberth> perhaps you can state that in the table itself
18:51:09  <andythenorth> easiest thing is to class each td
18:51:11  <andythenorth> 'number'
18:51:14  <andythenorth> 'text' etc
18:51:19  <andythenorth> then use css to style
18:51:21  <Brot6> FIRS Industry Replacement Set - Revision 2906:92ff4d6b9753: Change: nml translation report script by... XAmmlerX @
18:51:29  <andythenorth> you can do it with properties on td tag, but it's bad form
18:51:59  <Brot6> firs: update from r2905 to r2906 done (3 warnings) -
18:51:59  <andythenorth> for me, the space left to learn things is crowded with other stuff
18:52:26  <Alberth> that's bad, you need some peace and quiet to learn things
18:52:39  <andythenorth> I have children
18:53:03  <Alberth> so it takes 15-16 years at least?
18:53:07  <andythenorth> heh
18:53:13  <andythenorth> anyway, time I took our new Australian guy to the pub
18:53:21  * andythenorth has been hiring
18:53:50  <andythenorth> if any of you would like a contract adding translation framework to a large python-based web app, let me know
18:54:03  <andythenorth> we need to translate English to Australian :P
18:54:59  <Alberth> I am not much use probably, even if I needed a new job
18:55:32  <andythenorth> it's very little python, and a lot of i18n and common sense
18:55:39  <andythenorth> and checking for string length and unicode issues
18:55:46  <andythenorth> but you have to be able to get the app to run
18:55:55  <andythenorth> and python packaging is a mess :)
18:56:44  * Alberth uses autoconf :p
18:57:03  <andythenorth> we might *finally* have solved it last week
18:57:03  <Brot6> firs: update from r2905 to r2906 done (3 warnings) -
18:57:29  <Ammler>
18:57:54  <andythenorth> we have multiple deployments of client apps, some with customised packages
18:58:01  <andythenorth> we use buildout to deploy them
18:58:19  <andythenorth> we version pinned the upstream packages years ago to prevent conflicts and unexpected changes
18:58:23  <Ammler> Alberth: just push it also to firs, if you udpate your script :-P
18:58:26  <Alberth> nice Ammler
18:58:31  <andythenorth> then we got our own egg cache because PyPy is flakey
18:58:58  <andythenorth> finally we've figured that some of the python builds available are insane, especially for OS X
18:59:12  <andythenorth> we've found one that works, and life got better :P
18:59:13  <Ammler> is there a reason to keep the terker script?
18:59:33  <Alberth> all the other projects?
18:59:38  <Ammler> well, I mean, does the terken script output something, which yours doesn't?
19:00:03  <Brot6> Dutch Track Set - Revision 104:41b5672b9d69: Feature: Parameter to set fences (closes #4234) XTransportmanX @
19:00:03  <Brot6> Dutch Track Set - Feature Request #4234 (Closed): disable fences XTransportmanX @
19:00:17  <Alberth> oh, no, that script outputs less
19:00:54  * andythenorth pub
19:00:56  <andythenorth> bye
19:00:56  *** andythenorth has left #openttdcoop.devzone
19:01:58  <Brot6> DevZone Help Center - Revision 167:69ec04d5d4a6: [Compiler] Feature: add Albert language check scrip... XAmmlerX @
19:03:18  <Ammler> well, we keep both for now, in case some people hardlinked to the old
19:03:53  <Ammler> it can still be officially changed if for example firs changes the whole Makefile
19:04:33  <Ammler> but you should publish the link above on the forums
19:04:57  <Ammler> maybe also how it can be enabled for other projects
19:05:16  <Ammler> (basically just need that script with -x in the repo)
19:07:55  <Alberth> k
19:08:40  <Alberth> hmm, automagic directory creation is less trivial than I thought
19:09:05  <Ammler> then don't :-P
19:09:11  <planetmaker> install?
19:11:35  <Brot6> Makefile for NewGRFs: Common part - Feature Request #4389 (New): nml_checklanguage script should cre... XAlberthX @
19:13:10  <Brot6> Makefile for NewGRFs: Common part - Feature #4391 (New): add support for untranslatable strings to n... XAlberthX @
19:14:17  <Alberth> in Python :p
19:14:34  *** frosch123 has quit IRC
19:14:50  <Alberth> I'll try again tomorrow, it's too late, I am sleepy and make silly mistakes
19:23:49  <planetmaker> don't worry :-)
19:26:18  <Alberth> #don't worry, be happy
19:28:30  <planetmaker> :-)
19:29:28  <Ammler> Alberth: you should add the obsolete strings to the percentage counter too
19:29:40  <Alberth> why?
19:29:40  <Ammler> (imo)
19:31:03  <Alberth> obsolete strings are just ignored, they do not add up to completeness of the translation. Also, they could in theory cause a negative percentage
19:31:48  <Alberth> perhaps I should add them to the sort criterium
19:32:02  <Ammler> DESC
19:32:22  <Alberth> ?
19:32:35  <Ammler> never mind, doesn't matter
19:33:15  <Ammler> a link to the source file maybe?
19:34:20  <Alberth> click the name of the language
19:34:23  <Ammler> a paramter like could be passed
19:35:05  <Alberth> oh, you're making more feature requests :)
19:35:22  <Alberth> sounds feasible, please make a ticket,  I'll look into it
19:39:50  <Brot6> Makefile for NewGRFs: Common part - Feature Request #4393 (New): link to language source file XAmmlerX @
19:39:58  <Alberth> thanks
19:40:02  <Brot6> zBaseBuild - Revision 217:2f3cf8059a08: Add: snowy buoy XRubidiumX @
19:40:02  <Brot6> zBaseBuild - Revision 218:661f4f9cbcf7: Add: toyland piggy bank XRubidiumX @
19:40:02  <Brot6> zBaseBuild - Revision 219:37072f92bfe0: Add: temperate factory XRubidiumX @
19:40:02  <Brot6> zBaseBuild - Revision 220:6d8de2ae6cdb: Add: breakdown smoke XRubidiumX @
19:40:31  <Alberth> snowy buoy?   I didn't know we had one :)
19:41:33  <Alberth> good night
19:41:45  <planetmaker> we have :-)
19:41:50  <planetmaker> sleep well, Alberth
19:42:07  *** Alberth has left #openttdcoop.devzone
20:04:30  <Brot6> zBaseBuild - Revision 221:ea89eee38976: Add: power plant smoke XRubidiumX @
20:18:40  *** ODM has quit IRC
21:02:53  *** Beardie has joined #openttdcoop.devzone
21:28:14  *** Webster has joined #openttdcoop.devzone
21:28:31  *** Terkhen has joined #openttdcoop.devzone
21:28:50  *** Guest1271 is now known as planetmaker
21:29:01  *** V453000 has joined #openttdcoop.devzone
21:42:12  *** Beardie has quit IRC
21:43:29  *** ^ekipS^ has quit IRC
22:07:51  *** LordAro has quit IRC
22:31:46  <Brot6> zBase - Revision 260:df3e9b975bd6: Add: Snowy locks. 3/4 are currently duplicates of 4/4. 1/4 and 2/... XzephyrisX @
22:31:46  <Brot6> zBase - Revision 261:31f824222a85: Fix (r260): Missed sprites. XzephyrisX @
22:46:28  <Brot6> zBase - Revision 262:af2ce565348a: Add: Snowy rivers. Graphics in the order 4/4, 3/4, 2/4, 1/4 snow ... XzephyrisX @
22:46:28  <Brot6> zBase - Bug #4357 (Closed): Missing (partially) snowy locks/river edges XzephyrisX @
23:12:48  <Brot6> zBase - Revision 263:7f6f76e7f73d: Update: Correct masks for tile selector GUI sprites. XzephyrisX @
23:12:48  <Brot6> zBase - Revision 264:6c5655a1ef29: Fix (r263): Correct palette entry for rail selector masks. XzephyrisX @
23:21:09  <Brot6> zBase - Bug #4355: Missing rail selector sprites XzephyrisX @

Powered by YARRSTE version: svn-trunk