Back to Home / #openttd / 2015 / 11 / Prev Day | Next Day
#openttd IRC Logs for 2015-11-11

---Logopened Wed Nov 11 00:00:28 2015
00:17-!-Mek [] has quit [Remote host closed the connection]
00:26-!-Mek [] has joined #openttd
00:30-!-namad7 [] has joined #openttd
00:56-!-Eddi|zuHause [] has quit []
00:56-!-Eddi|zuHause [] has joined #openttd
01:00-!-namad7 [] has quit []
01:21-!-namad7 [] has joined #openttd
01:56-!-namad7 [] has quit []
02:07-!-sim-al2 [] has quit [Ping timeout: 480 seconds]
02:35-!-sla_ro|master [slamaster@] has joined #openttd
02:40-!-DDR [] has joined #openttd
02:42-!-JezK_ [~jez@2407:7800:400:107f:3db5:daca:8457:e66a] has quit [Quit: :q!]
02:53-!-DDR [] has quit [Remote host closed the connection]
03:27<__ln__> (viewer discretion is advised)
03:36-!-Sirenia [~sirenia@] has joined #openttd
03:57-!-urdh [] has quit [Ping timeout: 480 seconds]
04:09<greeter>is it just me or is that a lot of if statements?
04:09<Supercheese>it certainly is a lot of something
04:10<greeter>hey i don't know c++, that could be beautiful looking code, that just to me looks horrible and ugly
04:27-!-DDR [] has joined #openttd
04:28<@peter1138>Looks autogenerated, but...
04:29-!-Myhorta [] has joined #openttd
04:30-!-DDR [] has quit [Remote host closed the connection]
04:55<__ln__>peter1138: autogenerated code wouldn't have random lines commented out with //
05:00-!-Klanticus [~quassel@] has joined #openttd
05:01<@peter1138>__ln__, hence the "but"
05:02<__ln__>also autogenerated code would probably have some kind of repeating structure
05:19-!-urdh [] has joined #openttd
05:20<SpComb>that indentation
05:27-!-eM [] has joined #openttd
05:27<Eddi|zuHause>so, this could use some codestyle and commments, but what exactly is so horrible about it that makes it share-worthy?
05:32<SpComb>oh, Lugaru
05:32<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!
05:35<__ln__>Eddi|zuHause: the ten-thousand-line function?
05:37<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
05:37<SpComb>aka spagetti code, the same kind you have running your car ECU's safety-critical features :P
05:37<Eddi|zuHause>so it's a "do everything" function that could use some refactoring
05:38<__ln__>that's the most surprising use of the word "some" that i've heard
05:40<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
05:41<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
05:41-!-Progman [] has joined #openttd
05:43<SpComb> more recent version
05:45<Eddi|zuHause>if you never collaborated with someone else, how would you ever learn about code style?
05:47<SpComb>it does eventually come if you start re-reading your own code after not actively working on it for a while
05:55-!-sla_ro|master [slamaster@] has quit []
05:57-!-Wolf01 [] has joined #openttd
05:57<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 :)
06:01<__ln__> \___
06:03<Eddi|zuHause>doing sit-ups?
06:03<Wolf01>i should do some crunches
06:06-!-DDR [] has joined #openttd
06:19-!-Progman_ [] has joined #openttd
06:22-!-rahtgaz [] has joined #openttd
06:24-!-Progman [] has quit [Ping timeout: 480 seconds]
06:25-!-Progman_ is now known as Progman
06:55-!-Myhorta [] has quit [Ping timeout: 480 seconds]
06:57-!-eM [] has quit [Read error: Connection reset by peer]
07:00-!-M-E [] has joined #openttd
07:24-!-cursarion [] has quit [Ping timeout: 480 seconds]
07:31-!-Hiddenfunstuff [] has joined #openttd
07:31-!-Supercheese [] has quit [Read error: Connection reset by peer]
07:32-!-Supercheese [] has joined #openttd
07:36-!-cursarion [] has joined #openttd
08:16-!-Flygon_ [] has joined #openttd
08:19-!-Flygon [] has quit [Ping timeout: 480 seconds]
08:40-!-takpak [~takpak@] has joined #openttd
08:59-!-Flygon [] has joined #openttd
09:00-!-Myhorta [] has joined #openttd
09:01-!-Flygon_ [] has quit [Ping timeout: 480 seconds]
09:16-!-Progman [] has quit [Remote host closed the connection]
09:34-!-sla_ro|master [] has joined #openttd
09:39-!-rahtgaz [] has quit [Quit: I'll be Bach]
09:41-!-tokai [] has joined #openttd
09:42-!-mode/#openttd [+v tokai] by ChanServ
09:48-!-tokai|noir [] has quit [Ping timeout: 480 seconds]
10:00-!-sim-al2 [] has joined #openttd
10:34-!-fjb is now known as Guest8502
10:34-!-fjb [] has joined #openttd
10:40-!-Guest8502 [] has quit [Ping timeout: 480 seconds]
10:43-!-fjb [] has quit [Ping timeout: 480 seconds]
10:44-!-fjb [] has joined #openttd
10:46-!-Alberth [~alberth@2001:981:c6c5:1:be5f:f4ff:feac:e11] has joined #openttd
10:46-!-mode/#openttd [+o Alberth] by ChanServ
11:33-!-sim-al2 [] has quit [Ping timeout: 480 seconds]
11:41-!-Wormnest [] has joined #openttd
11:43-!-frosch123 [] has joined #openttd
11:49-!-TheMask96 [] has quit [Ping timeout: 480 seconds]
11:51-!-TheMask96 [] has joined #openttd
12:05-!-FLHerne [] has joined #openttd
12:07<frosch123>meh, does not know the svg mimetype :/
12:08<@Alberth>mimetypes are overrated anyway :p
12:11<frosch123> <- work, around, but now it is not interactive
12:11-!-smoke_fumus [~smoke_fum@] has joined #openttd
12:11<frosch123>i hope coop is better :p
12:16<@Alberth>oh, it misses a few back-links :p
12:16<frosch123>yes, i cut pax and supplies
12:16<frosch123>not sure whether i should merge the industry->supplies links
12:16<frosch123>currently there are multiple nodes for the same supply cargo
12:17-!-HerzogDeXtEr [] has joined #openttd
12:17<frosch123>could also colour the supplies
12:18<@Alberth>coulouring is probably better, as many supplies occur at lots of places
12:19<@Alberth>keeping them separate makes cleaner picture
12:21-!-sla_ro|master2 [slamaster@] has joined #openttd
12:25<frosch123> <- well, for full firs it is hopeless, but for the other ones it is fine
12:25<frosch123>except for farm supplies in arctic, there is always only one source
12:26-!-sla_ro|master [] has quit [Ping timeout: 480 seconds]
12:28<@Alberth>full firs is hopeless by definition almost, you probably need to make it manually, where this graph is a nice starting point
12:28<@Alberth>you could try a circular graph or so :p
12:29<frosch123>people already did manual graphs
12:29<frosch123>but i wanted some dotty source to edit stuff
12:29<frosch123>it's so hard to discuss new economies on a pure text level
12:30-!-rahtgaz [] has joined #openttd
12:32<@Alberth>yep, makes a lot of sense
13:02-!-FLHerne [] has quit [Quit: There's a real world out here!]
13:02-!-FLHerne [] has joined #openttd
13:02<frosch123>why does the coffee estate produce fruit btw?
13:02<frosch123>(in addition to coffee)
13:08-!-glx [] has joined #openttd
13:08-!-mode/#openttd [+v glx] by ChanServ
13:16<Taede>maybe they sell the coffee cherries as well as the beans?
13:31-!-FLHerne [] has quit [Ping timeout: 480 seconds]
13:38<@planetmaker>nice, frosch123 :)
13:42-!-Pensacola [~quassel@] has joined #openttd
13:52<Eddi|zuHause>am i missing some fancy javascript or other plugin? the images don't show
13:52<frosch123>it's svg
13:53<frosch123>you need a browser that is newer than 2003 or so
13:53<Eddi|zuHause>well, i should have that, but it doesn't seem to work
13:54<Eddi|zuHause>it gets worse, when i open the images directly, it shows the boxes, but not the text
13:56<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
13:57<frosch123>you can use dotty to move stuff
13:58<frosch123>but i think the graphs are fine (except full firs)
13:58<@Alberth>:o you can? I never managed to achieve that
13:58<frosch123>but i doubt anyone could do a sane graph of full firs manually
13:58<@Alberth>in a week full time, lots is possible :p
13:58<frosch123>Alberth: dotty is 20 years old and thus cryptic as hell, but it works somewhat
13:59<@Alberth>you're a better decrypter than me with dotty, then :)
14:01<frosch123>you cannot save it except as image though
14:01<frosch123>so, mostly worthless :)
14:07-!-Klanticus [~quassel@] has quit [Ping timeout: 480 seconds]
14:09<Eddi|zuHause>i never figured out dotty
14:09<frosch123>it helps to read the docs :p
14:10<frosch123>it's not intuitive for a past-95 gui standard
14:10<Eddi|zuHause>let me rephrase that: i never felt the urge to figure out dotty
14:10<frosch123>you need to use the middle button in the right places and such
14:10<@Alberth>I can work with xfig :)
14:11<frosch123>rocs has a nice interface
14:12<frosch123>but at least in my version it fails to import .dot
14:35<@Alberth>if you kill all the label stuff, it loads
14:41<@Alberth>hmm, this is not unlike that game where you have to layout a graph such that no lines cross :p
14:42<frosch123>yay, the firs brand got a mini-game spin-off
14:45-!-sim-al2 [] has joined #openttd
14:54-!-oskari89 [] has joined #openttd
14:55<@Alberth>looks quite buggy, judging by the debug messages it emits :)
14:58<frosch123>well, i don't consider a one-time effort to create a nice graph worth it
14:59<frosch123>i keep it like andy, better something auto-generated, that is always up-to-date
15:05-!-urdh [] has quit [Quit: Boom!]
15:06-!-urdh [] has joined #openttd
15:19-!-Pensacola [~quassel@] has quit [Remote host closed the connection]
15:22<@Alberth>much easier to maintain indeed
15:48-!-Alberth [~alberth@2001:981:c6c5:1:be5f:f4ff:feac:e11] has left #openttd []
15:50-!-gelignite [] has joined #openttd
16:07-!-Cybertinus [] has quit [Ping timeout: 480 seconds]
16:17-!-urdh [] has quit [Remote host closed the connection]
16:24-!-Progman [] has joined #openttd
16:32-!-Cybertinus [] has joined #openttd
16:35-!-smoke_fumus [~smoke_fum@] has quit [Quit: KVIrc 4.2.0 Equilibrium]
16:35-!-urdh [] has joined #openttd
16:46-!-Hiddenfunstuff [] has quit [Quit: HydraIRC -> <- Now with extra fish!]
17:17-!-frosch123 [] has quit [Quit: be yourself, except: if you have the opportunity to be a unicorn, then be a unicorn]
17:33-!-sla_ro|master2 [slamaster@] has quit []
17:36-!-Wormnest [] has quit [Quit: Leaving]
17:46-!-Progman [] has quit [Remote host closed the connection]
17:49-!-oskari89 [] has quit []
17:51-!-JezK_ [~jez@2407:7800:400:107f:3db5:daca:8457:e66a] has joined #openttd
17:54-!-gelignite [] has quit [Quit:]
18:17-!-FLHerne [] has joined #openttd
18:20-!-sim-al2 [] has quit [Ping timeout: 480 seconds]
18:47-!-liq3 [] has quit []
18:50-!-Cybert1nus [] has joined #openttd
18:51-!-takpak [~takpak@] has quit [Remote host closed the connection]
18:54-!-Cybertinus [] has quit [Ping timeout: 480 seconds]
19:39-!-Tirili [~chatzilla@2a02:8109:680:910::2] has joined #openttd
19:56-!-Tirili [~chatzilla@2a02:8109:680:910::2] has quit [Quit: ChatZilla 0.9.92 [SeaMonkey 2.38/20150928234557]]
20:00-!-namad7 [] has joined #openttd
20:02-!-namad7 [] has quit []
20:11-!-Myhorta [] has quit [Ping timeout: 480 seconds]
20:19-!-Marc [~Marc@] has joined #openttd
20:19-!-HerzogDeXtEr1 [~flex@] has joined #openttd
20:25-!-Marc [~Marc@] has quit [Quit: Leaving]
20:25-!-HerzogDeXtEr [] has quit [Ping timeout: 480 seconds]
20:43-!-Wolf01 [] has quit [Quit: Once again the world is quick to bury me.]
20:53-!-DDR [] has quit [Ping timeout: 480 seconds]
21:45-!-sim-al2 [] has joined #openttd
22:17-!-rahtgaz [] has quit [Quit: I'll be Bach]
22:33-!-glx [] has quit [Quit: Bye]
22:42-!-tokai [] has quit [Quit: c('~' )o]
23:01-!-FLHerne [] has quit [Remote host closed the connection]
23:18-!-zeknurn` [] has joined #openttd
23:21-!-zeknurn [] has quit [Ping timeout: 480 seconds]
23:21-!-zeknurn` is now known as zeknurn
23:52-!-fjb is now known as Guest8571
23:52-!-fjb [] has joined #openttd
23:59-!-Guest8571 [] has quit [Ping timeout: 480 seconds]
---Logclosed Thu Nov 12 00:00:30 2015