IRC logs for #openttd on OFTC at 2008-09-06
⏴ go to previous day
00:01:10 <TrueBrain> I think some subcomponent updated on my system already .. my firefox refuses to display something :p
00:01:19 <orudge> heh, annoying when that happens
00:03:29 <TrueBrain> guess what that does
00:03:34 <TrueBrain> (it is a valid (!!) Perl application)
00:03:53 <orudge> launches the space shuttle?
00:04:26 <Brianetta> TrueBrain: That's genius at a level I can't even begin to comprehend
00:04:35 <orudge> I assume it won't eat anything
00:04:42 <TrueBrain> orudge: it is 100% harmless
00:05:04 <TrueBrain> if you know me a bit, you know where it is from
00:05:20 <orudge> reminds me of the 12 Days of Christmas thing in C
00:05:36 <TrueBrain> but really, who can tell me how that aplication works?
00:05:40 <TrueBrain> just a tip of how it is done ..
00:05:44 <TrueBrain> I have no clue, not one
00:05:54 <Brianetta> TrueBrain: It's ASCII only
00:06:01 <Brianetta> so won't work on an EBCDIC box
00:06:17 <TrueBrain> Brianetta: EBCwhat?
00:06:33 <Brianetta> The bottles contain the relevant ASCII characters, incremented into punctuation
00:06:46 <TrueBrain> there are no fun C variants
00:06:58 *** welshdragon is now known as welshdra-gone
00:07:01 <Brianetta> There's a loop, which decodes the lines and inserts the counte
00:07:17 <Brianetta> rThe bottle shape of the lines id coincidental
00:07:29 <Zuu> Would be cool to make the 99-botteles of bear program whith the code in shape as beer bottles. :p
00:07:53 <TrueBrain> Zuu: I think they did exactly that :)
00:08:12 <Zuu> But shouldn't there be ascii "bottle" etc. in it?
00:08:23 <TrueBrain> Brianetta: it has to contain a loop (which does it 100 times), as requirement of the program :)
00:08:24 <Brianetta> TrueBrain: I think you missed a space at the start when you pasted
00:08:54 <TrueBrain> Brianetta: most likely
00:08:57 <TrueBrain> doesn't matter, it was the idea
00:09:04 <TrueBrain> if you want the full source
00:09:23 <Brianetta> Zuu: Take "bottle" and increment all the ASCII values by, say, 80
00:09:45 <Zuu> Brianetta: Sure, likely some such tricks.
00:09:51 <Brianetta> I'm not going to rummage in the Perl there to find out the actual value used
00:10:03 <Brianetta> then the loop can re-use the increment
00:10:46 <TrueBrain> a,t="\n%s bottles of beer on the wall","\nTake one down, pass it around"
00:10:46 <TrueBrain> for d in range(99,0,-1):print(a%d*2)[:-12]+t+a%(d-1 or'No')
00:11:01 <TrueBrain> at least with adding enters and stuff, I can decode the above text :p
00:12:27 <Brianetta> Now use < for print and {;;}; for a loop
00:12:53 <Brianetta> and use ascii characters for their numeric equivalents (:
00:21:49 *** reldred is now known as reldred|gone
00:33:10 *** Eddi|zuHause has joined #openttd
00:35:24 *** Jerimiah40 has joined #openttd
01:10:57 <Brianetta> Any IE users who can't read my Standard Server's web page
01:11:05 <Brianetta> There's a dodgy hack for you
01:20:41 *** roboboy has joined #openttd
01:20:56 *** Jerimiah40 has joined #openttd
01:21:27 *** roboboy has joined #openttd
01:38:28 *** reldred|gone is now known as reldred
01:56:00 *** Pikka is now known as Pikka|tf2
02:04:18 *** Jerimiah40 has joined #openttd
02:20:39 *** Jerimiah40 has joined #openttd
02:27:18 <Belugas> [17:53] <@peter1138> Belugas, is newgrf_industries.cpp:268 right? <-- it should be fine indeed, if you are talking about the specs or the asm code
02:27:23 <Belugas> but it's been a long time ago
02:34:24 <CIA-1> OpenTTD: glx * r14251 /extra/ (3 files in 2 dirs): [OTTD GRF] -Fix (r14213): replace the right glyph and use the right colour indices in glyph sprite
02:36:58 <CIA-1> OpenTTD: glx * r14252 /extra/website/languages/fr_FR.php: [website] -Revert (r14251): always check where you are when you it enter :)
02:43:58 <CIA-1> OpenTTD: glx * r14253 /trunk/bin/data/ (5 files): -Fix (r14214): replace the right glyph and use the right colour indices in glyph sprite
02:53:30 <CIA-1> OpenTTD: belugas * r14254 /trunk/src/economy.cpp: -Codechange: Code style and breathing room
03:08:04 *** elmex_ is now known as elmex
03:19:34 *** reldred is now known as reldred|gone
03:50:07 *** Progman has joined #openttd
04:16:16 *** ChanServ sets mode: +v tokai
04:22:23 *** Jerimiah40 has joined #openttd
04:34:37 *** ccfreak2k has joined #openttd
04:35:02 *** Jerimiah40 has joined #openttd
04:35:33 *** Singaporekid has joined #openttd
05:18:18 *** welshdra-gone has joined #openttd
05:34:53 *** Jerimiah40 has joined #openttd
05:51:23 *** roboboy has joined #openttd
06:19:00 *** Celestar has joined #openttd
06:38:14 * Celestar wonders whether one can tell vim to auto-recognize variable types from the tags file
06:46:06 *** draconnier has joined #openttd
07:06:52 *** Alberth has joined #openttd
07:13:09 <Celestar> the GUI code sucks at times :P
07:14:58 *** Jerimiah40 has joined #openttd
07:18:39 <roboboy> anyone want to join me on the coopdev server
07:26:11 <Wolf01> or better, ths evening
07:26:32 <Wolf01> stupid i key, I need to clean the keyboard
07:28:31 <Wolf01> good, another broken piece of plastic come out of the keyboard
07:28:54 <Wolf01> it's the laptop keyboard :P
07:29:47 <roboboy> does it have USB ports then buy a USB keyboard
07:30:44 <Celestar> laptop keyboards are expensive :(
07:31:50 <roboboy> mercurial doesnt seem to want to update the revision when I try to update
07:31:57 <Wolf01> that's the only reason why I didn't changed it yet, but I want to to a little upgrade, maybe I can change the keyboard too
07:32:09 <roboboy> it says something about a lock
07:34:28 *** |Jeroen| has joined #openttd
07:42:58 *** murray_ has joined #openttd
07:58:01 *** frosch123 has joined #openttd
08:22:24 <peter1138> roboboy, hg pull && hg update
08:23:13 <peter1138> Belugas, seems odd to have a Random() in the middle of varaction2 code.
08:26:58 <peter1138> Hmm, there appears to be a quantity of bacon, eggs and sausages. I see a plan forming...
08:26:59 <Celestar> how's the keyboard stand? (=
08:27:10 <frosch123> Random() in GetxxxVariable() will most likely always cause desyncs :)
08:34:47 <Celestar> sometimes it's a real mess
08:36:03 <peter1138> I haven't yet found the perfect keyboard stand.
08:36:11 <roboboy> and I still get waiting for lock on cujrrent working directory
08:36:18 <peter1138> Currently it's stand on my coffee table which is exactly 115cm wide.
08:36:21 *** welshdra-gone has joined #openttd
08:36:49 <peter1138> Stupid keyboard, typing all the wrong words :(
08:37:26 <Celestar> peter1138: I'm nearly done with the GUI
08:37:45 <Celestar> peter1138: but I'm considering rewriting the vehicle detail windows, however I'm not sure cargodest is the right place to do this
08:37:59 <peter1138> Trunk is a good place.
08:40:49 <Celestar> yeah and then I'll have a total merge mess :P
08:41:11 <peter1138> Not when you do it right.
08:42:24 <Celestar> heh..yes because I consider *rewriting* it.
08:42:42 <Celestar> Making the vehicle details window an ABC and deriving the individual windows from it
08:43:19 <Celestar> that would mean new window classes I guess :/
08:46:08 *** Jerimiah40 has joined #openttd
08:46:09 *** Sionide has joined #openttd
08:48:31 <Zuu> Celestar: I tried to find out what ABC stands for when it comes to programming but have only found pages that usese 'ABC' term but not describes it. Would you mind at least tell what it is abrivated from?
08:48:53 <Celestar> ABC == abstract base class
08:49:51 <Celestar> A class with at least one pure virtual function. It cannot be instantiated, only be derived from
08:50:22 <Zuu> Yea, know abstract classes, but have never seen the 'ABC' term before.
08:50:48 <Celestar> maybe it's a celestar-specific TLA :P
08:51:54 <Zuu> I don't study computer sinence so I miss out some jargon you learn there... :)
08:52:13 <Celestar> I don't study computer science either. and I never did, and likely never will
08:53:07 <peter1138> ^ Un-special-casing extmidi's command argument.
08:53:36 <roboboy> its still saying stuff about the lock
08:54:00 * Celestar goes TRYING to convert the vehicle details window into an ABC
08:55:18 <peter1138> Shouldn't be too hard.
08:55:47 * Zuu tries to not scream to high while waiting for MSVC8 to link OpenTTD - hell slow compared to gcc/ln. Takes like 30 seconds or more in MSVC8.
08:56:20 <Celestar> constructors are base before derived, right?
08:57:02 *** Progman has joined #openttd
09:03:22 *** Pikka|tf2 is now known as Pikka
09:07:45 *** reldred has joined #openttd
09:08:03 *** [com]buster has joined #openttd
09:12:49 <dih> Ammler has an issue with the word 'Patches' used in the game (Patch Settings) and would like to continue his discussion in here...
09:15:02 * frosch123 also has an issue with "ttdp compatible non-stop"
09:15:26 <Celestar> yeah, because what does it do in the first place meanwhile? :P
09:15:54 <Ammler> well, the word "patch" should not apear in any GUI form :-)
09:16:13 * frosch123 votes for "Advanced settings" and "Add non-stop orders by default"
09:16:15 <Ammler> dih: there is no need to discuss it here, devs do already know it :-P
09:16:34 <Celestar> I concur with frosch123
09:16:44 <Celestar> how about ctrl-click on a station adds non-stop orders by default?
09:17:07 <Ammler> Celestar: think about the size
09:17:45 <roboboy> what if a train already with orders is at the station and you want to clone/share the orders it has
09:19:21 <Ammler> it clones like the are, does not change
09:19:54 <Ammler> this setting has also influence how to "convert" older saves
09:20:32 <frosch123> Ammler: in those older saves the setting is stored in the savegame
09:21:39 <DaleStan> <Celestar> constructors are base before derived, right? <-- Yes. Also, with multiple bases, left to right. I think virtual bases are constructed at their first location in a L-to-R depth-first search, but I'm not so sure about that.
09:22:05 <Celestar> Ammler: dih: you know "schwäbisches" Star Wars?
09:22:15 <DaleStan> Virtual base classes always made my brain very uncomfortable.
09:22:49 * peter1138 wonders how to do this GUI...
09:23:27 <Celestar> dih: youtube: search for "Star wars schwäbisch"
09:26:53 <Celestar> why do a _ALWAYS_ forget the ";" at the end of an interface :S
09:31:32 *** Jerimiah40 has joined #openttd
09:32:19 <dih> i wanna watch star wars again...
09:32:51 *** Doorslammer has joined #openttd
09:36:36 <Ammler> Celestar: there is no "no youtube" on topic anymore :-)
09:36:52 <Celestar> Ammler: just watch it :P
09:37:15 <Wolf01> there's no 8=D on topic anymore :D
09:41:23 <Wolf01> that's a smiley with sunglasses and a large nose... - small nose, = large nose... I can't understand why people should always see something different :P
09:42:49 <Wolf01> that looks like a frog
09:43:21 <frosch123> true, it does not have any ears
09:49:43 *** Jerimiah40 has joined #openttd
09:52:34 <frosch123> any other language that wants to stay?
09:53:13 <Ammler> german, dih is fixing it atm :-)
09:53:17 <frosch123> all those I could read looked similiar to "patch" or "lappen" or "flicken"
09:53:42 <frosch123> so I leave german to not cause conflicts :)
09:53:55 <SmatZ> frosch123: interesting, just in last language update I noticed the same change in czech.txt
09:54:30 <SmatZ> +STR_CONFIG_PATCHES :{BLACK}Pokročilé nastavení
09:54:45 <frosch123> svn revert czech.txt
09:54:48 <SmatZ> is it just a conincidence?
09:55:45 <Wolf01> you should then fix all, rename all "patch" occurrencies to advsettings or anything you like, so also in the console we can refer to it with the new name instead of patch.xxx
09:55:50 *** Sir-Bob has joined #openttd
09:56:31 <Wolf01> patch.xxx <- is there a pr0n setting in OTTD?
09:56:36 <frosch123> Wolf01: that would definitly be a separate patch
09:57:16 <Celestar> code looks MUCH cleaner if interface is separated from implementation
09:57:42 <dih> Wolf01: it's and easter egg - go find it!
09:57:59 <Wolf01> that would made sacro happy
09:58:27 <Wolf01> maybe a setting to enable nudes like on the long vehicles
10:01:12 <Ammler> shouldn't plane speed factor moved to cheats...
10:01:14 <XeryusTC> get the marsian landscape
10:01:19 <XeryusTC> there's a nude statue in there :P
10:02:10 <Ammler> well, also many 4LV trucks have one
10:08:37 <Celestar> working on vehicle_gui.h sucks
10:11:48 <dih> Ammler: it's a setting, not a cheat!
10:12:16 <Ammler> what is the difference=
10:12:16 <dih> some people might want to configure their servers to allow better plane profits
10:12:26 <dih> cheats cannot be configured on servers?
10:13:51 <Ammler> well, I have another view for cheats, but nevermind.
10:14:34 <Ammler> :-) that is an other, isn't?
10:15:00 <dih> it's sometimes just not that funny anymore :-)
10:16:04 <Ammler> and why do you smile then :P
10:16:22 <Celestar> peter1138: I'll do that at some other point. it's rather large a modification :P
10:18:02 <dih> Ammler: not wanting to appear too rude...
10:21:42 *** stillunknown has joined #openttd
10:26:21 *** KillaloT has joined #openttd
10:48:31 <Celestar> DaleStan: the f() : g() syntax only works for ctors/dtors, right
10:51:03 <Zuu> I've never seen f() : g() for destructors, only constructors.
10:51:42 <Zuu> but yea technically it's morning in UK at least.
10:52:20 <TrueBrain> not that I am there, but good enough
10:52:30 *** murray_ is now known as murray
10:52:59 <Celestar> TrueBrain: is there any way I can fire up the compile farm? (=
10:53:02 <TrueBrain> my compiling in screen suspends when I close my NX session .. annoying ..
10:53:19 <TrueBrain> Celestar: already done ..
10:53:25 <Celestar> TrueBrain: awesome ;)
10:56:06 <TrueBrain> today I hope to get the scripts converted to allow a more flexible way of scheduling compiles, then I need to fix OSX somehow .. and then I can give you easy access :)
10:57:47 <TrueBrain> I want to get this over with, so I am in a hurry :p
10:57:59 <TrueBrain> OSX target currently is a release-blocker :(
10:58:22 <Celestar> do we have any release in the near future?
10:59:18 <TrueBrain> not that kind of release
11:00:22 <TrueBrain> show-blocker, maybe a better word :)
11:02:55 <yorick> where does cargodest need grep -m for?
11:03:26 <TrueBrain> I think 'trunk' needs it to
11:03:37 <yorick> or I would have failed to compile trunk
11:04:24 <TrueBrain> not exactly, still it is a trunk thing
11:04:48 <yorick> then why does Cargodest error with the invalid option and trunk doesn't?
11:05:26 *** reldred is now known as reldred|gone
11:05:35 *** Frostregen has joined #openttd
11:05:43 <TrueBrain> use grep to find out where it is used, and you will know
11:05:49 <TrueBrain> gnuwin32.sf.net, and download grep
11:06:03 <TrueBrain> Celestar: hg/git revision detection :)
11:06:25 <yorick> could have told me that
11:06:34 <TrueBrain> you could have just checked yourself
11:08:05 <yorick> Celestar: I got a new warning for you about some deprecatedness
11:09:38 *** reldred|gone is now known as reldred
11:10:09 <TrueBrain> 4.x is to unspecific .. 4.0, 4.1 and 4.3 differ A LOT :p
11:10:46 <Celestar> yorick: this will be fixed when we found some final revision (=
11:10:50 <yorick> TB: are you too lazy to read my error now?
11:11:05 <yorick> "/lib/gcc/mingw32/4.3.0/"
11:12:27 <yorick> btw, constructing bundle revision detection fails with hg
11:13:34 <TrueBrain> yorick: only if you don't have the right grep :)
11:20:59 <Celestar> peter1138: it seems by turning VehicleDetailsWindow into an abc we might even end up with fewer lines of code :P
11:22:58 <yorick> TB: I got a newer grep now
11:23:06 <yorick> but the bundle detection still seems to fail
11:25:47 <peter1138> Celestar, I thought you'd given up on that?
11:25:56 <TrueBrain> yorick: then I wouldn't know, it works here :)
11:26:20 <Celestar> peter1138: well, it's nowhere near finished
11:26:36 <Celestar> peter1138: but it might be finished this evening.
11:26:48 <peter1138> Does my extmidi driver change seem reasonable?
11:27:05 <Celestar> I have no idea about the extmidi stuff
11:27:21 <Celestar> I've started out with the window stuff in cargodest :o
11:27:38 * roboboy deletes his cargodest source folder and starts afresh
11:30:00 *** Swallow has joined #openttd
11:30:58 * Zuu thinks there should be a generic find location window which not only let you search for signs but any location string, such as signs, towns, industries and vehicles.
11:31:24 <Zuu> But I guess I better get search in sign list done first..
11:32:55 <Zuu> Zuu: Search in sign list is a patch that is not far from getting done.
11:33:16 <Zuu> You can find version 2 with some usability issues on tt-forums.
11:33:40 <FauxFaux> Heh, 86 "open" patches on the bug tracker. :/
11:33:47 <Zuu> (mainly that sign list steals focus always when it is open)
11:34:40 <TrueBrain> peter1138: take your pill, please
11:34:55 <Zuu> I don't want, it rains so much today..
11:35:13 <peter1138> Why is gtk_main_iteration() returning true?
11:35:19 <FauxFaux> I WANT TO RIDE IT WHERE I LIKE
11:37:05 <peter1138> No, I'm currently working out what to do with my joystick events.
11:37:40 <yorick> every time you open thd clientlist, the first client is automagically selected
11:37:48 <yorick> that bug came with the cpp-gui
11:45:33 *** LA is now known as LordAzamath
11:46:04 *** LordAzamath is now known as Lord
11:46:31 <Lord> cos I'm called this almost everywhere :P
11:46:51 <Lord> but someone has registered this nick before too
11:46:58 <Lord> and we got a Lord at tt-forums too
11:47:37 <dih> LA, talk to #oftc, they will free Lord for you
11:48:11 <dih> check the register date and last quit ;-)
11:49:03 <LA> actually, I can live with LA too.. I got that from oftc too :P
11:49:32 * LA is searching for nightly's changelogs
11:49:46 <Celestar> methinks he should stop reading the forums
11:50:26 <dih> Celestarthinks nonsense :-P
11:50:43 <TrueBrain> Celestar: you won't get any smarter if you continue to read them
11:50:59 *** peter1138 sets mode: +b Lord!*@*
11:51:05 <peter1138> Because it's a silly nickname.
11:51:07 <Celestar> TrueBrain: some people have a weird .. tone
11:51:19 <TrueBrain> some people are weird :)
11:51:42 <Celestar> /home/vici/openttd-cargodest/src/ship_gui.cpp:48: undefined reference to `vtable for ShipDetailsWindow'
11:52:17 *** LilDood has joined #openttd
11:55:17 <LA> media is not virgin :o Someone raped her
12:01:00 *** roboboy has joined #openttd
12:05:51 *** grumbel has joined #openttd
12:08:31 <LA> Why do people spam sometimes?
12:14:46 <LA> TrueBrain: I tend not to spam.. usually
12:27:35 *** Dred_furst has joined #openttd
12:28:07 *** reldred is now known as reldred|gone
12:33:36 <Jupix> hey, would it be difficult to implement land-only maps in openttd?
12:33:43 <Zuu> What do you prefere 'search in sign list' or 'filter sign list'? My biggest argument for 'filter' is that the f-key is available, but the s-key is heavily used for signals so taking s-key is not a good thing. (even if the f/s-key won't be global)
12:35:21 <roboboy> I replied to your thread
12:35:35 <TrueBrain> Jupix: you need to be a tiny bit more specific I Think, as 'land-only' maps is pretty vague
12:35:46 <TrueBrain> (you mean no vehicles? no snow? no trees? no houses?)
12:36:09 <Jupix> or rather, no sea surrounding the land
12:37:34 *** Progman has joined #openttd
12:37:41 *** LilDood_ has joined #openttd
12:38:06 <Jupix> I think I'd be a bit out of my league with that one
12:38:11 <Zuu> roboboy: Okay, I'll check that out
12:43:11 <Celestar> 160 fewer lines in vehicle_gui.cpp, peter1138 (=
12:48:09 <Celestar> what's the *point* of having identical strings in the language file?
12:48:30 <TrueBrain> different syntax meanings?
12:49:26 <Celestar> they even have, apart from the hexnumber, the same name.
12:50:38 <TrueBrain> well, who knows, in some language it is translated differently :p
12:51:00 <TrueBrain> I can't give you an example in english, but I know sometimes you need 2 equal english strings, which are transltaed differently in other languages
12:51:08 <TrueBrain> not to say it is true for the strings you are looking at :)
12:54:23 <CIA-1> OpenTTD: truebrain * r14255 /trunk/Makefile.src.in: -Fix [configure]: remove the requirement to have a recent enough 'grep' which understands -m. Instead, use 'head -n 1' which is more common available
13:09:13 *** Progman has joined #openttd
13:11:51 <Ammler> LA complaining about spam is also spam as this line here is spam ;-)
13:13:23 <TrueBrain> Ammler: now see what you did :p
13:14:29 <peter1138> You made him leave. Congratulations.
13:14:34 *** Vikthor has joined #openttd
13:18:25 <Ammler> yet another legal discussion, we really have to few of them.
13:18:27 <Celestar> 1000 lines of diff :(
13:21:20 <peter1138> Should be less than that in trunk?
13:21:32 <peter1138> Do it in the right place :p
13:22:03 <peter1138> Of course, Sacro used to be a woman.
13:22:04 <Celestar> peter1138: not much of a difference. I haven't even touched the cargodest code in there.
13:22:42 <Celestar> because I've basically redone the non-train windows. Needed to add the scrollbar (and related functions) plus the resize button
13:31:51 <peter1138> Are you going to leave now, too?
13:36:22 <TrueBrain> don't make us happy with a dead fish
13:36:29 <TrueBrain> :) You had thatone comng ;))
13:39:07 * yorick makes TB happy with a dead fish
13:39:24 <orudge> fish heads, fish heads, roly poly fish heads
13:39:35 <TrueBrain> I think today this channel went insnae
13:40:07 <TrueBrain> OH! orudge pasted a youtube link! OH!
13:40:22 <orudge> it doesn't say "no youtube links" in the topic, as far as I can see
13:40:40 <TrueBrain> but clearly you know it once was
13:40:57 <TrueBrain> which is worse, you requiring constant reminder of what is allowed and not?
13:40:59 <orudge> I was just trying to explain that I am not insane
13:41:09 <TrueBrain> orudge: you can try, you will fail
13:41:10 <orudge> and that there really was a song in the 80s called Fish Heads ;)
13:41:13 <TrueBrain> I have seen the tt-forums meet movie
13:46:00 <davis-> fish heads fish heads ..
13:48:16 * Celestar wonders what to do with the gui cleanup now
13:48:23 <Celestar> ok I'll be off for a bit
13:49:53 *** lobster_MB is now known as gks
13:51:01 *** gks is now known as lobster_MB
14:05:08 *** `Fuco`` has joined #openttd
14:16:01 <peter1138> Celestar, did you rework it against trunk?
14:36:02 <Celestar> peter1138: first thing is to decide whether to get rid of the duplicate/quadruple strings.
14:37:05 <Celestar> peter1138: vehicle_gui.cpp:1263
14:37:12 <Celestar> peter1138: all those strings are identical
14:37:47 <Celestar> reworking against trunk is more difficult than the diffing against cargodest :(
14:38:30 <Celestar> peter1138: one disadvantage I have noticed abbout cargodest in the network: the savegames are siginificantly larger
14:39:11 <Celestar> peter1138: mostly because of this:
14:39:13 <Celestar> dbg: [misc] [Pool] (CargoPacket) increasing size of pool to 60416 items (1933312 bytes)
14:42:09 <Celestar> Eddi|zuHause: are you around?
14:43:57 <TrueBrain> 2 MiB of cargopacket data :s
14:44:22 <Celestar> dbg: [misc] [Pool] (Vehicle) increasing size of pool to 5120 items (1658880 bytes)
14:45:03 <TrueBrain> still, cargopackets is bigger ;)
14:45:18 <Celestar> cargo is clogging up at some of the stations :P
14:45:50 <TrueBrain> so an efficient network means a small savegame ;)
14:46:14 <Celestar> but we have 1MB downloads for a 512x512 map.
14:53:30 <Celestar> peter1138: damnit .the current dev test games overwhelmes my CPU :((
14:55:43 <roboboy> 70% cpu or more for openttd.exe
15:00:27 <Celestar> good news is: its not the cargodest system (=
15:01:48 <Celestar> it's just a general thing
15:01:52 <Celestar> no single function sticks out
15:03:59 *** Jerimiah40 has joined #openttd
15:06:02 *** Wolf01 is now known as Wolf01|AWAY
15:06:45 *** Dr_Jekyll has joined #openttd
15:23:42 <Celestar> peter1138: Rubidium: we might want to consider a more clever CargoList::InvalidateCache than we have now
15:31:26 *** Zealotus has joined #openttd
15:41:15 <yorick> chat backlog still has glitches
15:41:33 <yorick> it leaves a trail on the screen with smooth scroll and pause
15:56:14 *** Brianetta has joined #openttd
15:57:41 *** |Jeroen| has joined #openttd
16:04:58 <peter1138> this_cache_safe is for?
16:04:59 <glx> couldn't you use a function to prevent code duplication?
16:05:29 <Celestar> peter1138: nothing, remains
16:05:36 <Celestar> glx: yes, I'm planning to
16:06:05 *** LilDood has joined #openttd
16:07:11 <Celestar> I first need a desync test
16:07:20 <Celestar> i.e. I'm testing it against an unpached server
16:09:34 <Celestar> hm it works against an unpatched server
16:09:45 <Celestar> the second hunk doesn't do much, it occur much less often
16:12:52 <Celestar> I'll be back in 50 minutes or so
16:19:51 *** welshdra-gone is now known as welshdrgaon
16:19:57 *** welshdrgaon is now known as welshdragon
16:31:19 *** KillaloT has joined #openttd
16:31:20 <CIA-1> OpenTTD: glx * r14256 /branches/noai/Makefile.bundle.in: [NoAI] -Fix (r14236): forgot to move the noai changes in Makefile.bundle to Makefile.bundle.in
16:32:37 *** svippery has joined #openttd
16:43:29 <Celestar> meh stupid thunderstorm
16:46:01 *** thgergo has joined #openttd
16:46:49 *** Swallow_ has joined #openttd
16:52:46 *** Swallow_ is now known as Swallow
17:04:22 *** Jerimiah40 has joined #openttd
17:21:36 <sulai> I'm just having a look at the ottd code
17:21:46 <sulai> I have a problem with track reservation
17:23:06 <sulai> I'm calling TryReserveRailTrack(), the track gets reserved sucessfully, but the signals of the corresponding rail block don't switch red
17:24:00 <sulai> Am I using the right function?
17:24:47 <sulai> yes... if a tile in a signal block is reserved, the block's signals should show red...?
17:25:19 <peter1138> Well you'll have to write that bit. Signals are red if there's a train in the block.
17:26:00 <sulai> oh.... okay. I thought this was directly linked to track reservation
17:27:18 <sulai> so track reservation and signal triggering are two independent things... right?
17:28:35 <yorick> yes, except for path based signals, maybe
17:29:43 <sulai> hm... is there a function which triggers all signals of a signal block to red?
17:30:07 <sulai> like what a train does if it enters a new signal block
17:30:12 <peter1138> No. There's a function that triggers a signal update.
17:30:32 *** welshdragon2 has joined #openttd
17:30:49 <sulai> peter1138: What name does this function have?
17:31:23 <peter1138> UpdateSignalsOnSegment or something like that.
17:31:38 <peter1138> That won't mark them red though.
17:32:50 <sulai> this one? UpdateSignalsAroundSegment(SigFlags flags)
17:32:53 <Celestar> how does the debug redirect work
17:33:24 <Celestar> peter1138: when I can join a "vanilla" game with my modified CargoList cache compuations, and stay online, can we assume it to be desync safe? ;)
17:33:47 <sulai> <peter1138> That won't mark them red though. <-- hm.. not good.
17:33:54 <Celestar> sulai: what are you writing? (=
17:34:20 <sulai> you know the function thats called when a train enters a new signal section? maybe this will help me ;)
17:34:43 <sulai> Celestar: something I thought to be a one-line patch ;)
17:34:43 <Celestar> I *thought* it was UpdateSignalsOnSegment?
17:34:57 <Celestar> sulai: welcome to the real world :P
17:35:21 <sulai> I want a vehicle on a level crossing to reserve the track and turn the rail segments signals red
17:35:34 <sulai> to make level crossings safer for vehicles
17:35:58 <glx> reserved level crossing are closed
17:36:22 <peter1138> glx, other way around.
17:38:06 <sulai> hm well its not realistic but locomotion has a similar aproach to make level crossings safe
17:38:54 <peter1138> More useful would be making adjacent crossing close.
17:39:09 <glx> indeed and diagonal crossing
17:39:30 <Celestar> CallVehicleTicks takes 32 million cycles on the average :o
17:39:51 <glx> called each tick for each vehicle IIRC
17:40:04 <Celestar> glx: but what does it do? :P
17:40:33 <Celestar> it takes 20 milliseconds per call :(
17:41:06 <sulai> level crossings can only be safe if trains stop for vehicles... otherwise a stoped vehicle on a crossing will be crashed. so making adjacent crossing close wouldnt help.
17:41:58 <Celestar> sulai: RVs should not get unto a crossing unless the part behind the crossing is free imho
17:42:28 <sulai> anyway... I'll try to make a patch and see how it plays ;)
17:42:32 <glx> Celestar: load/unload, motion update
17:43:12 <Celestar> glx: 20 milliseconds for each call of the function, NOT including called functions
17:43:27 <Celestar> all the load/unload happens in called functions
17:43:50 <glx> FOR_ALL_VEHICLES(v) { <-- that can explain it :)
17:44:06 <Celestar> there are 3000 vehicles in game
17:44:20 <Celestar> I still don't see 10000 cycles being used to call a handful of functions
17:45:18 <Celestar> glx: yes. including wagons.
17:45:20 <sulai> Celestar: but then a queue of vehicles won't pass a level crossing... they would wait for 2 tiles distance...
17:45:42 *** Progman has joined #openttd
17:45:48 <Celestar> sulai: good. that's how one does it IRL too
17:46:08 <Celestar> you don't drive bumper-to-bumper over a level crossing (=
17:46:15 <sulai> anyway, thanx for UpdateSignalsOnSegment()... We'll see what it can do ;)
17:48:22 <Celestar> I don't understand the assembly
17:50:31 <Celestar> who here is good at assembly
17:55:55 *** nicfer1 has joined #openttd
18:01:35 *** Jerimiah40 has joined #openttd
18:01:47 *** welshdragon2 is now known as welshdragon
18:13:02 *** thvdburgt has joined #openttd
18:14:18 <Celestar> ok false alarm. gprof includes called functions
18:16:54 *** frosch123 has joined #openttd
18:21:00 <Brianetta> glx: Fancy playing my scenario?
18:21:53 <Celestar> glx: so we just need to do less work per tick, or do that work faster (=
18:22:00 *** thvdburgt has joined #openttd
18:22:59 <nicfer1> a tiny suggestion, what about ctrl-enter as a shortcut for group chat?
18:23:35 <glx> there's already a ctrl-enter shortcut
18:23:39 <peter1138> You mean the way it is?
18:23:44 <yorick> nicfer1: could you tell me what the shortcut is now?
18:24:12 <yorick> something like ctrl-enter, I remember
18:24:30 <glx> there's even a patch setting to determine default destination without ctrl IIRC
18:29:21 <nicfer1> oh I tried on ctrl-enter and that patch setting and it didn't make any effect
18:29:49 <nicfer1> would be good if the switch is on, ctrl-enter will instead allow group chat
18:31:08 <Celestar> Saturday evening and there's no chocolate or anything in the house
18:32:34 *** Jerimiah40 has joined #openttd
18:38:12 *** Reemo is now known as Dr_Jekyll
18:42:55 * peter1138 ponders reusing snd_seq_event.
18:57:19 <sulai> Hm I don't get it to work...
18:58:03 <sulai> UpdateSignalsOnSegment(tile, DIAGDIR_NE, GetTileOwner(tile)) // where tile is the level crossing, the rail going sw-ne
18:58:30 <sulai> should switch the signals red, shouldn't it?
18:58:37 <peter1138> No, it updates the signals.
18:59:20 <peter1138> The signal update still only checks for the presence of trains.
18:59:41 <peter1138> You need to modify that to pretend reserved track is a train.
19:00:01 <sulai> ah, i understand... I'll have a look
19:03:26 <sulai> I think I have to change ExploreSegment() to make it find vehicles too
19:06:26 <Celestar> peter1138: I'm too tired to convert that GUI cleanup to trunk now :P
19:07:21 <Celestar> I'll have a go tomorrow. what about those trings? remove the superfluous ones?
19:56:53 <TrueBrain> who knows where you can get a cheap Xbox 1?
19:57:26 <peter1138> It just doesn't work :o
19:58:39 <TrueBrain> we want a media center in our living room here
19:58:44 <TrueBrain> so xbox seems the best pick :p
20:02:33 <Prof_Frink> TrueBrain: Or you could spend three weeks working out mythtv
20:03:44 <TrueBrain> and how would that help?
20:12:41 <Zahl> ok, if you don't need HD stuff xbox is really the way to go
20:17:32 <TrueBrain> but where to get one ... for not much money ..
20:17:39 <TrueBrain> wow, those Dell Hybrids look awesome!
20:20:06 *** Wolf01|AWAY is now known as Wolf01
20:21:55 <sulai2> is it possible that VehicleFromPos() doesn't work for vehicles (like busses) on crossings? I'm using a debugger and Vehicle *v = _new_vehicle_position_hash[(x + y) & TOTAL_HASH_MASK]; results in NULL every time. vehicle.cpp:424
20:23:18 <Rubidium> that functions works for all tile types/vehicles
20:26:31 *** stillunknown has joined #openttd
20:31:23 *** Jerimiah40 has joined #openttd
20:33:01 <sulai2> when VehicleEnter_Road(Vehicle *v, TileIndex tile, int x, int y) is called by the game, is "v" already on "tile"?
20:33:36 <sulai2> or is it about to get on the given tile?
20:33:42 *** Celestar has joined #openttd
20:35:17 * Celestar wonders whether to say thanks on the topic or privately
20:48:03 *** Jerimiah40 has joined #openttd
20:52:52 *** ChanServ sets mode: +v tokai
20:53:56 *** Slowpoke has joined #openttd
20:59:55 <Brianetta> Celestar: Whose baby is shared infrastructure?
21:01:52 <Ammler> later from Gedemon or somehow
21:02:14 <Celestar> several people are in it, I think planetmaker is doing something on it as well. Why Brianetta ?
21:02:16 <Brianetta> We just had an idea on our server
21:02:21 <Vikthor> I added payment for track usage, and upgraded to then current trunk, but then planetmaker took on
21:02:44 <Brianetta> Road elements could benefit from SI themes
21:02:46 <Ammler> also a little bit from TrueBrain is in :-)
21:02:53 <Brianetta> so you could have a toll bridge
21:03:07 <Brianetta> or a toll gate on the tile at the end of the bridge
21:03:24 <Ammler> TrueBrain: sharing patch
21:03:28 <Celestar> Brianetta: Idea (dream) is to integrate it into cargodest (=
21:04:06 <Brianetta> Celestar: Why? Isn't the timetabling patch being broken up into bite-sized chunks to increase chances of trunk integration?
21:05:03 <Celestar> what does timetabling have to do with it?
21:05:12 <Celestar> sorry I lost you somewhere in between :P
21:06:00 <Brianetta> Timetabling is an example
21:06:18 <Brianetta> of a patch, which is being broken down, not integrated up
21:07:52 <Celestar> Brianetta: ah. well, 1) I thought of cargodest->trunk before is->trunk. 2) As this is an own hg repo, the chunks are not needed, because the commits themselves are imported, not the whole diff. (if I understood that right). Kinda like a branch merge
21:25:41 *** lobster_MB is now known as COCKBUSTER
21:27:17 *** COCKBUSTER is now known as lobster_MB
21:29:19 *** LilDood has joined #openttd
21:34:00 *** ijustam has joined #openttd
21:34:17 <ijustam> is there a source for archived nightlys?
21:36:19 *** lobster_MB is now known as gks
21:36:52 *** Nite_Owl has joined #openttd
21:37:06 *** gks is now known as lobster_MB
21:40:50 <Rubidium> ijustam: depends on what you're looking for
21:47:27 *** stillunknown has joined #openttd
21:47:51 <Elukka> ugh... is steam the only download service that really works...
21:51:52 * fjb is usually using electricity for downloading.
21:54:06 <nckomodo> Elukka its the only download service that doesnt suck total bollocks
21:54:16 <nckomodo> in that its actually pretty good
21:54:37 <Elukka> i downloaded trainz classics 3 from the developers own download service
21:54:47 <Elukka> and its probably corrupt or something
21:55:09 <nckomodo> oh no, my favorite garrys mod server is down D:
21:55:29 <Elukka> a digital download wants me to "please insert disc #5"
21:56:01 <nckomodo> that sounds really broken
21:56:08 <Sacro> Elukka: i downloaded it from usenet and it crashes on some things :(
21:56:27 <Elukka> i even tried redownloading
21:57:11 <Elukka> but curiously, nobody else seems to have had the problem
21:57:16 <Elukka> meh, have to contact tech support on monday..
22:25:05 <Celestar> glx: did you get the link above?
22:25:36 <glx> Celestar: yes, it's easier to understand this version :)
22:25:53 <Celestar> I'm still unhappy with LoadUnloadVehicle
22:36:15 *** Jerimiah40 has joined #openttd
22:37:11 <michi_cc> glx: it works when I change the value in his sample savegame. maybe he changed the wrong openttd.cfg or something
22:46:21 <glx> ok I reopened and asked for the ingame value
22:52:29 <glx> should tell us if he correctly fixed the cfg ;)
22:52:39 *** Jerimiah40 has joined #openttd
22:58:30 *** oja was kicked by Rubidium (spam)
22:59:18 *** Rubidium sets mode: +b *!*0blivious@*.dslaccess.aol.com
22:59:18 *** oja was kicked by Rubidium (oja)
23:38:30 *** Jerimiah40 has joined #openttd
23:53:00 *** Dred_furst has joined #openttd
23:53:59 *** Rexxie is now known as Rexxars
continue to next day ⏵