IRC logs for #openttd on OFTC at 2007-06-09
⏴ go to previous day
00:02:45 *** ThePizzaKing has joined #openttd
00:16:35 *** KritiK_ has joined #openttd
00:22:30 *** KritiK_ is now known as KritiK
01:31:05 *** Eddi|zuHause2 has joined #openttd
02:06:26 <CIA-1> OpenTTD: belugas * r10074 /trunk/ (8 files in 3 dirs): -Add: Addition of IndustryOverrideManager as well as the basic (and unfinished) support for callbacks for industries
02:22:51 *** Digitalfox has joined #openttd
04:02:06 <CIA-1> OpenTTD: rubidium * r10075 /trunk/src/network/network_server.cpp: -Fix [FS#844]: small memory leak on some early returns.
04:03:24 *** ChanServ sets mode: +v tokai
04:20:17 *** strstrep has joined #openttd
04:20:44 <strstrep> Hey, I have a question. How do I replace a bunch of trams that I have gathered in a depot?
04:20:51 <strstrep> Is there an automatic way to do that?
04:24:38 <strstrep> I can't seem to figure out how it works.
04:26:51 <strstrep> I can't believe I didn't see that. I must be blind.
04:34:13 <Digitalfox> TrueBrain: I tested the savegame from FS#838 and it crashes with me also just by zooming out, using last nightly... :\
04:37:10 <Digitalfox> TrueBrain: When using max zoom out
05:51:28 <Phazorx> hmm... why would MU game with 24 wehicles lag?
06:05:25 *** ChanServ sets mode: +o Bjarni
06:07:57 *** Frostregen has joined #openttd
06:24:39 *** ThePizzaKing has joined #openttd
06:30:40 *** wolfy is now known as Wolfensteijn
07:11:59 *** TinoM|Mobil has joined #openttd
07:46:15 *** |Jeroen| has joined #openttd
07:57:42 *** Osai^zZz has joined #openttd
08:32:08 <CIA-1> OpenTTD: miham * r10076 /trunk/src/lang/ (7 files): (log message trimmed)
08:32:08 <CIA-1> OpenTTD: -Update: WebTranslator2 update to 2007-06-09 10:29:27
08:32:08 <CIA-1> OpenTTD: danish - 1 fixed by ThomasA (1)
08:32:08 <CIA-1> OpenTTD: estonian - 1 fixed, 96 changed by kristjans (97)
08:32:08 <CIA-1> OpenTTD: german - 29 fixed by Neonox (29)
08:32:09 <CIA-1> OpenTTD: hungarian - 1 fixed by miham (1)
08:32:09 <CIA-1> OpenTTD: italian - 1 fixed by lorenzodv (1)
08:44:15 *** Osai^zZz is now known as Osai
09:03:37 *** Nickman has joined #openttd
09:23:38 *** Eddi|zuHause has joined #openttd
09:48:12 *** XeryusTC has joined #openttd
09:52:24 *** Vikthor has joined #openttd
10:08:32 *** skidd13 has joined #openttd
10:18:57 *** Progman has joined #openttd
10:28:11 *** Eddi|zuHause2 has joined #openttd
10:41:53 *** setrodox has joined #openttd
10:49:04 <stillunknown> Anyone know were the size of a tile is defined?
10:51:44 <Noldo> size as in the amount of memory it takes to store one?
10:53:09 <stillunknown> Noldo: actually im looking for the relation between dpi and tiles
10:53:23 <Eddi|zuHause2> map.h:143: TILE_SIZE = 16, ///< Tiles are 16x16 "units" in size
10:53:32 <Eddi|zuHause2> if that is what you search for
10:54:13 <stillunknown> Actually, i think TILE_PIXELS is what i search
11:02:35 *** Eddi|zuHause has joined #openttd
11:45:20 <stillunknown> Can i assume that the compiler will optimize (x/32) << 8 to x << 3?
11:45:32 <stillunknown> assuming that 32 and 8 are not variables
11:46:12 <Eddi|zuHause> i would expect that, yes
11:47:18 <Eddi|zuHause> use / for any arithmetic calculations, and << only if you do bitshifting
11:49:49 <stillunknown> My problem is this: i was looking at that hash_map patch, some parts made no sense.
11:50:25 <stillunknown> Until i found out that some of the bitshifting included values related to TILE_SIZE and TILE_PIXELS
11:50:31 <skidd13> Is there a function to get the next tile by a DiagDirection param?
11:51:56 <stillunknown> so (y/TILE_SIZE) << HASH_BITS is a lot more clear to me, then y << (HASH_BITS - 4)
11:52:08 <stillunknown> As far as i know it should optimize this.
11:52:20 <stillunknown> Since 16 and 32 are magnitudes of 2.
11:52:57 <Eddi|zuHause> yes, prefer the version that is clear to the reader
11:54:00 <Eddi|zuHause> especially if someone gets the weird idea of changing TILE_SIZE :)
11:54:32 <stillunknown> I just want to get this patch into trunk, because i feel a language barrier is keeping the author from doing it.
11:54:44 <stillunknown> But i do have to understand the patch ;-)
11:55:14 <Eddi|zuHause> replace one language barrier by another :p
11:55:38 <stillunknown> I can see by the code that the guy knows what he is doing, but his english seems poor.
11:55:57 <stillunknown> Like filling interests: yes in his profile.
11:56:15 <stillunknown> "interests: yes"
11:56:47 <Eddi|zuHause> it might be like in austin powers: "sex: yes, please" :p
11:58:35 <stillunknown> You know what i mean.
11:58:46 <stillunknown> It's not just that.
12:03:02 *** Frostregen has joined #openttd
12:04:07 *** Frostregen__ has joined #openttd
12:05:17 *** Frostregen72 has joined #openttd
12:05:37 *** Frostregen72 is now known as Frostregen_
12:11:27 *** Frostregen_ is now known as Frostregen
12:18:41 *** boekabart has joined #openttd
12:44:38 <Dego> can some1 explain how to do that tihng with truck that they drive only 1 block and u get money?
12:58:07 <geoffk> is there a way to set autoclean_companies so it only deletes unprotected (without passord set) companies?
12:59:17 <glx> autoclean_companies only delete unprotected ones
12:59:29 <geoffk> seems not to be the case for me
13:00:09 <glx> there's another setting that unprotect protected companies after a certain time
13:00:56 <geoffk> yeah i set in months how long before either get deleted, and then i can either turn on autoclean or turn it off
13:02:15 <geoffk> i have always had a default setting syaing to delete protected i think after 36 months, but unless autoclean_companies is on the they dont get deleted so im confused
13:02:35 <geoffk> yeah i dont like it but
13:03:04 <geoffk> people leave the game loads of casdh builds up then always get soem idito come on the company and mess up the map
13:04:30 <geoffk> its happenign every day im finding, i check my servers and someone has tried to flatten all the land, so im planning to enforce a rule of setting passwords of expect to be deleted
13:06:53 <geoffk> i dont see anyother option than to have these companies removed if players dont keep a pass if i can make that happen without loosing protected companies
13:08:15 *** Prof_Frink has joined #openttd
13:08:33 <geoffk> if someone is going to destroy companies beyond point of repair and mess up the map they may as well be removed
13:26:50 *** Gekkko[PDA] has joined #openttd
13:29:36 <kaan> dont mind me, im just not good friends with my keyboard today
13:33:30 <Gekkko[PDA]> kaan: im on a pda
13:36:14 <stillunknown> Then find yourself a keyboard, preferably one attached to a computer ;-)
13:37:35 <Gekkko[PDA]> i play openttd on here too
13:37:44 <Gekkko[PDA]> palmttd its called.
13:38:59 <Gekkko[PDA]> i dont need support.
13:39:24 <Gekkko[PDA]> i use it on the pc to a lesser extent
13:39:32 <glx> it's just don't ask us if you find a bug :)
13:40:10 <Gekkko[PDA]> i found a bug, my pda crashes when vi try tyo insdtall the windows exe on my pda >.>
13:41:05 <Gekkko[PDA]> make openttd into an OS haha
13:44:05 *** Wolf01 is now known as Wolf01|AWAY
14:07:54 *** Eddi|zuHause2 has joined #openttd
14:31:53 *** boekabar1 has joined #openttd
14:32:45 *** Frostregen_ has joined #openttd
14:34:34 *** BobingAbout has joined #openttd
14:35:24 *** Frostregen_ is now known as Frostregen
14:37:38 *** boekabart is now known as Guest1432
14:37:39 *** boekabar1 is now known as boekabart
14:38:00 <stillunknown> kaan: As my biggest supporter i'd like to focus your attention on the OTTD optimisation thread.
14:38:42 <kaan> I saw it, i just didn't take the time to read the code :)
14:39:06 <stillunknown> I've rewritten a small part of it, so i can understand what it does ;-)
14:39:21 <boekabart> stillunknown: rewritten a small part of which one?
14:39:23 <kaan> ill take another look then :P
14:40:14 <stillunknown> To remove some of the seemingly magic.
14:42:22 <stillunknown> Mostly confined to the hash generation macros, the ViewportAddVehicles function and some small things in other places
14:45:58 <boekabart> a lot of people are looking at that patch ;)
14:46:48 <stillunknown> boekabart: what makes you think that?
14:47:15 <boekabart> i've heard a lot of people talking about it now and then
14:47:50 <stillunknown> The point is, that they don't actually fix or accept it ;-)
14:48:41 <stillunknown> And i was a bit confused about some of the things it did, so i "reverse engineered" it.
14:48:42 <boekabart> well there always is the other way to do it, the map bits version
14:49:16 <boekabart> stillunknown: it's pretty clear but the hash table/linkedlist management should be 'taken outside' imho
14:50:06 <stillunknown> Be a little clearer than that, i'm not actually that familiar with hashmaps.
14:50:48 <stillunknown> I just fixed what i couldn't understand.
14:51:02 <Bjarni> boekabart: how did you manage to print the screenshot on the cake?
14:51:25 <boekabart> pixelling with candy pieces
14:51:35 <boekabart> or, order it at www.hema.nl
14:51:58 <boekabart> they just offer picture-on-cake... takes 2 days
14:52:22 <boekabart> they were looking at me in a very weird way when I picked it up from the store
14:52:40 <boekabart> 'have fun at whatever party YOU'RE going to'
14:53:18 <boekabart> stillunknown: vehicle position (either in screen coords or game coords) is converted to a hash number (magic), then on that location in a table (much smaller than map of course), it puts a pointer to this vehicle. If there already is one there (possible collision partner), it becomes a linked list
14:53:43 <stillunknown> Basicly only taking the first X bits of the location.
14:54:07 <boekabart> the least significant ones, in his implementaion, yes
14:54:29 <boekabart> but that can be any calculation, doesn't matter very much
14:55:07 <stillunknown> So far i haven't heard a problem.
14:55:28 <boekabart> you're waiting for one?
14:55:37 <stillunknown> stillunknown: it's pretty clear but the hash table/linkedlist management should be 'taken outside' imho
14:55:43 <stillunknown> That implied a problem.
14:55:49 <stillunknown> Or a suggestion.
14:55:50 <boekabart> well, code readability
14:55:59 <boekabart> and less duplication
14:56:03 <stillunknown> I have no idea what you're referring to.
14:56:15 <boekabart> now the same thing is done for 2 hash tables. waste of code
14:56:39 <stillunknown> Maybe a template would be suitable.
14:58:03 <boekabart> plus i'd use an other hash function, but that's just my gut feeling that it could be faster that way
14:58:57 <boekabart> neh, anyway, i don't currently have time to work on it yet, plus i'm not a dev so it might be a waste of time if other people are still working on it too.
14:59:32 <stillunknown> Is it conceptually different or just different in terms of code?
15:00:07 <boekabart> no, just the hash function
15:00:17 <boekabart> the fn that converts x, y into a position in the table
15:00:57 <stillunknown> But you would discard different information?
15:01:33 <boekabart> a hash is never about information or discarding it. it's just a matter of a different distribution of items over an array
15:01:54 <boekabart> usually, you want as little collisions as possible. but in this case maybe it's different
15:02:07 <stillunknown> Essentially you're making a linear combination of several smaller maps.
15:02:31 <boekabart> stillunknown: doesn't need to be linear, that's actually what i wouldn't want it to be
15:03:44 <stillunknown> Another solution is to simply take, supertiles and store them, so you always get nearby stuff.
15:04:15 <boekabart> that's also just another hash, using the most significant bits
15:04:47 <boekabart> but that will result in lots of 'collisions' in the table, not something you usually want but in this case it might actually be good
15:05:16 <boekabart> since in 95% of cases, you won't have to scan 2 or 4 hash values but just 1
15:05:44 <boekabart> then again, scanning hash values is not more expensive that going through a longer linked list.
15:06:00 <stillunknown> If you ever think you can explain what you mind, in not so many words, then be my guest.
15:06:11 <boekabart> and your suggestion would make all nearby trains candidates, more to check. bad thing..
15:06:34 <stillunknown> Keeping in mind that i just do programming as a hobby and have no serious background for these kind of things.
15:10:00 <boekabart> i also do it just as a hobby... but also for work :)
15:11:42 *** Osai^2 is now known as Osai
15:12:40 <stillunknown> boekabart: two years ago even a printf confused me, these days i'm a little better, but lacking the theoretical background
15:12:59 <boekabart> printf still confuses me. forever will.
15:13:13 <stillunknown> I meant, C confused me completely.
15:13:13 <kaan> stillunknown: id say that this is the understatement of the year ;)
15:13:14 <boekabart> who in the right state of mind....
15:14:04 <kaan> a little better .... hmmm, id like to get a little better at programming too ;)
15:14:57 <kaan> right, good idea, ill go make me some dinner as well
15:15:33 <boekabart> kaan: make me some too! ;0
15:15:59 <kaan> if you can be here in 40 minutes when im done then please do join me :)
15:16:55 <boekabart> sorry, my teleporter is out of order
15:20:55 <Bjarni> Nørup... that's a far away place :p
15:21:15 <boekabart> how big can denmark be
15:21:30 <boekabart> (pretty big on a 2048x2048 map, in fact)
15:21:37 <Bjarni> how big is relative... it's too far to walk
15:21:59 <boekabart> which is relative again
15:22:24 <Bjarni> it's too far on bike as well
15:22:54 <Bjarni> the town even lacks rail connection, so it's tricky to get there
15:23:06 <boekabart> wouldn't be your kind of town then, would it?
15:23:32 <Bjarni> it has been a while since I was in a town without rail connection
15:23:44 <boekabart> does it itch when you are?
15:24:27 <Bjarni> I see it as opportunity... an unopened market for the taking
15:26:09 *** thgergo has joined #openttd
15:26:45 <Sacro> Bjarni: you should take out £100,000 loan and set to work
15:28:48 <Bjarni> " 55°43'14.47"N, 9°18'12.21"E" <-- copy paste this into google earth and you can see the location in question
15:29:28 <Bjarni> hey I might even have been in this town
15:29:39 <Bjarni> passing though towards another town
15:32:32 <Bjarni> now see what you have done.... you made the channel go off topic >_<
15:32:57 <Bjarni> so instead of speaking or a village, it's confused
15:32:59 <boekabart> Bjarni: there is an airfield nearby (little to the west) maybe a railservice to there?
15:33:26 <boekabart> billund... isn't legoland there?
15:33:54 <boekabart> which one, there are 2 airpts
15:35:18 <Bjarni> 55°44'7.08"N, 9° 7'41.20"E
15:35:50 <boekabart> the factory to the left of it, is that Lego?
15:36:09 * boekabart doesn't remember much, it's been 23 years since he's been there
15:45:13 <Bjarni> it has changed a lot in the last few years
15:56:44 * Sacro wonders if the Lego factory is made out of Lego
15:58:11 <Bjarni> but they do have a whole lot of lego in there
15:59:06 <kaan> hmmm, i really should go to legoland and ride the lego train soon
15:59:20 <kaan> also id like to see the new shark aquarium
15:59:46 <kaan> legotrain <---- seee, there is rail nearby!
16:00:03 <Sacro> how fast does gravity travel...
16:02:42 <kaan> gravity doesnt travel, it pulls stuff
16:02:56 <strstrep> Gravity travels at the speed of light.
16:03:44 <strstrep> Either that or it travels instantaneously.
16:03:57 <Sacro> yes, i am stuck as to which
16:04:46 <strstrep> They think it travels at the speed of light because otherwise information could be conveyed faster than light, and that is theoretically impossible.
16:08:06 <kaan> boekabart: dinner is served! did you fix that teleporter?
16:12:27 <Bjarni> well, it will be either cold or eaten before I can arrive
16:16:09 <kaan> eaten most likely at this rate :)
17:00:02 *** Wolf01|AWAY is now known as Wolf01
17:04:08 *** iPandaMojo has joined #openttd
17:10:25 <Wolf01> a friend of mine is trying to compile ottd (trunk) with ubuntu 7.04, but the binary don't work, when he click on the binary don't happen anything
17:11:50 <Sacro> Wolf01: run it from a console
17:11:57 <Wolf01> seem that also when he overwrite the binary with the nightly one it doesn't work too
17:12:08 <Wolf01> but if he use only the nightly it works
17:12:35 *** iPandaMojo has joined #openttd
17:14:00 <Wolf01> Sacro, he say that it doesn't work from the console too
17:14:13 <Sacro> Wolf01: it should at least give an error
17:14:48 <Wolf01> i'm asking for the crash.log
17:16:14 <Wolf01> he just deleted the ottd folder to retry
17:17:09 <Wolf01> but he is sure that the crash.log never existed
17:30:21 <Wolf01> in fact it doesn't start
17:31:12 <glx> Wolf01: crash.log is only for win32 releases
17:31:17 <Sacro> what? nothing printed to stderr?
17:31:29 <kaan> maybe it needs chmod to executeable
17:31:42 <Sacro> kaan: it would say something surely?
17:35:03 *** ChanServ sets mode: +o orudge
17:38:07 *** ChanServ sets mode: +o orudge
17:52:41 <Bjarni> <kaan> Sacro: yuo are right <-- don't spread such rumours.... we know it's impossible :P
17:53:13 * hylje redirects the slap to Bjarni
17:53:34 <Bjarni> he can't argue verbally, so he has to resort to physical violence
18:04:44 <kaan> i had a wife like that :P
18:05:48 <Touqen> my windows install died :/
18:06:07 <Touqen> Repair installs won't even finish
18:06:08 *** Wolf01 is now known as Wolf01|AWAY
18:08:48 *** ChanServ sets mode: +v tokai
18:28:36 <Touqen> APPLY DIRECTLY TO THE FOREHEAD~!
18:31:27 <CIA-1> OpenTTD: bjarni * r10077 /trunk/src/vehicle.cpp:
18:31:27 <CIA-1> OpenTTD: -Fix: FS#845 Cloning Trains Longer Than 8 Units Causes Crash
18:31:27 <CIA-1> OpenTTD: The problem was that if adding units to the clone (wagon by wagon) failed, then cloning wouldn't notice it and it made two half trains
18:31:27 <CIA-1> OpenTTD: Now it detects this case and it will make cloning fail. The string with the explanation for the failed move will be used in the error message so the user will know why it failed.
19:11:34 *** orudge` has joined #openttd
19:25:17 *** DJ_Mirage has joined #openttd
19:34:13 *** ChanServ sets mode: +o orudge
19:41:09 <Kejhic> hmm, sorry, bad channel...
19:43:15 *** skidd13 has joined #openttd
19:45:14 *** skidd13 has joined #openttd
19:57:33 *** Wolf01|AWAY is now known as Wolf01
20:02:27 *** Frostregen_ has joined #openttd
20:03:07 *** Frostregen_ is now known as Frostregen
20:09:54 *** skidd13 has joined #openttd
20:30:29 *** ChanServ sets mode: +v tokai
20:39:24 *** skidd13 has joined #openttd
21:15:28 *** skidd13 has joined #openttd
21:30:24 <kaan> weee, i just won 2$ in poker
21:30:33 <kaan> i better spend them fast :P
21:30:48 <kaan> i know, ill spend them on poker!
21:53:12 <kaan> Its done, i have spend the 2 $ :D
21:55:35 <boekabart> there's BENZIN in it
21:56:00 <boekabart> it's definately a russion wagon
21:56:47 <stillunknown> Am i the only one who thinks those cars have seen better days?
21:57:07 <boekabart> the one to the left has NEFT' , nafta?
21:57:33 <boekabart> ln-: the url gave it away
22:01:27 <Phazorx> quiz wagons are russian
22:01:30 <Phazorx> but country is harder
22:01:45 <Phazorx> overhanging caternary is not standard russian
22:02:01 <Phazorx> and gazprom feeds with oil/gaz mosty of europe
22:02:11 <Phazorx> however over pipes, not trains
22:03:03 <Phazorx> if resolution would be better - you could tell by rails
22:04:33 <Phazorx> title on of wagons says that it is it to be returned ASAP into middle of siberia, so i say it is russian :)
22:06:08 <Phazorx> lol i can tell what camera were used :)
22:07:41 <Phazorx> still not good enough
22:07:52 <Phazorx> you can see secondary rails between wagons
22:08:17 <Phazorx> russian never put mroe than 3 of nails there out of 4 possible
22:08:48 <Phazorx> alternatively - see ing "ЖД" on rails somewhere would clear it too
22:11:59 <ln-> finland is the correct answer, but interesting detective work.
22:21:30 *** lolman_ has joined #openttd
22:47:47 *** lolman_ has joined #openttd
22:56:08 *** Smoovious has joined #openttd
23:19:57 *** ChanServ sets mode: +o orudge
23:28:29 <Smoovious> hahahaha... :) cool cake. :D
23:48:22 *** Phazorx has joined #openttd
continue to next day ⏵