Config
Log for #openttd on 11th June 2018:
Times are UTC Toggle Colours
00:18:00  *** iSoSyS has quit IRC
00:38:43  *** Flygon has joined #openttd
00:50:46  *** supermop has quit IRC
00:53:51  *** HerzogDeXtEr1 has quit IRC
01:38:34  *** KouDy has joined #openttd
01:50:00  *** glx has quit IRC
02:46:27  *** planetmaker has quit IRC
02:46:47  *** planetmaker has joined #openttd
02:47:23  *** planetmaker is now known as Guest5168
02:47:49  *** muffindrake2 has joined #openttd
02:49:41  *** muffindrake1 has quit IRC
03:01:54  *** ToffeeYogurtPots has quit IRC
03:02:16  *** ToffeeYogurtPots has joined #openttd
03:23:37  *** KouDy has quit IRC
03:26:54  *** rocky1138 has quit IRC
04:58:07  *** snail_UES_ has quit IRC
06:00:04  *** Pikka has joined #openttd
06:00:59  *** Guest5168 has quit IRC
06:01:35  *** pm has joined #openttd
06:02:13  *** pm is now known as Guest5175
06:07:27  *** mijndert has joined #openttd
06:20:25  *** planetmaker_ has joined #openttd
07:03:22  *** KouDy has joined #openttd
07:20:07  *** Guest5175 has quit IRC
07:20:45  *** planet has joined #openttd
07:21:54  *** Sova has joined #openttd
07:22:44  *** Sova has joined #openttd
07:27:52  *** Fuco has joined #openttd
07:49:36  *** planetmaker_ has quit IRC
07:50:12  *** Thedarkb-X40 has quit IRC
07:57:18  *** mijndert has quit IRC
07:58:31  *** planet has quit IRC
07:58:55  *** planet has joined #openttd
08:03:49  *** planet has quit IRC
08:05:52  *** ToffeeYogurtPots has quit IRC
08:09:36  <V453000> https://blog.factoriomaps.com/factoriommo-clusterio-60k/
08:09:38  <V453000> :)
08:11:24  <LordAro> its*
08:11:33  *** planetmaker has joined #openttd
08:11:53  *** planetmaker is now known as Guest5183
08:12:04  <LordAro> cool tho
08:14:12  *** Guest5183 is now known as planetmaker
08:17:54  *** Fuco has quit IRC
08:17:54  *** Sova has quit IRC
08:17:54  *** tokai|noir has quit IRC
08:17:54  *** TheMask96 has quit IRC
08:17:54  *** luaduck has quit IRC
08:17:54  *** cute[m] has quit IRC
08:17:54  *** vlanik2[m] has quit IRC
08:17:54  *** Terkhen has quit IRC
08:17:54  *** SmatZ has quit IRC
08:17:54  *** Antheus has quit IRC
08:17:54  *** V453000 has quit IRC
08:17:54  *** michi_cc has quit IRC
08:17:54  *** Guest4545 has quit IRC
08:17:54  *** TrueBrain has quit IRC
08:17:54  *** fonsinchen has quit IRC
08:17:54  *** Yexo has quit IRC
08:17:54  *** argoneus has quit IRC
08:17:54  *** jonty-comp has quit IRC
08:17:54  *** m1cr0man has quit IRC
08:17:54  *** Alkel_U3 has quit IRC
08:17:54  *** juzza1 has quit IRC
08:17:54  *** lastmikoi has quit IRC
08:17:54  *** Sheogorath has quit IRC
08:17:54  *** ericnoan has quit IRC
08:17:54  *** KenjiE20 has quit IRC
08:17:54  *** orudge has quit IRC
08:17:54  *** grossing has quit IRC
08:18:37  *** Sova has joined #openttd
08:19:54  *** Fuco has joined #openttd
08:19:54  *** tokai|noir has joined #openttd
08:19:54  *** TheMask96 has joined #openttd
08:19:54  *** luaduck has joined #openttd
08:19:54  *** cute[m] has joined #openttd
08:19:54  *** vlanik2[m] has joined #openttd
08:19:54  *** Terkhen has joined #openttd
08:19:54  *** SmatZ has joined #openttd
08:19:54  *** Antheus has joined #openttd
08:19:54  *** V453000 has joined #openttd
08:19:54  *** Guest4545 has joined #openttd
08:19:54  *** michi_cc has joined #openttd
08:19:54  *** TrueBrain has joined #openttd
08:19:54  *** fonsinchen has joined #openttd
08:19:54  *** Yexo has joined #openttd
08:19:54  *** argoneus has joined #openttd
08:19:54  *** KenjiE20 has joined #openttd
08:19:54  *** lastmikoi has joined #openttd
08:19:54  *** jonty-comp has joined #openttd
08:19:54  *** m1cr0man has joined #openttd
08:19:54  *** ericnoan has joined #openttd
08:19:54  *** Sheogorath has joined #openttd
08:19:54  *** orudge has joined #openttd
08:19:54  *** liquid.oftc.net sets mode: +vooo tokai|noir Terkhen Guest4545 orudge
08:19:54  *** Alkel_U3 has joined #openttd
08:19:54  *** juzza1 has joined #openttd
08:19:54  *** grossing has joined #openttd
08:19:54  *** liquid.oftc.net sets mode: +v orudge
08:20:12  *** ChanServ sets mode: +v Terkhen
08:20:12  *** ChanServ sets mode: +v michi_cc
08:24:15  *** jonty-co1p has joined #openttd
08:25:13  *** Alkel_U3 has quit IRC
08:25:13  *** m1cr0man has quit IRC
08:25:13  *** vlanik2[m] has quit IRC
08:25:13  *** cute[m] has quit IRC
08:25:13  *** Fuco has quit IRC
08:25:13  *** Sheogorath has quit IRC
08:25:13  *** argoneus has quit IRC
08:25:13  *** ericnoan has quit IRC
08:25:13  *** lastmikoi has quit IRC
08:25:13  *** jonty-comp has quit IRC
08:25:13  *** juzza1 has quit IRC
08:25:13  *** TrueBrain has quit IRC
08:25:13  *** michi_cc has quit IRC
08:25:13  *** tokai|noir has quit IRC
08:25:13  *** grossing has quit IRC
08:25:13  *** Terkhen has quit IRC
08:25:13  *** SmatZ has quit IRC
08:25:13  *** fonsinchen has quit IRC
08:25:14  *** Guest4545 has quit IRC
08:25:14  *** Antheus has quit IRC
08:25:14  *** orudge has quit IRC
08:25:14  *** KenjiE20 has quit IRC
08:25:14  *** luaduck has quit IRC
08:25:14  *** Yexo has quit IRC
08:25:14  *** V453000 has quit IRC
08:25:14  *** TheMask96 has quit IRC
08:25:45  *** TrueBrain has joined #openttd
08:26:23  *** V453000 has joined #openttd
08:26:29  *** Fuco has joined #openttd
08:26:29  *** tokai|noir has joined #openttd
08:26:29  *** luaduck has joined #openttd
08:26:29  *** cute[m] has joined #openttd
08:26:29  *** vlanik2[m] has joined #openttd
08:26:29  *** Terkhen has joined #openttd
08:26:29  *** SmatZ has joined #openttd
08:26:29  *** Antheus has joined #openttd
08:26:29  *** Guest4545 has joined #openttd
08:26:29  *** michi_cc has joined #openttd
08:26:30  *** fonsinchen has joined #openttd
08:26:30  *** Yexo has joined #openttd
08:26:30  *** argoneus has joined #openttd
08:26:30  *** KenjiE20 has joined #openttd
08:26:30  *** lastmikoi has joined #openttd
08:26:30  *** m1cr0man has joined #openttd
08:26:30  *** ericnoan has joined #openttd
08:26:30  *** Sheogorath has joined #openttd
08:26:30  *** orudge has joined #openttd
08:26:30  *** liquid.oftc.net sets mode: +vooo tokai|noir Terkhen Guest4545 orudge
08:26:30  *** Alkel_U3 has joined #openttd
08:26:30  *** juzza1 has joined #openttd
08:26:30  *** grossing has joined #openttd
08:26:30  *** liquid.oftc.net sets mode: +v orudge
08:26:44  *** ChanServ sets mode: +v Terkhen
08:26:44  *** ChanServ sets mode: +v michi_cc
08:31:35  *** TheMask96 has joined #openttd
08:31:35  *** ericnoan has quit IRC
08:32:22  *** lastmikoi has quit IRC
08:32:33  *** TheMask96 has quit IRC
08:32:33  *** Alkel_U3 has quit IRC
08:32:33  *** m1cr0man has quit IRC
08:32:33  *** vlanik2[m] has quit IRC
08:32:33  *** cute[m] has quit IRC
08:32:33  *** Fuco has quit IRC
08:32:33  *** Sheogorath has quit IRC
08:32:33  *** argoneus has quit IRC
08:32:33  *** juzza1 has quit IRC
08:32:33  *** michi_cc has quit IRC
08:32:33  *** tokai|noir has quit IRC
08:32:33  *** grossing has quit IRC
08:32:33  *** Terkhen has quit IRC
08:32:33  *** SmatZ has quit IRC
08:32:33  *** fonsinchen has quit IRC
08:32:33  *** Guest4545 has quit IRC
08:32:33  *** Antheus has quit IRC
08:32:33  *** orudge has quit IRC
08:32:33  *** KenjiE20 has quit IRC
08:32:33  *** luaduck has quit IRC
08:32:33  *** Yexo has quit IRC
08:33:31  *** lastmikoi has joined #openttd
08:33:43  *** tokai has joined #openttd
08:33:43  *** ChanServ sets mode: +v tokai
08:33:55  *** TheMask96 has joined #openttd
08:33:55  *** Fuco has joined #openttd
08:33:55  *** tokai|noir has joined #openttd
08:33:55  *** luaduck has joined #openttd
08:33:55  *** cute[m] has joined #openttd
08:33:55  *** vlanik2[m] has joined #openttd
08:33:55  *** Terkhen has joined #openttd
08:33:55  *** SmatZ has joined #openttd
08:33:55  *** Antheus has joined #openttd
08:33:55  *** Guest4545 has joined #openttd
08:33:55  *** michi_cc has joined #openttd
08:33:55  *** fonsinchen has joined #openttd
08:33:55  *** Yexo has joined #openttd
08:33:55  *** argoneus has joined #openttd
08:33:55  *** KenjiE20 has joined #openttd
08:33:55  *** m1cr0man has joined #openttd
08:33:55  *** Sheogorath has joined #openttd
08:33:55  *** orudge has joined #openttd
08:33:55  *** liquid.oftc.net sets mode: +vooo tokai|noir Terkhen Guest4545 orudge
08:33:55  *** Alkel_U3 has joined #openttd
08:33:55  *** juzza1 has joined #openttd
08:33:55  *** grossing has joined #openttd
08:33:55  *** liquid.oftc.net sets mode: +v orudge
08:34:09  *** ChanServ sets mode: +v Terkhen
08:34:09  *** ChanServ sets mode: +v michi_cc
08:35:32  *** tokai|noir has quit IRC
08:37:13  *** argoneus_ has joined #openttd
08:37:15  *** argoneus has quit IRC
08:38:29  *** ericnoan has joined #openttd
08:39:17  *** Fuco has quit IRC
08:40:35  *** TheMask96- has joined #openttd
08:42:33  *** TheMask96 has quit IRC
09:12:58  *** chomwitt has joined #openttd
09:17:57  <Pikka> oops
09:17:59  *** Pikka has quit IRC
10:02:02  *** Wacko1976 has joined #openttd
10:22:20  *** Wacko1976 has quit IRC
10:32:44  *** Thedarkb-X40 has joined #openttd
10:33:06  *** Sova has quit IRC
10:49:19  *** Sova has joined #openttd
10:51:38  *** ANIKHTOS has joined #openttd
10:51:57  <ANIKHTOS> hello to all
12:33:50  *** supermop has joined #openttd
12:43:25  *** Sova has quit IRC
12:43:49  *** supermop has quit IRC
12:47:53  *** ToBeFree has joined #openttd
12:50:25  *** snail_UES_ has joined #openttd
13:10:32  *** snail_UES_ has quit IRC
13:10:35  *** ToBeFree has quit IRC
13:21:01  <supermop_work> yo
13:26:07  *** Thedarkb has joined #openttd
13:26:31  *** mijndert has joined #openttd
13:41:53  *** nielsm has joined #openttd
13:43:43  *** Thedarkb-X40 has quit IRC
13:48:45  *** Lejving__ has quit IRC
13:50:00  *** Lejving has joined #openttd
14:01:13  *** sla_ro|master has joined #openttd
14:17:30  *** Wacko1976 has joined #openttd
14:37:47  *** Wacko1976 has quit IRC
14:55:03  *** synchris has joined #openttd
15:00:33  *** muffindrake2 has quit IRC
15:02:45  *** muffindrake has joined #openttd
15:03:23  *** Wacko1976 has joined #openttd
15:09:05  *** mijndert has quit IRC
15:15:32  *** Wacko1976 has quit IRC
15:32:27  *** Thedarkb has quit IRC
15:34:23  *** Thedarkb has joined #openttd
15:35:37  <ANIKHTOS> lets say i have 3 variables a,b c and i make a switch function a+b+c=0; a+b=0 ; a=0l a not 0 how c++ will handle this switch?? when all a=b=c=0 what will happen ? execute 1 part of code or 3 parts??
15:43:39  <FLHerne> ANIKHTOS: Switch cases can only be constant expressions, so you can't do that
15:44:37  <ANIKHTOS> s- a+b=C-o is nto consider a constant??
15:45:21  <ANIKHTOS> a+b+c=0
15:45:52  <Eddi|zuHause> the first thing you should learn is that = is not the operator for comparison. == is
15:46:23  <nielsm> yes, in C and C++, a single = means "assign to the thing on the left" (change the value)
15:46:42  <nielsm> a double == means "compare the two sides for equality"
15:48:59  *** HerzogDeXtEr has joined #openttd
15:49:43  <LordAro> maybe you ahould start with functional programming :p
15:49:58  <ANIKHTOS> can i have a switch with a+b+c==0, a+b==0  a==0 a not 0???
15:50:12  <ANIKHTOS> can i ahve this switch or it is nor possible??
15:50:37  <LordAro> i think we need a bit more information about what you're trying to achieve
15:51:00  <ANIKHTOS> there will be 3 coutners that will reset
15:51:03  <LordAro> what code do you have so far? (put it on pastebin.com or whereever)
15:51:14  <ANIKHTOS> and when the coutner reach 0 i want a code to run
15:51:44  <ANIKHTOS> but dependign if i have 1 at 0 2 at 0 or 3 at zero i want diferent outcome and oen case none is zero
15:53:48  <ANIKHTOS> i can do it with a nested if else function
15:54:55  <nielsm> yes you have to make a series of "if ... else if ... else ..."
15:55:06  <nielsm> I think you said you have worked with visual basic before, right?
15:55:51  <nielsm> I remember that you can do "select case 0 of    when a+b+c    when a+b  ..." or something like that
15:55:58  <nielsm> that's not possible in c++
15:56:18  <nielsm> you can make the same logic but you have to express it with an if/else chain
15:57:06  *** TheMask96- has quit IRC
15:57:27  <ANIKHTOS> well okey i can make the constant a+b+c then  cases 0, c a+b other
15:57:32  <ANIKHTOS> can i do this ??
15:57:52  <ANIKHTOS> it will check the sum of a,b,c to 4 cases
15:58:40  *** TheMask96 has joined #openttd
15:58:49  *** planetmaker_ has joined #openttd
16:00:53  <ANIKHTOS> okey general in c++ in swittch if more than 1 brach is true what c++ do execute all that matches or only the first that is true and then leave the switch ??
16:01:30  <nielsm> C++ switches should be thought of as jump tables
16:02:13  <nielsm> it jumps to the case label that has the value the switch expression is calculated to
16:02:24  <nielsm> (or the default case if none matches)
16:02:46  <LordAro> ANIKHTOS: https://www.tutorialspoint.com/cplusplus/index.htm start here, come back when you've read everything :)
16:03:18  <ANIKHTOS> thanks lorara
16:03:24  <ANIKHTOS> i am reading some sites
16:03:39  <ANIKHTOS> and i am tryign to figuere out the diferences between c and visual basic
16:03:49  *** Gja has joined #openttd
16:04:41  <LordAro> actually, that link is terrible, try this one: http://www.cplusplus.com/doc/tutorial/
16:04:58  <LordAro> (switches are under "Control Structures")
16:10:15  <ANIKHTOS> thats what i am reading lord ara
16:10:24  <ANIKHTOS> the secodn link you send is what i read
16:10:53  <Eddi|zuHause> whatever you think a switch does in C++, it does something completely different from what you think
16:11:43  <LANJesus> i imagine a switch in C++ does roughly the same thing as it does in C
16:11:46  <LANJesus> basically a jump table
16:12:28  <Eddi|zuHause> and for what you are trying to do, a switch is (probably) not your solution
16:13:05  <LANJesus> if elseif chains are fun
16:13:26  <ANIKHTOS> they are fun but i always forget co lose 1
16:13:37  <ANIKHTOS> and in the end it take me so many horus to figure out which one is nto closed
16:14:35  *** Thedarkb has quit IRC
16:15:08  <planetmaker_> o/
16:15:22  <planetmaker_> ANIKHTOS, that might be MUCH easier with the proper editor :)
16:17:15  <ANIKHTOS> well i mange to *#%* even the editor because i copy paste lots of code to spead up the writing and ljust add the difference  so some time i delete a brancket and all hell break loose
16:19:28  <ANIKHTOS> is tthere anywhere a reference how heavy is each function to be run?? for optimizign the code and make it lighter to run??
16:20:28  <nielsm> not something general that I know of
16:20:48  <nielsm> division is very slow, multiplication is somewhat slow, addition and subtraction is fast
16:21:02  <nielsm> string operations are somewhat slow
16:21:08  <ANIKHTOS> thanks a lot nielsen that helps  alot
16:21:09  <nielsm> but what really matters is your algorithms
16:22:17  <nielsm> allocating memory can be slow but it depends on the specific circumstances, and OTTD has several cases of custom allocators and pools that change this around
16:22:19  <LordAro> rule 0: don't try to optimise until you need to
16:22:28  <nielsm> yeah ^^
16:22:34  <nielsm> make it work, then make it fast
16:22:36  <LordAro> (rule -1: plan ahead so you don't need to ;) )
16:22:56  <ANIKHTOS> well once i wrote a code make a test scenario and the computer crahed lol
16:23:09  <ANIKHTOS> the code was workign fine but it took so much powerrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr to execute
16:23:58  <ANIKHTOS> i throw the code out the window re write ti  and th enew code was actuall  usable
16:23:59  <LordAro> i'd suggest that the code was not working fine :p
16:24:12  <ANIKHTOS> it worked fine
16:24:20  <nielsm> if it crashes you're doing something wrong
16:24:25  <ANIKHTOS> it was in a database
16:24:28  <nielsm> possibly trying to allocate more memory than possible
16:24:31  <ANIKHTOS> when datebase was msall all good
16:24:39  <ANIKHTOS> when i make database huge for test it crashed
16:25:03  <ANIKHTOS> okey it was 100% cpu power for  ever to finish
16:25:07  <LordAro> ANIKHTOS: do try to watch your spelling, it's getting a bit hard to read
16:25:10  <ANIKHTOS> i close the database manual
16:30:20  *** Wacko1976 has joined #openttd
17:06:31  *** Wormnest has joined #openttd
17:08:31  *** Flygon has quit IRC
17:16:00  *** Progman has joined #openttd
17:28:28  *** Wolf01 has joined #openttd
17:29:05  <Wolf01> o/
17:34:17  *** Thedarkb has joined #openttd
17:47:36  *** supermop_work_ has joined #openttd
17:47:56  *** frosch123 has joined #openttd
17:49:36  <Wolf01> Quak
17:51:18  *** ToffeeYogurtPots has joined #openttd
17:52:42  <frosch123> moo
17:53:24  *** supermop_work has quit IRC
17:56:00  *** Wacko1976 has quit IRC
18:27:11  *** Fuco has joined #openttd
18:29:35  <Wolf01> https://www.tt-forums.net/viewtopic.php?f=29&t=83359 really?
18:30:03  <Wolf01> Eddi|zuHause: go and post "state machine" :P
18:37:27  *** Supercheese has joined #openttd
18:57:17  *** glx has joined #openttd
18:57:17  *** ChanServ sets mode: +v glx
19:03:37  *** gelignite has joined #openttd
19:05:18  *** Wacko1976 has joined #openttd
19:26:58  *** Wacko1976_ has joined #openttd
19:31:06  *** tokai|noir has joined #openttd
19:31:06  *** ChanServ sets mode: +v tokai|noir
19:33:46  *** Wacko1976 has quit IRC
19:38:06  *** tokai has quit IRC
19:46:30  *** sla_ro|master has quit IRC
19:49:09  *** Gja has quit IRC
19:58:04  *** Gja has joined #openttd
20:06:05  *** synchris has quit IRC
20:35:42  *** Gja has quit IRC
20:55:26  <ANIKHTOS> hello all
21:08:55  *** Progman has quit IRC
21:10:10  *** gelignite has quit IRC
21:13:41  *** iSoSyS has joined #openttd
21:15:27  *** nielsm has quit IRC
21:46:47  *** frosch123 has quit IRC
21:47:23  <Eddi|zuHause> Wolf01: how did that become my job?
21:47:44  <Wolf01> You always do it :P
21:54:24  <supermop_work_> hmm shunting now?
21:58:47  <Wolf01> 'night
21:58:51  *** Wolf01 has quit IRC
22:16:10  *** Fuco has quit IRC
22:16:57  *** HerzogDeXtEr has quit IRC
22:24:41  *** Fuco has joined #openttd
22:32:06  *** planetmaker_ has quit IRC
22:32:46  *** Fuco has quit IRC
22:51:01  *** Wormnest has quit IRC
23:00:01  *** chomwitt has quit IRC
23:02:16  *** Fuco has joined #openttd
23:04:53  *** Cubey has joined #openttd
23:10:59  *** urdh has quit IRC
23:12:11  *** urdh has joined #openttd
23:20:20  *** urdh has quit IRC
23:25:43  *** urdh has joined #openttd
23:26:57  *** Fuco has quit IRC
23:41:57  *** supermop has joined #openttd

Powered by YARRSTE version: svn-trunk