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 [~quassel@marijnalexwedding.com] has quit [Remote host closed the connection]
00:26-!-Mek [~quassel@marijnalexwedding.com] has joined #openttd
00:30-!-namad7 [~aaaaa@pool-108-17-112-179.pitbpa.fios.verizon.net] has joined #openttd
00:56-!-Eddi|zuHause [~johekr@p57BD4F52.dip0.t-ipconnect.de] has quit []
00:56-!-Eddi|zuHause [~johekr@p57BD4DEF.dip0.t-ipconnect.de] has joined #openttd
01:00-!-namad7 [~aaaaa@pool-108-17-112-179.pitbpa.fios.verizon.net] has quit []
01:21-!-namad7 [~aaaaa@pool-108-17-112-179.pitbpa.fios.verizon.net] has joined #openttd
01:56-!-namad7 [~aaaaa@pool-108-17-112-179.pitbpa.fios.verizon.net] has quit []
02:07-!-sim-al2 [~sim-al2@108-221-158-76.lightspeed.mmphtn.sbcglobal.net] has quit [Ping timeout: 480 seconds]
02:35-!-sla_ro|master [slamaster@95.76.27.245] has joined #openttd
02:40-!-DDR [~David@S0106602ad0773a2e.vc.shawcable.net] has joined #openttd
02:42-!-JezK_ [~jez@2407:7800:400:107f:3db5:daca:8457:e66a] has quit [Quit: :q!]
02:53-!-DDR [~David@S0106602ad0773a2e.vc.shawcable.net] has quit [Remote host closed the connection]
03:27<__ln__>http://hg.icculus.org/icculus/lugaru/file/0b8beb014a87/Source/GameTick.cpp#l8742 (viewer discretion is advised)
03:34<@planetmaker>moin
03:36-!-Sirenia [~sirenia@93.186.164.51] has joined #openttd
03:57-!-urdh [~urdh@00013d7a.user.oftc.net] has quit [Ping timeout: 480 seconds]
04:08<greeter>O.o
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>rofl
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 [~David@S0106602ad0773a2e.vc.shawcable.net] has joined #openttd
04:28<@peter1138>Looks autogenerated, but...
04:29-!-Myhorta [~Myhorta@00018fad.user.oftc.net] has joined #openttd
04:29<greeter>hmm
04:30-!-DDR [~David@S0106602ad0773a2e.vc.shawcable.net] 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@179.234.183.59] 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 [~urdh@00013d7a.user.oftc.net] has joined #openttd
05:20<SpComb>that indentation
05:27-!-eM [~M@ip4da0d6bd.direct-adsl.nl] 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 [~progman@p57A182DC.dip0.t-ipconnect.de] has joined #openttd
05:43<SpComb>https://bitbucket.org/osslugaru/lugaru/src/c1ef5c6ce96bbef6cf3c09a93c2c24e0aad57f2b/Source/GameTick.cpp?at=default more recent version
05:45<Eddi|zuHause>if you never collaborated with someone else, how would you ever learn about code style?
05:46<SpComb>indeed
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@95.76.27.245] has quit []
05:57-!-Wolf01 [~wolf01@host105-62-dynamic.252-95-r.retail.telecomitalia.it] 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 :)
05:58<Wolf01>o/
06:01<__ln__> \___
06:03<Eddi|zuHause>doing sit-ups?
06:03<Wolf01>i should do some crunches
06:06-!-DDR [~David@S0106602ad0773a2e.vc.shawcable.net] has joined #openttd
06:19-!-Progman_ [~progman@p57A18979.dip0.t-ipconnect.de] has joined #openttd
06:22-!-rahtgaz [~rahtgaz@00021442.user.oftc.net] has joined #openttd
06:24-!-Progman [~progman@p57A182DC.dip0.t-ipconnect.de] has quit [Ping timeout: 480 seconds]
06:25-!-Progman_ is now known as Progman
06:55-!-Myhorta [~Myhorta@00018fad.user.oftc.net] has quit [Ping timeout: 480 seconds]
06:57-!-eM [~M@ip4da0d6bd.direct-adsl.nl] has quit [Read error: Connection reset by peer]
07:00-!-M-E [~M@ip4da0d6bd.direct-adsl.nl] has joined #openttd
07:24-!-cursarion [xrs@adishbestservedworldly.xrs.fi] has quit [Ping timeout: 480 seconds]
07:31-!-Hiddenfunstuff [~Geth@y32.ip1.anvianet.fi] has joined #openttd
07:31-!-Supercheese [~Superchee@cpe-76-178-136-186.natnow.res.rr.com] has quit [Read error: Connection reset by peer]
07:32-!-Supercheese [~Superchee@cpe-76-178-136-186.natnow.res.rr.com] has joined #openttd
07:36-!-cursarion [xrs@adishbestservedworldly.xrs.fi] has joined #openttd
08:16-!-Flygon_ [~Flygon@ppp118-209-195-75.lns20.mel8.internode.on.net] has joined #openttd
08:19-!-Flygon [~Flygon@ppp118-209-32-12.lns20.mel4.internode.on.net] has quit [Ping timeout: 480 seconds]
08:40-!-takpak [~takpak@79.112.99.167] has joined #openttd
08:59-!-Flygon [~Flygon@ppp118-209-40-197.lns20.mel4.internode.on.net] has joined #openttd
09:00-!-Myhorta [~Myhorta@00018fad.user.oftc.net] has joined #openttd
09:01-!-Flygon_ [~Flygon@ppp118-209-195-75.lns20.mel8.internode.on.net] has quit [Ping timeout: 480 seconds]
09:16-!-Progman [~progman@p57A18979.dip0.t-ipconnect.de] has quit [Remote host closed the connection]
09:34-!-sla_ro|master [~sla.ro@95.76.27.245] has joined #openttd
09:39-!-rahtgaz [~rahtgaz@00021442.user.oftc.net] has quit [Quit: I'll be Bach]
09:41-!-tokai [~tokai@00012860.user.oftc.net] has joined #openttd
09:42-!-mode/#openttd [+v tokai] by ChanServ
09:48-!-tokai|noir [~tokai@00012860.user.oftc.net] has quit [Ping timeout: 480 seconds]
10:00-!-sim-al2 [~sim-al2@108-221-158-76.lightspeed.mmphtn.sbcglobal.net] has joined #openttd
10:34-!-fjb is now known as Guest8502
10:34-!-fjb [~frank@000158aa.user.oftc.net] has joined #openttd
10:40-!-Guest8502 [~frank@000158aa.user.oftc.net] has quit [Ping timeout: 480 seconds]
10:43-!-fjb [~frank@000158aa.user.oftc.net] has quit [Ping timeout: 480 seconds]
10:44-!-fjb [~frank@000158aa.user.oftc.net] 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 [~sim-al2@108-221-158-76.lightspeed.mmphtn.sbcglobal.net] has quit [Ping timeout: 480 seconds]
11:41-!-Wormnest [~Wormnest@s5596abd2.adsl.online.nl] has joined #openttd
11:43-!-frosch123 [~frosch@x5f744553.dyn.telefonica.de] has joined #openttd
11:44<@Alberth>hai
11:46<frosch123>hoi
11:49-!-TheMask96 [martijn@envy.vhost.ne2000.nl] has quit [Ping timeout: 480 seconds]
11:51-!-TheMask96 [martijn@gluttony.vhost.ne2000.nl] has joined #openttd
12:04<@planetmaker>o/
12:05-!-FLHerne [~flh@dsl-217-155-24-22.zen.co.uk] has joined #openttd
12:07<frosch123>meh, devs.openttd.org does not know the svg mimetype :/
12:08<@Alberth>mimetypes are overrated anyway :p
12:11<frosch123>https://devs.openttd.org/~frosch/firs/html/economies.html <- work, around, but now it is not interactive
12:11-!-smoke_fumus [~smoke_fum@188.35.176.90] has joined #openttd
12:11<frosch123>i hope coop is better :p
12:14<@Alberth>nice!
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 [~flex@i59F6BB85.versanet.de] 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@95.76.27.245] has joined #openttd
12:25<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
12:25<frosch123>except for farm supplies in arctic, there is always only one source
12:26-!-sla_ro|master [~sla.ro@95.76.27.245] 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 [~rahtgaz@00021442.user.oftc.net] has joined #openttd
12:32<@Alberth>yep, makes a lot of sense
13:02-!-FLHerne [~flh@dsl-217-155-24-22.zen.co.uk] has quit [Quit: There's a real world out here!]
13:02-!-FLHerne [~flh@dsl-217-155-24-22.zen.co.uk] has joined #openttd
13:02<frosch123>why does the coffee estate produce fruit btw?
13:02<frosch123>(in addition to coffee)
13:08-!-glx [~glx@000128ec.user.oftc.net] 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 [~flh@dsl-217-155-24-22.zen.co.uk] has quit [Ping timeout: 480 seconds]
13:38<@planetmaker>nice, frosch123 :)
13:42-!-Pensacola [~quassel@88.159.51.52] 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<@Alberth>:D
14:07-!-Klanticus [~quassel@179.234.183.59] 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 [~sim-al2@dns25-176.cbu.edu] has joined #openttd
14:54-!-oskari89 [oskari89@83-102-63-32.bb.dnainternet.fi] 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:04<frosch123>bbl
15:05-!-urdh [~urdh@00013d7a.user.oftc.net] has quit [Quit: Boom!]
15:06-!-urdh [~urdh@00013d7a.user.oftc.net] has joined #openttd
15:19-!-Pensacola [~quassel@88.159.51.52] 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 [~gelignite@x4db60dca.dyn.telefonica.de] has joined #openttd
16:07-!-Cybertinus [~Cybertinu@cybertinus.customer.cloud.nl] has quit [Ping timeout: 480 seconds]
16:17-!-urdh [~urdh@00013d7a.user.oftc.net] has quit [Remote host closed the connection]
16:24-!-Progman [~progman@p57A18979.dip0.t-ipconnect.de] has joined #openttd
16:32-!-Cybertinus [~Cybertinu@cybertinus.customer.cloud.nl] has joined #openttd
16:35-!-smoke_fumus [~smoke_fum@188.35.176.90] has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
16:35-!-urdh [~urdh@00013d7a.user.oftc.net] has joined #openttd
16:46-!-Hiddenfunstuff [~Geth@y32.ip1.anvianet.fi] has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Now with extra fish!]
17:17-!-frosch123 [~frosch@x5f744553.dyn.telefonica.de] 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@95.76.27.245] has quit []
17:36-!-Wormnest [~Wormnest@s5596abd2.adsl.online.nl] has quit [Quit: Leaving]
17:46-!-Progman [~progman@p57A18979.dip0.t-ipconnect.de] has quit [Remote host closed the connection]
17:49-!-oskari89 [oskari89@83-102-63-32.bb.dnainternet.fi] has quit []
17:51-!-JezK_ [~jez@2407:7800:400:107f:3db5:daca:8457:e66a] has joined #openttd
17:54-!-gelignite [~gelignite@x4db60dca.dyn.telefonica.de] has quit [Quit: http://bit.ly/1kso8Ta]
18:17-!-FLHerne [~flh@dsl-217-155-24-22.zen.co.uk] has joined #openttd
18:20-!-sim-al2 [~sim-al2@dns25-176.cbu.edu] has quit [Ping timeout: 480 seconds]
18:47-!-liq3 [liq3@CPE-120-148-51-74.gdfw1.lon.bigpond.net.au] has quit []
18:50-!-Cybert1nus [~Cybertinu@cybertinus.customer.cloud.nl] has joined #openttd
18:51-!-takpak [~takpak@79.112.99.167] has quit [Remote host closed the connection]
18:54-!-Cybertinus [~Cybertinu@cybertinus.customer.cloud.nl] 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 [~aaaaa@pool-108-17-112-179.pitbpa.fios.verizon.net] has joined #openttd
20:02-!-namad7 [~aaaaa@pool-108-17-112-179.pitbpa.fios.verizon.net] has quit []
20:11-!-Myhorta [~Myhorta@00018fad.user.oftc.net] has quit [Ping timeout: 480 seconds]
20:19-!-Marc [~Marc@23.233.232.160] has joined #openttd
20:19-!-HerzogDeXtEr1 [~flex@89.246.175.10] has joined #openttd
20:25-!-Marc [~Marc@23.233.232.160] has quit [Quit: Leaving]
20:25-!-HerzogDeXtEr [~flex@i59F6BB85.versanet.de] has quit [Ping timeout: 480 seconds]
20:43<Wolf01>'night
20:43-!-Wolf01 [~wolf01@0001288e.user.oftc.net] has quit [Quit: Once again the world is quick to bury me.]
20:53-!-DDR [~David@S0106602ad0773a2e.vc.shawcable.net] has quit [Ping timeout: 480 seconds]
21:45-!-sim-al2 [~sim-al2@108-221-158-76.lightspeed.mmphtn.sbcglobal.net] has joined #openttd
22:17-!-rahtgaz [~rahtgaz@00021442.user.oftc.net] has quit [Quit: I'll be Bach]
22:33-!-glx [~glx@000128ec.user.oftc.net] has quit [Quit: Bye]
22:42-!-tokai [~tokai@00012860.user.oftc.net] has quit [Quit: c('~' )o]
23:01-!-FLHerne [~flh@dsl-217-155-24-22.zen.co.uk] has quit [Remote host closed the connection]
23:18-!-zeknurn` [~sup@hd9483bd7.seveveb.dyn.perspektivbredband.net] has joined #openttd
23:21-!-zeknurn [~sup@hd9483bd7.seveveb.dyn.perspektivbredband.net] 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 [~frank@000158aa.user.oftc.net] has joined #openttd
23:59-!-Guest8571 [~frank@000158aa.user.oftc.net] has quit [Ping timeout: 480 seconds]
---Logclosed Thu Nov 12 00:00:30 2015