IRC logs for #openttd on OFTC at 2015-03-28
            
00:00:05 <chillcore> anyone know per chance if gedit has an extention (or option) to show spaces and tabs?
00:01:04 <glx> probably like any correct editor
00:01:48 <Samu_> MarkTileDirtyByTile(tile + TileOffsByDiagDir(direction), 0);
00:01:55 <Samu_> this seems to have fixed it lol
00:02:23 <Samu_> none of the other stations have this line
00:03:49 <Samu_> oh, sorry, there's 2 other occurences after all
00:04:07 *** roidal_ has quit IRC
00:04:07 <chillcore> glx: I just can not find it at first glance ... I'll have a better look in a bit.
00:04:50 <chillcore> other texteditors are available ... this one reminds me of notepad++ and feels lightweight
00:04:53 *** Samu_ has quit IRC
00:04:57 <glx> http://stackoverflow.com/questions/17162851/option-to-display-control-characters-in-gedit
00:04:59 *** Samu has joined #openttd
00:05:05 <glx> there's a plugin it seems
00:05:14 <chillcore> thank you very much.
00:07:11 <frosch123> chillcore: i use geany as leightweight editor
00:09:24 <chillcore> I can have a look at that too to see if it pleases me better, frosch
00:10:10 <chillcore> not hat I am displeased at all ... just beats clicking all lines if I can see em
00:11:23 <Samu> well
00:12:21 <Samu> moving on to my next task
00:13:19 <Samu> the bit flag
00:13:30 <Samu> yeah Canal on river bit flag
00:13:45 <Samu> seems to be the easier one (hopefully)
00:14:25 <Samu> i've been doing HasBit(blabla.m6,0), but it's time to give it a proper english name
00:14:51 <chillcore> what's with these proposed packages? just random?
00:15:09 <chillcore> not installing zeitgeist ...
00:15:23 <chillcore> I removed that already
00:15:33 <chillcore> came with something else
00:15:49 <chillcore> I can remember myself what i did
00:16:35 *** FLHerne has joined #openttd
00:17:50 <chillcore> yay tabs and spaces \o/
00:19:08 <Samu> http://hg.openttd.org/trunk.hg/file/b5c53f23550d/src/water_map.h#l18
00:19:22 <Samu> uhm... i have to ask
00:19:33 <chillcore> and this geany looks interesting very much too ...
00:19:47 <Samu> I need an enum
00:20:23 <Samu> WBL_RIVER_FLAG?
00:21:36 <Samu> but i can't put it at m5 :(
00:22:03 *** frosch123 has quit IRC
00:33:57 <chillcore> hmm lightweight he said ... comes with console and all
00:34:02 * chillcore likes
00:34:56 <chillcore> rubbadubdub geany in a botle
00:34:59 <chillcore> :P
00:35:37 <chillcore> s console/terminal
00:51:34 *** flipFLOPS has joined #openttd
00:55:18 <Wolf01> 'night
00:55:24 *** Wolf01 has quit IRC
01:03:33 *** liq3 has joined #openttd
01:06:15 *** Pikka has quit IRC
01:06:41 *** supermop has joined #openttd
01:06:43 *** Zoidzerg has joined #openttd
01:14:37 *** Pereba has quit IRC
01:27:05 <Zoidzerg> Is the binaries server down? I'm getting connection timed out errors
01:28:33 <Sylf> the US mirror of it is working for me
01:28:48 <Sylf> and its gateway
01:29:47 <Sylf> but http://www.downforeveryoneorjustme.com/binaries.openttd.org thinks it's down
01:30:35 <Zoidzerg> Thanks, the US one works for me too
01:30:42 <Zoidzerg> It's the hu.binaries that fails for me
01:30:49 <Zoidzerg> (which is where I get sent by default)
01:34:55 *** Myhorta has quit IRC
01:37:28 *** flipFLOPS has quit IRC
01:43:58 *** Samu has quit IRC
01:55:24 <chillcore> anyone can comment on this?
01:55:31 <chillcore> int amount_of_amplitudes = lengthof(amplitudes_small[0]; // We just need the nr. of params 1 setting has here.
01:55:35 *** HerzogDeXtEr1 has quit IRC
01:55:49 <chillcore> not so happy with the name of variable not the comment
01:55:58 <chillcore> s not/nor
01:56:07 <chillcore> lack of inspiration ...
01:56:11 <chillcore> :P
01:56:53 <Sylf> hrm
01:57:14 <Sylf> amplitude magnitude :P
01:57:20 <chillcore> trying to move that out of the code where it is used as not to cause confusion
01:57:44 <chillcore> hmm it is not that ... 1 setting has 10 params
01:57:50 <chillcore> it is the 10 I need
01:58:02 <chillcore> one line later
01:58:20 <chillcore> but if I pick one or the other setting does not matter
01:58:50 <chillcore> also thenr of params can change it was 7 before
01:59:19 <Sylf> so, you want a new name for amplitudes_small?
01:59:39 <chillcore> no that I need somewhere else
02:00:09 <chillcore> int index = frequency - MAX_TGP_FREQUENCIES + amount_of_amplitutudes);
02:00:13 <chillcore> it was in there
02:00:16 <Sylf> sounds like I'm completely clueless. I better shut up.
02:00:31 <chillcore> but +10 -10 is just frequency
02:01:05 <chillcore> I could do that but if later it changes then that person will have a hard time figuring out that he needs to re-add that
02:01:31 <chillcore> hmm ... thanks for the hellp anyway
02:01:37 <chillcore> much apreciated
02:02:19 <chillcore> eg. I might make the arrays for small maps smaller ...
02:02:39 <chillcore> as in later not now
02:02:52 <chillcore> I will know what to do but someone else not
02:03:38 <chillcore> read: 10 - 7 (as was before) is not just frequency and will give errors if not crash
02:04:33 <chillcore> yay magic
02:05:35 <chillcore> // We just need the nr. of params 1 setting has here. we could have picked any setting so we take the first we see.
02:05:42 <chillcore> better?
02:06:35 <chillcore> will do for now I guess
02:08:22 <supermop> hu
02:08:23 <supermop> h
02:08:31 <chillcore> o/
02:09:48 <chillcore> amount_of_params ?
02:10:33 <chillcore> nr_of_params
02:10:36 <chillcore> hehe
02:10:44 <chillcore> it will come to me
02:11:37 <supermop> UE4 taaking long time to nstall
02:12:02 <chillcore> hmm steam only does +-6MB/s
02:12:18 <chillcore> on a good day
02:13:10 <supermop> maybe i should plug into router instead of wifi
02:13:41 <chillcore> depends your wifi speed
02:13:58 <supermop> i should see if i can get my boss/client to buy me a monitor
02:14:12 <supermop> my laptop only has a 13" screen
02:14:27 <supermop> which i have been using for cad and 3d work
02:14:36 <chillcore> yeah I plug in external everything too
02:15:06 <chillcore> wish I had 2 ports for monitors
02:15:13 <supermop> hmm ethernet doesn't make a difference
02:15:40 <supermop> i used to use a desktop with two monitors years ago
02:16:20 <supermop> by years i mean 12 years i guess
02:16:40 <chillcore> hehe
02:17:07 <supermop> i've had this sony for 5 years, and a similar sony for 5 years before that
02:17:18 <supermop> i'd buy another but they stopped making them
02:17:30 <chillcore> I do way longer with my stuffs
02:17:42 <supermop> the 10 year old sony still works too
02:17:49 <chillcore> ^^^
02:18:03 <supermop> i just wanted an i7 and ssd 5 years ago and had just got a new job
02:18:31 <supermop> im not sure what else i need now other than bigger ssd and more ram
02:18:47 <supermop> already have as much ram as will fit in this one
02:18:56 <chillcore> still no SSD here
02:19:21 <chillcore> limited lifespan, small ...
02:19:36 <chillcore> ok it is fast
02:19:51 <chillcore> expensive
02:20:19 <Eddi|zuHause> <chillcore> but if I pick one or the other setting does not matter <-- you might want to make an assert_compile that they all have the same length (or an assert, if it's dynamic)
02:20:52 <supermop> i've had several HDD physically fail, ssd never has yet
02:21:05 <chillcore> it is not yet dynamic but it might be later Eddi|zuHause
02:21:46 <chillcore> also nr of params can not be bigger then MAX_TGP_FREQUENCIES
02:21:55 <chillcore> it will not compile
02:22:15 <chillcore> just that now they are equal
02:22:42 <chillcore> can be less no prob
02:22:58 <chillcore> Rub*dium made sure of that
02:23:06 <chillcore> some time ago
02:23:14 <Eddi|zuHause> well, i can't judge how much sense that line makes
02:23:56 <chillcore> lots that is why I am hesitant to change it
02:24:36 <chillcore> I do want to getthe correct frequncy during looping over that part of the code
02:24:47 *** tokai|mdlx has quit IRC
02:26:20 *** tokai has joined #openttd
02:26:20 *** ChanServ sets mode: +v tokai
02:26:22 <chillcore> supermop: sure, but SSD already knows when it will stop working before you start using it
02:26:41 <chillcore> overwrite this many times
02:26:52 <supermop> better than not knowing and taking a chance
02:27:00 <chillcore> hehe
02:28:46 <chillcore> I am not saying they are bad ... I just don't want others to decide when my things break
02:29:11 <chillcore> it breaks when it breaks I am cool with that
02:30:25 <Eddi|zuHause> so you don't buy food that has a "good before <X>" date?
02:30:36 <chillcore> haha
02:31:22 <Eddi|zuHause> or lightbulbs that say "works for 1000 hours"
02:31:40 <chillcore> sure and then they go for 2000 if you'e lucky
02:31:53 <Eddi|zuHause> i guess i was never lucky
02:31:53 <chillcore> or 500 if not
02:32:17 <Eddi|zuHause> the 4 lightbulbs i had in my lamp always broke within few weeks of each other
02:32:30 <chillcore> ouch
02:32:34 <Eddi|zuHause> then i buy new ones, and they again all break roughly at the same time
02:32:49 <Eddi|zuHause> now i got LEDs, which said they're good for 15 years
02:33:00 <chillcore> ok
02:33:37 <Eddi|zuHause> (in lightbulb speak, 1000 hours equals 1 year)
02:34:09 <glx> and it's 1000 hours full time without switching them off
02:34:17 <chillcore> they could make em go 3000
02:34:35 <chillcore> but then the other brands would no longer sell
02:35:04 <glx> I was lucky if it lasted 3 months
02:35:46 <chillcore> that is shortish
02:35:47 *** FLHerne has quit IRC
02:36:02 <glx> 8 hour/day
02:36:17 <glx> well night not day ;)
02:38:16 <glx> energy saving ones last way longer
02:38:23 <Eddi|zuHause> well, if you use them for three times as long for each day, they last only a third of the time in days :p
02:39:49 <chillcore> if you leave em on all the time they last longer
02:40:11 <Eddi|zuHause> but only up to a point...
02:40:15 <chillcore> but yeah cheaper to buy new
02:40:26 <chillcore> and yeah up to a point
02:42:32 <supermop> a decent ssd has enough write cycles to last longer beiing used everyday than most people would keep a computer, so i prefer that to having a read head plow into the disk surface as a fluke a couple years into a hard drives life of less
02:43:54 <supermop> with something like a hard drive reliability is much more important than longevity
02:44:03 <chillcore> sure
02:44:12 <chillcore> ^^^ no sarcasm
02:44:22 <supermop> and the speed helps a lot as well - as i am still using what was just ok amount of ram in 2010
02:44:50 <supermop> the ssd gets used as extra memory during some photoshop or rendering use
02:45:08 <supermop> faster makes a big difference there
02:45:16 <chillcore> true
02:46:11 <supermop> in fact the biggest difference iv'e ever noticed in computer's overall speed has been due to ssds
02:46:16 <Eddi|zuHause> i bought more ram at the same time as the SSD, and disabled swap at that time...
02:46:42 <supermop> also the computer runs cooler and quieter, and battery lasts longer
02:47:17 <chillcore> hmm ok
02:47:35 <chillcore> you've got a point there
02:47:38 <chillcore> more then one
02:47:40 <supermop> Eddi|zuHause: i bought my computer with most ram it would fit, so unfortunately i cannot upgrade now
02:48:05 <glx> one of the problems with laptops ;)
02:48:12 <Eddi|zuHause> the additional ram was twice as much as i already had, and cost half as much...
02:48:44 <chillcore> ye like my phone said 8gb micro max ... I have 32 in it no prob
02:49:03 <chillcore> the what if nut in me
02:49:25 <supermop> glx: at the time i was living in manhattan, and could not afford the extra space to hold a desk to hold a desktop
02:49:30 <chillcore> or 16 have to check
02:50:35 *** GriffinOneTwo has joined #openttd
02:50:48 <glx> for now I have 2x4GB and room for expansion
02:52:08 <supermop> and laptop let me move to australia with only 2 suitcases and a box for my bike
02:59:30 <Eddi|zuHause> you bring your bike on an airplane?
03:00:19 <Eddi|zuHause> wouldn't it be cheaper to just get a new bike?
03:03:14 * chillcore re-reads code tommorow morning before posting
03:03:46 <chillcore> I think I have covered all remarks (read: hints/pointers)
03:08:04 <chillcore> I should reduce range for tgen params to -1/1 exluding 0 and use floats... :P
03:08:10 <chillcore> later
03:08:22 <chillcore> needs comma in validate
03:08:33 <Eddi|zuHause> needs regexp :p
03:08:37 <chillcore> yes
03:08:56 <chillcore> but it would work fine
03:08:58 <Eddi|zuHause> -.235e-2
03:09:10 <chillcore> hehe
03:09:17 <Eddi|zuHause> (this is a valid number)
03:09:24 <chillcore> indeed
03:10:48 * chillcore wonder how devs will react :P
03:10:54 <chillcore> you wut?
03:10:55 <supermop> Eddi|zuHause: flight to aus gets you 3 free checked bags, disassembled bike in a box is small enough to count as a bag
03:11:53 <supermop> selling bike in the us and buying the same one again here would lose money as everything here cost at least 10% more at that time
03:12:10 <supermop> now the weakened AUD has negated some of that effect
03:12:33 <chillcore> I once drove a guy to the airport in paris ... 80kg handbagage
03:12:45 <supermop> thats a lot of kilograms
03:12:47 <chillcore> part for a ship near pananma
03:13:15 <supermop> i assume he wasn't paying for the baggage himself?
03:13:21 <chillcore> the thing that holds a piston in place
03:13:31 <chillcore> I think i was the captain
03:13:44 <chillcore> but they flew all the way here
03:13:55 <chillcore> one guy that is
03:13:56 <supermop> you think? you don't recall if you were the captain of a ship?
03:13:58 <supermop> hehe
03:14:39 <chillcore> :P
03:14:50 <chillcore> it*
03:15:04 <chillcore> darned did not see that
03:16:35 <chillcore> I don't recall how much he payed but it was lots
03:16:42 <supermop> i bet
03:17:13 <supermop> i was talking to a guy who founded a company that makes custom handmade bikes once
03:17:35 <chillcore> that lady at the counter did not even lift an eyebrow
03:17:57 <supermop> and he was saying it was cheaper for him to fly to europe with a bike everytime they got an order there than to ship the bike
03:20:38 * chillcore has vision of smugglers with bike up ...
03:21:13 *** glx has quit IRC
03:23:55 <chillcore> I should catch some sleep ... else it will be 6 am again before I know it
03:23:59 <chillcore> good night
03:24:08 *** chillcore has quit IRC
03:31:02 <supermop> this thing is still installing...
04:02:18 *** tokai|mdlx has joined #openttd
04:08:36 *** tokai has quit IRC
06:11:08 *** Seifur has joined #openttd
06:56:02 *** Eddi|zuHause has quit IRC
06:56:16 *** Eddi|zuHause has joined #openttd
07:11:21 *** smoke_fumus has quit IRC
07:14:58 *** roidal has joined #openttd
07:35:16 *** Progman has joined #openttd
07:38:25 *** GriffinOneTwo has quit IRC
07:47:01 *** smoke_fumus has joined #openttd
07:50:34 *** sla_ro|master has joined #openttd
07:54:08 *** Celestar has joined #openttd
08:02:10 *** Celestar has quit IRC
08:13:28 *** Celestar has joined #openttd
08:40:18 <Terkhen> hello
08:41:07 <Supercheese> Salve
08:44:23 <V453000> anus
09:00:42 *** Celestar has quit IRC
09:01:47 *** sla_ro|master has quit IRC
09:08:50 *** jjavaholic has joined #openttd
09:14:00 *** chillcore has joined #openttd
09:14:11 <chillcore> good morning
09:14:53 <chillcore> sleeping again gave me inspiration ...
09:15:31 <chillcore> amount_of_params -> lollyood
09:15:40 <chillcore> lollywood*
09:15:55 <chillcore> I don't want to get sued ...
09:16:21 <chillcore> hehe ...
09:17:15 <chillcore> riddles ...
09:18:36 <Supercheese> spinxes
09:18:41 <Supercheese> sphinxes*
09:18:46 <chillcore> close
09:18:50 <chillcore> o/
09:20:13 <chillcore> I'll change it to not lollywood and then tell
09:21:38 <chillcore> but yeah the best things to do do come when not doing it
09:21:47 <chillcore> it being thinking about it
09:22:00 <chillcore> s when /while
09:25:47 <chillcore> par_amount
09:25:55 <chillcore> xD
09:27:15 <chillcore> just got to fix this this compiler error now ....
09:28:07 *** Maxwell has joined #openttd
09:28:24 <Maxwell> hello
09:28:34 <chillcore> hello
09:28:49 <Maxwell> I need help
09:28:56 <chillcore> just ask ;)
09:29:51 <Maxwell> cool, i am trying to access the openttd file on my computer. The game says it is in my home file, but my computer can't see it. I am running ubuntu
09:30:13 <chillcore> show hidden files
09:30:17 <chillcore> .openttd
09:30:20 <Maxwell> how
09:30:51 <V453000> get rid of linux XD
09:30:54 <V453000> :P
09:31:01 <V453000> /end of constructive help
09:31:04 <Maxwell> never
09:31:12 <Maxwell> wow
09:31:20 <Maxwell> wow man, so mean :p
09:31:26 <V453000> idk, google how to show hidden files? :D
09:31:55 <chillcore> second option on top of file explorer in there
09:32:01 <chillcore> ^^^ MATE here
09:32:13 <chillcore> and dutch
09:32:24 <V453000> apparently ctrl+H works too
09:32:53 <chillcore> third option on top ...
09:33:11 <Maxwell> ctrl+h worked for me to see it
09:33:13 <chillcore> this programmers counting ... we start at 0
09:33:16 <chillcore> cool
09:33:26 <Maxwell> how is mate btw
09:33:27 <chillcore> also section 4.2 of readme ;)
09:33:46 <chillcore> mate is oldshool windoze like ... me likes
09:33:56 <V453000> .
09:34:00 <Maxwell> nice
09:34:05 <chillcore> much lighter then unity
09:34:19 <Maxwell> yeah, unity is quite bulky
09:34:27 <Maxwell> but, I like the interface a lot
09:34:34 <chillcore> huhu none of that in MATE
09:34:47 <Maxwell> loads up fast?
09:35:03 <chillcore> at boot it takes a few seconds but yeah
09:35:20 <chillcore> no complaints here ... never in a rush
09:35:29 <Maxwell> yeah, I miss that about lubuntu
09:35:41 <Maxwell> quick loading times
09:36:04 <Maxwell> unity has almost the same loading time as kde
09:36:22 <chillcore> I don't like the mobile application look
09:36:42 <chillcore> also if you have multiple windows open of the same app
09:36:46 <Maxwell> I can understand that
09:37:02 <chillcore> but whatever rocks their boat ;)
09:37:50 <Maxwell> I am a big fan of gnome except for the huge waste of space at the top of the windows
09:38:15 <Maxwell> I am over ocd about how things look and that bugged me to no end
09:38:21 *** Alberth has joined #openttd
09:38:21 *** ChanServ sets mode: +o Alberth
09:38:35 <Maxwell> so, I just made unity more gnome like
09:39:00 <chillcore> huhu
09:39:07 <supermop> yo
09:39:11 <Maxwell> hello
09:39:29 <chillcore> but I left Ubuntu when that was introduced so things may have changed
09:39:42 <Maxwell> there is one problem with unity and making it gnome like, unity doesn't remember hotcorners
09:39:50 <Alberth> moin
09:39:52 <chillcore> it was way to slow and heavy on the system for me
09:40:04 <chillcore> good morning alberth
09:40:08 <Maxwell> oh, I started using linux after they introduced unity
09:40:50 <chillcore> ok
09:41:07 <Maxwell> so, I don't know what it was really like before that
09:41:16 <Maxwell> I know ubuntu used gnome
09:41:17 <chillcore> you can change desktop but not get rid of unity
09:41:24 <chillcore> it was better for me
09:41:43 <chillcore> try 11.10 or something like that
09:41:55 <Maxwell> I can still get that?!
09:42:01 <chillcore> if whenever you have some time
09:42:04 <chillcore> ofcourse
09:42:21 <chillcore> it should be available that is
09:42:31 <Maxwell> need to find it
09:42:36 <chillcore> but security ... keep it offline
09:42:59 <Maxwell> yeah, it is a bit under supported lol
09:43:06 <chillcore> that
09:44:26 <supermop> i wish they still sold vaios outside of japan
09:44:48 <supermop> my 5 year old computer seems to have met its match working in ue4
09:45:08 <Maxwell> the sony computer?
09:45:50 <supermop> yeah
09:45:59 <supermop> i love mine, and my previous one
09:46:23 <supermop> but it's sort of absurd to use something this old for the work i do
09:46:48 <Maxwell> if it still works then it is good
09:47:02 <Maxwell> it isn't obsolete then
09:47:02 <supermop> works fine
09:47:22 <Maxwell> A computer is only obsolete if it can't do what you want it to do
09:47:28 <supermop> but 8gb ram is not enough really for stuff i want to do now
09:48:05 <supermop> and while that was a lot in a laptop in 2010 it is barely sufficient for modelling and rendering now
09:48:26 <supermop> rendering i don't mind, I can just let it take longer to render
09:48:26 <Alberth> silly programs
09:49:20 <supermop> but if i am running autocad, openttd, a browser, and rhino it's a bit anemic
09:49:23 <Maxwell> 8gb?!
09:49:28 <Maxwell> my computer has 4
09:49:31 <Maxwell> :(
09:49:41 <supermop> add unreal to that mix and it slows down
09:50:12 <supermop> of course people may say i do not need openttd running while i am doing work though....
09:50:49 <Alberth> ha, I'd kill the browser instead :p
09:51:45 <supermop> noooo
09:51:51 <Alberth> probably gives you a lot more memory :)
09:52:04 <Maxwell> lol
09:52:10 <supermop> although often i am consulting information in it
09:52:38 <Alberth> yeah, me too
09:52:43 <supermop> or playing youtube videos or soundcloud podcasts to stave off monotony
09:53:21 <chillcore> max(int, int) is hating me so much ... does not take uints
09:53:42 <Alberth> mostly it hates combinations
09:54:16 <chillcore> there is no max(uint, uint) right?
09:54:31 <chillcore> small function ... lucky me
09:54:37 <Alberth> that should work too
09:54:46 <chillcore> hmm ... ok
09:54:47 <Alberth> but max<uint>(a, b)
09:55:03 <chillcore> ok trying that then
09:55:15 <Alberth> check the type of the arguments, you probably have int uint or the other way around
09:56:23 <supermop> gah computers are so expensive
09:56:34 <chillcore> magic 2 and ceildiv, alberth
09:56:41 <chillcore> tropic forest fix
09:56:46 <Alberth> 2u ?
09:56:56 <supermop> this toshiba would be 1600 usd and im not sure it would be that much better than my vaio
09:57:18 <chillcore> testing
09:57:24 <Alberth> you didn't save any money the last 5 years for a replacement? :)
09:57:38 <supermop> hehe
09:57:59 <supermop> well if you figure a laptop gets replaced every 2.5 years
09:58:13 <supermop> and my last laptops were used for 5 years each,
09:58:23 <Alberth> you can buy 3 now :)
09:58:31 <supermop> I should be able to spend three times as much
09:58:51 <supermop> unfortunately this is somehow not reflected in my bank account
09:58:57 <Maxwell> lol
09:59:33 <Alberth> living too much the good life :)
09:59:43 <supermop> haha
10:00:18 <supermop> or not quite the life of someone who can buy a computer when they need to
10:00:28 <chillcore> :P
10:00:41 <Alberth> yeah, but that's a much less nice option :p
10:00:46 <chillcore> 100 euros get you one that runs faster than todays machines
10:00:55 <chillcore> on 1 core that is
10:01:07 <chillcore> and some machines
10:02:25 <supermop> as of that time, 2.5 years were as a student, 1 year working for a good salary, 1.5 years unemployed, 4 years working for a low salary, and year working freelance for not much at all in a strange country
10:02:56 <supermop> so i'm impressed i was even able to afford the last computer 5 years ago!
10:03:37 <chillcore> I pondered saving up for a top of the line
10:03:49 <chillcore> but then realised it will be outdated soon
10:04:34 <chillcore> so I get top of the line of 5 years ago
10:04:44 <chillcore> me happe for a fraction of the cost
10:04:49 <chillcore> happy*
10:04:59 <supermop> hmm
10:05:23 <supermop> i'd buy a 2014 vaio z - last year that sony made them - if i could get a good deal
10:06:06 <chillcore> next year maybe or find a nut :P
10:07:51 <supermop> amazon.co.jp seems to be obliging!
10:08:26 <chillcore> uint max_desert_height = max<uint>(2, CeilDiv(top_tile, 4));
10:08:29 *** sla_ro|master has joined #openttd
10:08:37 <chillcore> this works ... thank you Albert
10:08:56 <chillcore> s works/compiles ... testing
10:09:15 <Alberth> I think we use uint too much :)
10:09:58 <chillcore> maybe ...
10:11:08 <chillcore> all is good ... aplying rest of patches and testing again
10:11:16 <Alberth> yay
10:12:29 * chillcore tries to sneak in permanent rivers :P
10:12:38 <chillcore> noone will notice maybe
10:13:25 <Alberth> sure, nobody reads irc anyway
10:14:33 <chillcore> XD
10:15:59 <Alberth> for a river, it makes a lot of sense, imho
10:16:48 <Alberth> but it adds a ribbon of problems in the landscape
10:17:06 <Alberth> on the other hand, you can bridge it, so much less worse than antennas
10:17:19 <Alberth> and you can do shipping on it
10:17:35 <chillcore> yes and I was lucky to get the working and clean version when I 'forced' him tro post it before wanting to help more
10:17:38 <chillcore> so sad
10:18:13 <chillcore> I wonder how he will react if it makes trunk wthout the rest ...
10:18:21 <chillcore> hmm worries for later
10:18:29 <chillcore> maybe he will come to his senses
10:18:34 <Alberth> we'd need a saner dock for rivers/canals, I think
10:18:51 <chillcore> huhu
10:19:05 <chillcore> that pier is kinda evil
10:19:31 <chillcore> it is water but it is not
10:19:34 <Alberth> as is having to build a slope next to the canal
10:19:44 <chillcore> oh like that
10:19:52 <chillcore> yes maybe
10:20:10 <chillcore> it could use some foundation magics?
10:20:32 <Alberth> would be nice if you can just make a dock alongside a canal
10:20:40 <chillcore> that too
10:20:55 <chillcore> but that code is not for me ... not yet anyways
10:21:42 <chillcore> just not sure how you'd connect it to road
10:21:56 <Alberth> ?
10:22:05 <chillcore> road goes on slope
10:22:18 <chillcore> like where you put boats in water
10:22:37 <chillcore> but dock surface is one up
10:22:46 <chillcore> and if you raise tile ...
10:23:30 <Alberth> no tile raising imho
10:23:33 <chillcore> in th eother direction you get autoslope so that would work
10:23:35 <chillcore> indeed
10:24:05 <chillcore> auto-foundation
10:24:14 <chillcore> not enough coffee yet ...
10:24:22 <Alberth> just dock graphics
10:24:27 <Alberth> /me gives a coffee
10:25:03 <Alberth> hmm, why do I have 760 newgrfs, where I don't use about 750 of them? :p
10:25:29 <chillcore> hehe I don' want to know how many I have
10:26:01 <chillcore> I currently disabled the old folder for now
10:29:02 <chillcore> scanning for giggles ... was 1016
10:29:08 <chillcore> scanning ...
10:29:31 <chillcore> 2616
10:30:04 <chillcore> and there must be more ... on other HDDs
10:30:14 <chillcore> yay bugpack
10:31:29 <chillcore> anyhoo re-reading changes made one more time
10:31:39 <chillcore> should be good-ish now
10:34:19 <chillcore> <Alberth> just dock graphics <- so how do forklifts get on the dock?
10:34:47 <chillcore> not that they will and realism, but the illusion will be broken?
10:36:08 <Alberth> graphics artists will solve that :)
10:36:25 <chillcore> yeah most likely
10:40:39 <V453000> omg relative and absolute offsets in sprite aligner
10:40:39 <V453000> awesome
10:42:15 <V453000> hmmm
10:42:25 <V453000> regarding the reserved path showing in tunnels/bridges
10:42:33 <V453000> can I replace those sprites ONLY for a certain railtype?
10:42:42 <V453000> ... making PURR
10:42:52 <V453000> reserved path in tunnel shows to me as sprite 1005
10:43:02 <V453000> which is the normal overlay sprite for tracks
10:43:17 <V453000> so I guess if I replace 1005, normal tracks will go bork
10:43:55 <Alberth> chillcore: http://devs.openttd.org/~alberth/river_dock.png
10:44:09 <V453000> flat doq
10:44:12 <V453000> andythenorth would love
10:44:22 <Alberth> yep :)
10:45:58 <chillcore> that would work yes Alberth, I envisioned them like that but on water instead
10:46:10 <chillcore> and sea
10:46:19 <chillcore> looks nice
10:49:45 <Alberth> V453000: juzza made the relative offsets
10:49:55 <V453000> (:
10:52:30 <chillcore> Alberth: them headscratchers you mentioned yesterday, they are needed indeed for other functions to keep working. I'll add moar comments and explain when I have awoken
10:52:33 <V453000> I am more curious about the reserved tracks sprites
10:52:40 <V453000> pm told me once that it is possible to fix
10:52:44 <V453000> but i dont see how :(
10:52:48 <V453000> where is planetmaker anyway
10:52:54 <V453000> running somewhere with a bow or what :D
10:53:09 <Alberth> hiking on an island
10:53:17 <V453000> tis what I said
10:53:18 <chillcore> also if you need those explanations ... anyhoo
10:53:30 <Alberth> although I sort of expect him back soon-ish
10:53:40 <V453000> :)
10:55:33 *** zeknurn has quit IRC
10:55:42 <Alberth> chillcore: no worries, I'll ask for them when needed :)
10:56:15 *** zeknurn has joined #openttd
10:56:29 <chillcore> that is what I meant yes ;)
10:57:11 <chillcore> still adding a few comments
10:57:34 <Alberth> /me starts collecting forms and signatures to file such requests
10:57:44 <supermop> i like the idea to just reuse bits of ogfx dock
10:58:10 *** Pereba has joined #openttd
10:58:19 <Alberth> it was just a quick hack, any graphics artist will be able to better than me :)
10:58:21 <supermop> seems like parts of lock or canal edge would work too without being so tall?
10:58:42 <supermop> i like the idea of doing quick hacks to get things working!
10:58:49 <chillcore> Alberth: haha the pink carbon copy one is for keepers?
10:58:50 <supermop> the perfect is the enemy of the good
10:59:14 <Alberth> chillcore: obviously
10:59:47 <Alberth> supermop: hmm, there isn't any code yet :p
11:00:46 <supermop> well that's a little less perfect but still
11:00:58 <Alberth> a single tile would be enough I think, at least for the game
11:03:08 *** oskari89 has joined #openttd
11:06:15 <supermop> yeah
11:06:30 <supermop> but two or 3 would look nice for ships alongside
11:07:12 <supermop> man fujitsu makes a 'laptop' with 32gb of ram
11:08:32 <supermop> they call it a mobile workstation and it looks as big as a Gutenberg bible
11:13:55 *** Maxwell has quit IRC
11:14:45 *** sla_ro|master has quit IRC
11:15:54 <chillcore> hmm commenting a comment ... must do better
11:17:53 <chillcore> just explaining what happens will have to do I am afraid
11:18:16 *** sla_ro|master has joined #openttd
11:24:17 *** smoke_fumus has quit IRC
11:31:15 *** Pensacola has joined #openttd
11:32:27 <chillcore> and this is not future proof so ... almost rewritten the whole thing now ... :P
11:38:34 <Alberth> patches tend to expand :p
11:38:50 *** oskari892 has joined #openttd
11:45:40 *** oskari89 has quit IRC
11:47:28 <V453000> wondering whether I want to make RAWR rails less fat
11:47:33 <V453000> moar narrow
11:49:30 *** JacobD88 has joined #openttd
11:52:58 <chillcore> hg ... great for quicka and testing but so easy to commit to the worng patch ...
11:53:13 <chillcore> and dirty*
11:53:28 <chillcore> also spelling*
11:56:08 <chillcore> not sure v453000 ... maybe the top a bit more roundish does wonders?
11:56:44 <chillcore> also sleepers a bit wider?
11:57:37 <V453000> nah I will make maglev a bit more fat instead
11:57:37 <chillcore> I feel like they are not enough exposed outside the track ... that may be just me so feel free to ignore
11:57:47 <V453000> hm yeah though
11:58:16 <V453000> joy of doing sleepers by texture ._.
11:58:22 <peter1138> lol, post addressed to "Mr Peter"
11:58:37 <Alberth> haha :)
11:58:38 <peter1138> relatives-who-don't-know-my-surname
11:58:49 <V453000> I took it from a photo of tracks so the sleepers are whatever they just were as in the photo
11:58:52 <chillcore> V453000: sleepers: for the wooden bridge it looks fine
11:59:04 <V453000> they are the same everywhere chillcore :P
11:59:23 <chillcore> ye I figured that much after hitting enter :P
11:59:29 <V453000> XD
11:59:57 <chillcore> hehe mister N.
12:00:58 <peter1138> post that andy sent to me was address to "Peter N" :)
12:03:37 *** oskari892 has quit IRC
12:06:25 *** oskari89 has joined #openttd
12:10:06 *** Pensacola has quit IRC
12:14:27 *** oskari89 has quit IRC
12:14:43 *** Celestar has joined #openttd
12:21:31 *** Celestar has quit IRC
12:32:20 *** roidal_ has joined #openttd
12:37:03 *** roidal has quit IRC
12:47:56 <chillcore> the name of an array of ints can be refered too as an int too right?
12:48:07 <chillcore> or am I being silly now?
12:48:15 *** zeknurn has quit IRC
12:49:29 <Zoidzerg> you mean the array can be used as a pointer to an int?
12:49:58 <chillcore> ah rigth that is what I have read ... got confused a bit
12:50:09 <chillcore> Thank you Zoidzerg
12:52:51 *** Celestar has joined #openttd
12:56:55 *** Zoidzerg has quit IRC
13:00:55 *** Celestar has quit IRC
13:01:54 <Rubidium> chillcore: it's much better to just refer to everything as arrays of bits ;)
13:04:29 <chillcore> hmm ok? ... I am afraid that if you try to explain I will not follow.
13:04:48 <Rubidium> why?
13:05:28 <chillcore> what you just said confuses me already ... books and me needing to read those part
13:06:01 <chillcore> basically I need to fetch the correct arry and pass that to a valu so I can get the lenght of that
13:06:28 <Rubidium> what's a string? An array of characters. What's a character? Effectively an int (usually 8 or 16 bits, but 32 bits occurs as well). What's an int? Just an array of bits, i.e. an array of 8 bits and you got a byte. Although, with bits it's often called a bitmask but that's mostly synonymous to array for bits in any case
13:06:57 <chillcore> hmm ok
13:06:58 <Rubidium> having said that, in C/C++ arrays do not store their own length
13:07:45 <Rubidium> yes, there is the lengthof macro in OpenTTD, but that only works on statically sized arrays in which case the compiler keeps track of its length
13:07:59 <chillcore> my code works but I am trying to make it future proof for if/when arrays do not have the same lenght
13:08:31 <Rubidium> if they are array, and not points, then the lengthof trick might work. Just grep for lengthof in OpenTTD's source
13:08:54 <chillcore> pretty much the last thing (or the thing before that) you commited in tgp.cpp
13:09:01 <Rubidium> however, when they are points or references to arrays with unknown length, the lengthof test will ALWAYS return a length of 1
13:09:02 <chillcore> I know how to getthe lenght
13:09:31 <Rubidium> why can't I type the "er" of pointer?
13:09:42 <chillcore> hehe
13:09:56 <chillcore> but yeah pointers ... I sux at them
13:10:09 <chillcore> I'll have a look as I used them in my other versin
13:10:21 <chillcore> copy pasted and modified
13:11:14 <chillcore> writing it all out is a bad habbit of mine
13:11:32 <chillcore> gonna hit this book after this patch
13:11:34 *** Celestar has joined #openttd
13:12:52 <chillcore> thank you for the explanation Rubidium
13:14:00 <chillcore> I guess I am trying to shortcut too much
13:15:09 <chillcore> ye permissive errors ... pointers alright ... been there before
13:19:14 *** Celestar has quit IRC
13:21:31 <chillcore> silly me is making this too complicated then it should be ...
13:21:35 <chillcore> as per usual
13:22:00 <chillcore> s too/more
13:22:17 <chillcore> revert to working an redo
13:29:54 <chillcore> instead of fetching the correct array and passing it and then getting the lenght of it with an if else
13:30:13 <chillcore> just get the lenght of the correct one with if else
13:31:40 *** Supercheese is now known as Guest301
13:31:45 *** Supercheese has joined #openttd
13:34:16 *** Supercheese has quit IRC
13:34:49 *** Supercheese has joined #openttd
13:35:46 <chillcore> seems to work but untill I have arrays of the same size no way of kowing if it is future proof
13:35:51 <chillcore> it compiles and runs
13:36:17 <chillcore> s same/different hmm
13:36:45 <chillcore> racy mind ... testing and keeping quiet for a bit :P
13:37:51 *** zeknurn has joined #openttd
13:37:56 *** Guest301 has quit IRC
13:40:45 <Alberth> assert equal size of the arrays?
13:41:20 <chillcore> not needed?
13:42:18 <chillcore> if we reached the end of (setting in) array we return 0
13:42:44 <chillcore> it checks for trailing 0 IIRC
13:43:08 <chillcore> that is wat that [max(0, index)] is about
13:44:50 <chillcore> and arrays do not have to have the same lenght ... max_fraquency was already 10 and nr of params 7 without prob
13:44:57 <chillcore> before I started messing with it
13:45:22 <chillcore> Rub*dium did that part
13:45:43 <chillcore> but there was but 1 array when he did it
13:45:52 <chillcore> so no different sizes
13:46:43 <chillcore> as long as nr of params is less then Max_frequency all is good
13:46:50 <chillcore> I could add an assert for that
13:47:16 <chillcore> + or equal
13:47:52 <chillcore> I add that three times just after the arrays ys?
13:48:47 <chillcore> hmm me checks colour usage of small maps terrain height
13:50:22 <chillcore> ofcourse for in 1 array I can not have one setting have 7 params and another 10
13:50:36 <chillcore> that will indeed barf, bt that should be obvious?
13:52:20 *** zeknurn has quit IRC
13:52:49 <Alberth> theoretically it is
13:58:45 *** zeknurn has joined #openttd
13:59:02 *** gelignite has joined #openttd
14:01:05 *** HerzogDeXtEr has joined #openttd
14:05:28 <chillcore> hehe my heightmap colours have their own file ... and someone stole the asserts
14:05:37 <chillcore> checking patchpack code
14:05:44 *** Progman has quit IRC
14:06:10 <Alberth> steal them back :p
14:08:23 *** frosch123 has joined #openttd
14:08:47 <Alberth> o/
14:08:52 <V453000> frog \o/
14:09:12 <chillcore> do I loop over each setting for the re-invenentors of the wheel or just check the first setting?
14:09:30 <chillcore> o/ quack
14:09:43 <frosch123> moin :)
14:10:48 <Alberth> if you assert them as equal, they are equal?
14:11:00 <Alberth> at least, I'd hope so :)
14:11:51 <Alberth> or we are talking about two different subjects :)
14:11:55 <V453000> frosch123: is it possible to replace sprite 1005 and the sloped variant ONLY for some railtype?
14:12:22 <V453000> like, I have PURR replace all of railtypes, but reserved tracks at tunnel entrances and bridge heads show as sprite 1005
14:12:41 <V453000> it it possible to make a sprite which replaces that but doesnt bork the normal rails?
14:12:44 <chillcore> Alberth: I am going to check if the nr of params is not bigger then max frequency ... come to think of it an array has no clue where one setting begins nor ends
14:13:08 <chillcore> the three arrays do not have to be equal at all
14:13:14 <V453000> (sprite 1005 is just a normal straight track overlay)
14:13:48 <chillcore> Alberth: just not bigger then max frequency * nr of settings
14:13:48 <frosch123> aren't all track sprites defined by the railtype grf?
14:14:13 <frosch123> how could you make purr tracks have different colors, if they all use the same sprite?
14:14:16 <V453000> well if those tunnel/bridge reserved track overlay is defined then I dont know how to do it :(
14:14:21 <frosch123> i don't get your question :p
14:14:33 <V453000> purr uses railtypes, normally
14:14:43 <frosch123> reserved track sprites are the same sprites as for junctions
14:14:44 <V453000> but the reserved track sprite on tunnels/bridge heads
14:14:57 <V453000> well not for those two cases
14:15:09 <V453000> I do define junction sprites normally
14:15:16 <V453000> (properly via railtypes)
14:15:23 <V453000> try with PURR :)
14:16:26 <frosch123> ok, made a testgame
14:16:29 <frosch123> looks like a ottd bug :p
14:16:33 <V453000> hm :D
14:16:56 <V453000> okay so I shouldnt worry about it newgrf wise
14:17:22 <V453000> ... 32bpp purr has normal rail within it so there the effect will be less visible :)
14:17:31 <V453000> assuming one uses both purr and rawr
14:17:59 <V453000> but it would still be nice if that was fixed :) should I report it to the flything?
14:18:04 <Alberth> pawurrr
14:18:08 <V453000> XD
14:25:02 <chillcore> assert_compile(lengthof(amplitudes_small) <= MAX_TGP_FREQUENCIES * 4);
14:25:17 <chillcore> another magic nr ...
14:26:05 <Alberth> number of map types has no count?
14:26:27 <chillcore> just 3 in ssetting ini
14:26:28 <Alberth> not sure why you allow < tbh
14:26:40 *** shirish has joined #openttd
14:27:06 <chillcore> because 4 settings is 40 params?
14:27:18 <frosch123> [14:25] <chillcore> another magic nr ... <- just had a similar encounter in rail_cmd.cpp :p
14:27:20 <chillcore> but 36 would be fine
14:27:48 <chillcore> 37 is just a silly programmer
14:28:35 <chillcore> frosch there is really much magic in setting ini
14:28:50 <chillcore> maybe we should replace all the magic there some day?
14:29:12 <V453000> frosch123: should I report it to flyspray?
14:29:30 <frosch123> wait half an hour
14:29:34 <frosch123> that safes me closing it
14:29:35 <V453000> kayz
14:30:31 <chillcore> Alberth: in tgp.cpp 10 != 10 != 10
14:30:43 <chillcore> that is why I am going to do the magic nrs later
14:30:48 <chillcore> too much rrom for error
14:31:12 <Alberth> 0 is not 10, indeed
14:31:20 <chillcore> hehe
14:32:01 <chillcore> logic error in my code?
14:32:23 <Alberth> (10 != 10) != 10 --> false != 10 --> 0 != 10 --> true
14:32:44 <chillcore> oh ok
14:32:48 <chillcore> XD
14:32:57 <Alberth> chaining comparisons is hardly ever useful :)
14:33:15 <chillcore> but yeah even if magic nrs are the same their meaning is not at all
14:33:18 <chillcore> true
14:33:22 <Eddi|zuHause> except in python
14:34:02 <Alberth> it's not generic, is it?
14:34:09 <chillcore> if I replace them with just one constant we are screwed ... bigtime
14:34:12 <chillcore> well I am
14:34:37 <chillcore> and those after me
14:35:37 <frosch123> Is there a reason why the PBS reservation is only drawn on bridge heads?
14:36:23 <chillcore> ther is no bridge ;)
14:36:28 <chillcore> :P
14:37:02 <V453000> :D
14:40:26 *** supermop has quit IRC
14:41:45 <chillcore> haha logic error indeed in my assert
14:41:47 <frosch123> http://devs.openttd.org/~frosch/railtype_pbs.png <- better?
14:42:06 <frosch123> there are a few blue pixels on the SW bridgehead
14:42:08 <V453000> considerably? :D
14:42:10 <frosch123> i have to blame them on V
14:42:20 <V453000> possible :)
14:42:51 <peter1138> Just edit the models...
14:42:56 <frosch123> ah, i need to add some more dirtying
14:43:22 <TrueBrain> what is this blue in the depot?
14:43:35 <peter1138> Coloured track./
14:43:42 <frosch123> the remnants of a blue cat
14:43:49 <frosch123> what was his name again?
14:44:05 <V453000> haters
14:44:06 *** LordAro has quit IRC
14:44:19 <V453000> coloured tracks carry the power of the rainbow and unicorns
14:44:50 *** LordAro has joined #openttd
14:45:35 <frosch123> https://www.youtube.com/watch?feature=player_detailpage&v=89qx4DO1aWM#t=375 <- that one
14:45:40 <chillcore> very nice frosch ... just this little repeating patern on the corners but very nice
14:46:25 *** Jyggalag has joined #openttd
14:46:37 <V453000> xd
14:48:01 <chillcore> you can avoid that if you do three tiles at once and take a cutout ;)
14:48:06 *** LordAro has quit IRC
14:48:14 *** LordAro has joined #openttd
14:48:26 <chillcore> but better then what I would produce so
14:48:49 <chillcore> *end nitpicking*
14:51:59 <V453000> lol frosch123 that is just wtf
14:52:00 *** Sheogorath has quit IRC
14:52:08 <V453000> mostly the explosm stuff is good but this is just wtf :d not even funny
14:52:38 <frosch123> well, it's about cats, or so
14:55:08 *** zeknurn has quit IRC
14:55:26 <Eddi|zuHause> ANYTHING about cats MUST go on the internet!
14:55:49 *** zeknurn has joined #openttd
15:00:47 <DorpsGek> Commit by frosch :: r27207 trunk/src/rail_cmd.cpp (2015-03-28 15:00:39 +0100 )
15:00:48 <DorpsGek> -Codechange: Replace some magic integers with the appropiate symbols.
15:02:27 *** Samu has joined #openttd
15:02:32 <Samu> ho
15:03:31 <DorpsGek> Commit by frosch :: r27208 trunk/src/tunnelbridge_cmd.cpp (2015-03-28 15:03:26 +0100 )
15:03:32 <DorpsGek> -Fix: Draw correct overlay sprites for path reservations on bridges and tunnels.
15:04:03 <Samu> oh nice
15:04:08 <Samu> what about dock?
15:04:12 <DorpsGek> Commit by frosch :: r27209 /trunk/src (3 files) (2015-03-28 15:04:06 +0100 )
15:04:13 <DorpsGek> -Add: Draw path reservation on the whole bridge, not only on the bridge heads.
15:07:07 <chillcore> hmm seems like I sux at asserts too XD
15:08:36 <frosch123> ./configure --disable-assert :)
15:09:07 <V453000> frosch123: awesome :) thanks so much
15:09:21 <chillcore> that wil help yes , just the geting it commited part
15:09:45 <chillcore> "oh look a birdie" ... push
15:11:26 <Samu> i created an assert line code for the first time
15:11:56 <Samu> i understand them now (i think)
15:12:16 <chillcore> me too ... it barfs at me while trying to compile ... so I guess it works but not as planned
15:12:20 <chillcore> o/ samu
15:13:47 <Samu> say, I am trying to set the canal on river flag
15:14:24 <Samu> I am assuming the tile is indeed a canal
15:14:46 <Samu> what if it isn't
15:15:37 <chillcore> hmm mut be something I did (not do) ... ">=" fails "==" too and ">=" just as hard
15:15:40 <Samu> assert line will make sure I am assigning the canal on river flag to the correct tile
15:16:05 <chillcore> the last one "<="
15:16:09 <Samu> correct tile is one which has a waterclass and it is a canal
15:17:06 <Samu> the [14:14] <Samu> what if it isn't was what was confusing me at first
15:17:26 <Samu> because I was always wondering, why wouldn't it be?
15:19:28 *** Jyggalag has quit IRC
15:20:18 <chillcore> the thing is samu when you check something and the code does not agree with you, you change the code untill it does ... whether you are right or wrong does not matter much
15:20:27 <chillcore> ?
15:22:51 <chillcore> and that then escalates further
15:23:28 <chillcore> like changing NewGRF ingame
15:23:49 *** Sheogorath has joined #openttd
15:23:58 <chillcore> it can be months later the probs start showing
15:25:41 <Samu> the problem is not the code agreeing with me
15:25:54 <chillcore> I am not saying in this case ;)
15:26:04 <chillcore> maybe something you did in a lower patch
15:27:23 <Samu> "why wouldn't it be?" question was boggling me, because I know what my function does, I wouldn't use it to assign a canal on river for tiles which do not have a canal
15:27:53 <chillcore> k
15:28:11 <Samu> but others
15:28:20 <Samu> who wish to make use of my function
15:28:29 <Samu> this was what I wasn't thinking
15:29:34 <Samu> when you were saying "the code does not agree with you", it actually means, when "someone sucks at using my function"
15:30:30 <chillcore> I see
15:35:03 <Samu> I suppose I'm too egocentric
15:40:05 <chillcore> if you document your functions right peeps should not use it in the wrong way?
15:40:54 <Samu> yes, i see now why explaining what functions do makes sense
15:41:11 <chillcore> ok
15:41:16 <Samu> it's not because of me, but because of others who want to use it
15:45:38 *** sla_ro|master has quit IRC
15:48:28 *** sla_ro|master has joined #openttd
15:54:30 *** Crusader has joined #openttd
15:55:03 *** Crusader has quit IRC
15:55:30 *** mcp_ has joined #openttd
15:55:36 <chillcore> sorry phone
15:55:53 <chillcore> then you add the proper explanation of what it does samu
15:56:04 <chillcore> and list the params it needs
15:56:17 <chillcore> also what it returns if it returns something
15:56:39 <chillcore> then it is up to the others to rread and learn
15:57:00 *** mcp_ has quit IRC
15:57:31 <chillcore> there is a list of @things on the coding style page
15:57:46 <chillcore> those go above the function
15:58:11 <chillcore> if needed you add more comments inside the function
15:58:23 <chillcore> no idea what else you can do ....
15:58:51 <chillcore> it like these peeps writing books
15:59:03 <chillcore> they do the best they can for the readers to understand
15:59:35 <chillcore> if the future reader does not want to turn cover to begin with ...
15:59:58 <chillcore> no much the writer can do about that
16:00:42 <chillcore> s future/potential
16:02:57 <chillcore> <Samu> say, I am trying to set the canal on river flag
16:02:57 <chillcore> I am assuming the tile is indeed a canal
16:02:57 <chillcore> what if it isn't
16:03:21 <chillcore> this confused me ... you do not assume
16:03:28 <chillcore> it is or it is not
16:04:08 <chillcore> anyhoo
16:11:51 *** Wolf01 has joined #openttd
16:12:19 <Wolf01> o/
16:14:00 <frosch123> ciao
16:26:29 <Alberth> hi
16:32:33 *** JacobD88 has quit IRC
16:33:48 <Samu> hi
16:50:21 *** shirish has quit IRC
16:58:33 *** shirish has joined #openttd
17:01:45 <Samu> how do i report a typo in a document?
17:02:00 <Samu> report it as a bug
17:02:01 <Samu> ?
17:03:37 <chillcore> yes and if you add a patch that fixes just that you get extra e-points. ;)
17:04:23 <Samu> i rather just point to the typo
17:04:27 <chillcore> np
17:04:36 <Eddi|zuHause> you misspelled that, it's called e-penis :p
17:04:49 <Samu> is it really needed to provide a patch?
17:04:55 <chillcore> no ...
17:05:39 <chillcore> Eddi|zuHause: where am I going to put all these e-penisses
17:05:41 <chillcore> ?
17:05:49 <Samu> external? http://hg.openttd.org/openttd/trunk.hg/raw-file/53f10edbd7f1/docs/landscape_grid.html
17:05:58 <Samu> oops, typo is nine
17:06:07 <Samu> it's not six, it's nine
17:06:12 <Eddi|zuHause> in the e-vaginas?
17:07:08 <Samu> no category fits this criteria :(~
17:09:27 <Alberth> just leave it unchanged then
17:09:32 <Samu> the most pointless report, https://bugs.openttd.org/task/6268
17:09:38 <Samu> too late
17:10:43 <chillcore> Eddi|zuHause: do I have to accept the packages as wel? or can I send those back?
17:10:46 <chillcore> :P
17:10:50 * chillcore foods
17:11:02 <Eddi|zuHause> how should i know? :p
17:14:53 <Alberth> Samu: most useless? nah, you point to an actual issue at least. I have seen way more useless ones
17:25:22 *** shirish_ has joined #openttd
17:26:15 *** gelignite has quit IRC
17:27:13 *** shirish has quit IRC
17:31:45 <Samu> bool river = HasTileCanalOnRiver(cur_tile);
17:31:57 <Samu> is this a good name for the function?
17:32:12 <Samu> canal as, waterclass canal in this case
17:32:25 <Samu> not really canal canal
17:35:16 *** shirish__ has joined #openttd
17:36:01 <Samu> :(
17:36:43 <Samu> when shall i mention the word Tile in the name of a function?
17:36:45 *** shirish__ has quit IRC
17:36:55 <Samu> cus sometimes this is confusing
17:37:18 *** shirish_ has quit IRC
17:41:19 *** shirish has joined #openttd
17:41:26 <chillcore> depends the situation samu, namme should describe what funtion does or checks or sets or gets etc.
17:41:47 <chillcore> IsCanalOnRiver() ?
17:42:12 <Samu> There is a IsCanal
17:42:29 <chillcore> coolios
17:42:41 <Samu> it really checks if the tile is really canal, not if the tile has the waterclass canal
17:43:09 <Samu> IsCanalOnRiver could be confusing
17:43:38 <chillcore> yes people might know there is a river under it ... if true
17:44:01 <Samu> there are cases when you build stuff on your canal
17:44:11 <Samu> so, IsCanal is false
17:44:16 <chillcore> and case where canal is not on river too
17:44:28 <chillcore> your choice it was just an axample
17:44:30 <Samu> though the waterclass canal is true
17:45:00 <Samu> build a ship depot on a canal
17:45:23 <Samu> IsCanal is now false
17:45:30 <Samu> it's a shipdepot
17:45:46 <chillcore> ok
17:46:15 <Samu> HasCanalOnRiver or HasTileCanalOnRiver?
17:46:58 <Samu> "tile" in the name or no tile?
17:48:08 <chillcore> no idea really samu
17:48:27 <chillcore> what is it you are checking? that is your answer?
17:48:49 <Samu> return HasTileWaterClass(t) && GetWaterClass(t) == WATER_CLASS_CANAL && GetCanalType(t) == CANAL_AND_RIVER;
17:48:52 <DorpsGek> Commit by alberth :: r27210 trunk/docs/landscape_grid.html (2015-03-28 17:48:46 +0100 )
17:48:53 <DorpsGek> -Doc[FS#6268]: OpenTTD tiles have more attributes nowadays (Samu).
17:49:21 <Samu> GetCanalType is another function I invented lol
17:49:41 <Samu> still unsure about its name as well
17:49:52 <chillcore> ok
17:50:08 <chillcore> also ... above you
17:51:50 <Samu> nice fix
17:51:56 <Samu> ty
17:52:02 <Alberth> yw :)
17:52:06 <Samu> it does nothing!
17:52:19 <Samu> j/k
17:52:54 *** DDR has joined #openttd
17:52:57 <Alberth> false, it points people to the right view on things
17:53:05 <chillcore> true
17:53:25 <Alberth> if you say different things at different places, people get all confused
17:53:41 <Alberth> like having signs to the same destination, but pointing in different directions
17:54:39 *** shirish_ has joined #openttd
17:58:04 *** shirish has quit IRC
17:58:04 *** DDR has quit IRC
17:58:25 *** DDR has joined #openttd
17:58:59 *** shirish has joined #openttd
18:00:00 *** liq3 has quit IRC
18:01:06 *** Seifur has quit IRC
18:01:37 *** shirish__ has joined #openttd
18:06:00 *** shirish_ has quit IRC
18:07:41 *** shirish has quit IRC
18:12:00 <chillcore> my programming is top notch again today ... producing 10 lines an hour or less :P
18:12:26 <chillcore> now I hate assert too ...
18:12:41 <chillcore> not really but yeah
18:13:01 <chillcore> trying that again ...
18:13:39 <Samu> static inline CanalType GetCanalType(TileIndex t)
18:13:52 <Samu> wait, i rather just copy paste my code
18:13:54 <Samu> brb
18:16:17 <Alberth> hmm, I only committed 4 letter change today :p
18:17:07 <Samu> okay, I got this https://paste.openttdcoop.org/pbvghndpa
18:17:25 <Samu> I question about the first one
18:17:37 <Samu> the comment mentions m5, but cannal on river is on m6
18:17:44 <Samu> canal*
18:17:58 <Samu> what can i possibly do?
18:18:09 <Samu> to avoid confusion
18:18:26 *** FLHerne has joined #openttd
18:18:27 <Samu> line 13
18:20:55 <Alberth> add the m number to every line instead
18:21:19 *** Bluelight has joined #openttd
18:21:21 <Alberth> the overall comment is clearly too specific, and needs to be widened in scope
18:21:57 <Alberth> I have no idea what bit layout means though
18:24:29 <Samu> i've checked all the layouts
18:24:50 <Samu> for m5
18:25:19 <Samu> i can't put canal on river at m5 at all
18:26:12 <Samu> lock is using these bits: 000X XXXX
18:26:57 <Samu> ship depot is using these: X000 00XX
18:27:16 *** shirish has joined #openttd
18:27:32 <Samu> then there's station tiles with their docks
18:28:21 <Samu> 0XXX 0XXX
18:28:54 <Samu> lock and dock overlap with each other, but since dock is a station tile and it can't be a lock at the same time, there is no problem
18:29:03 <Samu> lock is a water tile
18:29:16 *** shirish_ has joined #openttd
18:31:04 <Samu> water, canal, rivers, coasts and riverbanks are defined by this 0000 000X
18:31:19 <Samu> X = 0 for canal
18:31:36 <Samu> hmm
18:31:41 <Samu> think im talkign too much
18:32:26 <Samu> X = 0 for canal - the really canal one, not waterclass
18:33:20 *** shirish has quit IRC
18:33:22 <Samu> okay i'll add the m number to every line instead
18:33:50 *** shirish__ has quit IRC
18:38:09 *** shirish_ has quit IRC
18:40:08 <Samu> i found a bug, about rocks on sub-tropic
18:40:26 <Samu> for some rocks the tile is greener
18:40:37 *** shirish has joined #openttd
18:40:38 <Samu> a stronger green than the other rocks
18:40:54 <Samu> 1.5.0-RC1
18:41:17 <chillcore> that bug is known fixed and is now waiting for someone to make sprites
18:41:24 <chillcore> nice find
18:41:57 <chillcore> NewGRF sprites ...
18:42:15 <Samu> uhm,, ok
18:42:16 <chillcore> same happens in other climates
18:42:27 <chillcore> they all use the temerate ones for rock2
18:42:36 <chillcore> remperate*
18:42:47 <chillcore> spelling* :P
18:48:26 <Samu> m5 Length of the 'type' bitfield.
18:48:39 <Samu> Length of the 'type' bitfield of m5?
18:48:44 <Samu> Length of the 'type' bitfield at m5?
18:48:51 <Samu> gah
18:49:50 <Samu> Length of the 'type' bitfield *insert comment about* m5?
18:50:03 <Samu> i dunno how to describe it
18:50:28 <Alberth> 'type' ?
18:50:48 <Samu> type bitfield layout
18:51:12 <Samu> the kind of structure
18:51:28 <Samu> the graphic representation
18:51:30 <Samu> bah
18:51:32 <Alberth> right
18:52:21 <Alberth> Number of bits in m5 for the structure kind
18:52:38 <Alberth> First bit in m5 for the structure kind
18:53:08 <Alberth> 'type' is very ambiguous, almost everything can be seen as 'type', so better avoid that word if possible
18:53:25 <Samu> that was not my comment lol
18:53:30 <Samu> but ok, i can change that
18:54:48 *** Celestar has joined #openttd
18:55:06 *** shirish_ has joined #openttd
18:57:23 *** shirish_ has quit IRC
18:57:27 <Samu> 7654 3210
18:57:52 <Samu> nnnX nnnn
18:58:12 *** shirish_ has joined #openttd
18:58:48 <chillcore> Alberth: organised chaos screenshots: Where do them coloured lines come from?
18:58:56 <Alberth> PURR
18:59:01 <Alberth> ie NUTS
18:59:03 <Samu> Start of the 'type' bitfield is 4, Length of the 'type' bitfield 4.
18:59:06 <chillcore> nice screenies btw.
18:59:23 <chillcore> thanks for he info
18:59:35 <Alberth> great if you're a network builder
18:59:35 <Samu> 7654 <- here's a 4, type bitfield starts here
18:59:53 <chillcore> ye I like me some chaos too but more condensed
19:00:03 <Samu> lenght is 4, so it covers 4, 5, 6 and 7
19:00:46 <Samu> 7654 nnnn = Start of the 'type' bitfield is 4, Length of the 'type' bitfield 4.
19:01:06 <Samu> 7654 nnnn = Start of the 'type' bitfield is 4, Length of the 'type' bitfield covers 7654
19:01:08 *** shirish has quit IRC
19:01:13 <Alberth> chillcore: I play with few industries often, and a lot of water. Maybe I should try some more industries again, one day
19:01:49 <Alberth> I also tried the original world generator again some time ago, gives a totally different build experience :)
19:02:22 <Alberth> Samu: what is the problem?
19:02:30 <Samu> trying to understand the problem
19:02:47 <V453000> XD finishing RAWR might take less time than trying to make NUTS into 32bpp, seeing the 72442 sprites of NUTS XD
19:02:50 *** Celestar has quit IRC
19:03:04 <Alberth> :D
19:03:23 <Samu> 7654
19:03:31 <Samu> 0000 - water, canal or river
19:03:36 <chillcore> yes Alberth it does give a totally different terrain style
19:03:38 <Samu> 0001 - coast or riverbank
19:03:42 <Alberth> too many cargoes :p but very very nice, I agree now, having good cargo graphics is essential
19:03:58 <Samu> 0001 - can also mean lock
19:04:08 <Samu> strange :(
19:04:25 <Samu> 1000 - ship depot
19:05:11 *** shirish has joined #openttd
19:05:16 *** glx has joined #openttd
19:05:16 *** ChanServ sets mode: +v glx
19:06:37 <Samu> ah, i see why it doesn't conflict with the lock
19:07:59 <Samu> i am still confused, what the heck is happening, how can it share the same bit layout?
19:10:31 <Samu> ah, got it, I'm stupid
19:10:52 *** shirish__ has joined #openttd
19:10:52 <Samu> 0001 - is for lock and only lock
19:11:11 *** shirish_ has quit IRC
19:11:27 <Samu> 0000 - is for both water, canal, river, coast or riverbank
19:11:50 <Samu> the coast flag is not at this location
19:12:26 <Samu> 0000 0001 - coast
19:12:40 <Samu> 0000 0000 - water, canal or river
19:13:10 *** Celestar has joined #openttd
19:13:57 <Samu> this means I have 3 bits to check out if they're compatible
19:14:24 <Samu> 0000 abc0 - might be able to use one of these to indicate canal on river, must check the other tiles
19:16:33 *** shirish has quit IRC
19:17:49 <chillcore> hmm my old newgrf folder was disabled too ... 3421 NewGRFs
19:18:17 <chillcore> may have a few doubles ...I bet I can find more ...
19:19:10 *** shirish__ has quit IRC
19:19:25 <Alberth> use a duplicate file finder?
19:19:50 <chillcore> some have the same name but are not the same version
19:19:58 <chillcore> some of the old ones that is
19:20:16 <chillcore> but there is a ton of old OpenGFX verions and Firs
19:20:25 <Alberth> yeah, I mean a program that also checks contents of the file
19:20:34 <chillcore> aha
19:20:42 <chillcore> that may be agood idea yes
19:20:57 <Samu> i hate industry tiles
19:21:01 <Samu> :(
19:21:06 <Samu> they're always in the way
19:21:10 <Samu> ruining compatibility
19:22:40 <Samu> 0x1FF ? woah, they even get 9 bits
19:23:00 <chillcore> 3.5 GB ... 2 data folders + 2 newgrf folders + content download
19:23:28 <chillcore> 27200 openttd versions ... I can play till the end of times :P
19:24:20 <chillcore> yes we should get rid of industries samu
19:24:26 <Alberth> just play the newest one :)
19:24:31 <chillcore> mail too maybe
19:25:04 <Alberth> reading just the last one, bit tricky in my experience :)
19:25:15 <Samu> 512 different tiles for industries, really, are there that many?
19:25:26 *** Bluelight has quit IRC
19:28:43 <Alberth> 64 different industries, with 10 tiles for each industries, 512 isn't even enough
19:29:11 <chillcore> hehe
19:29:27 <Alberth> 8 for each, on average thus
19:30:21 <Alberth> 256 tiles means you can have at most 4 tiles for an industry, on average, quite limiting
19:31:46 <Samu> why not 32 different industries, limited to 8?
19:31:55 <Samu> then again, nevermind, m5 is fully full
19:32:21 <Samu> couldn't use it either way
19:36:18 <chillcore> ... speechless
19:36:54 <chillcore> just ...
19:37:36 <chillcore> am I
19:39:39 <chillcore> I am not sure to laugh or cry about that last comment
19:41:02 <Alberth> do both? :)
19:41:06 <chillcore> hehe
19:45:31 <chillcore> we should revert just to r1 and redo this pile of crap :/
19:45:41 <chillcore> guide us oh great leader
19:48:46 <chillcore> -----------------------
19:48:55 <chillcore> I found my very first game and it runs
19:48:58 <chillcore> yay
19:49:04 <Alberth> :D
19:49:05 <chillcore> taking some screenies
19:50:04 <Eddi|zuHause> my very first TT game got lost when i upgraded to world editor expansion, because it unconditionally overwrote the first savegame with the autosave
19:50:31 <chillcore> ouch
19:50:48 <chillcore> I have disabled autosave long time ago
19:51:11 <Eddi|zuHause> autosave is a very essential feature...
19:51:43 <chillcore> with the idea that when I debug I still have my autosaves, the backup ones
19:51:51 <chillcore> hehe
19:52:02 <chillcore> but yeah
19:54:26 *** oskari89 has joined #openttd
20:00:02 <chillcore> ooh nice I still got oldr versions of it too ... could do a before and after
20:01:52 <chillcore> if when I debug the gridlock
20:02:06 <Eddi|zuHause> oh, and i played the demo a lot before, those dozen or so games also don't exist anymore
20:02:18 <Samu> WATER_TILE_CLEAR -> WATER_CLASS_CANAL -> CANAL_AND_RIVER
20:02:55 <Samu> canal_and_river belongs to a subset of water_class_canal which belonds to a subset of water_tile_clear
20:03:04 <Samu> is this a good link?
20:03:18 <Samu> belongs`*
20:03:24 <Samu> brb
20:03:30 <chillcore> my trains are waiting at the back of one way signals ... now I remember why I stopped playing this game and continued in my patchpack
20:03:44 <chillcore> that means I should have a newer version somewhere
20:04:20 <chillcore> yes Eddi|zuHause sad if you lose games you're fond of
20:04:41 <chillcore> most of my testgames I do not even save
20:04:42 <Samu> adding comments is boring
20:04:44 <Eddi|zuHause> well, that was 20 years ago. i'm over it now :p
20:04:51 <Samu> takes more time than coming up with ideas
20:04:53 <chillcore> XD
20:05:53 <Samu> enum CanalType {
20:06:18 <Samu> give me a better name for this thing, so that I don't re-use the word "type"
20:07:02 <Samu> CANAL_NOT_RIVER = 0,
20:07:13 <Samu> CANAL_AND_RIVER = 1,
20:07:29 <Samu> };
20:07:38 <Samu> that's what goes in there
20:16:33 <Samu> http://www.thesaurus.com/browse/type
20:17:31 *** HerzogDeXtEr1 has joined #openttd
20:17:52 <Alberth> blahblahtype is often fine, as you express it's the type of blahblah explicitly
20:18:09 <Samu> CanalBrand, CanalBreed, CanalCategory, CanalCharacter, CanalDescription, CanalForm,
20:18:29 <Alberth> s/AND/ALSO/ ?
20:19:00 <Alberth> 'NOT' and 'AND' don't look logical together
20:19:25 <Samu> CANAL_NORMAL
20:19:30 <Samu> CANAL_ON_RIVER
20:19:53 <Samu> JUST_A_CANAL
20:20:20 <Samu> canal without a river under it
20:20:28 <Samu> or canal with a river under it
20:20:39 <Alberth> WITH and WITHOUT would work
20:20:43 <Samu> ok, ty
20:21:19 <Alberth> the names themselves are also documentation, they should express how they relate
20:21:47 <Samu> canal not river also implies there's no river, but I see
20:22:08 <Alberth> hmm, busy bee gives me tricky assignments
20:22:27 <Alberth> canal not river was fine, canal and river was the problem
20:22:56 <Alberth> 'not' is not a logical opposite of 'and'
20:23:09 <Alberth> unless you also have 'or'
20:24:05 *** HerzogDeXtEr has quit IRC
20:24:31 <Alberth> /me decides BB is just being stupid
20:29:48 <Samu> CANAL_WITHOUT_RIVER = 0, ///< Without a river under it
20:29:59 <Samu> the word CANAL might be misleading
20:30:08 <Samu> I am refering to the WaterClass Canal
20:30:40 <Samu> WC_CANAL_WITHOUT_RIVER ?
20:31:13 <Samu> WCC_WITHOUT_RIVER
20:33:04 <Samu> okay, I'm putting WCC_ instead of CANAL_
20:33:18 * chillcore posted some aesthetics
20:34:21 <chillcore> I did not say they are good ones. :P
20:34:55 <Samu> WCC = WaterClass Canal
20:35:08 <Samu> not Clear
20:35:34 <Samu> oops sorry, there's no WaterClass Clear, that's a water type
20:36:03 <Samu> Sea, Canal, River, Invalid
20:36:25 <Samu> WCC, WCS, WCR, WCI ohoho
20:36:54 <Samu> alright, WCC:
20:37:21 *** Pereba has quit IRC
20:39:34 <Alberth> nice compact chaos chillcore :)
20:39:52 <chillcore> thank you.
20:40:18 <Alberth> what's with the bridges in the 2nd screenie?
20:40:44 <chillcore> holding area
20:41:05 <chillcore> for when traffic is heavy
20:41:11 <Alberth> I mean, why a bridge?
20:41:38 <Alberth> nothing under it, it seems
20:41:44 <chillcore> no reason at all xD
20:41:55 <chillcore> just looks better then plain track
20:42:06 <Alberth> haha :) indeed
20:42:44 <chillcore> life of a hacker
20:42:54 <chillcore> re-purpose stuffs
20:43:24 <chillcore> to the left is anothe rholding area
20:43:37 <chillcore> I think I had abut 100 trains passing there
20:44:06 <chillcore> but not always all at once
20:44:14 <chillcore> not timetabled that game
20:45:11 <chillcore> the third screenshot is another game
20:45:21 <chillcore> a bit more spaced out
20:45:41 <chillcore> but nowadays I am more organised
20:45:52 <chillcore> sort of
20:46:20 <chillcore> I'll maybe post some more later of my patchpack game
20:46:30 <chillcore> double posting and all that
20:46:56 <chillcore> and I need to installthe correct opengfx still in my local copy
20:47:04 <chillcore> glitches allover the place
20:48:40 <chillcore> hmm I should continue a bit with my patch
20:49:29 <chillcore> just them asserts still (which I do not think I need due tothe way rub*dium coded that part)
20:50:14 <chillcore> it is fine to try and read past the end of the array
20:50:42 <chillcore> that is why there is no comma there
20:50:58 <Samu> CanalStratum?
20:51:00 <chillcore> it catches the trailing 0 and goes from there
20:51:22 <Samu> CanalLayer?
20:51:54 <chillcore> talking about trailing zeros ... an array with 4 arrays in it has 5 traiilng zeroes?
20:52:03 <chillcore> my book is not clear on that ...
20:52:08 <Samu> CanalFoundation?
20:53:57 *** Celestar has left #openttd
20:55:52 <Samu> "Canals and navigations are human-made channels for water. In the vernacular both are referred to as 'canals'. The main difference between them is that a navigation parallels a river and shares its drainage basin, while a canal cuts across a drainage divide."
21:03:37 <Samu> who's a english teacher here?
21:04:34 <Samu> CanalDrainage?
21:05:01 *** JacobD88 has joined #openttd
21:07:49 <Taede> what are you trying to name?
21:08:19 <Taede> different enums?
21:08:32 <Samu> a name for the enum
21:08:59 <Samu> WCC_WITHOUT_RIVER = 0, ///< Without a river under it
21:09:08 <Samu> WCC_WITH_RIVER = 1, ///< With a river under it
21:10:45 <Taede> does it contain just those 2?
21:10:47 <Samu> WCC is short for WaterClass Canal
21:10:48 <Samu> yes
21:10:55 <Taede> CanalBase ?
21:11:11 <Samu> ok, ty, why didn't I think of that
21:11:23 <Samu> seemed so simple, and right to the point
21:11:25 <Taede> because you've been thinking about it too long
21:12:16 <Eddi|zuHause> https://www.youtube.com/watch?v=Xpe5J_udJ-A [german]
21:13:00 *** Pereba has joined #openttd
21:13:42 *** JacobD88 has quit IRC
21:17:35 <chillcore> haha
22:00:32 *** Biolunar has joined #openttd
22:02:24 *** Alberth has left #openttd
22:22:27 <Samu> * @pre IsTileType(t, MP_WATER) || IsTileType(t, MP_STATION) || IsTileType(t, MP_INDUSTRY) || IsTileType(t, MP_OBJECT)
22:22:31 <Samu> what is @ pre?
22:23:00 <Sylf> is that inside a comment?
22:23:09 <Sylf> sounds like a precondition
22:24:05 <Samu> yes, in a comment
22:24:51 <Samu> how many @pre's would I need for this?
22:29:35 *** Biolunar has quit IRC
22:30:35 <chillcore> one for each condition that must be true
22:31:45 <chillcore> and they must not be inside a function or they do not end up in the "documentation of source" zip
22:44:22 <Samu> ok, is this good englisho? * Set the base of the canal to indicate there is a river under a tile.
22:44:31 <Samu> horrible
22:44:46 <Samu> static inline void SetCanalOnRiver(TileIndex t)
22:45:01 <Samu> assert(GetWaterClass(t) == WATER_CLASS_CANAL);
22:45:06 <Samu> SB(_me[t].m6, 0, WBL_RIVER_FLAG, WCC_WITH_RIVER);
22:46:22 <Samu> FlagCanalOnRiver?
22:47:28 <Samu> whatever, i'll ask for help later
22:48:25 *** heffer has quit IRC
22:48:33 *** heffer has joined #openttd
23:03:37 <Samu> here's the difference: https://paste.openttdcoop.org/pfw0tp5rk
23:03:40 <Samu> patch
23:03:46 <Samu> not finished yet, but
23:04:03 <Samu> need some advice about those comments
23:06:21 <Samu> let me paste as a diff
23:06:58 <chillcore> it is good enough to read
23:07:00 <Samu> highlighted there -> https://paste.openttdcoop.org/ptzeplxmx
23:09:37 <Samu> static inline bool IsCanalOnRiver(TileIndex t)
23:09:41 <Samu> lol this is to be deleted
23:10:07 <Samu> it's simply wrong
23:12:07 <Samu> deleted -> https://paste.openttdcoop.org/p7c0fpuuh
23:14:23 *** Pereba has quit IRC
23:15:12 *** Pereba has joined #openttd
23:22:32 <FLHerne> planetmaker: Looks like the latest version of NML on pypi (hence via pip) is still 0.2.4
23:22:55 <FLHerne> Is this intentional, or was this just forgotten at some point?
23:24:20 <frosch123> do you know who put it there in the first place?
23:25:49 <frosch123> lol 143 download of nml via pypi?
23:25:58 <frosch123> in the last week
23:26:41 <frosch123> ah, am*ler is package owner
23:27:16 <frosch123> but well, iirc installation of nml is broken anyway
23:31:28 <Eddi|zuHause> <frosch123> ah, am*ler is package owner <-- that probably means nobody touched it in years
23:31:55 <frosch123> exactly, i wasn't even aware that it is there
23:32:06 <frosch123> though funnily the nml tutorial instructs to install nml via pip :p
23:32:12 <frosch123> completely out of date
23:32:20 <frosch123> but still 143 downloads per week
23:32:39 <frosch123> either the statistics is bonkers, or it's all crawlers :p
23:33:32 <Sylf> "I'm gonna install everything available through pip, I don't care what they are"
23:34:26 <Terkhen> good night
23:35:15 *** sla_ro|master has quit IRC
23:37:25 <FLHerne> Sylf: Well, the semi-official wiki docs do say to do that
23:38:41 <Sylf> Yeah, I'm aware of the tt-wiki.net page, which I ignore myself as far as how to install NML :)
23:39:01 <Sylf> I was thinking more about how that package is getting 100+ downloads per week
23:40:18 <FLHerne> Maybe I should make an AUR package for it instead
23:40:39 <frosch123> yeah, please fix nml packaging :)
23:41:49 <FLHerne> Um, readme for 0.4.0 seems to be confused too
23:42:01 <FLHerne> Wiki: "With NML 0.4 we change some of its foundations, it now is written in python3 and requires python 3.2 or newer."
23:42:15 <FLHerne> Readme: "Minimal version is 2.6. Python 3 is not yet supported."
23:42:28 <Sylf> XD
23:42:28 <frosch123> hehe, wiki is correct here :)
23:42:43 <frosch123> https://dev.openttdcoop.org/issues/7540 <- just attach all your fixes to that task :)
23:46:51 <FLHerne> Oh, and buildout script want PIL 1.1.7, which lacks python3 support
23:47:10 <frosch123> delete it?
23:47:34 <frosch123> we use pillow instead of pil
23:47:43 <frosch123> i guess we can delete that buildout thingie
23:48:57 <FLHerne> Oh, looks like the readme thing is fixed in the latest hg version
23:52:28 <Samu> my own assertions complaining
23:52:33 <Samu> hah, interesting
23:53:04 <Samu> at least they're right
23:53:58 <Samu> i must set the flag AFTER the structure have been placed on a canal
23:54:05 <Samu> not before
23:54:24 <Samu> not that it would make a difference though
23:54:31 <Samu> but whatever
23:55:14 *** roidal_ has quit IRC