Back to Home / #openttd / 2007 / 11 / Prev Day | Next Day
#openttd IRC Logs for 2007-11-04

---Logopened Sun Nov 04 00:00:01 2007
00:09|-|glx [] has quit [Quit: bye]
00:39|-|nairan_wokr [] has joined #openttd
00:39|-|mcbane [] has quit [Ping timeout: 480 seconds]
01:12|-|a1270 [] has quit [Quit: The ending changes tone & is actually quite sad - but it involves a scene of necrophilia, so that's just another plus in my book.....]
01:35|-|Jello [] has quit [Ping timeout: 480 seconds]
01:42|-|Nitehawk [] has quit [Ping timeout: 480 seconds]
01:42|-|Nitehawk [] has joined #openttd
01:54|-|Jello [] has joined #openttd
01:03|-|Jello [] has quit [Ping timeout: 480 seconds]
01:20|-|Jello [] has joined #openttd
01:27|-|Osai [] has joined #openttd
01:33|-|Jello [] has quit [Ping timeout: 480 seconds]
01:34|-|Hendikins [] has joined #openttd
01:38|-|a1270 [] has joined #openttd
01:42|-|Jello [] has joined #openttd
01:50|-|Gonozal_VIII [] has joined #openttd
01:55|-|Jello [] has quit [Ping timeout: 480 seconds]
01:57|-|Alltaken [] has joined #openttd
01:58|-|Frostregen [] has joined #openttd
01:59|-|yorick [] has joined #openttd
02:02|-|yorick [] has left #openttd []
02:05|-|gfldex [] has joined #openttd
02:11|-|Maarten [] has quit [Ping timeout: 480 seconds]
02:11|-|Maarten [] has joined #openttd
02:12|-|gfldex_ [] has quit [Ping timeout: 480 seconds]
02:15|-|Osai [] has quit [Quit: Osai]
02:31|-|Maarten [] has quit [Ping timeout: 480 seconds]
02:33|-|Maarten [] has joined #openttd
02:49|-|Maarten [] has quit [Ping timeout: 480 seconds]
02:49|-|Maarten [] has joined #openttd
02:51|-|Wolf01 [] has joined #openttd
02:51|-|Jello [] has joined #openttd
02:51|-|LordAzamath [] has joined #openttd
02:57|-|Maarten [] has quit [Ping timeout: 480 seconds]
02:59|-|Jello [] has quit [Ping timeout: 480 seconds]
03:00|-|Maarten [] has joined #openttd
03:00<Wolf01>[08:59:48] <Llama01> Wolf01: I like to think that i haven't had the misfortune to meet you.
03:00<Wolf01>my bot don't like me :''''(
03:05|-|LordAzamath [] has quit [Ping timeout: 480 seconds]
03:10|-|Jello [] has joined #openttd
03:18|-|Jello [] has quit [Ping timeout: 480 seconds]
03:27|-|Purno [] has joined #openttd
03:31|-|Jello [] has joined #openttd
03:43|-|Jello [] has quit [Ping timeout: 480 seconds]
03:47|-|Jello [] has joined #openttd
04:04|-|Jello [] has quit [Ping timeout: 480 seconds]
04:08|-|a1270 [] has quit [Quit: The ending changes tone & is actually quite sad - but it involves a scene of necrophilia, so that's just another plus in my book.....]
04:08|-|Brianetta [] has joined #openttd
04:21|-|Jello [] has joined #openttd
04:31|-|Gekz [] has quit [Quit: KVIrc 3.2.6 Anomalies]
04:38|-|Farden [] has joined #openttd
04:39|-|Alltaken [] has quit [Quit: ChatZilla [Firefox]]
04:45|-|Alberth [] has joined #openttd
04:52|-|a1270 [] has joined #openttd
05:04|-|Gonozal_VIII [] has quit [Remote host closed the connection]
05:24|-|Brianetta [] has quit [Quit: Tschüß]
05:40|-|Vikthor [~Vikthor@] has joined #openttd
05:44|-|Alberth [] has left #openttd []
05:51|-|stillunknown [] has joined #openttd
05:59|-|michi_cc [] has left #openttd [Und weg...]
05:59|-|michi_cc [] has joined #openttd
05:59|-|mode/#openttd [+v michi_cc] by ChanServ
06:02|-|michi_cc [] has quit [Quit: michi_cc]
06:02|-|michi_cc [] has joined #openttd
06:02|-|mode/#openttd [+v michi_cc] by ChanServ
06:05<TrueBrain>morning guys
06:05|-|gfldex [] has quit [Quit: Lost terminal]
06:15<Wolf01>morning TrueBrain
06:18|-|DJ_Mirage [] has quit [Ping timeout: 480 seconds]
06:19|-|DJ_Mirage [] has joined #openttd
06:26|-|Farden123 [] has joined #openttd
06:28<CIA-1>OpenTTD: rubidium * r11375 /trunk/src/newgrf_industrytiles.cpp: -Fix [FS#1397]: the industry recolour map was always applied when recolouring was turned on, instead of only applying it when the colour translation is '0'.
06:29|-|LordAzamath [] has joined #openttd
06:30|-|huma [~huma@] has joined #openttd
06:32|-|ThePizzaKing [] has quit [Quit: ThePizzaKing]
06:33|-|LordAzamath [] has quit []
06:33<huma>i'm setting up visual studio to compile openttd on windows
06:33<Rubidium>good luck ;)
06:33|-|Farden [] has quit [Ping timeout: 480 seconds]
06:33|-|Farden123 changed nick to Farden
06:34<huma>yea, i looked at the wiki article, it's much easier on linux :)
06:34<Eddi|zuHause2>i would never use visual studio to compile anything on linux :p
06:35<huma>anyway, i need photoshop, so i'm on windows box now
06:35<huma>yea, yea.. go away :)
06:36<Eddi|zuHause2>anyway, it is probably easier to use mingw
06:36<huma>i had it once installed
06:37<huma>i'll just use the wiki article
06:40<huma>TrueBrain, how's your webtt doing? :)
06:42|-|HerzogDeXtE1 [] has joined #openttd
06:44<huma>must be busy implementing arctic tiles :)
06:44<TrueBrain>huma: silent ;)
06:49<huma>"silence! i kill you!" :)
06:49<huma>have you seen achmed the dead terrorist? :)
06:49|-|lolman changed nick to John
06:49|-|HerzogDeXtEr [] has quit [Ping timeout: 480 seconds]
06:49|-|John changed nick to lolman
06:50<huma>no youtube links allowed, so.. you'll have to find on your own :)
07:02|-|SmatZ [] has joined #openttd
07:03<TrueBrain>hi SmatZ
07:03<SmatZ>has been long time...
07:03<SmatZ>hello TrueBrain
07:03<TrueBrain>someone was looking for you yesterday :)
07:03<TrueBrain>how have you been?
07:04<SmatZ>too much work, I got a job... so I do school or job, or I am with my girlfried
07:04<SmatZ>all free time is spent on work...
07:04<SmatZ>I noticed there is a comment at one bugreport :)
07:04<SmatZ>by you
07:05<huma>SmatZ, someone was looking for you yesterday
07:05<SmatZ>TrueBrain: huma who was lloking for me yesterday?
07:05<SpComb>Logs: (old: )
07:05|-|thgergo [] has joined #openttd
07:06<TrueBrain>SmatZ: no, skidd13 :)
07:06<huma>right, him
07:06<SmatZ>ah, why?
07:09<SmatZ>I see, he is doing some nice optimizations
07:09<SmatZ>useful work
07:09<SmatZ>TrueBrain: nice, you summoned me... with a little delay
07:09|-|Dephenom [~paul@] has quit [Ping timeout: 480 seconds]
07:10<SmatZ>TrueBrain: about - the name of the function is a bit problematic
07:10<SmatZ>I think "IsTransparentByOption()" would be the best, but it is too long
07:11<TrueBrain>SmatZ: the current name for sure is wrong :)
07:11|-|Dephenom [~paul@] has joined #openttd
07:11<TrueBrain>but Belugas told me he is working on it, so check back with him :)
07:11<SmatZ>you are the one who speaks English :)
07:11<SmatZ>I dropped a PM for him
07:14<TrueBrain>you speak english too :p
07:14<TrueBrain>IsTransparentOptionSet is btw in my opinion btw
07:14|-|Greyscale [] has joined #openttd
07:17<SmatZ>yes, I had IsTransparentOptionSet() in mind, too
07:17<SmatZ>but it is even longer than IsTransparentByOption()
07:17<SmatZ>(by one letter)
07:23<Rubidium>what about "just" IsTransparent?
07:23<Wolf01>that is for bool imho
07:24<Rubidium>it returns a bool doesn't it?
07:24|-|Greyscale [] has quit [Read error: Connection reset by peer]
07:25<Rubidium>and do you really care whether the function uses an array of booleans or a bitset internally?
07:26|-|Greyscale [] has joined #openttd
07:26<Wolf01>ok, IsTransparent seem to be the best suggestion
07:26|-|Greyscale [] has quit [Read error: Connection reset by peer]
07:26<TrueBrain>Rubidium: IsTransparent suggest that you test if that object is transparent... you want to know if the option to make the thing transparent is set
07:27<Rubidium>ShouldBeTransparent then?
07:29|-|Greyscale [] has joined #openttd
07:39<huma>i vote for IsTransparentOptionSet
07:39<Wolf01>i vote for mine :P
07:40<SmatZ>what about IsSetTransparent / IsSetInvisible?
07:41<SmatZ>IsSetTransparent = 1, if given bit is set, IsSetInvisible = 1 if IsSetTransparent = 1 and given bit in _invisible_opt is set...
07:43<Wolf01>currently there is only the invisibility option for trees
07:43<SmatZ> this is what it does
07:44<Wolf01>i tried to add it for houses, but there are some problems with newhouses, seem that when the houses are invisible the game can't cache them
07:46<huma>it's based on what i heard, not seen, so there's probably a better solution
07:46<Wolf01>do you think that ctrl-clicking on the transparent widget to make it transparent is a good solution?
07:47<SmatZ>Wolf01: you may try for 11051 to see how I did that
07:48<SmatZ>and if there is any design problem, let me please know
07:49<huma>IsInvisible is the best choice here, but i need to see the logic
07:50<SmatZ>IsInvisible doesn't say (by its name) that it is invisible because of option, it could be understood that it is invisible because, say, of some bit in the newgrf etc.
07:51|-|Greyscale [] has quit [Quit: Leaving]
07:52<Wolf01>SmatZ, could you fix the ToggleTransparency function in main_gui.cpp by adding the enums instead of use those magic numbers?
07:53<Wolf01>if you want i already have the patch
07:55<Wolf01>should be this, there is also the code to save the enabled transparencies to the cfg
07:55<Wolf01>if you want to give a look at it, maybe you can find a better way
08:06<@Belugas>SmatZ, i choose IsTransparentOptionSet
08:06<@Belugas>seems to be the vest option for me
08:06|-|thgerg1 [] has joined #openttd
08:08<@Belugas>SmatZ, look at the patch i supplied in
08:09<@Belugas>saee you
08:10<TrueBrain>hi and bye Belugas :)
08:11<SmatZ>Belugas: ok, I will do it that way
08:12|-|thgergo [] has quit [Ping timeout: 480 seconds]
08:13|-|yorick [] has joined #openttd
08:14|-|DaleStan [] has quit [Ping timeout: 480 seconds]
08:16|-|Mucht_ [] has quit [Quit: Konversation terminated!]
08:17|-|yorick [] has left #openttd []
08:17|-|XeryusTC [] has joined #openttd
08:19|-|Mucht [] has joined #openttd
08:25<@Belugas>hello -- SmatZ, don't bother for the transparnecy, it is almost done and about to be commited --and bye TrueBrain/Smatz :D
08:26|-|Hendikins [] has quit [Quit: Any technology, no matter how primitive, is magic to those who don't understand it]
08:28|-|Nite_Owl [] has joined #openttd
08:29|-|Hendikins [] has joined #openttd
08:36|-|Nite_Owl [] has quit [Quit: ChatZilla [Firefox]]
08:43|-|LeviathNL [] has joined #openttd
08:44|-|bubersson [] has joined #openttd
08:54|-|skidd13 [] has joined #openttd
08:54<skidd13>Hi folks
08:55<Wolf01>hello skidd13
08:55<TrueBrain>hi skidd13
08:56<SmatZ>hi skidd13
08:56<skidd13>Ahh the profiler is online :D
08:57<skidd13>SmatZ: you did some profiling runs with OpenTTD, did you?
08:57<SmatZ>skidd13: yes, I did a lot :)
08:58<SmatZ>but I do not archive them
08:59<skidd13>SmatZ: No problem. I'd be pleased if you can do another run with against clean trunk :)
09:00<SmatZ>skidd13: actually, I do profiling only on amd64 platform
09:00<SmatZ>hope it won't be a problem
09:01<huma>SmatZ, you need to do some profiling on webtt
09:02<SmatZ>huma: what is webtt?
09:02<huma>omg, you don't know?
09:02<skidd13>SmatZ: no problem... It would be nice to get a little documentation how and what do you profiled, so it can be reproduced on other systems ;)
09:02<huma>oh yes, you've been away
09:03<huma>it's a web based openttd
09:03<SmatZ>skidd13: I will try
09:03<SmatZ>huma: nice, where can I play it?
09:03<skidd13>SmatZ: thanks
09:03<huma>closed source though
09:03<huma>ask TrueBrain
09:03<huma>he's the man
09:05<TrueBrain>that is what he means
09:07<TrueBrain>click the image and scroll for crying out loud
09:07<SmatZ>TrueBrain: nice :) it really works!
09:07[~]SmatZ cries!
09:08<TrueBrain>lol, it crashed again :p
09:08<huma>is it ajax?
09:08<TrueBrain>of course
09:08<TrueBrain>what else
09:08<huma>or some python thing?
09:09<huma>the cause
09:09<TrueBrain>python == server
09:09<TrueBrain>ajax == client
09:09<huma>so have you found what causes the crash?
09:09<TrueBrain>so something deep-core
09:12<SmatZ>TrueBrain: sometimes I get white tiles
09:14<huma>too fast :)
09:17<TrueBrain>SmatZ: sometimes an AJAX times out
09:17|-|HerzogDeXtE1 changed nick to HerzogDeXtEr
09:17<TrueBrain>and an other cras
09:17<TrueBrain>oh well, shutting down
09:20<TrueBrain>annoncement to all: because the current way patches are handled doesn't work, we are introducing a new way. Please read the text at:
09:20<TrueBrain>more things to smoothen the process will be introduced over time
09:24<huma>eh.. Cannot open include file: 'table/strings.h'
09:24<SmatZ>TrueBrain: flyspray won't be used anymore?
09:24<TrueBrain>SmatZ: if the maillist works, it will be removed for patches, yes
09:24<TrueBrain>but, the first question is if the maillist makes it better :)
09:25<huma>TrueBrain, where's table/strings.h from?
09:25<TrueBrain>huma: auto-generated, first compile strgen
09:29<huma>ok, crunching..
09:31<TrueBrain>more info about patches:
09:33<huma>LINK : fatal error LNK1104: cannot open file '..\objs\win32\debug\ottdres.res'
09:33<huma>why this could be?
09:34<SmatZ>TrueBrain: I did subscribe for the maillist, but I didn't receive any confirmation email - is it possible that it was lost somewhere, in some spam filters?
09:35<SmatZ>or it just has some delay
09:35<TrueBrain>SmatZ: good question :) Let me check..
09:36<LeviathNL>I received my confirmation mail.
09:37<SmatZ>LeviathNL: after how long time?
09:37<LeviathNL>10 secs
09:38<TrueBrain>SmatZ: see PM
09:40<huma>project build doesn't make ottdres.res for some reason
09:42<TrueBrain>grey-listing is such a nice thing :)
09:44|-|Diabolic-Angel [] has joined #openttd
09:45|-|Osai [] has joined #openttd
09:46|-|KritiK [] has joined #openttd
09:49<TrueBrain>so then now I wonder who will have the first patch sent in ;) Hehe :)
09:49<TrueBrain>first, shopping time!
09:51<SmatZ>I have to go, bye
09:51|-|SmatZ [] has quit [Remote host closed the connection]
09:55<skidd13>Can any dev comment my proposal on the wiki please ->
09:55<BigBB>TrueBrain, btw. don't work for me
09:56<TrueBrain>BigBB: SVN archive is canceled, yes
09:56<TrueBrain>as we have :)
09:56<BigBB>ah okay, thx
09:58<TrueBrain>skidd13: looks very good
09:58<TrueBrain>I Say, put it in the real article :)
09:59<TrueBrain>"private and protected members are preceded by "m_"" <- that is even new to me ;)
10:00<TrueBrain>the coding style became much bigger since last time I checked it :)
10:00<TrueBrain>anyway, it was time to do some shopping I said :) Bbl :)
10:01<huma>shop for some pizza? :)
10:02<Sacro>OpenTTD own't build
10:03<Sacro>Error 1 error LNK2001: unresolved external symbol "unsigned int _openttd_newgrf_version" (?_openttd_newgrf_version@@3IA) newgrf.obj
10:04<huma>what rev?
10:05<huma>11376 builds just fine
10:08<BigBB>Sacro, do you compile with MSVC ?
10:08<Sacro>BigBB: yeah
10:08<BigBB>yave you add a new .cpp or .h file ?
10:10<BigBB>have your MSVC a new installation (configured right) ?
10:10<Sacro>yeah i think so
10:10<Sacro>it's compiled before
10:11<BigBB>hmm (I don't like MSVC, therefore I use now Linux/make)
10:13<BigBB>mom, I think you must add a #include "abc.h" , but not sure. try or wait till someone else have an idea :)
10:13<Sacro>.vcproj woirks
10:13<Sacro>.sln doesnt
10:16|-|glx [] has joined #openttd
10:16|-|mode/#openttd [+v glx] by ChanServ
10:17<huma>openglx :)
10:17<BigBB>Sacro, I think you haven't edit corewin_express.vsprops have a look in it
10:17<Sacro>should i have to?
10:18<Sacro>not running express
10:19<Sacro>the sln fails
10:19<Sacro>however the vcproj doesn't
10:19<huma>it's for pro as well, as it turns out
10:23<BigBB>"unresolved external symbol" is ever a missing lib IIRC
10:26<Eddi|zuHause2>but if it is clearly an openttd symbol, it is rather a missing file in the to-be-linked list
10:28<huma>hmm, my build didn't set the rev number. it says: norev0000
10:29<skidd13>Any GFX expert in here. I'm unsure if that is a render or a photo
10:30<huma>nah, render
10:30<huma>or really tweaked hdr
10:30<+glx>huma: do you have svn?
10:31<huma>many hdr's look artificial
10:31<huma>yes, 11376, just checked out
10:33<Sacro>skidd13: render
10:33<skidd13>huma: That's why I asked. I was unsure. The plants in the front look real, but I'm usure about the mounbians
10:33<skidd13>:%s /mounbians/mountains/
10:35|-|bubersson [] has quit [Remote host closed the connection]
10:40<huma>on windows, ~/.openttd corresponds to %userprofile%/application data/openttd, but it writes to my documents
10:42<Sacro>now that is sexy
10:49|-|Wezz6400 [] has joined #openttd
10:52<TrueBrain>huma: the more logical place for Windows users
10:55<skidd13>Sacro: Mix of modified photo and render
10:55<huma>it's the official guideline for application data
10:56<huma>it should be there
10:56<TrueBrain>huma: what? Are there guidelines for Windows?
10:56<+glx>but nobody put it there
10:56<huma>better tell me, where the rev number is generated which appeares in the window title?
10:56<+glx>even MS don't do that for its games
10:57<+glx>VC or mingw?
10:57<+glx>it's done in a vbs
10:58<huma>i don't have it
10:59<huma>quite elaborate script
11:00<huma>ah, got it
11:00<huma>yes, looking at it
11:00<huma>svn wasn't in path
11:00<+glx>how can you use it then?
11:01<huma>it's a new system, i just instaleld vs and svn today :)
11:01<huma>i just set path quickly in console
11:01<+glx>you can use TSVN too
11:02<huma>nah, i prefer console
11:02<TrueBrain>then why use MSVC?
11:02<+glx>easier to install than mingw/msys
11:03<TrueBrain>console... easy..? :)
11:03<huma>cause that's what i read on :)
11:04<huma>well, it works anyway
11:04<TrueBrain>don't believe everything you read ;)
11:04<TrueBrain>once again, I am in a phase of being bored
11:05<huma>i generally believe that people have good intentions. openttd folks have a higher probability :)
11:08<Noldo_>TrueBrain: has the patch mailing list been active?
11:08<TrueBrain>Noldo_: active as in: it works, yes
11:08<TrueBrain>active as in: someone posted already: no
11:08|-|Noldo_ changed nick to Noldo
11:09<huma>TrueBrain, hey, bored? didn't you buy pizza? :)
11:09<TrueBrain>huma: nope
11:09|-|elmex_ [] has quit [Remote host closed the connection]
11:09|-|elmex [] has joined #openttd
11:09<huma>that reminds me, i have it in the fridge! :)
11:10[~]huma goes to make one
11:10<TrueBrain>lucky for me, I have better food than that
11:12|-|TinoM [] has joined #openttd
11:12|-|yorick [] has joined #openttd
11:13<Sacro>alas poor yorick!
11:13<Sacro>yorick: shakespear!
11:14<Noldo>I wonder if I can do the replace thing in commandcost patch with a regexp
11:14<Sacro>I knew him, Horatio: a fellow of infinate jest, of most excellent fancy...
11:15<huma>99 bottles?
11:16<TrueBrain>Noldo: dunno, would be nice ;)
11:18|-|lolman changed nick to John
11:18|-|John changed nick to lolman
11:21|-|yorick [] has quit [Quit: HydraIRC -> <- \o/]
11:26|-|BigBB_ [] has joined #openttd
11:31|-|BigBB [] has quit [Ping timeout: 480 seconds]
11:43|-|Osai [] has quit [Quit: Osai]
11:45|-|BigBB [] has joined #openttd
11:46|-|trainlord [] has joined #openttd
11:46<trainlord>hello all
11:47<TrueBrain>hi trainlord
11:47|-|BigBB_ [] has quit [Quit: BigBB_]
11:54|-|Wezz6400 [] has quit [Ping timeout: 480 seconds]
11:56|-|trainlord [] has quit [Quit: Bye for now!]
11:56|-|Wezz6400 [] has joined #openttd
12:06|-|Greyscale [~Greyscale@] has joined #openttd
12:08|-|Desolator [Desolator@] has joined #openttd
12:09<Desolator>hi guys
12:10<TrueBrain>hi Desolator
12:10<Desolator>ahh, good, the type of person looking for
12:10<@orudge>Hello all
12:10<Desolator>can you recommend me some c/C++ book?
12:10<TrueBrain>hi orudge
12:11<TrueBrain>Desolator: sorry, never had one
12:11<@orudge>I learned C from a book called "Teach Yourself C Programming In 21 Days", many years ago now
12:11<@orudge>twas an oldish book, mid-90s
12:11<@orudge>but fairly decent
12:12<Desolator>yeah I have it, though it jumps from basic stuff to advanced stuff quite a bit too quickly
12:13<Desolator>although I'm quite familiar with the syntax (I've been using PHP for quite a while and it's based on C), the strict typing system and all that stuff is a bit too complex for learning in 21 days
12:14<Desolator>hmm, mingw is behaving strange
12:15<Desolator>I'm trying to compile r11355-ChrisIN again since I delete the files by mistake, and now I get loads of errors on command_queue.cpp
12:16<Desolator>virtually all the functions in there appear to be redefined (ain't that strange? O.o)
12:16|-|Grey [~Greyscale@] has joined #openttd
12:17<huma>what's r11355-ChrisIN?
12:17<Desolator>what could it be? :P
12:18<huma>some patch testing
12:18<+glx>Desolator: probably patch did the usual "readding at end of file"
12:18<huma>i wonder what exactly
12:19|-||Bastiaan| [] has joined #openttd
12:19|-|Wezz6400 [] has quit [Quit: bbl]
12:20<Desolator>glx: yeah, I was right, TortoisePatch added the contents 4 times in the file, I fixed it by hand (O.o)
12:20<huma>that's why i prefer console
12:21<+glx>huma: same happen with console
12:21<Desolator>oh dead, ALL patched files are corrupted this way...dard
12:22<huma>sorry actually
12:22[~]Desolator yanks the directory and gets a fresh copy
12:22<+glx>Desolator: only "new" files
12:24|-|Greyscale [~Greyscale@] has quit [Ping timeout: 480 seconds]
12:24|-|Osai [] has joined #openttd
12:24|-|Greyscale [~Greyscale@] has joined #openttd
12:26|-||Jeroen| [] has joined #openttd
12:27<Desolator>btw, why did ludde quit when 0.3.3 was released?
12:28<Eddi|zuHause2>he probably got bored and wanted to do something new
12:28<Desolator>like selling utorrent?
12:29<Eddi|zuHause2>i don't think that was his initial intention ;)
12:30<huma>he's a utorrent dev now?
12:30<Desolator>huh? he made utorrent
12:30<+glx>no he's working on something else now
12:30<huma>ah, neat
12:31|-|Grey [~Greyscale@] has quit [Ping timeout: 480 seconds]
12:31<Desolator>then he sold it to Bittorrent Inc (in 2006 if I'm right) and is now in the support team there
12:31<huma>i suppose he wrote a fair amount of openttd codebase
12:31<Desolator>(it's a pretty neat tool, every'd love a cross-platform version)
12:31<@orudge>huma: he wrote all of it, back at the start
12:32<huma>productive guy
12:33<Desolator>there's a lot of difference from ttd in C (the REAL ottd r1, not the r975 or so that's in this repository) to the coming openttd 0.6
12:33<Desolator>anyway, what's left for OTTD to surpass TTDP fully??
12:34<huma>maybe he didn't like growing c++ influence and left? :)
12:34<Desolator>doubt it...
12:34<Desolator>trunk wasn't converted to c++ 'till after 0.5 AFAIK
12:35<Desolator>the only things left from TTDP that I can think of are PBS & restrictive signalling
12:37<skidd13>Desolator: custom bridgeheads, tracks over tunel entrence, etc. There's still a huge gap.
12:37<Desolator>alright, going to take a bath, see ya all
12:38<huma>happy bathing
12:38|-|Wezz6400 [] has joined #openttd
12:39|-|Born_Acorn [~bornacorn@] has quit [Remote host closed the connection]
12:40|-|Born_Acorn [~bornacorn@] has joined #openttd
12:40|-||Bastiaan| [] has quit [Read error: No route to host]
12:40|-||Bastiaan| [] has joined #openttd
12:41<TrueBrain>skidd13: does KillFirstBit2x64 work on signed integers too? I mean... it looks to me it should be unsigned..
12:43<skidd13>I thought over that too. I'm not 100% sure. It works on COUNTBITS right too. But it would be nice if someone could check that.
12:44<CIA-1>OpenTTD: truelight * r11377 /trunk/src/macros.h: -Codechange: some more strictness in macros.h (skidd13)
12:45<TrueBrain>it is only used in one instance
12:45<skidd13>Then wtf is it placed in macros.h?
12:45<TrueBrain>because most likely it was ment to be more general some day
12:45<TrueBrain>I wonder about the naming
12:46<skidd13>name comes from _ffb_64[(x)] <--
12:46<skidd13>or better _ffb_64[(x) + 64] <--
12:46<TrueBrain>your function doesn't do the same
12:47<skidd13>My function does that what the comments described. Kill the frist bit ;)
12:48<TrueBrain>it doesn't
12:48<TrueBrain>(the comment)
12:49<TrueBrain> * This function returns a value where the first bit (from LSB)
12:49<TrueBrain>- * is cleared. This function checks, similar to FindFirstBit2x64,
12:49<TrueBrain>- * the bits at 0x3F3F.
12:49<TrueBrain>that is what it did
12:55|-|Wezz6400 [] has quit [Quit: bbl]
12:56|-|Grey [~Greyscale@] has joined #openttd
12:59|-|Greyscale [~Greyscale@] has quit [Ping timeout: 480 seconds]
12:59|-|DaleStan [] has joined #openttd
13:01|-|Greyscale [~Greyscale@] has joined #openttd
13:02<skidd13>Trubrain then add | 0x3FFFC0C0 to the calculation and it'll be the same
13:03<skidd13>If the bits of 0x3F3F are checked we only have to assure that all other bits are valid ;)
13:04<TrueBrain>skidd13: I think it is more useful if someone would check where this funciton is used
13:04<TrueBrain>and figure out what it wants, exactly
13:04<TrueBrain>oh, YAPF uses it too
13:04<TrueBrain>lol, missed that :p
13:05<skidd13>Then it sould really be optimised!
13:05<TrueBrain>maybe KUDr can help
13:05<skidd13>@seen KUDr
13:05<@DorpsGek>skidd13: KUDr was last seen in #openttd 1 week, 4 days, 3 hours, 41 minutes, and 5 seconds ago: <KUDr> good
13:06<TrueBrain>bool is_choice = (KillFirstBit2x64(tf.m_new_td_bits) != 0);
13:06<TrueBrain>it really looks weird to me
13:06<TrueBrain>knowing it always leaves bit 6 and 7 and 14 and 15 intact...
13:06<skidd13>the != 0 is not needed
13:06|-||Jeroen| [] has quit [Remote host closed the connection]
13:06<TrueBrain>skidd13: we do that by code-style
13:07<TrueBrain>assuming 0 is something in a boolean, is silly
13:07<TrueBrain>this explicit tells what the meaning was
13:07<skidd13>I know a few placed where this is not used :D
13:07<TrueBrain>and we try to put them there when we find them :)
13:07<TrueBrain>same as this: if (*c != '\0')
13:07<TrueBrain>also not needed, but more clear
13:07[~]skidd13 points silently to mersenne
13:08|-||Jeroen| [] has joined #openttd
13:08|-|Grey [~Greyscale@] has quit [Ping timeout: 480 seconds]
13:09<skidd13>glx: any comments?
13:09<skidd13>to the stuff I try to optimise in maacros.h
13:10<skidd13>:%s /aa/a/g
13:10<+glx>I have to think about it
13:10<TrueBrain>skidd13: I really wonder why it only kills bits in that mask
13:11<skidd13> (ignor the ?)
13:11|-|pecisk [~pecisk@] has joined #openttd
13:11<TrueBrain>skidd13: the comment-change is now wrong ;)
13:12<skidd13>yup. Was to lazy to fix that diff.
13:12<TrueBrain>oh, and skidd13, int -> uint compiled fine :)
13:12<TrueBrain>(killing bits in a negative value gives... weird results ;) )
13:12<Desolator>alright, back
13:13<skidd13>TrueBrain: It might even change from -0 to +0 :D
13:13<TrueBrain>-0 in two's complement? :p
13:13<Desolator>can anyone tell me what's the diff from uint8_t & unsigned?
13:14<skidd13>Or am I wrong. Memory lessons have been a while ago ;)
13:14<TrueBrain>skidd13: -1 = 0xFF, -2 = 0xFE :)
13:15<skidd13>Hmm. :O
13:16<TrueBrain>so killbit makes it more negative :p
13:17<Eddi|zuHause2>funnier if you kill the MSB ;)
13:18<skidd13>TrueBrain: don't you forgot the &= ?
13:18<TrueBrain>nah, that is not weird :)
13:18<TrueBrain>skidd13: what do you mean?
13:18<skidd13>value &= (int)(value - 1) | 0x3FFFC0C0; <- It removes bits and does not change the value itself!
13:19<TrueBrain>now that is a nice contradiction
13:19<TrueBrain>it removes bits, but does not change the value..
13:19<skidd13>:%s /itself/directly/
13:19<TrueBrain>still don't follow..
13:21<skidd13>a = 01010111; b = a - 1; // b = 01010110 a &= b // a = 01010110
13:21<TrueBrain>so, -1 -> killbit: -2
13:21<TrueBrain>while: 2 -> killbit -> 0
13:21<TrueBrain>killing bits in signed operations is a bit silly
13:21<TrueBrain>that was my point :)
13:22<TrueBrain>(for sure it does kill the bit correctly, but the result is fuzzy)
13:22|-|Ammller [] has joined #openttd
13:22|-|Grey [~Greyscale@] has joined #openttd
13:23|-|Greyscale [~Greyscale@] has quit [Read error: Connection reset by peer]
13:25<TrueBrain>skidd13: ah, found why it doens't want to filter bits 6 and 7
13:25<TrueBrain>it means: wormhole or depot
13:26<TrueBrain>so, indeed, with your | in it, the patch is correct
13:26|-|Ammlller [] has quit [Ping timeout: 480 seconds]
13:27<skidd13>Stephen Hawking says: wormholes are implausible!
13:28<TrueBrain>then we are our time way ahead
13:28<skidd13>OpenTTD is VR so everything should be possible :D
13:29<skidd13>except it is not implemented
13:29<CIA-1>OpenTTD: truelight * r11378 /trunk/src/macros.h: -Codechange: optimize KillFirstBit2x64 (skidd13)
13:29<TrueBrain>nice work skidd13 :)
13:29<skidd13>no problem
13:29<TrueBrain>doh, forgot the uint..
13:29|-|tokai [] has quit [Ping timeout: 480 seconds]
13:31|-|tokai [] has joined #openttd
13:31|-|mode/#openttd [+v tokai] by ChanServ
13:33<CIA-1>OpenTTD: truelight * r11379 /trunk/src/macros.h: -Fix r11378: KillFirstBit2x64 accepts and returns unsigned variables, not signed, so enforce that a bit
13:34<skidd13>Obiwan strikes again :D
13:36<skidd13>:%s /Obiwan/Murphy/
13:43|-|Wezz6400 [] has joined #openttd
13:56|-|Farden [] has quit [Quit: ( :: NoNameScript 4.02 :: )]
13:58|-|Farden [] has joined #openttd
14:02|-|dihedral [] has joined #openttd
14:05|-|Zavior [] has quit [Read error: Connection reset by peer]
14:05|-|Desolator [Desolator@] has quit [Quit: Leaving FTW!]
14:11|-|skidd13 [] has left #openttd []
14:17|-|HerzogDeXtEr [] has quit [Read error: Connection reset by peer]
14:17|-|HerzogDeXtEr [] has joined #openttd
14:19|-|LeviathNL [] has quit [Quit: Leaving]
14:31[~]dihedral whistles
14:31<TrueBrain>you suck! :P
14:32|-|Uatec-Home [] has joined #openttd
14:32<valhallasw>so does <insert female name>
14:32<TrueBrain>hmm, indeed :)
14:32<TrueBrain>oh, wait.. :p
14:51|-|Uatec-Home [] has quit []
14:58|-|cybermage [] has joined #openttd
14:58<cybermage>Hi guys
14:58<cybermage>is anywhere central banlist ?
14:59<cybermage>I just banned 2 IP's because they came to server, joined a company and deleted all stations and tracks
14:59|-|ProfFrink [] has joined #openttd
15:00<hylje>one should have passwords
15:00<cybermage>yeah I know
15:02<TrueBrain>but no, we don't have a central banlist
15:03|-|Prof_Frink [] has quit [Ping timeout: 480 seconds]
15:03|-|ProfFrink changed nick to Prof_Frink
15:04<cybermage>just fyi watch and
15:06|-||Jeroen| [] has quit [Quit: oO]
15:10|-|Farden123 [] has joined #openttd
15:11|-||Bastiaan| [] has quit [Quit: KVIrc 3.2.6 Anomalies]
15:16|-|Farden [] has quit [Ping timeout: 480 seconds]
15:16|-|Farden123 changed nick to Farden
15:26|-|yorick [] has joined #openttd
15:27<yorick>hello dihedral
15:29|-|Rafagd [] has joined #openttd
15:29|-|yorick [] has left #openttd []
15:36<cybermage>Is it possible to ban IP range ?
15:41<cybermage>and is it possible to put money to player ?
15:46<TrueBrain>no and no, not direct
15:47<cybermage>bad guys are connecting to my server and deleting stations, airports
15:47<cybermage>Hate them
15:47<TrueBrain>we all do
15:48<cybermage>How to change it ?
15:50<TrueBrain>not.. sadly enough
15:52|-|Tlustoch [] has joined #openttd
15:53<Maarten>cybermage: Do you have a linksys router?
15:54<cybermage>I can manage iptables
15:54<Maarten>(or a linux server with iptables on them)
15:54<cybermage>I think I will do it
15:54<TrueBrain>we all do ;)
15:54<Maarten>iptables -I FORWARD -d -j DROP
15:54<cybermage>I know :)
15:54<TrueBrain>input :p
15:54<cybermage>yeah, forward :)
15:55<cybermage>I am not crazy enough to run openttd on firewall :)
15:55<cybermage>It's in DMZ
15:55<Maarten>that will effectively ban the 66.58.*.* range - it will just forward it to infinity :P
15:55<TrueBrain>cybermage: OpenTTD is safe enough ;)
15:55<cybermage>TrueBrain: I don't trust you ;)
15:56<TrueBrain>cybermage: feel free to check yourself :)
15:56<cybermage>TrueBrain: unless it is build with PIE and PAX
15:56<TrueBrain>but I can't blame you :)
15:56<Prof_Frink>Mmm, PIE
15:56<cybermage>and checked for buffer overflows
15:56<cybermage>and so on ....
15:56<TrueBrain>buffer overflows are checked pretty regular
15:56<TrueBrain>valgrind is run over the binary
15:56|-|Progman [] has joined #openttd
15:56<Prof_Frink>Want PIE now!
15:56<cybermage>hehe :)
15:56<cybermage>mee too :)
15:57<Prof_Frink>'lo Bob, you have pie?
16:03|-|ProfFrink [] has joined #openttd
16:05|-|Dark_Link^ [] has quit [Quit: ( :: NoNameScript 4.02 :: )]
16:05|-|Prof_Frink [] has quit [Ping timeout: 480 seconds]
16:05|-|ProfFrink changed nick to Prof_Frink
16:05|-|Dark_Link^ [] has joined #openttd
16:09|-|Grey_ [] has joined #openttd
16:09|-|Grey_ [] has quit []
16:09|-|Vikthor [~Vikthor@] has quit [Remote host closed the connection]
16:10|-|Vikthor [~Vikthor@] has joined #openttd
16:11|-|Born_Acorn [~bornacorn@] has quit [Ping timeout: 480 seconds]
16:14|-||Bastiaan| [] has joined #openttd
16:15|-|Grey [~Greyscale@] has quit [Ping timeout: 480 seconds]
16:19|-|TinoM [] has quit [Quit: Verlassend]
16:20|-|Born_Acorn [~bornacorn@] has joined #openttd
16:24|-|Greyscale [] has joined #openttd
16:27|-|Wolf01 [] has quit [Quit: Once again the world is quick to bury me.]
16:29|-|Greyscale [] has quit [Read error: Connection reset by peer]
16:31|-||Bastiaan| [] has quit [Quit: KVIrc 3.2.6 Anomalies]
16:37<Ammller>Hi, someone ever played with MB's newcargo.grf?
16:38<Ammller>we have a problem with accepting Livestock at the food plant
16:53|-|skidd13 [] has joined #openttd
16:54<skidd13>Hi again
16:54|-|egladil [~egladil@] has quit [Quit: Leaving]
16:55|-|KritiK_ [] has joined #openttd
16:57|-|egladil [~egladil@] has joined #openttd
16:57<TrueBrain>skidd13: hi
16:57<TrueBrain>skidd13: after a long look at KillBits blabla, I found out that the function is REALLY weird
16:58<TrueBrain>as the function also makes of any 16+bit, a 16bit
16:58<skidd13>But IMO the most wired is its name
16:58<TrueBrain>that too :p
16:59<skidd13>If we fix the name the rest will be ok then ;)
16:59<TrueBrain>did you check FindFirstBit2x64 :p
16:59<TrueBrain>it has a nice +8....
17:00<skidd13>yeah. I'm thinking about that too
17:00<TrueBrain>and _ffb is just a lookup table :p
17:01<skidd13>that IS funny. :D
17:01<TrueBrain>extern const byte _ffb_64[128];
17:01|-|KritiK [] has quit [Ping timeout: 480 seconds]
17:05<skidd13>What about KillFirstPathInfoBit() ?
17:06<Rubidium>skidd13: it's working on track bits
17:07<Rubidium>uhmm.. not track bits, trackdirbits ;)
17:07<skidd13>Woah that is wired
17:08<TrueBrain>we really need KUDr, to ask what is going on :)
17:09<Rubidium>_ffb_64 is used just to get/remove a TrackDirBit
17:09<TrueBrain>Rubidium: then why is it done on bits 0..7 AND on bit 8..15?
17:10<Rubidium>it's done on bits 0..5 and 8..13
17:10<TrueBrain>yeahyeah, but you got what I mean
17:10<TrueBrain>where does that << 8 come from?
17:10<Rubidium>just as the trackdirbits
17:10|-|Greyscale [] has joined #openttd
17:10<TrueBrain>when does trackdirbits use 16bit?
17:10<Rubidium>TrueBrain: read the comments in trackdir(bits)
17:10<Rubidium>TrueBrain: always
17:11<TrueBrain>hmm, I was reading TrackBits
17:11<TrueBrain>ah, there it is
17:11<TrueBrain>confusing names..
17:11<Ammller> <-- strange bug with newgargo
17:11<TrueBrain>ah, Rubidium, now I understand
17:11<Rubidium>TrueBrain: not confusing, it's very clearly named
17:11<TrueBrain>but so there is nothing wrong with killing bit 6 and 7 too, as they should always be 0
17:12<TrueBrain>Rubidium: yes, it is, but TrackBits and TrackDirBits are a very minor difference
17:12<TrueBrain>easy to overlook
17:13<Rubidium>maybe rename 2x64 with TrackDirBits and have those as input and output type
17:13<TrueBrain>so, if I read this all correct, we can just name it KillFirstBit
17:13<TrueBrain>as bit 6 and 7 should always be 0
17:13<skidd13>Then we don'T need the 0x... stuff
17:13<TrueBrain>less fuzz
17:17|-|Farden [] has quit [Quit: ( :: NoNameScript 4.02 :: )]
17:18<TrueBrain>Rubidium: can you confirm that I am correct, about bit 6 and 7 in TrackDirBits?
17:18<Rubidium>I'm not 100% sure at the moment; the TrackDirs for 6 and 7 are used
17:19<TrueBrain>(or better: where? :))
17:19<Rubidium>RV turning
17:19<TrueBrain>which isn't important for YAPF, right?
17:19<TrueBrain>so should be masked out?
17:21<Rubidium>it's not used for TrackDirBits it seems
17:21<Rubidium>so yes, it can be masked out
17:21<Rubidium>but instead of using 0x3F3F, you can use the enum constant
17:22<TrueBrain>Rubidium: I ment, not in KillBits
17:22<CIA-1>OpenTTD: glx * r11380 /trunk/src/newgrf.cpp: -Revert (r11191, r11196): it worked, but broke cargo loading
17:22<TrueBrain>but in when yapf assigns the value
17:22|-|ludde [] has quit [Ping timeout: 480 seconds]
17:22<Rubidium>masking out isn't necessary as it should never been set in the first place
17:22<TrueBrain>that was what I was asking ;)
17:22<TrueBrain>so, KillBits can just do what he says, kill the LSB bit
17:23<TrueBrain>no 2x64 fuzzyness
17:23|-|dihedral [] has quit [Quit: ChatZilla [Firefox]]
17:23<TrueBrain>TrackdirBits dst_td_bits = (TrackdirBits)(dest_ts & TRACKDIR_BIT_MASK); <- YAPF already takes perfectly care of it
17:23<Rubidium>removes 64 or so bytes from the binary ;)
17:23<TrueBrain>anyway, that also means we could remove KILL_FIRST_BIT macro
17:23<Ammller>glx: your commit has nothing to do with the image I just posted, has it?
17:24<Rubidium>could be
17:24<+glx>what image?
17:24<CIA-1>OpenTTD: glx * r11381 /trunk/src/ (newgrf.cpp newgrf_config.h): -Fix [FS#1227]: redo the fix in a less breaking way
17:24<Ammller>the station does not accept Livestock
17:24<TrueBrain>brr, many times KILL_FIRST_BIT used...
17:25<+glx>Ammller: maybe
17:25<Ammller>hmm, then I try with new trunk...
17:25|-|Tlustoch [] has quit [Quit: Leaving]
17:25<+glx>btw nothing?.grf still works :)
17:26<Ammller>does it still nothing?
17:26<+glx>but now I can have forests from ECS accepting Vehicles even I change grf order
17:27<Ammller>nope,the problem is still there
17:27|-|pecisk [~pecisk@] has quit [Quit: Ex-Chat]
17:27<Ammller>didn't compile, sry
17:28<TrueBrain>Rubidium / skidd13:
17:29<Rubidium>boooh ;)
17:29<TrueBrain>one can debate if a table-lookup is faster than an AND and a SUB, but I think optimizations take care of it
17:29<TrueBrain>and what should be templates about it?
17:29<TrueBrain>you want to avoid the casts
17:29<Rubidium>so you can remove the casts
17:29<TrueBrain>why not
17:29<TrueBrain>not that it really matters
17:30<TrueBrain>it just makes it hard to compare it to 0
17:30<Rubidium>then you don't compare to 0
17:30<Rubidium>but TRACKDIRBITS_NONE or something like that
17:30<TrueBrain>that takes a bit longer :p
17:30<skidd13>looks nice and templates a cool :D
17:30<Ammller>glx, this bug is still there with 11381
17:30<Rubidium>makes it clearer though
17:30<Rubidium>Ammller: does it work in TTDP?
17:30<TrueBrain>Rubidium: you are correct
17:31<Ammller>Rubidium: I guess so, this set is quite old
17:31<Ammller>but I ask MB
17:31<Rubidium>so you don't know
17:31<TrueBrain>btw, skidd13, I think COUNTBITS should be renamed to CountBits
17:31<TrueBrain>it no longer is a macro
17:32<skidd13>TrueBrain: Yup I just wanted to say something like this ;)
17:32<TrueBrain>so you do that, then I take care of KillFirstBit :)
17:37<TrueBrain>stupid compiler, 0 is allowed :p
17:38<TrueBrain>even a value of an other enum..
17:40<Ammller>Rubidium: now I know, it works with patch
17:40<Rubidium>you tested the exact same set of grfs in the same order?
17:41<TrueBrain> <- OMG! 1 warning :)
17:41<skidd13>TrueBrain: check the patch-maillist
17:42<TrueBrain>I only have savegames that are broken somehow :p
17:43<Rubidium>TrueBrain: clear, ain't it?
17:43<TrueBrain>I can't even find a working on :)
17:43<Ammller>someone else in the german forum did also point to it and MB said, that it might be a bug
17:43<+glx>Ammller: in the first screenshot you can see the FPP is not finished
17:43<Ammller>ah ok, but thats not the problem
17:43<Ammller>or is it?
17:43<+glx>just wait a little and I think the missing accepted cargo will appear
17:43<Ammller>and why is Grain and fish aready there?
17:44<TrueBrain>Rubidium: <- better?
17:44<+glx>LV acceptance may be related to a callback
17:44<Rubidium>Ammller: furthermore the stations are different
17:45<Rubidium>+ if (bits == 0 || KillFirstBit(bits) == TRACK_BIT_NONE) return false;
17:45<Rubidium>the other 0 could be changed too
17:45|-|Rafagd [] has quit [Read error: Connection reset by peer]
17:46|-|Rafagd [] has joined #openttd
17:46<Rubidium>in pathfind bits could be made TrackDirBits (out of scope of patch though)
17:46<TrueBrain>I agree, with both statements :)
17:46<Rubidium>+ for (TrackdirBits rtds = tf.m_new_td_bits; rtds != TRACKDIR_BIT_NONE; rtds = (TrackdirBits)KillFirstBit(rtds)) {
17:46<Rubidium>unnecessary cast
17:46<skidd13>if (bits == 0 || KillFirstBit(bits) == TRACK_BIT_NONE) I'd replace with if (bits == 0 || CountBits(bits) == 1)
17:47<Rubidium>CountBits(bits) <= 1 ?
17:47<CIA-1>OpenTTD: truelight * r11382 /trunk/src/ (6 files): -Codechange: renamed COUNTBITS to CountBits, as it is no longer a macro (skidd13)
17:48<Rubidium>TrueBrain: another similar case where you could remove an unnecessary cast in yapf_common.hpp (previous one in yapf_base.hpp)
17:50<Rubidium>Ammller: have you tried it in OTTD with a similar station as in TTDP?
17:50<Rubidium>as it looks like only a few tiles accept livestock and those aren't covered enough by your station in OTTD.
17:50<skidd13>src/yapf/yapf_road.cpp you can replace with CountBits(bits) <= 1 too
17:51|-|Wezz6400 [] has quit [Quit: :w]
17:51|-|Vikthor [~Vikthor@] has quit [Remote host closed the connection]
17:51<TrueBrain>skidd13: it isn't faster
17:51<TrueBrain>but okay, more clear :)
17:51<Ammller>Rubidium: I have surrounded now the Plant, still not accepting it
17:52<Ammller>also tried rv and airport
17:52<TrueBrain>skidd13: but the same goes for:
17:52<TrueBrain>bool is_choice = (KillFirstBit2x64(m_orgTrackdirs) != 0);
17:52<Osai>there is also another bug... transported fish doesn't produce any food, you only receive some money
17:52<TrueBrain>in fact, for most KillFirstBit
17:53<skidd13>TrueBrain: CountBits is more intuitive IMO
17:53<TrueBrain>Rubidium: what do you think.. replace KillFirstBit(value) != 0 (enum) with CountBits(value) <= 1?
17:53<Ammller>hmm, newcargo is one of first NewIndustries GRF
17:53<+glx>Osai: related to Ammller problem?
17:53<Osai>it occurred in the same game
17:53<TrueBrain>euh, for != it is of course > 1 ;)
17:54<skidd13>TrueBrain: for != I'd use KillBits cause Countbits iterates for every bit and Killbits only for one ;)
17:55<TrueBrain>hmm, true
17:55<TrueBrain>so, only for == 0, it is :)
17:55<huma>oh, TrueBrain is still up and running :)
17:55<Ammller>Osai: I made a new game on a unpatched trunk to be sure
17:55<huma>i had a nap
17:55<Ammller>trunk, around 11381
17:56<Rubidium>TrueBrain: if you care about counting the bits, then you should always use KillBits and not CountBits
17:56<TrueBrain>Rubidium: don't follow
17:56<Rubidium>you could make a function HasZeroOrOneBitsSet though ;)
17:56|-|Rafagd [] has quit [Ping timeout: 480 seconds]
17:56<TrueBrain>hmm, CountBits is always slower
17:56<skidd13>HasLessThanOneBit ;)
17:57<TrueBrain>so, indeed, bad idea to replace KillFirstBit with CountBits
17:57<Rubidium>skidd13: that's just == 0
17:57<skidd13>:%s /One/Two/g
17:57<skidd13>Rubidium: Just noticed after pressing return ;)
17:57|-|ThePizzaKing [] has joined #openttd
17:58<TrueBrain>bits &= 0xBF; <- BF?!
17:58<TrueBrain> <- yet an ohter version
17:59<Rubidium>BF == 0x3F | 0x80
17:59<TrueBrain>ah :)
17:59<skidd13>TrueBrain: 10111111
17:59<Rubidium>don't know why bit 7 is tested though
17:59<TrueBrain>Rubidium: so in pathfinder.c, it can't be replaced with TrackDirBits, it uses some custom bit :)
18:00<Rubidium>the BF seems wrong
18:00<TrueBrain>so, really something for an other patch ;)
18:00<TrueBrain>temp.patch is okay?
18:00<Rubidium>GTTS never returns with the 7th and 15th bit set
18:01<Rubidium>so the BF could become 3F
18:04<TrueBrain>yes? no? maybe? :p
18:05<Rubidium>looks ok to me
18:06<Ammller>hmm, how to build a boje for fishing, like in Patch with crtl?
18:06|-|Vikthor [~Vikthor@] has joined #openttd
18:06<CIA-1>OpenTTD: truelight * r11383 /trunk/src/ (10 files in 2 dirs): -Codechange: fixed all the mess around KillFirstBit (tnx to Rubidium and skidd13)
18:07<TrueBrain>so, now FindFirstBit? :p
18:07<skidd13>TrueBrain: That's a bit more tricky to optimise ;)
18:07<TrueBrain>we can at least start by removing the 2x64 version :)
18:07<TrueBrain>as we just said that was unneeded ;)
18:08<TrueBrain>hmm, no, we can't, as FIND_FIRST_BIT needs a 64bit value
18:12<Rubidium>Ammller: you don't
18:12<Ammller>yeah, I fear, its not possible
18:12<Ammller>this set is just not playable with OTTD
18:13<Ammller>hmm, didn't test it enough
18:13<Ammller>I will remove it from our pack then...
18:14|-|Osai changed nick to Osai^zZz
18:14<TrueBrain>night Osai^zZz
18:14<Rubidium>night Rubidium
18:14<TrueBrain>night Rubidium :P
18:14<Eddi|zuHause2>build fishing grounds with ctrl? that sounds like a bad feature
18:14<+glx>Ammller: anyway there's probably a bug in industrytiles loading
18:14<Ammller>not the fishing ground
18:14<Ammller>the boje
18:14<skidd13>night Skidd13
18:15<TrueBrain>you guys are bad :)
18:15|-|skidd13 [] has left #openttd []
18:15<TrueBrain>night all :)
18:15<+glx>Ammller: buoy
18:15<TrueBrain>well, nobody left here for me to talk about macros.h I guess :p Night all :)
18:15<Ammller>night TrueBrain
18:15<+glx>night TrueBrain
18:16<Ammller>Eddi|zuHause2: did you ever play with newcargo and OTTD?
18:16<Eddi|zuHause2>Ammller: you specifically mean the newgarco.grf? no.
18:16<Ammller>yes, that grf
18:17|-|KritiK_ [] has quit [Quit: Leaving]
18:22|-|MrBrrr [] has joined #openttd
18:26<MrBrrr>Has the behavior of the "Go To Depot" order been changed? (in trunk)
18:28|-|G [] has quit [Ping timeout: 480 seconds]
18:32|-|DaleStan [] has quit [Ping timeout: 480 seconds]
18:34|-|stillunknown [] has quit [Ping timeout: 480 seconds]
18:37<cybermage>bye guys
18:37|-|cybermage [] has quit [Quit: leaving]
18:38|-|DaleStan [] has joined #openttd
18:38|-|Osai^zZz [] has quit [Quit: Osai^zZz]
18:42|-|Diabolic-Angel [] has quit [Quit: leaving]
18:46|-|Purno [] has quit [Quit: Always remember you're unique, just like everyone else.]
18:46|-|Diabolic-Angel [] has joined #openttd
18:54|-|thgerg1 [] has quit [Read error: Connection reset by peer]
19:04|-|Vikthor [~Vikthor@] has quit [Quit: Leaving.]
19:16|-|RamboRonny [] has quit [Ping timeout: 480 seconds]
19:21|-|LeviathNL [] has joined #openttd
19:26|-|Progman [] has quit [Remote host closed the connection]
19:26|-|MrBrrr [] has quit [Quit: ChatZilla [Firefox]]
19:28<+glx>Ammller: I found the problem :)
19:32|-|Rafagd [] has joined #openttd
19:37|-|Grey [] has joined #openttd
19:37|-|Greyscale [] has quit [Read error: Connection reset by peer]
19:41|-|bruce89 [] has joined #openttd
19:41|-|bruce89 [] has left #openttd []
19:50|-|LeviathNL [] has quit [Remote host closed the connection]
19:58|-|huma [~huma@] has quit [Ping timeout: 480 seconds]
20:30|-|Eddi|zuHause3 [] has joined #openttd
20:35|-|joosa [] has quit [Remote host closed the connection]
20:36|-|Ammller [] has quit [Remote host closed the connection]
20:36|-|joosa [] has joined #openttd
20:37|-|Eddi|zuHause2 [] has quit [Ping timeout: 480 seconds]
20:39<CIA-1>OpenTTD: glx * r11384 /trunk/src/table/build_industry.h: -Fix: second and third accepted cargo were inverted in original industry tiles
20:50|-|Netghost [~Netghost@] has joined #openttd
20:54|-|Netghost [~Netghost@] has quit []
21:07|-|BigBB [] has quit [Quit: BigBB]
21:16|-|G [] has joined #openttd
21:37|-|Sacro [Ben@adsl-87-102-80-216.karoo.KCOM.COM] has quit [Remote host closed the connection]
22:00|-|shodan [] has joined #openttd
22:05|-|elmex_ [] has joined #openttd
22:07|-|Diabolic-Angel [] has quit [Quit: leaving]
22:10|-|elmex [] has quit [Ping timeout: 480 seconds]
22:11|-|Rafagd [] has quit [Remote host closed the connection]
22:12|-|glx [] has quit [Quit: bye]
22:43|-|huma [~huma@] has joined #openttd
22:44|-|Grey [] has quit [Ping timeout: 480 seconds]
23:38|-|mcbane [] has joined #openttd
23:38|-|nairan_wokr [] has quit [Ping timeout: 480 seconds]
---Logclosed Mon Nov 05 00:00:39 2007