IRC logs for #openttd on OFTC at 2015-11-11
            
00:01:17 *** Wormnest has quit IRC
00:03:24 *** Extrems has quit IRC
00:03:47 *** Extrems has joined #openttd
00:08:22 *** sla_ro|master has quit IRC
00:27:15 *** ABCRic has quit IRC
00:27:30 *** ABCRic has joined #openttd
00:36:48 *** Myhorta has joined #openttd
00:37:50 *** Progman has joined #openttd
00:44:54 *** JezK_ has joined #openttd
00:45:46 *** drac_boy has joined #openttd
00:45:48 <drac_boy> hi
00:58:42 *** frosch123 has quit IRC
01:02:34 *** eM has quit IRC
01:08:09 *** Progman has quit IRC
01:12:30 <Wolf01> 'night
01:12:32 *** Wolf01 has quit IRC
01:29:43 *** sim-al2 has joined #openttd
01:41:33 *** drac_boy has left #openttd
01:46:52 *** ST2 has quit IRC
01:47:00 *** ST2 has joined #openttd
02:02:08 *** HerzogDeXtEr has quit IRC
02:29:08 *** FLHerne has quit IRC
02:30:25 *** strohalm has quit IRC
02:30:28 *** strohalm has joined #openttd
03:52:49 *** Myhorta has quit IRC
04:05:03 *** glx has quit IRC
04:46:49 *** fjb has quit IRC
04:46:51 *** fjb_ has joined #openttd
05:32:52 *** Flygon_ has quit IRC
05:34:50 *** Flygon has joined #openttd
05:40:56 *** liq3 has joined #openttd
05:40:57 *** namad7 has joined #openttd
05:52:10 *** fjb has joined #openttd
05:58:30 *** namad7 has quit IRC
05:59:31 *** fjb_ has quit IRC
06:17:47 *** Mek has quit IRC
06:26:03 *** Mek has joined #openttd
06:30:01 *** namad7 has joined #openttd
06:56:01 *** Eddi|zuHause has quit IRC
06:56:16 *** Eddi|zuHause has joined #openttd
07:00:29 *** namad7 has quit IRC
07:21:09 *** namad7 has joined #openttd
07:56:58 *** namad7 has quit IRC
08:07:47 *** sim-al2 has quit IRC
08:35:37 *** sla_ro|master has joined #openttd
08:40:44 *** DDR has joined #openttd
08:42:03 *** JezK_ has quit IRC
08:53:03 *** DDR has quit IRC
09:27:12 <__ln__> http://hg.icculus.org/icculus/lugaru/file/0b8beb014a87/Source/GameTick.cpp#l8742 (viewer discretion is advised)
09:34:46 <planetmaker> moin
09:36:45 *** Sirenia has joined #openttd
09:57:07 *** urdh has quit IRC
10:08:56 <greeter> O.o
10:09:08 <greeter> is it just me or is that a lot of if statements?
10:09:27 <Supercheese> it certainly is a lot of something
10:10:06 <greeter> rofl
10:10:25 <greeter> hey i don't know c++, that could be beautiful looking code, that just to me looks horrible and ugly
10:27:52 *** DDR has joined #openttd
10:28:29 <peter1138> Looks autogenerated, but...
10:29:16 *** Myhorta has joined #openttd
10:29:18 <greeter> hmm
10:30:49 *** DDR has quit IRC
10:55:32 <__ln__> peter1138: autogenerated code wouldn't have random lines commented out with //
11:00:30 *** Klanticus has joined #openttd
11:01:11 <peter1138> __ln__, hence the "but"
11:02:22 <__ln__> also autogenerated code would probably have some kind of repeating structure
11:19:14 *** urdh has joined #openttd
11:20:50 <SpComb> that indentation
11:27:01 *** eM has joined #openttd
11:27:47 <Eddi|zuHause> so, this could use some codestyle and commments, but what exactly is so horrible about it that makes it share-worthy?
11:32:45 <SpComb> oh, Lugaru
11:32:53 <SpComb> > The coding style is what you might expect from a self-taught high school student, so it could be a challenge to understand, but feel free to give it a shot!
11:35:40 <__ln__> Eddi|zuHause: the ten-thousand-line function?
11:37:09 <SpComb> Eddi|zuHause: it's such dense code that it's really painful to understand, and it kinda looks like there's a lot of duplication, so it's going to be difficult to modify
11:37:34 <SpComb> aka spagetti code, the same kind you have running your car ECU's safety-critical features :P
11:37:39 <Eddi|zuHause> so it's a "do everything" function that could use some refactoring
11:38:28 <__ln__> that's the most surprising use of the word "some" that i've heard
11:40:02 <SpComb> and the code style kinda reflects on the stereotype of someone who learned the basic language structure during their first few weeks writing code, and then just carried on from there without ever getting to the parts about organizing code, or reading anyone else's code
11:41:03 <SpComb> it works if you just work solo on your own project, and lugaru is a succesfull game, but it just doesn't work anymore if you want to have anyone else working on it
11:41:52 *** Progman has joined #openttd
11:43:22 <SpComb> https://bitbucket.org/osslugaru/lugaru/src/c1ef5c6ce96bbef6cf3c09a93c2c24e0aad57f2b/Source/GameTick.cpp?at=default more recent version
11:45:50 <Eddi|zuHause> if you never collaborated with someone else, how would you ever learn about code style?
11:46:05 <SpComb> indeed
11:47:02 <SpComb> it does eventually come if you start re-reading your own code after not actively working on it for a while
11:55:42 *** sla_ro|master has quit IRC
11:57:43 *** Wolf01 has joined #openttd
11:57:56 <SpComb> but that was definitely share-worthy to the C++ course channel where they just started their courswork project, and most groups are doing some kind of game :)
11:58:03 <Wolf01> o/
12:01:21 <__ln__> \___
12:03:10 <Eddi|zuHause> doing sit-ups?
12:03:48 <Wolf01> i should do some crunches
12:06:28 *** DDR has joined #openttd
12:19:49 *** Progman_ has joined #openttd
12:22:29 *** rahtgaz has joined #openttd
12:24:57 *** Progman has quit IRC
12:25:10 *** Progman_ is now known as Progman
12:55:37 *** Myhorta has quit IRC
12:57:29 *** eM has quit IRC
13:00:34 *** M-E has joined #openttd
13:24:02 *** cursarion has quit IRC
13:31:25 *** Hiddenfunstuff has joined #openttd
13:31:36 *** Supercheese has quit IRC
13:32:10 *** Supercheese has joined #openttd
13:36:04 *** cursarion has joined #openttd
14:16:14 *** Flygon_ has joined #openttd
14:19:02 *** Flygon has quit IRC
14:40:19 *** takpak has joined #openttd
14:59:16 *** Flygon has joined #openttd
15:00:48 *** Myhorta has joined #openttd
15:01:02 *** Flygon_ has quit IRC
15:16:50 *** Progman has quit IRC
15:34:49 *** sla_ro|master has joined #openttd
15:39:26 *** rahtgaz has quit IRC
15:41:58 *** tokai has joined #openttd
15:41:58 *** ChanServ sets mode: +v tokai
15:48:32 *** tokai|noir has quit IRC
16:00:07 *** sim-al2 has joined #openttd
16:34:29 *** fjb is now known as Guest8502
16:34:31 *** fjb has joined #openttd
16:40:43 *** Guest8502 has quit IRC
16:43:33 *** fjb has quit IRC
16:44:29 *** fjb has joined #openttd
16:46:41 *** Alberth has joined #openttd
16:46:41 *** ChanServ sets mode: +o Alberth
17:33:24 *** sim-al2 has quit IRC
17:41:38 *** Wormnest has joined #openttd
17:43:55 *** frosch123 has joined #openttd
17:44:09 <Alberth> hai
17:46:01 <frosch123> hoi
17:49:46 *** TheMask96 has quit IRC
17:51:12 *** TheMask96 has joined #openttd
18:04:10 <planetmaker> o/
18:05:31 *** FLHerne has joined #openttd
18:07:15 <frosch123> meh, devs.openttd.org does not know the svg mimetype :/
18:08:53 <Alberth> mimetypes are overrated anyway :p
18:11:21 <frosch123> https://devs.openttd.org/~frosch/firs/html/economies.html <- work, around, but now it is not interactive
18:11:39 *** smoke_fumus has joined #openttd
18:11:40 <frosch123> i hope coop is better :p
18:14:38 <Alberth> nice!
18:16:04 <Alberth> oh, it misses a few back-links :p
18:16:21 <frosch123> yes, i cut pax and supplies
18:16:41 <frosch123> not sure whether i should merge the industry->supplies links
18:16:49 <frosch123> currently there are multiple nodes for the same supply cargo
18:17:08 *** HerzogDeXtEr has joined #openttd
18:17:47 <frosch123> could also colour the supplies
18:18:46 <Alberth> coulouring is probably better, as many supplies occur at lots of places
18:19:03 <Alberth> keeping them separate makes cleaner picture
18:21:28 *** sla_ro|master2 has joined #openttd
18:25:29 <frosch123> https://devs.openttd.org/~frosch/firs/html2/economies.html <- well, for full firs it is hopeless, but for the other ones it is fine
18:25:45 <frosch123> except for farm supplies in arctic, there is always only one source
18:26:07 *** sla_ro|master has quit IRC
18:28:22 <Alberth> full firs is hopeless by definition almost, you probably need to make it manually, where this graph is a nice starting point
18:28:52 <Alberth> you could try a circular graph or so :p
18:29:14 <frosch123> people already did manual graphs
18:29:31 <frosch123> but i wanted some dotty source to edit stuff
18:29:51 <frosch123> it's so hard to discuss new economies on a pure text level
18:30:05 *** rahtgaz has joined #openttd
18:32:45 <Alberth> yep, makes a lot of sense
19:02:29 *** FLHerne has quit IRC
19:02:43 *** FLHerne has joined #openttd
19:02:45 <frosch123> why does the coffee estate produce fruit btw?
19:02:51 <frosch123> (in addition to coffee)
19:08:04 *** glx has joined #openttd
19:08:04 *** ChanServ sets mode: +v glx
19:16:13 <Taede> maybe they sell the coffee cherries as well as the beans?
19:31:52 *** FLHerne has quit IRC
19:38:31 <planetmaker> nice, frosch123 :)
19:42:17 *** Pensacola has joined #openttd
19:52:22 <Eddi|zuHause> am i missing some fancy javascript or other plugin? the images don't show
19:52:58 <frosch123> it's svg
19:53:15 <frosch123> you need a browser that is newer than 2003 or so
19:53:57 <Eddi|zuHause> well, i should have that, but it doesn't seem to work
19:54:31 <Eddi|zuHause> it gets worse, when i open the images directly, it shows the boxes, but not the text
19:56:46 <Eddi|zuHause> frosch123: but you're now at the exact point where i think graphviz fails. you got SOME graph, but if you want to clarify or emphasise something to get more comprehensibility/overview out of it, you don't have the right options to tweak it
19:57:56 <frosch123> you can use dotty to move stuff
19:58:08 <frosch123> but i think the graphs are fine (except full firs)
19:58:18 <Alberth> :o you can? I never managed to achieve that
19:58:21 <frosch123> but i doubt anyone could do a sane graph of full firs manually
19:58:46 <Alberth> in a week full time, lots is possible :p
19:58:50 <frosch123> Alberth: dotty is 20 years old and thus cryptic as hell, but it works somewhat
19:59:41 <Alberth> you're a better decrypter than me with dotty, then :)
20:01:21 <frosch123> you cannot save it except as image though
20:01:28 <frosch123> so, mostly worthless :)
20:07:40 <Alberth> :D
20:07:49 *** Klanticus has quit IRC
20:09:24 <Eddi|zuHause> i never figured out dotty
20:09:46 <frosch123> it helps to read the docs :p
20:10:03 <frosch123> it's not intuitive for a past-95 gui standard
20:10:16 <Eddi|zuHause> let me rephrase that: i never felt the urge to figure out dotty
20:10:22 <frosch123> you need to use the middle button in the right places and such
20:10:59 <Alberth> I can work with xfig :)
20:11:51 <frosch123> rocs has a nice interface
20:12:05 <frosch123> but at least in my version it fails to import .dot
20:35:56 <Alberth> if you kill all the label stuff, it loads
20:41:50 <Alberth> hmm, this is not unlike that game where you have to layout a graph such that no lines cross :p
20:42:28 <frosch123> yay, the firs brand got a mini-game spin-off
20:45:22 *** sim-al2 has joined #openttd
20:54:38 *** oskari89 has joined #openttd
20:55:29 <Alberth> looks quite buggy, judging by the debug messages it emits :)
20:58:42 <frosch123> well, i don't consider a one-time effort to create a nice graph worth it
20:59:01 <frosch123> i keep it like andy, better something auto-generated, that is always up-to-date
21:04:00 <frosch123> bbl
21:05:44 *** urdh has quit IRC
21:06:31 *** urdh has joined #openttd
21:19:14 *** Pensacola has quit IRC
21:22:08 <Alberth> much easier to maintain indeed
21:48:36 *** Alberth has left #openttd
21:50:58 *** gelignite has joined #openttd
22:07:48 *** Cybertinus has quit IRC
22:17:55 *** urdh has quit IRC
22:24:48 *** Progman has joined #openttd
22:32:05 *** Cybertinus has joined #openttd
22:35:13 *** smoke_fumus has quit IRC
22:35:24 *** urdh has joined #openttd
22:46:08 *** Hiddenfunstuff has quit IRC
23:17:28 *** frosch123 has quit IRC
23:33:28 *** sla_ro|master2 has quit IRC
23:36:13 *** Wormnest has quit IRC
23:46:44 *** Progman has quit IRC
23:49:58 *** oskari89 has quit IRC
23:51:54 *** JezK_ has joined #openttd
23:54:27 *** gelignite has quit IRC