Log for #openttd on 21st June 2012:
Times are UTC Toggle Colours
00:05:59  *** Rhamphoryncus [] has quit [Quit: Rhamphoryncus]
00:13:17  *** DorpsGek [~dorpsgek@2001:41d0:2:d1dc:3::10] has quit [Read error: Connection reset by peer]
00:13:23  *** DorpsGek` [~dorpsgek@2001:41d0:2:d1dc:3::10] has joined #openttd
00:13:27  *** mode/#openttd [+o DorpsGek`] by ChanServ
00:15:06  *** DorpsGek` is now known as DorpsGek
00:31:40  *** APTX_ [] has quit [Ping timeout: 480 seconds]
00:35:26  *** roadt [~roadt@] has joined #openttd
00:42:22  *** KouDy [~KouDy@] has quit [Ping timeout: 480 seconds]
00:43:54  *** KritiK [] has quit [Quit: Leaving]
00:49:33  *** Biolunar [] has quit [Quit: All your IRC are belong to us]
00:55:44  *** KouDy [~KouDy@] has joined #openttd
01:02:04  *** Hazzard [] has quit [Ping timeout: 480 seconds]
01:06:18  *** Knogle [knogle@] has quit []
01:11:17  *** glx [glx@2a01:e35:2f59:c7c0:ed83:8616:f208:9f3b] has quit [Quit: bye]
01:29:20  *** roadt [~roadt@] has quit [Ping timeout: 480 seconds]
01:43:58  *** elmz [] has quit [Read error: Connection reset by peer]
01:47:30  *** DorpsGek [~dorpsgek@2001:41d0:2:d1dc:3::10] has quit [Ping timeout: 480 seconds]
01:47:53  *** bb10X [] has joined #openttd
01:48:20  *** roadt [~roadt@] has joined #openttd
01:49:15  *** bb10 [] has quit [Ping timeout: 480 seconds]
01:50:03  *** pjpe [] has quit [Quit: ajax IRC Client]
01:55:00  *** DorpsGek [~dorpsgek@2001:41d0:2:d1dc:3::10] has joined #openttd
01:55:03  *** mode/#openttd [+o DorpsGek] by ChanServ
01:56:26  *** Kylie [] has quit [Quit: Leaving]
01:56:51  *** Kylie [] has joined #openttd
02:05:20  *** APTX [] has joined #openttd
02:50:55  *** pugi [] has quit [Ping timeout: 480 seconds]
03:13:48  *** DDR [] has joined #openttd
04:16:38  *** Djohaal [] has quit [Read error: Connection reset by peer]
04:46:07  *** Eddi|zuHause [] has quit []
04:46:22  *** Eddi|zuHause [] has joined #openttd
05:14:49  *** Prof_Frink [~proffrink@] has quit [Ping timeout: 480 seconds]
06:00:14  *** sla_ro|master [slaco@] has joined #openttd
06:12:09  *** roadt [~roadt@] has quit [Ping timeout: 480 seconds]
06:12:28  *** TGYoshi [~TGYoshi@] has joined #openttd
06:16:27  *** Zaloo [] has joined #openttd
06:19:05  *** roadt [~roadt@] has joined #openttd
06:25:50  <planetmaker> moin
06:27:46  *** Zaloo [] has left #openttd []
06:29:07  <Terkhen> good morning
06:33:42  <NGC3982> morning
06:33:47  <NGC3982> people and hamburgers
06:36:46  *** TWerkhoven[l] [] has joined #openttd
06:44:32  <Terkhen> hamburgers for breakfast?
06:45:47  <NGC3982> and people
06:47:36  <Terkhen> there are less morally questionable options
06:55:36  <NGC3982> soylent burgers!
06:57:17  *** mal2_ [] has joined #openttd
07:00:47  <NGC3982> Orders
07:00:56  <NGC3982> my god.
07:01:12  <NGC3982> did i just paste a huge amount of text, or did my client stop it?
07:03:49  <Terkhen> I dont know if it was supposed to be bigger, but it was big enough to be annoying
07:04:11  <NGC3982> ah, sorry.
07:04:23  <NGC3982> alt+space is for some reason paste in this terminal
07:12:37  *** Elukka [] has joined #openttd
07:18:41  *** Zuu [] has joined #openttd
07:32:11  *** mal2__ [] has joined #openttd
07:36:48  *** mal2 [] has joined #openttd
07:37:09  *** mal2_ [] has quit [Ping timeout: 480 seconds]
07:42:09  *** mal2__ [] has quit [Ping timeout: 480 seconds]
07:48:48  *** DDR [] has quit [Quit: for the love of god this is not safe for work]
07:49:37  *** KouDy1 [~KouDy@] has joined #openttd
07:54:55  <Ammler>  please, please add autodownload of missing bananas grfs :-)
07:55:11  <cornishpasty> B a N a N a S
07:55:38  <Ammler> could be a command switch
07:55:44  *** KouDy [~KouDy@] has quit [Ping timeout: 480 seconds]
07:56:22  *** Zuu [] has quit [Ping timeout: 480 seconds]
07:57:01  *** kkimlabs_ [] has quit [Read error: Connection reset by peer]
07:57:45  *** kkimlabs_ [] has joined #openttd
07:59:43  *** mal2 [] has quit [Ping timeout: 480 seconds]
08:04:49  *** roadt [~roadt@] has quit [Remote host closed the connection]
08:10:34  *** Rhamphoryncus [] has joined #openttd
08:14:27  *** roadt [~roadt@] has joined #openttd
08:47:26  <Ammler> [BUNDLE] Constructing bundle
08:47:27  <Ammler> cp: cannot stat `/home/openttd/svn-publicserver/docs/32bpp.txt': No such file or directory
09:02:46  *** sla_ro|vista [slaco@] has joined #openttd
09:03:40  *** Frank-BTPRO [] has joined #openttd
09:05:17  *** sla_ro|master [slaco@] has quit [Ping timeout: 480 seconds]
09:10:28  *** sla_ro|vista [slaco@] has quit [Read error: Connection reset by peer]
09:10:33  *** sla_ro|master [slaco@] has joined #openttd
09:10:48  *** szaman [] has joined #openttd
09:13:39  *** kamil [] has joined #openttd
09:13:47  <kamil> hi
09:15:22  *** cyph3r [] has joined #openttd
09:15:29  <Frank-BTPRO> Hello
09:15:57  *** FLHerne [] has joined #openttd
09:17:03  <Frank-BTPRO> Hope someone can give me a hand here, if I have the following 2 lines in a function (to create a callback):
09:17:04  <Frank-BTPRO> 		AI::BroadcastNewEvent(new ScriptEventOnHouseDestroyed(_current_company, t->index, hs->population));
09:17:04  <Frank-BTPRO> 		Game::NewEvent(new ScriptEventOnHouseDestroyed(_current_company, t->index, hs->population));
09:17:30  <Frank-BTPRO> how can I pass the last variable: hs->population to src/script/api/script_event_types.hpp
09:17:32  <Frank-BTPRO> ???
09:20:51  *** wouterh [] has joined #openttd
09:20:52  *** pugi [] has joined #openttd
09:25:39  <Terkhen> hi kamil and Frank-BTPRO
09:26:37  <Terkhen> Frank-BTPRO: sorry, I dont know abot scripting :)
09:27:21  *** wouterh is now known as Achilleshiel
09:30:00  <Frank-BTPRO> to bad Terkhen, thanks anyway for your anwer :-)
09:31:40  <Terkhen> you might want to check the revision log for changesets that add callbacks too, that could be a good starting point
09:33:26  <Frank-BTPRO> I did that, and allready spend alot of time trying to figuring it out... so I thought, if I ask here maybe I have an answer right away :-)
09:34:53  <Frank-BTPRO> for example: I studied on revision: 24290
09:35:29  <Frank-BTPRO> which adds a callback, but there is no variable existing allready for any hs-> (which is a house function)
09:36:07  <Terkhen> I see :)
09:36:50  <Frank-BTPRO> anyways, i'm patient and will try again to figure it out myself ;-)
09:36:55  <Frank-BTPRO> thanks Terkhen ;-)
09:36:58  <Frank-BTPRO> much appreciated
09:37:29  <Terkhen> You will have to wait then, none of the persons who know that code in depth seem to be around
09:37:35  <Terkhen> yw
09:37:37  <Frank-BTPRO> no problem :-)
09:37:59  *** guru3_ [] has quit [Ping timeout: 480 seconds]
09:43:06  *** guru3_ [] has joined #openttd
09:46:39  <Frank-BTPRO> BRB
09:46:41  *** Frank-BTPRO [] has quit []
09:50:58  *** peter1138 [] has joined #openttd
09:51:01  *** mode/#openttd [+o peter1138] by ChanServ
09:53:24  *** sla_ro|master [slaco@] has quit [Quit: DANGER is OFFLINE DANGER]
09:54:19  *** guru3_ [] has quit [Ping timeout: 480 seconds]
10:01:43  *** Os [~kvirc@] has joined #openttd
10:10:14  *** Hazzard [] has joined #openttd
10:10:53  *** Biolunar [] has joined #openttd
10:14:12  *** Devroush [] has joined #openttd
10:17:04  *** Frank-BTPRO [] has joined #openttd
10:23:04  <V453000> hi, I have gotten an interesting situation. I have a 2way signal red with eol on, and if I use different (but compatible) railtype, the 2way eol breaks
10:23:12  <V453000> interesting to say the least :)
10:26:44  <planetmaker> what's the interesting thing (I don't get what you try to illustrate)
10:27:20  <V453000> why should 2way eol break
10:27:26  <planetmaker> signals gneerally don't care about railtypes
10:27:26  <V453000> when the tracks are compatible
10:27:38  <planetmaker> track is track for signaling purposes
10:27:45  <planetmaker> or their state
10:27:51  <V453000> that is what I though
10:27:52  <V453000> t
10:27:55  <planetmaker> pathfinding otoh does care
10:27:55  <V453000> why does it break then
10:28:03  <planetmaker> what does "break" mean?
10:28:20  <V453000> obviously, 2way eol works in the former case, but not in the second
10:28:43  <planetmaker> sorry, what's the difference?
10:29:07  <V453000> one piece of rail being mono/universal
10:29:25  <V453000> apparently the piece where train decides where to go
10:30:29  <V453000> both rail types are compatible, trains drive on them without any issues, so change in pathfinding is strange
10:30:44  <planetmaker> speed might be an issue
10:30:52  <V453000> no speed limits
10:31:44  <planetmaker> but ofc also the other track state where trains might be able to go
10:31:45  <V453000> this is the univ rail
10:32:04  <V453000> the other track is the same in both cases
10:32:12  <V453000> the only change is that one piece
10:33:51  <planetmaker> and the train's RT?
10:34:11  <V453000> rt?
10:34:17  <planetmaker> and which RT has which graphics?
10:34:22  <planetmaker> RT = rail type
10:34:44  <V453000> ah, the trains are monorail, shown as monorail, universal rail looks like normal rail
10:35:35  <V453000> just tried, works vice versa too - if I make all tracks universal, with exception of that one decision point
10:36:11  <planetmaker> hm, maybe open a bug report. With savegame and maybe a transcript of this IRC to explain
10:36:27  <V453000> :)
10:36:29  <V453000> alright
10:39:33  <peter1138> maybe it's a penalty thing?
10:40:28  <V453000> cant be, it is 2way eol
10:49:46  <V453000>
10:55:36  <szaman> hi all, some time ago there was a thread active on tt-forums about smooth curves ( anyone knows if something changed till now? any thoughts or progress? :-)
10:59:10  <peter1138> very unlikely
11:00:59  <szaman> well, that's what i excepted, such change would have impact on whole engine and pathfinding algorithms?
11:02:04  <szaman> expected*
11:02:52  <Frank-BTPRO> hello
11:03:31  <Frank-BTPRO> is someone able to help me with a code issue? I have the following in a function of town_cmd.cpp:
11:03:36  <Frank-BTPRO> AI::BroadcastNewEvent(new ScriptEventOnHouseDestroyed(_current_company, t->index, hs->population));
11:03:36  <Frank-BTPRO> Game::NewEvent(new ScriptEventOnHouseDestroyed(_current_company, t->index, hs->population));
11:04:03  <Frank-BTPRO> can someone maybe tell me how I can pass the variable of hs->population to the file: src/script/api/script_event_types.hpp
11:04:05  <Frank-BTPRO> ?
11:05:20  <szaman> i'm not into openttd development but i know some c++ so if i could see the declarations of Game::NewEvent and class of hs then i might help
11:05:37  <FLHerne> szaman: Some guy came up with a hack for it...
11:05:44  * FLHerne looks for the thread
11:05:52  <szaman> ok, good luck :]
11:07:26  <FLHerne> Found it:
11:08:54  <szaman> oh, i meant thread about rounded curves :P
11:08:58  <szaman> oh, u meant thread about rounded curves :P
11:09:02  <Frank-BTPRO> lol
11:09:57  <V453000> the rounded curving of CETS trains is interesting
11:10:06  <V453000> rounded curves would backfire more than do any good imo
11:10:13  <FLHerne> Proper support for rounded curves would be shiny, of course :-)
11:10:19  <Frank-BTPRO> szaman, the game::newevent is build-in into the openttd code to send a event to (I think that's all it does) the NoAI and the No-Go functions
11:11:09  <Frank-BTPRO> you can see how it added an event to the no-go and noai framework in revision: 24290
11:16:32  *** LordAro [] has joined #openttd
11:18:27  <szaman> where is ScriptEventOnHouseDestroyed defined?
11:28:10  <Terkhen> szaman: that's correct, such change would affect most parts of the game, and would also make them more complicated
11:28:18  *** Os [~kvirc@] has quit [Quit: KVIrc 4.0.4 Insomnia]
11:34:31  *** Arendtsen [] has quit [Ping timeout: 480 seconds]
11:35:16  *** Arendtsen [] has joined #openttd
11:52:24  *** Hazzard [] has quit [Quit: Page closed]
12:15:39  *** sla_ro|master [~slaco@] has joined #openttd
12:20:51  <Frank-BTPRO> sorry for my late reply :-)
12:20:54  <Frank-BTPRO> szaman
12:21:08  <Frank-BTPRO> all function are being defined at: src/script/api/script_event_types.hpp
12:34:42  <szaman> whete is no ScriptEventOnHouseDestroyed there
12:34:54  <szaman> ok, i can ceckout repo and find by myself
12:36:45  <szaman> hm, nowhere
12:36:50  <Frank-BTPRO> uhm
12:36:51  <Frank-BTPRO> no
12:36:59  <Frank-BTPRO> I am creating this function myself
12:37:04  <kamil> :)
12:37:05  <Frank-BTPRO> so offcourse it's not there
12:37:06  <szaman> hehe
12:38:03  <Frank-BTPRO> so, basically my question is how to create the function with hs->population
12:38:07  <Frank-BTPRO> lol
12:38:46  <szaman> haha, okay
12:38:50  <Frank-BTPRO> ;-)
12:39:17  <Frank-BTPRO> I can just copy over a function which is allready there offcourse, but no function is using the hs-> functions yet :(
12:39:52  <szaman> if nothing uses it, why it should be there?
12:40:02  <szaman> will you use this by oyrself?
12:40:25  <szaman> later
12:41:06  <Frank-BTPRO> yes, I will use this by myself
12:41:19  <Frank-BTPRO> it's to detect when players are destroying houses in a town
12:41:20  <szaman> this function creates an event of new-defined type
12:41:25  <Frank-BTPRO> and set actions accordingly
12:41:35  <planetmaker> Frank-BTPRO: if it's about a house's population you can go via tile info. It gives you the info about what it produces (though not how much) and about how much it accepts
12:41:46  <planetmaker> iirc that's exposed to AI and GS
12:42:19  <szaman> so Game doesn't know anything about this new type, only that it is an event.
12:42:22  <Frank-BTPRO> planetmaker, i've set the event trigger in town_cmd.cpp in function: void ClearTownHouse(Town *t, TileIndex tile)
12:42:53  <Frank-BTPRO> there is a variable there which states: ChangePopulation(t, -hs->population);
12:43:05  <szaman> when you will later get this event from Game, you will have ScriptEvent or Event only, but not ScriptEventOnHouseDestroyed
12:43:20  <Frank-BTPRO> so basically I thought that if a house is destoyed you can take the number of people in that house from hs->population right?
12:43:27  <szaman> then you must ensure that this is in fact ScriptEventOnHouseDestroyed and cast to this type
12:44:04  <Frank-BTPRO> szaman, did you study on revision: 24290 ?
12:44:05  <szaman> but i don't know the source so i could be wrong
12:44:07  <Frank-BTPRO> from SVN
12:44:09  <Frank-BTPRO> ?
12:44:16  <szaman> yes, i've checked out this revision
12:44:29  <szaman> but not studied it :P
12:44:30  <Frank-BTPRO> in that revision they are doing EXACTLY what I want to do now
12:44:55  <Frank-BTPRO> just create a trigger / event notification that if someone destroyed a house it gives the info which I request
12:45:15  <Frank-BTPRO> which in this case is: ScriptEventOnHouseDestroyed(_current_company, t->index, hs->population))
12:45:27  <szaman> so why you can't do it accordingly?
12:45:29  <Frank-BTPRO> so, current company which is destroying the house, the tile index
12:45:47  <planetmaker> Frank-BTPRO: I rather think the better approach would be to trigger on the Bulldozer command and return which type of tile is being destroyed
12:45:57  <planetmaker> i.e. create a more general event
12:46:01  <Frank-BTPRO> because... I don't know how to specify it in the file: script_event_types.hpp
12:46:04  <Frank-BTPRO> how to define it
12:46:09  <planetmaker> maybe with the GS registering which tiles it wants notifications on
12:46:14  <Frank-BTPRO> (only the hs->population)
12:46:24  <Frank-BTPRO> ^^ planetmaker, yeah :)
12:46:30  <Frank-BTPRO> I can try that indeed...
12:46:31  <szaman> you don't know the type of hs->population property?
12:46:37  <Frank-BTPRO> nope
12:47:07  *** roadt [~roadt@] has quit [Read error: Operation timed out]
12:47:31  <Frank-BTPRO> actually, I don't know how to define it... I will try to give you an example:
12:47:43  <Frank-BTPRO> +/**
12:47:43  <Frank-BTPRO> + * Event Road Reconstruction, indicating that company triggered
12:47:43  <Frank-BTPRO> + * road reconstructions in a town.
12:47:43  <Frank-BTPRO> + * @api ai game
12:47:43  <Frank-BTPRO> + */
12:47:44  <Frank-BTPRO> +class ScriptEventRoadReconstruction : public ScriptEventCompanyTown {
12:47:44  <Frank-BTPRO> +public:
12:47:46  <Frank-BTPRO> +	/**
12:47:46  <Frank-BTPRO> +	 * @param company The company.
12:47:48  <Frank-BTPRO> +	 * @param town The town.
12:47:48  <Frank-BTPRO> +	 */
12:47:49  <planetmaker> don't paste here!
12:47:50  <Frank-BTPRO> +	ScriptEventRoadReconstruction(ScriptCompany::CompanyID company, TownID town) :
12:47:50  <Frank-BTPRO> +		ScriptEventCompanyTown(ET_ROAD_RECONSTRUCTION, company, town)
12:47:52  <Frank-BTPRO> +	{}
12:47:54  <Frank-BTPRO> oh
12:47:55  <Frank-BTPRO> oops
12:47:56  <Frank-BTPRO> sorruy
12:47:58  <Frank-BTPRO> sorry
12:47:59  <planetmaker> use a paste bin
12:48:03  <Frank-BTPRO> right, my bad
12:48:07  <Frank-BTPRO> will do
12:48:39  <planetmaker> like or alike
12:49:07  <szaman> Frank-BTPRO: your ScriptEventOnHouseDestroyed derives from what?
12:49:22  <Frank-BTPRO>
12:49:46  <szaman> heh i;m just looking on that now :]
12:49:47  <Frank-BTPRO> this is an example of a function which is created from src/script/api/script_event_types.hpp
12:50:06  <szaman> do you also derives from ScriptEventCompanyTown ?
12:50:08  <Frank-BTPRO> but this is not my function offcourse :-)
12:50:16  <szaman> it's class, not function :]
12:50:21  <Frank-BTPRO> uhm, no I guess :-S
12:50:29  <Frank-BTPRO> ScriptEventTown
12:50:53  <szaman> if you want to know which company destroys you'd better derive from ScriptEventCompanyTown imho
12:51:11  <Frank-BTPRO> ok...
12:51:21  <szaman> and hs->population is of what type?
12:51:24  <szaman> integer?
12:51:26  <Frank-BTPRO> yes
12:51:33  <szaman> so, wait a minute
12:51:55  <planetmaker> could as well be typedef'ed
12:54:40  <szaman> i don't know the purpose of Convert method so i will ignore this :P
12:56:52  <szaman>
12:57:08  <szaman> and you must add ET_HOUSE_DESTROYED to the eventtype list
12:58:00  <planetmaker> szaman: all the openttd internal stuff needs to be interfaced to the script's VM in order to be accessible. that's - iirc - the purpose of the convert methods
12:58:08  <szaman> and when you acquire this event later, you must cast this to ScriptEventOnHouseDestroyed, i don't know if there are special means for casting events
13:00:12  <szaman> planetmaker: is Convert method used to implement polymorphism for events? i.e. when Frank-BTPRO want his population thingy should he use Convert(event) to acquire event if his new type?
13:00:23  <szaman> if/of
13:00:53  <planetmaker> I'm not sure. I've not looked at that part of the code really
13:01:20  <szaman> ok, well, me neither :P
13:01:29  *** tokai|mdlx [] has joined #openttd
13:04:05  <szaman> Frank-BTPRO: was my paste helpful? if population is typedef'ed you must change 'int' to correct type
13:07:03  *** tokai|noir [] has quit [Ping timeout: 480 seconds]
13:15:28  *** roadt [~roadt@] has joined #openttd
13:23:08  *** KouDy1 [~KouDy@] has quit [Ping timeout: 480 seconds]
13:23:59  <Belugas> hello
13:25:56  <peter1138> <3
13:26:16  <Belugas> sir peter1138 :)
13:26:54  <Belugas> solved your sql problem with the stored proc or you found out why it behaved as such?
13:28:25  <peter1138> yes it did
13:28:40  <peter1138> takes 1s instead of 40s, so good result
13:31:12  <Belugas> nice to know
13:32:01  <Belugas> so i do not have a jealousy anymore about not having global values in SQl server  :)
13:32:16  <Belugas> in Firebird/Interbase, that is
13:34:08  <Frank-BTPRO> i'm sorry guys, had to do something, I am at work ^^^ :-)
13:34:16  <Frank-BTPRO> I will check your paste szaman, thanks
13:34:44  *** mahmoud [] has joined #openttd
13:38:18  *** peter1138 [] has quit [Quit: Ex-Chat]
13:39:56  *** DOUK [] has quit [Ping timeout: 480 seconds]
13:40:24  *** Djohaal [] has joined #openttd
13:51:54  *** glx [glx@2a01:e35:2f59:c7c0:384b:7eec:4812:4683] has joined #openttd
13:51:58  *** mode/#openttd [+v glx] by ChanServ
14:15:42  *** HerzogDeXtEr [~Flex@] has joined #openttd
14:21:46  *** HerzogDeXtEr1 [~Flex@] has quit [Ping timeout: 480 seconds]
14:22:31  <Eddi|zuHause> how well does godwins law apply to threads which are about nazis in the first place?
14:25:50  <Rubidium> yep
14:26:05  <Rubidium> go to jail, do not pass start and you do not get 200 <currency unit>
14:26:13  <Rubidium> oh darn, I'm already in jail ;)
14:30:54  *** GreenFlash1986 [] has joined #openttd
14:31:02  <GreenFlash1986> hi guys
14:31:23  <GreenFlash1986> two questions: how can i change email and password?
14:36:04  <__ln___> imho that's only one question.
14:36:25  <GreenFlash1986> yes, ok, you are right, but you can split it in two ;)
14:38:03  <GreenFlash1986> so can you pls answer me one of them? or maybe two?
14:40:15  <__ln___> i have no idea which email and password you are talking about, and even if i did, i probably wouldn't have an answer.
14:41:13  <GreenFlash1986> öhm.. talking about the email-adresse for the bugs, wiki and all of this stuff, so lets say, the emailaddress of my profile
14:41:20  <GreenFlash1986> and the password
14:44:08  <__ln___> i'm quite sure there's someone else here who knows then answer
14:44:12  <Rubidium> you're probably best off sending an email to for the email address. For the password I'm not sure whether TrueBrain implemented something to change those
14:44:52  <GreenFlash1986> ok, mail will arrive shortly
14:45:39  <Eddi|zuHause> <Rubidium> go to jail, do not pass start and you do not get 200 <currency unit> <-- that was always 4000 in the german monopoly...
14:46:36  <Rubidium> STR :{CURRENCY} SetDParam(0, 200); GetString(buff, str, lastof(buff))
14:46:45  <Rubidium> s/str/STR/
14:56:23  <GreenFlash1986> I will have a cigarette.. maybe TrueBrain will answer later...
15:14:11  *** Frank-BTPRO [] has quit []
15:15:03  *** FLHerne [] has quit [Ping timeout: 480 seconds]
15:21:35  *** Prof_Frink [~proffrink@] has joined #openttd
15:26:22  *** frosch123 [] has joined #openttd
15:39:11  *** FLHerne [] has joined #openttd
15:51:42  *** LordAro [] has quit [Ping timeout: 480 seconds]
15:55:02  *** kais58 [] has quit [Ping timeout: 480 seconds]
15:59:19  *** Progman [] has joined #openttd
16:03:30  *** cyph3r [] has quit [Ping timeout: 480 seconds]
16:12:43  *** Progman_ [] has joined #openttd
16:17:55  *** Progman [] has quit [Ping timeout: 480 seconds]
16:18:02  *** Progman_ is now known as Progman
16:42:01  <frosch123> hmm, nuts has no appropiate vehicle vor livestock
16:42:13  <frosch123> shall i use the flatbed wagon, tanker or universal wagon?
16:44:03  <frosch123> oh, the flatbad wagon refitted to a box van :)
16:44:07  <planetmaker> I recommed the PAX wagon. For monkeys :-P
16:44:35  *** LordAro [] has joined #openttd
16:56:47  *** guru3_ [] has joined #openttd
17:03:27  *** guru3 [] has quit [Ping timeout: 480 seconds]
17:03:35  <Eddi|zuHause> i don't recommend the reverse :p
17:27:30  *** Djohaal [] has quit [Read error: Connection reset by peer]
17:35:28  <CIA-8> OpenTTD: translators * r24350 /trunk/src/lang/vietnamese.txt:
17:35:28  <CIA-8> OpenTTD: -Update from WebTranslator v3.0:
17:35:28  <CIA-8> OpenTTD: vietnamese - 5 changes by nglekhoi
17:40:19  *** Chris_Booth [] has joined #openttd
17:41:37  *** Zuu [] has joined #openttd
17:47:42  *** FLHerne [] has left #openttd []
17:51:10  <NGC3982> you guys are a bit C#-savy, right?
17:55:16  *** cyph3r [] has joined #openttd
18:00:03  <LordAro> depends
18:03:21  <Terkhen> nope
18:07:56  *** TheMask96 [] has quit [Ping timeout: 480 seconds]
18:12:15  *** TheMask96 [] has joined #openttd
18:15:33  *** mal2 [] has joined #openttd
18:18:15  *** Zeknurn [] has quit [Remote host closed the connection]
18:18:56  *** Zeknurn [] has joined #openttd
18:19:40  <Eddi|zuHause> NGC3982: you know what a metaquestion is, right?
18:20:11  <Warod> Can I as a question about metaquestions?
18:25:19  <Zuu> NGC3982: I kind of like the feature in C# than you can make any basic datatype nullable as in a database. Eg you can create a bool that can also be null, giving a tri-state variable :-)
18:26:19  <Zuu> Good if you want to modell 'unknown' as null.
18:26:56  <Zuu> But I have no idea how (in)efficient it is with memory usage.
18:28:02  *** Chris_Booth [] has quit [Ping timeout: 480 seconds]
18:29:04  <Zuu> Does people outside of sweden have holliday this weekend even if you don't dance around a pole and sing about frogs?
18:29:14  <NGC3982> Eddi|zuHause: ..yes?
18:29:34  <NGC3982> Eddi|zuHause: im not asking to ask, im just interested in the thoughts on CE##.
18:30:14  <Eddi|zuHause> Zuu: no clue what you're talking about...
18:30:22  <NGC3982> Zuu: i see. im completely new to programing.
18:30:50  *** kais58 [] has joined #openttd
18:30:50  <NGC3982> im trying to create neat graphs between dialer and local statistics
18:30:51  <Zuu> Eddi|zuHause: regarding C# or dancing around a pole?
18:31:00  <NGC3982> and its bot a treat and pure hell.
18:31:02  <NGC3982> :p
18:31:02  <Eddi|zuHause> Zuu: the latter
18:33:01  <NGC3982> i find it rather amusing that we swedes are so keen on singing that frog anthem
18:33:10  <NGC3982> specially when its a france vs. britain war song.
18:33:28  <Zuu> Eddi|zuHause:
18:34:09  <Eddi|zuHause> ah, right. no, that is not an official holiday
18:34:34  *** Alberth [~hat3@2001:980:272e:1:21a:92ff:fe55:fc8d] has joined #openttd
18:34:37  *** mode/#openttd [+o Alberth] by ChanServ
18:34:49  <NGC3982> its not even a "red day" in sweden.
18:34:52  <NGC3982> (not anymore, at least)
18:35:09  <Alberth> your nick is red, does that count?
18:35:17  *** roadt [~roadt@] has quit [Ping timeout: 480 seconds]
18:35:22  <Eddi|zuHause> and "poles" are usually set up in may (-> )
18:35:30  <frosch123> you guys should more often mix wagons of different lengths within a consist
18:35:36  <frosch123> then you would find more interesting bugs
18:35:40  <NGC3982> Eddi|zuHause: germany and the netherlands?
18:36:06  <Eddi|zuHause> NGC3982: i have nearly no knowledge about anything in the netherlands
18:36:19  <NGC3982> "baumstamm"
18:36:24  <NGC3982> <3
18:36:42  <Alberth> frosch123: opengfx+ has very limited choice in length of wagons :)
18:37:07  <NGC3982> the swedish midsummer festives are a bit odd, and strangely fun to attend
18:38:34  <NGC3982> fermented fish, crayfish, silly hats, frog songs, folk costumes and elderberry liquor
18:39:19  <NGC3982> and the god forsaken songs
18:41:40  <frosch123> hmm, oh, actually there is no bug. the weird behaviour is correct :o
18:42:06  *** DOUK [] has joined #openttd
18:44:24  *** GreenFlash1986 [] has quit [Quit: ChatZilla [Firefox 13.0.1/20120614114901]]
18:46:56  *** mahmoud [] has quit [Ping timeout: 480 seconds]
18:54:47  *** Chris_Booth [] has joined #openttd
19:03:16  *** Chris_Booth [] has quit [Ping timeout: 480 seconds]
19:17:34  *** DDR [] has joined #openttd
19:26:48  *** Os [~Os@] has joined #openttd
19:47:30  *** Os [~Os@] has quit [Ping timeout: 480 seconds]
19:54:14  <planetmaker> 22:03 Alberth: [20:46:39] frosch123: opengfx+ has very limited choice in length of wagons :)  <-- it has 8/8 and 7/8. And most probably very soon also 6/8 and the tenders are 4/8 ;-)
19:54:56  <Alberth> ah, choice is expanding thus ;)
19:55:43  <frosch123> so, i should hurry up with my related features :)
19:55:51  <planetmaker> 7/8 is actually nearly there since the beginning. The turbotrain uses it. And at one time or another one of the maglevs
19:56:17  <planetmaker> s/nearly there/there nearly/
19:56:34  <planetmaker> word order matters there :-)
19:58:07  <Alberth> :)
19:58:52  <NGC3982>
19:59:03  <NGC3982> i still dont understand how i convert string to int. :(
19:59:27  *** cyph3r [] has quit [Quit: Miranda IM! Smaller, Faster, Easier.]
20:00:39  <Zuu> Is there anyone using gvim to edit remote files trough eg scp from windows?
20:01:26  <Rubidium> might Zuu do that?
20:01:47  <Rubidium> NGC3982: my eyes... what have you done?
20:01:47  <planetmaker> is there a difference between vi, vim and gvim? :-)
20:01:52  <NGC3982> Rubidium: nothing, im just editing.
20:01:59  <Rubidium> planetmaker: yes
20:02:00  <NGC3982> Rubidium: and yes, im so (oh so) new to this.
20:02:01  <NGC3982> :D
20:02:02  <frosch123> i am using geany or kate through sshfs from linux to linux or solaris, if that counts
20:02:11  <Zuu> Rubidium: I'm trying, but gvim change ssh:// to ssh:\ before trying to intreprete the file path as an URL and failing there.
20:02:20  <Rubidium> planetmaker: vi, vim = vi improved, gvim = vi improved with mouse
20:02:44  <planetmaker> ah, I see.
20:02:45  <frosch123> planetmaker: vi is 1960, vim is 1990, gvim is 2000 maybe
20:02:58  <planetmaker> I guess I use vim :-)
20:02:58  <frosch123> maybe 1970
20:03:05  <Rubidium> most of the time vi symlinks to vim, but not always...
20:03:18  <planetmaker> on my systems it does
20:03:21  <Zuu> gvim on windows means more colors and easier to set a good font than running vim through putty or a cmd-window.
20:03:22  <Rubidium> I doubt many people really like vi
20:03:25  <Alberth> planetmaker: gvim is so much nicer :)
20:03:44  <Rubidium> if they say they do, they probably like vim and are unaware they're not using the actual vi
20:03:52  <planetmaker> Alberth: I only use vi for a short edit or via ssh. In the latter case... mouse is hardly available
20:04:07  <Eddi|zuHause> NGC3982: i see an sql injection waiting to happen...
20:04:11  <Alberth> no X11 tunneling? :)
20:04:15  <frosch123> i am quite sure i also used the real vi at some point
20:04:35  <planetmaker> Alberth: no, I nearly never do that. Too slow, I think. And... no need really
20:04:35  <Eddi|zuHause> frosch123: on most systems i know, vi is just a symlink to vim
20:04:51  <planetmaker> Eddi|zuHause: is slow ;-)
20:04:53  * Zuu had to use the real vi at a summer job
20:05:03  <NGC3982> Eddi|zuHause: yes
20:05:16  <Rubidium> Zuu: annoying, right?
20:05:20  <Alberth> Eddi|zuHause: try a BSD system :)
20:05:24  <frosch123> Eddi|zuHause: did you try hpux on a machine from 1990?
20:05:28  <planetmaker> Alberth: they also have vim
20:05:29  <NGC3982> Eddi|zuHause: im trying to make the outcome of the two sql questions to an integer, som i can add them together in a cell.
20:05:35  <frosch123> or solaris on a machine from 2000 ?
20:05:36  <Zuu> Rubidium: Yep.
20:05:40  <NGC3982> Eddi|zuHause: and im so, terribly off track.
20:05:45  <Alberth> planetmaker: sure, but I doubt they call ir 'vi'
20:05:55  <Zuu> Especially that you can't use backspace to erase text unless you just wrote it.
20:05:55  <Alberth> *it
20:06:22  <Eddi|zuHause> NGC3982: never ever ever EVER construct an sql command from "string" + variable + "string"
20:06:41  <Rubidium> NGC3982: you should use prepared statements, then you can just request the return values by their proper type
20:06:46  <NGC3982> Eddi|zuHause: i didnt. the guy who created the script did. and how's that? :)
20:06:57  <Rubidium> and... prevent all kinds of crappy injects stuff as well
20:07:13  <NGC3982> Rubidium: as in, creating an initial int from an sql query, and then simply add them together in the box?
20:07:14  <Alberth> NGC3982: fix it :)
20:07:47  <NGC3982> speaking of which, i have no training what so ever in this. im just editing some documents to learn more about it
20:08:03  <NGC3982> so dont blame me for that ..thing.
20:08:04  <NGC3982> :D
20:08:08  <Eddi|zuHause> NGC3982:
20:08:35  <Alberth> NGC3982: in that case, close your eyes now FAST, before you learn wrong things :)
20:08:42  <NGC3982> Alberth: ;)
20:08:45  <Rubidium> yay... I guessed the right xkcd comic ;)
20:09:10  <Eddi|zuHause> NGC3982: you sound like "i have no formal training in handling TNT, i'm just trying to fiddle with this fuse"
20:09:59  <Rubidium> whoever wrote that bit of code doesn't care about concurrency
20:10:38  <Rubidium> would love to see the order and no being off-by-one due to executing it just at the right (or is that wrong?) time
20:11:07  <NGC3982> Eddi|zuHause: this isnt TNT. i cant brake anything.
20:11:14  <NGC3982> break
20:11:15  <NGC3982> broke.
20:11:18  <Eddi|zuHause> NGC3982: i feel it's my duty as a citizen to prevent you from leaving this code out in the public. it's a disaster waiting to happen
20:11:25  <NGC3982> Eddi|zuHause: haha
20:11:30  <Rubidium> and why convert something to string, then to int and then (implicitly) to string again?
20:11:35  <Eddi|zuHause> no, honestly
20:11:59  <NGC3982> Rubidium: since i dont know how to write sql syntax, im trying to take a shortcut.
20:12:04  * NGC3982 waits for the fire.
20:12:19  <NGC3982> Eddi|zuHause: so, what are my options? wait and let a developer do it for me?
20:12:58  <Eddi|zuHause> NGC3982: learn some basic sql, then learn practices how to validate parameters to sql statements
20:13:14  <planetmaker> NGC3982: probably also the approach to quickly try to inform you on proper handling of these requests would work ;-)
20:13:15  <Rubidium> look up SQL injection ;)
20:13:18  <Terkhen> doing it properly and be able to get feedbacks and comment, or hack it until it works and expect anyone else to avoid commenting on a hack :P
20:13:33  <Eddi|zuHause> NGC3982: somewhere inbetween there you'll come across ways for converting database types to programming language types
20:13:56  <NGC3982> Eddi|zuHause: i see.
20:15:14  <NGC3982> planetmaker: ive got nothing better on my hands. experimenting with this can hardly create more problems then just leaving it.
20:16:45  <Eddi|zuHause> on another note, am i the only person finding it weird to use "group by" if you don't use any aggregate functions?
20:18:26  *** Zeknurn [] has quit [Remote host closed the connection]
20:19:08  *** Zeknurn [] has joined #openttd
20:21:17  <Eddi|zuHause> but this clearly is the kind of code quality i'd expect from someone who has "no formal training"
20:21:52  <NGC3982> yes
20:21:55  <NGC3982> well, the thing is
20:22:13  <NGC3982> all of this is made by someone who had to learn C# fast not to go bancrupt
20:22:25  <NGC3982> and then left it to someone like me
20:22:32  <NGC3982> my computer training reaches facebook.
20:22:37  <NGC3982> :,(
20:24:06  <Eddi|zuHause> so who prevents you from going to the nearest university and visiting some courses?
20:24:35  *** Djohaal [] has joined #openttd
20:25:35  <NGC3982> im working full time, and stuff works without my coding (just not as good).
20:25:50  <NGC3982> but yes, i have been thinking about studying it part-time.
20:28:06  *** valhallasw [] has joined #openttd
20:28:56  <Eddi|zuHause> well, you can also get a book
20:32:31  <Eddi|zuHause> by the way, there once was a "nerd pissing contest", where they fought vim vs. emacs, and sed won :)
20:36:04  *** Chris_Booth [] has joined #openttd
20:48:26  <Terkhen> good night
20:49:38  <frosch123> sed is turing complete, not sure about vim and emacs
20:50:00  <frosch123> emacs likely is
20:53:59  <Alberth> it uses lisp, so it should be :)
20:55:09  *** Alberth [~hat3@2001:980:272e:1:21a:92ff:fe55:fc8d] has left #openttd []
21:01:32  *** Stimrol [] has quit [Quit: ZNC -]
21:02:05  * Zuu found the missing glue. "set shellslash" and "let g:netrw_cygwin=1", then ":e scp://user@somehost/some/file" works :-)
21:02:28  <Zuu> (given that cygwin scp is in PATH, which it is)
21:03:07  *** Stimrol [] has joined #openttd
21:03:25  <Zuu> For some reason the putty solution suggested by the vim manual doesn't work for me.
21:06:52  *** valhallasw [] has quit [Quit: leaving]
21:12:03  *** Chris_Booth [] has quit [Quit: ChatZilla [Firefox 14.0/20120612164001]]
21:15:06  * NGC3982 actually fixed it
21:15:33  <NGC3982> simply removing everything and following a new sql syntax (with a small wiki entry to help) i managed to get all of that working with like ten rows of code.
21:15:38  <NGC3982> instead of 236.
21:15:50  <NGC3982> i have yet to understand everything i did, though.
21:16:46  *** kkimlabs_ [] has quit [Ping timeout: 480 seconds]
21:19:40  *** Stimrol [] has quit [Quit: ZNC -]
21:23:06  *** Stimrol [] has joined #openttd
21:23:08  *** TWerkhoven[l] [] has quit [Quit: He who can look into the future, has a brighter future to look into]
21:24:25  *** GurraJG [] has joined #openttd
21:25:10  <frosch123> night
21:25:13  *** frosch123 [] has quit [Remote host closed the connection]
21:26:50  *** GurraJG [] has quit []
21:44:07  *** Progman [] has quit [Remote host closed the connection]
21:44:46  *** DDR [] has quit [Quit: for the love of god this is not safe for work]
21:50:16  *** Kylie_ [] has joined #openttd
21:53:19  *** Kylie_ [] has quit []
21:53:38  *** Kylie_ [] has joined #openttd
21:53:47  *** TGYoshi [~TGYoshi@] has quit [Quit: Popidopidopido]
21:55:46  *** Kylie [] has quit [Ping timeout: 480 seconds]
21:57:59  *** LordAro [] has quit [Ping timeout: 480 seconds]
22:01:46  *** kkimlabs [] has joined #openttd
22:07:22  *** Hazzard [] has joined #openttd
22:17:37  *** brambles [brambles@] has quit [Quit: leaving]
22:17:56  *** brambles [brambles@] has joined #openttd
22:18:02  *** brambles_ [brambles@] has joined #openttd
22:18:46  *** Stimrol [] has quit [Quit: ZNC -]
22:19:35  *** sla_ro|master [~slaco@] has quit [Quit: DANGER is OFFLINE DANGER]
22:26:25  *** cyph3r [] has joined #openttd
22:27:56  *** Stimrol [] has joined #openttd
22:44:45  *** Os [~Os@] has joined #openttd
22:52:30  *** cyph3r [] has quit [Ping timeout: 480 seconds]
22:56:54  *** brambles [brambles@] has quit [Quit: leaving]
23:06:03  *** KingPixaIII [~pixa@] has quit [Read error: Connection reset by peer]
23:06:14  *** Pixa [~pixa@] has joined #openttd
23:10:44  *** PierreW [] has quit [Ping timeout: 480 seconds]
23:14:38  *** pugi [] has quit []
23:19:43  *** guru3 [] has joined #openttd
23:20:26  *** PierreW [] has joined #openttd
23:24:36  *** Os [~Os@] has quit [Ping timeout: 480 seconds]
23:26:08  *** guru3 [] has quit [Remote host closed the connection]
23:40:59  *** Elukka [] has quit []
23:49:21  *** mal2 [] has quit [Ping timeout: 480 seconds]
23:53:26  *** Hazzard [] has quit [Ping timeout: 480 seconds]
23:58:30  *** roadt [~roadt@] has joined #openttd

Powered by YARRSTE version: svn-trunk