IRC logs for #openttd on OFTC at 2014-04-04
⏴ go to previous day
00:00:18 *** shaunof99 has joined #openttd
00:05:33 *** supermop has joined #openttd
00:22:46 <shaunof99> anyone anyone on the public server?
00:30:26 *** shaunof99 has left #openttd
00:47:39 <supermop> Eddi|zuHause: would your code work for trams too
00:48:50 <Eddi|zuHause> just pull it, and replece every occurance of "VEH_TRAIN" by "VEH_ROAD" or so
00:49:06 <Eddi|zuHause> then add or remove properties as you wish
00:49:06 <supermop> so if _ and | are longer than / and \, what length are the intermediate angles?
00:49:25 <Eddi|zuHause> supermop: use the existing template graphics
01:33:20 *** Djohaal has joined #openttd
02:13:32 *** Hazzard has joined #openttd
04:33:31 *** varbles_ has joined #openttd
04:33:31 *** varbles_ is now known as varbles
04:52:33 *** HerzogDeXtEr has joined #openttd
04:56:16 *** Eddi|zuHause has joined #openttd
05:41:21 *** HerzogDeXtEr1 has joined #openttd
06:04:19 *** andythenorth has joined #openttd
07:27:23 *** valhallasw has joined #openttd
07:30:39 *** juzza1_ has joined #openttd
07:30:39 *** juzza1 is now known as Guest5398
07:30:39 *** juzza1_ is now known as juzza1
07:32:08 *** __ln___ is now known as __ln__
08:04:56 *** Midnightmyth has joined #openttd
08:11:01 *** tokai|noir has joined #openttd
08:11:01 *** ChanServ sets mode: +v tokai|noir
08:36:27 *** Devroush has joined #openttd
08:42:11 *** Devroush2 has joined #openttd
08:46:38 *** Devroush has joined #openttd
08:53:14 *** zeknurn` has joined #openttd
08:54:56 *** Myhorta has joined #openttd
08:57:28 *** zeknurn` is now known as zeknurn
09:00:11 *** roboboy has joined #openttd
09:03:21 <roboboy> I was wondering if it is considered good or bad practise to store escape sequences in strings stored in a database?
09:16:23 <roboboy> I am storing some strings that will be placed as text on labels in Windows and the Windows API treats & specially to denote the keyboard shortcut for that control, so would it be bad to store & as && in the string?
09:24:35 <planetmaker> roboboy, that depends on how those strings are treated internally, whether you work cross-platform
09:24:45 <planetmaker> generally that does not sound like a good idea
09:25:24 <planetmaker> if working cross-platform, I'd rather I'd try introduce pragmas which are replaced by OS-specific stuff then and keep OS-specific stuff out of strings
09:25:45 <planetmaker> but this got nothing to do with openttd, GS or NewGRFs ,or?
09:25:51 <roboboy> ok, so I should do it in code pending further investigation as I am using .Net
09:26:46 <roboboy> This channel usually has stuff other than OpenTTD and I have seen general programmin discusion in here before. I shall not ask OT stuff again
09:27:38 <planetmaker> it's alright when all quiet, I guess. But context makes a difference for an answer
09:29:32 <planetmaker> where off-topic reminds me... I wanted to thank __ln__ for the metorite movie yesterday :D
09:43:16 *** Flygon_ is now known as Flygon
09:47:06 *** fjb is now known as Guest5408
09:50:43 <maddy_> roboboy: I think generally it is best to keep database strings as "plain text" so they are more generic, and then handle escaping in code before displaying them
09:51:20 <maddy_> I guess either way work, as long as you are consistent, and don't end up with 2 mixed practices
10:02:16 *** sla_ro|master has joined #openttd
10:07:46 *** Devroush2 has joined #openttd
10:17:52 *** Twofish has joined #openttd
10:41:54 *** HerzogDeXtEr has joined #openttd
10:44:57 *** Myhorta has joined #openttd
10:53:22 *** supermop has joined #openttd
11:01:55 *** lofejndif has joined #openttd
11:12:47 *** TheMask96 has joined #openttd
12:16:00 *** retro|cz has joined #openttd
12:37:57 <peter1138> Doing hg update, it popped up gvimdiff to get a merge.
12:39:32 <planetmaker> edit files such that the merge is ok?
12:39:58 <planetmaker> you likely had a modified state of the repo. And it tries to merge your modifications with the new revision
12:40:17 <planetmaker> if you want to throw away your edits, then hg up -C -rXXX
12:40:35 <peter1138> Yes, I know why, but it's not clear what to do, like save or whatever.
12:40:47 <planetmaker> depends on what you want
12:41:00 <planetmaker> so you're asking about introduction to gvimdiff?
12:41:18 <planetmaker> I don't like it either :P
12:41:42 <planetmaker> but the usual vi shortcuts work
12:41:56 <planetmaker> but I don't know how to switch windows
12:42:09 <peter1138> It's gvimdiff so I can cheat and use the mouse :)
12:43:51 <planetmaker> for the future, you might want to edit your ~/.hgrc and add in the [ui] section like
12:43:59 <planetmaker> if you prefer kdiff3
12:44:16 <planetmaker> I find that much easier to use
12:48:23 *** Phoenix_the_II has quit IRC
13:00:01 *** Aristide has joined #openttd
14:46:07 *** Myhorta has joined #openttd
14:52:23 <peter1138> Bit late for 1.4 eh
15:15:34 *** luizrpgluiz has joined #openttd
15:40:04 <Xaroth|Work> i've seen that link fly by a few times today
15:40:07 <planetmaker> hm, nice to see issues dealt with
15:40:22 <planetmaker> the issue has been edited / partially removed meanwhile, though
16:11:05 *** ZirconiumX has joined #openttd
16:11:46 <ZirconiumX> Hello everyone. Any Linux gurus around?
16:12:05 <ZirconiumX> I can't play any MIDI music on 1.4.0
16:12:46 <ZirconiumX> I've fluidsynth set up, and have tested it to make sure it plays music
16:14:25 <ZirconiumX> I do get the vehicle sounds though, so it isn't like fluidsynth is hogging alsa.
16:36:03 *** oskari89 has joined #openttd
16:44:07 <peter1138> Is ottd hogging alsa? heh
16:44:25 *** Phreeze has joined #openttd
16:46:17 <ZirconiumX> Nope. I can play music using fluidsynth and hear vehicle sounds from OpenTTD
16:55:18 <ZirconiumX> You using fluidsynth or timidity?
16:57:57 <peter1138> Playing via pmidi, with ALSA_OUTPUT_PORTS set beforehand.
16:59:18 <ZirconiumX> What could be different between our systems? I'm using Arch Linux.
17:02:29 <ZirconiumX> Don't have a emu10k sound card
17:09:32 <ZirconiumX> 3 years later - $ ALSA_OUTPUT_PORTS=128:0 openttd -m extmidi:cmd=aplaymidi
17:09:54 <ZirconiumX> Now I have an organ playing continuously in the background, but at least I have music
17:14:34 <ZirconiumX> After installing pmidi, I have something that works.
17:14:54 <ZirconiumX> Still, a workaround like that indicates a bug or two.
17:16:29 *** gelignite has joined #openttd
17:17:27 <peter1138> Workaround? How was it set up before?
17:18:14 <ZirconiumX> I was just using the default OpenTTD stuff, which appears to be broken on Linux (but works on windows...)
17:19:03 <ZirconiumX> I had to manually perform $ ALSA_OUTPUT_PORTS=128:0 openttd -m extmidi:cmd=pmidi
17:19:21 <peter1138> If you don't specify anything then it tries to use timidity.
17:20:13 <ZirconiumX> Since I am using fluidsynth, it failed
17:20:27 <peter1138> If you don't have timidity installed, it wouldn't work.
17:21:16 <ZirconiumX> If only I considered my C++ skills up to scratch
17:21:23 <ZirconiumX> Then I'd fix that myself.
17:21:51 <peter1138> It's all configurable, but the default command is just "timidity" if none is specified.
17:22:50 <ZirconiumX> maybe we could add that to openttd.cfg instead of having to specify it on the command line (which means PCManFM will launch OpenTTD without any MIDI support)
17:23:01 <peter1138> You can add it to openttd.cfg
17:23:18 <peter1138> musicdriver = "extmidi:cmd=blah"
17:23:52 <peter1138> No idea what PCManFM is.
17:24:53 <ZirconiumX> The file manager for LXDE
17:27:45 <peter1138> People launch programs from a file manager now?
17:27:59 <ZirconiumX> *cough* Ubuntu *cough*
17:28:46 <peter1138> There are menus and things...
17:29:02 <ZirconiumX> I take it you don't use Unity, then...
17:29:15 <peter1138> I don't use Ubuntu.
17:29:29 <peter1138> But Unity uses the .desktop files, no?
17:29:41 <ZirconiumX> Think so. Not sure.
17:32:12 <ZirconiumX> Is there any way to tell OpenTTD to run a command on startup?
17:34:02 <planetmaker> ZirconiumX, but even if you launch from file manager - editing the openttd.cfg gives the appropriate effect?
17:34:42 <ZirconiumX> It runs pmidi without telling ALSA where to put the MIDI
17:34:42 <planetmaker> you edited the correct cfg file then?
17:35:16 <ZirconiumX> $ ALSA_OUTPUT_PORTS=128:0 openttd -m extmidi:cmd=pmidi <-- works fine
17:36:15 <ZirconiumX> Using the musicdriver setting in openttd.cfg removes the -m bit, but doesn't change the ALSA_OUT_PORTS=128:0 part.
17:36:33 <ZirconiumX> (or otherwise I haven't found out how to add the ALSA_OUT_PORTS bit)
17:36:43 <peter1138> Yeah, arguments never got added to extmidi so you can't do cmd=pmidi -p 128:0
17:37:54 <glx> then just run a .sh instead the exe
17:38:00 <peter1138> Yup, make a wrapper script.
17:38:30 <glx> like .bat on msdos/windows in the old time
17:41:50 <ZirconiumX> Looks like I can't write shell scripts very well...
17:43:39 <planetmaker> openttd parameters you need to put
17:43:51 <planetmaker> (done is not part of script anymore)
17:44:30 <ZirconiumX> Well, having realised my mistake , it vaguely works
17:45:04 <ZirconiumX> I'm being deafened by the hanging pmidi processes having not done noteoffs at kill time
17:45:33 <DorpsGek> Commit by translators :: r26444 /trunk/src/lang (4 files) (2014-04-04 17:45:23 UTC)
17:45:34 <DorpsGek> -Update from WebTranslator v3.0:
17:45:35 <DorpsGek> simplified_chinese - 5 changes by siu238X, xiangyigao
17:45:36 <DorpsGek> traditional_chinese - 2 changes by siu238X
17:45:37 <DorpsGek> czech - 1 changes by marek995
17:45:38 <DorpsGek> german - 1 changes by Jogio
17:47:30 *** frosch123 has joined #openttd
17:47:36 <ZirconiumX> Well, thank you all very much!
17:54:26 <LordAro> good lord, it's a ZirconiumX
17:54:44 <ZirconiumX> It's the Lord himself
17:54:45 <peter1138> ZirconiumX, use aplaymidi then, I think that does note offs.
17:55:03 <peter1138> Not sure why pmidi doesn't, or why the midi files don't have them at the end.
17:55:36 <LordAro> i've had issues getting ottd to play midi music in the past
17:55:45 <LordAro> can't remember if i ever resolved them
17:56:18 *** Pereba_ has joined #openttd
17:57:21 <ZirconiumX> pmidi will play the song regardless of the stop button.
17:57:48 <ZirconiumX> aplaymidi will stop playing any more notes after the stop button. No noteoffs though
17:59:20 *** Pereba_ is now known as Pereba
18:00:05 <ZirconiumX> planetmaker is now a duck, apparently.
18:01:11 <mg_> hi. i downloaded 32bit z-base graphics. it looks good but i can't find any newgrf to replace default ground tiles (green terrain + trees). is there some magic newgrf that i'm missing?
18:01:30 <LordAro> ZirconiumX, heh, you must be new here :p
18:01:49 <ZirconiumX> I'm not new, I just haven't been here in 3 odd years.
18:01:55 <planetmaker> mg_, you mean 32bpp terrain NewGRFs to replace zBase' terrain tiles?
18:01:59 <LordAro> mg_, zbase should do that magically
18:02:09 <LordAro> mg_, example screenshot?
18:02:21 <planetmaker> if you have 8bpp terrain tiles, then you use a NewGRF which replaces ground tiles
18:02:32 <planetmaker> or you haven't yet activated zBase :)
18:02:35 <mg_> i mean, i have zBase graphics set
18:02:44 <planetmaker> activated in game options?
18:03:02 <mg_> coal mines, power stations etc are ok
18:03:12 <mg_> but "grass" is not, and trees
18:03:22 <planetmaker> and no NewGRFs active? (screenshot using ctrl+s, upload to imagebin.com)
18:03:31 <ZirconiumX> are giant alien spaceships
18:03:47 <ZirconiumX> Dammit planetmaker, you ninja'd me.
18:04:03 <planetmaker> zBase provides 32bpp graphics for all tiles. So if you have no 32bpp for some, that's one of your NewGRFs
18:04:38 <mg_> planetmaker: i see, so i will try again with disabled newgrfs
18:05:14 <Eddi|zuHause> __ln__: it's weird how they're all like "it's a different language, copyright doesn't apply"... at least german copyright explicitly mentions "translating to other languages" as being covered
18:05:54 <mg_> planetmaker: it works now :P
18:06:32 <planetmaker> Eddi|zuHause, I'm sure it's under most legislations. It's still a derivative after all
18:08:24 <Eddi|zuHause> people having strong opinions on things they don't fully understand is one of the most dangerous things in this world
18:09:07 <NGC3982> It's very human, though.
18:09:23 <ZirconiumX> Eddi|zuHause - sadly that's part of human nature
18:26:18 *** Pereba_ has joined #openttd
18:26:32 *** Aristide has joined #openttd
18:31:32 *** Pereba_ is now known as Pereba
18:42:58 <heffer> planetmaker: opengfx 0.5.0 somehow broke the make check target
18:46:53 <maddy_> if there is one thing I love about openttd is that it almost never crashes (not even with nightly builds)
18:47:14 <glx> <@planetmaker> Eddi|zuHause, I'm sure it's under most legislations. It's still a derivative after all <-- even if not derivative, there's at least copyright on the translator work usually (plus the original rights holder who allowed the translation)
18:47:32 <maddy_> ZirconiumX: at least not for me :)
18:47:56 <ZirconiumX> Mainline OpenTTD is very stable. I've only ever found one bug in it, which was fixed quickly
18:51:25 <heffer> maddy_: I maintain openttd for more than 5 years in Fedora now. I had my fair share of bugreports including nasty coredumps and backtraces :)
18:51:50 <heffer> but what I always found amazing was that I came here to this channel and the guys usually had stuff fixed in less than an hour
18:52:11 <maddy_> yeah the devs are really awesome
18:53:19 <heffer> i always drop very cryptic backtraces in here and they are always like "yeah, looks like that happens when 3 vehicles drive to close to the border of the map and a train just breaks down by chance and also all moons align"
18:53:45 <heffer> all from like 20 lines of backtraces
18:54:05 <ZirconiumX> Hmm. Maybe I should become a maintainer.
18:54:23 <glx> once we know where it happens it's easier to imagine why it happens (and fix it)
19:05:33 *** talebowl has joined #openttd
19:10:46 *** Progman has joined #openttd
19:10:55 *** ZirconiumX has left #openttd
19:39:28 *** Progman_ has joined #openttd
19:54:25 *** Myhorta has joined #openttd
21:51:17 *** Progman has joined #openttd
22:10:16 *** michi_cc has joined #openttd
22:10:17 *** ChanServ sets mode: +v michi_cc
22:11:26 *** Supercheese has joined #openttd
22:15:34 *** Myhorta has joined #openttd
22:52:20 *** Cybertinus has joined #openttd
23:16:27 *** montalvo has joined #openttd
continue to next day ⏵