IRC logs for #openttd on OFTC at 2013-09-21
            
00:01:47 *** Devroush has quit IRC
00:12:13 *** LordAro has quit IRC
00:21:59 *** Pereba has quit IRC
00:22:32 *** oskari89 has quit IRC
00:29:02 *** Haube has joined #openttd
00:29:14 *** Haube has joined #openttd
00:29:35 *** BuckD has joined #openttd
00:29:37 <BuckD> Learn about the top Google sniper http://7bb194y1y16u1o685klghnfu8u.hop.clickbank.net/
00:29:38 *** BuckD has left #openttd
00:32:04 <Haube> hi, i am looking for an option to start with minimal industry (which is there) and a way to prevent the random found of new industry or to have it limited to a minimal rate, to get an long slow evolving game, did i miss this option anywhere?
00:38:01 <Haube> basically in the generator dialog,. start with industry seed minimal , and from then player only
00:40:44 *** KritiK has quit IRC
00:49:11 <Supercheese> the Manual Industries grf should let you do that with the default industries
00:49:17 <Supercheese> perhaps OGFX+ Industries as well
00:51:25 <Haube> thx i will check it out
00:57:55 *** Japa_ has joined #openttd
01:00:21 *** Japa_ has quit IRC
01:00:51 *** Japa has quit IRC
01:04:41 *** fjb is now known as Guest7318
01:04:42 *** fjb has joined #openttd
01:05:19 *** Japa has joined #openttd
01:11:51 *** Guest7318 has quit IRC
01:54:16 *** glx has quit IRC
02:17:49 *** roboboy has joined #openttd
02:21:17 *** TomyLobo has quit IRC
02:23:37 *** Japa has quit IRC
04:56:01 *** Eddi|zuHause has quit IRC
04:56:16 *** Eddi|zuHause has joined #openttd
04:58:11 *** mindlesstux has quit IRC
06:08:27 *** sla_ro|master has joined #openttd
06:28:13 *** Jomann has joined #openttd
06:54:56 *** HerzogDeXtEr1 has quit IRC
07:18:43 *** zooks has joined #openttd
07:29:47 *** ntoskrnl has joined #openttd
07:45:13 *** Elukka has joined #openttd
07:47:51 *** Zuu has joined #openttd
08:13:42 *** TheDude has joined #openttd
08:31:36 *** Progman has joined #openttd
08:44:15 *** tokai|mdlx has joined #openttd
08:50:01 *** tokai|noir has quit IRC
08:51:13 *** Alberth has joined #openttd
08:51:13 *** ChanServ sets mode: +o Alberth
08:52:10 *** LordAro has joined #openttd
08:57:59 *** HerzogDeXtEr has joined #openttd
09:11:26 *** DDR has quit IRC
09:11:47 *** TomyLobo has joined #openttd
09:12:47 *** FLHerne has joined #openttd
09:21:45 *** Progman_ has joined #openttd
09:22:30 *** Progman_ has joined #openttd
09:23:16 *** FLHerne has left #openttd
09:23:58 *** FLHerne has joined #openttd
09:26:10 *** Progman has quit IRC
09:26:19 *** Progman_ is now known as Progman
09:26:33 *** Wolf01 has joined #openttd
09:26:54 <Wolf01> hello o/
09:27:08 <LordAro> /o
09:27:20 <Alberth> moin
09:27:35 *** oskari89 has joined #openttd
09:30:03 <planetmaker> moin
09:33:26 *** roboboy has quit IRC
09:37:57 *** roadt has quit IRC
09:56:18 *** wakou2 has quit IRC
10:06:30 <DorpsGek> Commit by zuu :: r25787 trunk/src/misc_cmd.cpp (2013-09-21 10:06:23 UTC)
10:06:31 <DorpsGek> -Doc: Doxygen comment was wrong
10:08:11 *** frosch123 has joined #openttd
10:09:31 <LordAro> quak
10:09:44 <frosch123> moin
10:11:17 <Rubidium> ohayou
10:16:43 *** roadt has joined #openttd
10:17:27 <V453000> mu
10:17:44 <Alberth> yo
10:19:21 <LordAro> oy
10:24:15 <AndreasB> yoyoyoy
10:24:24 <AndreasB> any of you scandinavian?
10:28:11 * LordAro points at Zuu (i think)
10:30:04 <Zuu> correct
10:30:19 <LordAro> yay :)
10:31:09 *** zooks has quit IRC
10:37:03 *** Vaulter1 has joined #openttd
10:37:23 *** Vaulter1 has left #openttd
10:37:47 *** Progman has quit IRC
10:42:23 *** Alice3 has joined #openttd
10:55:22 *** FLHerne has quit IRC
11:01:04 *** FLHerne has joined #openttd
11:08:19 *** ntoskrnl has quit IRC
11:19:22 *** roboboy has joined #openttd
11:31:50 *** Supercheese has quit IRC
11:32:20 *** Supercheese has joined #openttd
11:39:34 *** FLHerne has left #openttd
11:55:20 *** montalvo has joined #openttd
12:14:13 <oskari89> AndreasB: I am?
12:35:00 *** mindlesstux has joined #openttd
12:38:24 *** zooks has joined #openttd
12:42:14 *** HerzogDeXtEr has quit IRC
12:44:33 *** zooks has quit IRC
13:02:30 *** Jomann has quit IRC
13:07:48 <DorpsGek> Commit by zuu :: r25788 /trunk/src (9 files in 4 dirs) (2013-09-21 13:07:42 UTC)
13:07:49 <DorpsGek> -Feature: [Script] Game Scripts can now charge fees and give money to companies
13:11:11 *** alluke has joined #openttd
13:21:11 <Zuu> GS: "A new industry will open. You can now bid on getting it located near your HQ."
13:24:40 <Alberth> Like I want that smelly building anywhere near my HQ :D
13:25:08 <matkum> is there any benefit of the hq building
13:25:17 <matkum> so, does it matter, where to establish it
13:32:38 *** Pensacola has joined #openttd
13:32:59 <frosch123> hmm, what's the replacement for the "target" in "<a>" links in html?
13:33:10 <frosch123> specifically to open in new tab/window
13:33:21 <frosch123> apparently "target" is deprecated or so
13:34:37 <frosch123> matkum: it supplies pax and mail, so it makes sense to build it at the very beginning of the game in a town you transport stuff from/to to increase production
13:34:45 <frosch123> it's irrelevant for bigger towns though
13:35:21 <frosch123> so, it's more of an early game bonus or so
13:35:34 <matkum> ah, ok. good to know
13:35:35 <Pinkbeast> matkum: Put it somewhere you will often look to stroke your ego. That's what I do, but then I'm a monstrous egotist.
13:36:43 <matkum> I started from year 1950 and now 1965, having 2 mil euros, so not that bad
13:38:44 <Eddi|zuHause> i only know "<a href="">"
13:38:57 <Eddi|zuHause> when i last coded html, tabs didn't exist yet :)
13:39:24 <Zuu> frosch123: target has been "not recommended" to use for long, but I don't know of a replacement to achive the same (ignoring javascript solutions)
13:40:48 <Zuu> The general recommendation is to let users decide themself if they want a new tab or not. Not to impose it in the html code. However, in some situations depending on the user group it may still be valid to set target=_new.
13:42:45 <matkum> or target=_blank
13:43:54 <Alberth> wiki also uses target <a target="helpwindow" href="/Help:Editing">Editing help</a> (opens in new window)
13:46:03 <frosch123> oh, it was un-depricated :p
13:48:41 <Alberth> :)
13:54:42 *** mouseym has joined #openttd
14:07:03 *** tokai|noir has joined #openttd
14:07:03 *** ChanServ sets mode: +v tokai|noir
14:12:32 *** tokai|mdlx has quit IRC
14:12:56 *** DanMacK has joined #openttd
14:13:43 <DanMacK> @seen andythenorth
14:13:43 <DorpsGek> DanMacK: andythenorth was last seen in #openttd 3 days, 17 hours, 10 minutes, and 44 seconds ago: <andythenorth> have fun with law :)
14:14:19 <Alberth> it's too early :)
14:14:53 <DanMacK> heh
14:16:50 <frosch123> oh my, my html skills..,
14:16:59 <frosch123> i should just let andy fix it
14:19:00 *** Haube has quit IRC
14:26:57 *** smallfly has joined #openttd
14:28:46 *** roadt has quit IRC
14:52:07 *** Pereba has joined #openttd
14:59:55 *** montalvo has quit IRC
15:07:52 * roboboy says gnight
15:09:05 <DorpsGek> Commit by zuu :: r25789 trunk/src/town_cmd.cpp (2013-09-21 15:09:00 UTC)
15:09:06 <DorpsGek> -Fix (r25783): Calling GSTown.FoundTown in world gen caused world gen to terminate and start the game
15:12:59 *** roadt has joined #openttd
15:17:19 *** roboboy has quit IRC
15:28:24 *** retro|cz has quit IRC
15:33:32 *** LordAro has quit IRC
15:33:50 *** LordAro has joined #openttd
15:53:13 *** valhallasw has joined #openttd
16:05:47 *** roadt has quit IRC
16:08:25 *** Devroush has joined #openttd
16:09:15 *** Hendrick has joined #openttd
16:15:46 *** roadt has joined #openttd
16:17:28 <Zuu> GS API question: Should GSStoryPage.NewElement be able to construct all element types or should specialized NewXYZElement methods be added for types where the uint32 parameter is composed by several bit-shifted variables?
16:17:57 <Zuu> With several methods the bit-shifting magic is not exposed to GSes.
16:18:45 <Zuu> A Squirrel side wrapper could create a combined method where a table is used to pass the parameters and dynamically choose the API to call based on the element type.
16:27:38 <frosch123> i don't think bit stuffing should be part of the api
16:27:44 <frosch123> how is it done for orders?
16:28:02 <frosch123> bit stuffing is bad because it cannot be extended
16:28:11 <Zuu> I can't think of any API that require bit stuffing
16:28:20 <frosch123> we cannot change the format, add parameters, move them somewhere else
16:29:09 <frosch123> [18:28] <Zuu> I can't think of any API that require bit stuffing <- hu? that's what you were asking, wasn't it?
16:30:53 <Zuu> I was wondering if bit stuffing should be used when extending an existing API or if a separate method should be added with new parameters (and internaly combine several parameters to p2)
16:31:33 <frosch123> i think the api should provide new functions with more parameters
16:31:56 <frosch123> that way you are free to change the p2 format any time when needed
16:32:58 <Zuu> Good, I'm somewhat towards that idea too. Also that means that the doxygen of one combined method doesn't has to explode. (it is already quite large for just the page element types in trunk)
16:37:21 *** glx has joined #openttd
16:37:21 *** ChanServ sets mode: +v glx
16:39:54 <alluke> aww
16:40:04 <alluke> why was switc climate removed :(
16:42:10 <alluke> good thing i found ottd 1.0.5
16:46:27 <frosch123> aww, why was switch climate added even in the first place :/
16:46:46 <frosch123> good thing we god rid of that nonsense
16:47:43 *** retro|cz has joined #openttd
16:51:32 *** ntoskrnl has joined #openttd
17:00:49 *** gelignite has joined #openttd
17:08:29 *** KritiK has joined #openttd
17:14:31 <DanMacK> Switch climate creates too many issues
17:14:43 <DanMacK> always did
17:39:42 *** Hendrick has quit IRC
17:43:36 *** retro|cz has quit IRC
17:45:25 <DorpsGek> Commit by translators :: r25790 trunk/src/lang/ukrainian.txt (2013-09-21 17:45:18 UTC)
17:45:26 <DorpsGek> -Update from WebTranslator v3.0:
17:45:27 <DorpsGek> ukrainian - 11 changes by odisseus
17:47:14 *** DanMacK has quit IRC
18:00:03 *** DanMacK has joined #openttd
18:02:27 <DanMacK> o/
18:15:27 *** sla_ro|master has quit IRC
18:16:58 *** kais58__ has joined #openttd
18:17:57 *** Japa has joined #openttd
18:18:39 *** kais58_ has quit IRC
18:26:17 *** kais58__ is now known as kais58|AFK
18:26:22 *** kais58|AFK is now known as kais58__
18:29:57 *** Pensacola has quit IRC
18:45:51 *** Japa has quit IRC
18:55:46 <Djohaal> hey Zuu
18:56:05 <Djohaal> derpy question, is the current neighbours are important release incompatible with founding new towns? The script crashes for me
18:57:52 <Zuu> It is supposed to work
18:58:12 <Zuu> So in that case it is a bug
18:59:01 <Djohaal> I'm using a patched version tho
19:00:28 <Supercheese> Well, that may be causing problems, test with clean trunk?
19:00:51 *** sla_ro|master has joined #openttd
19:02:01 *** perk11 has quit IRC
19:02:10 <Zuu> I'm able to reproduce it in clean trunk.
19:02:42 <Zuu> If you read the log you'll see that the script detect the new town and the crash occur due to a bug in the code that handles the new town.
19:03:26 <Djohaal> I'll check
19:04:44 <Djohaal> yup
19:04:47 <Djohaal> crash at addtown function
19:06:49 <Zuu> I've found and fixed it locally already. :-)
19:08:32 <Zuu> Its a mistake in a pice of code that only run when a town is funded in the game. The code adds the new town to the register of all towns in a sector of the map. This is used to speed up the script on large maps, but apparently this bug sneaked in. :-(
19:09:02 <Djohaal> shweet
19:19:41 *** ntoskrnl has quit IRC
19:28:59 *** andythenorth has joined #openttd
19:29:57 <andythenorth> DanMacK: ohai
19:32:32 <Zuu> Djohaal: You can find an update on bananas now with the bug fixed.
19:32:45 <Djohaal> sweet
19:32:45 <Djohaal> thnaks
19:33:20 <DanMacK> Hey Andy
19:35:55 <DorpsGek> Commit by zuu :: r25791 trunk/src/script/api/script_company.cpp (2013-09-21 19:35:49 UTC)
19:35:56 <DorpsGek> -Fix (r25788): Silence comiler warning in ScriptCompany::ChangeBankBalance
19:41:26 *** Alice3 has quit IRC
19:42:28 *** Alice3 has joined #openttd
20:06:14 *** Alberth has left #openttd
20:18:17 *** Progman has joined #openttd
20:31:15 *** DanMacK has quit IRC
21:05:33 *** DDR has joined #openttd
21:06:08 *** sla_ro|master has quit IRC
21:12:08 *** smallfly has quit IRC
21:16:29 <andythenorth> meh
21:16:38 <andythenorth> train flipping is unexpectedly hard
21:17:16 <andythenorth> offsets are borked
21:26:54 <Eddi|zuHause> yes, offsets are not related to the center of the bounding box but the "hidden" corner of the bounding box
21:27:24 *** HerzogDeXtEr has joined #openttd
21:27:25 <Eddi|zuHause> which makes a +-6/+-2 offset variation when flipping direction
21:27:37 <Eddi|zuHause> or something like that
21:27:47 <Eddi|zuHause> might be 7/3
21:30:06 <andythenorth> meh
21:30:19 <andythenorth> I thought it was bad spritesheet layouts, but not
21:30:20 *** Elukka has quit IRC
21:30:21 *** valhalla1w has joined #openttd
21:30:31 <andythenorth> is there some var I have to check for 'flipped'?
21:30:48 <andythenorth> and then fix it myself with a switch to different offsets?
21:30:59 <Eddi|zuHause> yes, there is a var
21:31:06 <Eddi|zuHause> "veh_is_flipped" or something
21:31:23 <andythenorth> vehicle_is_reversed ?
21:31:39 <Eddi|zuHause> there are two different ones
21:31:54 <Eddi|zuHause> one is for vehicles reversing at end of line, and one for flipping in depot
21:32:09 *** valhallasw has quit IRC
21:32:29 <Eddi|zuHause> you probably want the second kind
21:32:43 <andythenorth> hmm
21:32:47 <andythenorth> nfo spec is probably better
21:33:00 <Eddi|zuHause> reversing at end of line is for people who want to switch cab car and engine to drive backwards
21:33:19 <Eddi|zuHause> which you should probably not do :p
21:33:50 <andythenorth> think that's modflags FE bit 8
21:34:21 <andythenorth> reversed sprite is var C8
21:35:25 <andythenorth> nml vehicle_is_reversed is modflags FE bit 8
21:35:31 <Eddi|zuHause> hm, i find only the part where you allow/disallow flipping, not where you read it
21:35:39 *** LordAro has quit IRC
21:35:40 <andythenorth> nml lacks it
21:35:42 <andythenorth> afaict
21:36:43 <andythenorth> hmm
21:36:46 <andythenorth> out of battery :P
21:36:48 <andythenorth> bed time :)
21:36:51 *** andythenorth has quit IRC
21:37:42 <Eddi|zuHause> seems an odd thing that nml doesn't provide this variable
21:52:54 *** Zuu has quit IRC
21:56:33 <planetmaker> Eddi|zuHause, misc_flags: bitmask(TRAIN_FLAG_FLIP)
21:58:30 <planetmaker> hm, as variable though? Hm...
21:58:35 <Eddi|zuHause> planetmaker: that's the property to SET allow flipping, not the variable to read it
22:00:16 <planetmaker> which variable is it?
22:01:34 <Eddi|zuHause> i'd say ask andy... :)
22:02:27 <planetmaker> ah, C8
22:03:00 <planetmaker> wonderful... "FD for trains forward, FE or FF when reversed
22:03:13 <planetmaker> @base 16 2 FD
22:03:13 <DorpsGek> planetmaker: 11111101
22:03:19 <Eddi|zuHause> does that only apply to ctrl+click flipping or also for the second part of a dualhead?
22:03:56 <Eddi|zuHause> so mask only the 2nd bit?
22:04:11 *** Alice3 has quit IRC
22:05:10 <planetmaker> probably...
22:06:41 <Eddi|zuHause> unfortunately, i have no use for this variable, as pretty much all my vehicles are articulated
22:08:07 <planetmaker> I can't answer your question without looking at hte source... which I'm too tired to dig through at this time of the day :-)
22:08:19 <planetmaker> but nevertheless, it could be added... probably should
22:08:33 <planetmaker> hm... though it might have had some reason not to... not sure :-)
22:11:40 <planetmaker> hm... no 0xC8 in newgrf.cpp
22:12:38 <Eddi|zuHause> you have to substract 0x80
22:14:41 *** mouseym has quit IRC
22:14:59 *** Devroush has quit IRC
22:18:49 <planetmaker> I don't think so...
22:19:28 <Eddi|zuHause> i do think so
22:20:47 <Eddi|zuHause> hm, you sure C8 is correct?
22:21:22 <planetmaker> there's no other. other than "train reversed". Which is what NML provides
22:22:01 <planetmaker> which is FE, bit 8
22:23:33 <Eddi|zuHause> oh right, i miscalculated. it's 28, not 38
22:23:35 <Eddi|zuHause> src/newgrf_engine.cpp: case 0x28: return 0; // cur_image is a potential desyncer due to Action1 in static NewGRFs.
22:25:49 *** zooks has joined #openttd
22:26:29 <frosch123> C8 - 80 = 48
22:27:34 <frosch123> return HasBit(Train::From(v)->flags, VRF_REVERSE_DIRECTION) ? 0xFE : 0xFD; <- that's the relevant part
22:27:48 <frosch123> other results only occur if you use original sprites
22:27:50 <Eddi|zuHause> argh
22:28:04 <Eddi|zuHause> i'm clearly unable to calculate in my head
22:28:34 <frosch123> that FD is the same stupid FD you have to assign to property 12
22:30:08 <Eddi|zuHause> yeah i guessed as much
22:43:26 *** valhalla1w has quit IRC
23:01:25 *** jjavaholic has joined #openttd
23:06:18 <Wolf01> 'night
23:06:28 *** Wolf01 has quit IRC
23:13:08 *** TomyLobo has quit IRC
23:14:35 *** alluke has quit IRC
23:18:31 *** kero has joined #openttd
23:31:46 *** roadt has quit IRC
23:32:29 *** zooks has quit IRC
23:43:34 *** Progman has quit IRC
23:52:31 *** frosch123 has quit IRC
23:56:33 *** Japa has joined #openttd