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