Back to Home / #openttd / 2017 / 08 / Prev Day | Next Day
#openttd IRC Logs for 2017-08-07

---Logopened Mon Aug 07 00:00:43 2017
00:03-!-sla_ro|master [~sla.ro@95.76.45.217] has joined #openttd
00:03-!-sla_ro|master is "slamaster" on @#sla #openttd #love
00:32-!-Cubey [~Coobies@pool-96-241-233-56.washdc.fios.verizon.net] has quit [Ping timeout: 480 seconds]
01:26-!-lolrus [~oftc-webi@174-25-111-245.ptld.qwest.net] has joined #openttd
01:26-!-lolrus is "OFTC WebIRC Client" on #openttd
01:26-!-sla_ro|master [~sla.ro@95.76.45.217] has quit []
01:28-!-lolrus [~oftc-webi@174-25-111-245.ptld.qwest.net] has quit []
01:56-!-gpsoft [~gpsoft@178-143-69-238.dynamic.orange.sk] has joined #openttd
01:56-!-gpsoft is "realname" on #openttd
02:19-!-tokai|noir [~tokai@00012860.user.oftc.net] has quit [Ping timeout: 480 seconds]
02:27-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has joined #openttd
02:27-!-andythenorth is "andythenorth" on #openttd
02:41-!-DDR [~David@S0106f0f249839863.vc.shawcable.net] has quit [Ping timeout: 480 seconds]
02:48-!-Celestar [~vici@p4FDC3E12.dip0.t-ipconnect.de] has joined #openttd
02:48-!-Celestar is "purple" on #openttd
02:50-!-Celestar [~vici@p4FDC3E12.dip0.t-ipconnect.de] has quit []
02:55-!-dark_pingus [~pingus@93-41-113-30.ip81.fastwebnet.it] has joined #openttd
02:55-!-dark_pingus is "dark pingus" on #openttd
03:11-!-debdog [~debdog@2a02:8070:418b:1400:7a24:afff:fe8a:d04d] has quit [Quit: No Ping reply in 180 seconds.]
03:17-!-debdog [~debdog@2a02:8070:418b:1400:7a24:afff:fe8a:d04d] has joined #openttd
03:17-!-debdog is "Wowbagger" on #openttd
03:21-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has left #openttd []
03:27-!-tokai [~tokai@00012860.user.oftc.net] has joined #openttd
03:27-!-tokai is "Christian Rosentreter" on #openttd
03:27-!-mode/#openttd [+v tokai] by ChanServ
03:35-!-debdog [~debdog@2a02:8070:418b:1400:7a24:afff:fe8a:d04d] has quit [Quit: No Ping reply in 180 seconds.]
03:40-!-debdog [~debdog@2a02:8070:418b:1400:7a24:afff:fe8a:d04d] has joined #openttd
03:40-!-debdog is "Wowbagger" on #openttd
04:02-!-DDR [~David@S0106f0f249839863.vc.shawcable.net] has joined #openttd
04:02-!-DDR is "David" on #openttd
04:28-!-debdog [~debdog@2a02:8070:418b:1400:7a24:afff:fe8a:d04d] has quit [Quit: No Ping reply in 180 seconds.]
04:32-!-debdog [~debdog@2a02:8070:418b:1400:7a24:afff:fe8a:d04d] has joined #openttd
04:32-!-debdog is "Wowbagger" on #openttd
04:32-!-FLHerne [~flh@cpc129772-papw8-2-0-cust286.know.cable.virginm.net] has joined #openttd
04:32-!-FLHerne is "Francis Herne" on #openttd
05:16-!-dark_pingus [~pingus@93-41-113-30.ip81.fastwebnet.it] has quit [Ping timeout: 480 seconds]
05:18<__ln__>it's time for a Wolf01
06:00-!-Exec [~me@2001:41d0:401:3100::6d6a] has quit [Remote host closed the connection]
06:00-!-Exec [~me@2001:41d0:401:3100::6d6a] has joined #openttd
06:00-!-Exec is "Exec" on #openttd #love
06:12-!-Wolf01 [~wolf01@host210-224-dynamic.7-87-r.retail.telecomitalia.it] has joined #openttd
06:12-!-Wolf01 is "Wolf01" on #openttd
06:12<Wolf01>o/
06:15<__ln__>there he is, 54 minutes delayed from the approximated time
06:17<Wolf01>Showered :P
06:17<Wolf01>I take 50 minutes to clean all my fur
06:27<Wolf01>Meh... microsoft... do they even try to not break stuff every 2 updates?
06:28<Wolf01>Most people will say "it's impossible to work now, entire system fucked up, microsoft is shit"... but it's just that some store apps now have mixed english and italian strings :|
06:31<__ln__>fortunately you know both!
06:41-!-Biolunar [Biolunar@dslb-188-109-221-020.188.109.pools.vodafone-ip.de] has joined #openttd
06:41-!-Biolunar is "Biolunar" on #openttd #suckless
07:12-!-JacobD88 [~Thunderbi@cpc80683-stap13-2-0-cust1547.12-2.cable.virginm.net] has joined #openttd
07:12-!-JacobD88 is "JacobD88" on #openttd.dev #openttd.notice #openttd
07:13-!-debdog [~debdog@2a02:8070:418b:1400:7a24:afff:fe8a:d04d] has quit [Quit: No Ping reply in 180 seconds.]
07:14-!-debdog [~debdog@2a02:8070:418b:1400:7a24:afff:fe8a:d04d] has joined #openttd
07:14-!-debdog is "Wowbagger" on #openttd
07:21-!-JacobD88 [~Thunderbi@cpc80683-stap13-2-0-cust1547.12-2.cable.virginm.net] has quit [Quit: JacobD88]
08:13-!-popup [~popup@0002669f.user.oftc.net] has joined #openttd
08:13-!-popup is "popup" on #openttd #tycoon #tycoonexiles #last-exile #tails #tor-project #linux #suckless #kernelnewbies #privacytech #oftc #subgraph #pax #tor
08:24-!-popup [~popup@0002669f.user.oftc.net] has quit [Remote host closed the connection]
08:30-!-Stimrol [~Stimrol@82-221-246-15.ljoshradi.is] has joined #openttd
08:30-!-Stimrol is "Stimrol" on #openttd
08:47-!-dark_pingus [~pingus@93-41-113-30.ip81.fastwebnet.it] has joined #openttd
08:47-!-dark_pingus is "dark pingus" on #openttd
08:51<V453000>I'm making the most badass looking python script ever
08:51<V453000>who cares it will be slow as fuck
08:51<V453000>F.A.N.C.Y
09:38-!-Flygon [~Flygon@124-148-133-27.dyn.iinet.net.au] has quit [Read error: Connection reset by peer]
09:45-!-Alberth [~alberth@00015f9e.user.oftc.net] has joined #openttd
09:45-!-Alberth is "purple" on #openttd
09:45-!-mode/#openttd [+o Alberth] by ChanServ
09:45<@Alberth>o/
09:45<crem>\o
10:09-!-Maraxus [~chatzilla@87-56-231-247-dynamic.dk.customer.tdc.net] has joined #openttd
10:09-!-Maraxus is "Maraxus" on #openttd #factoriocoop @#openttdcoop.stable @#openttdcoop
10:12-!-debdog [~debdog@2a02:8070:418b:1400:7a24:afff:fe8a:d04d] has quit [Quit: No Ping reply in 180 seconds.]
10:15-!-debdog [~debdog@2a02:8070:418b:1400:7a24:afff:fe8a:d04d] has joined #openttd
10:15-!-debdog is "Wowbagger" on #openttd
10:48-!-supermop [~user@c-24-1-94-53.hsd1.il.comcast.net] has joined #openttd
10:48-!-supermop is "Guest" on #tycoon #openttd
10:51<V453000>Alberth: have you ever used multiprocessing in python?
10:51<V453000>I'm trying to make the palette converter run on multiple threads
10:51<V453000>but something is fucking up and I can't seem to figure out why
10:51<V453000>it kind of works but it requires my confirmation on every run
10:51<V453000>hm one more test
10:58-!-sla_ro|master [~sla.ro@95.76.45.217] has joined #openttd
10:58-!-sla_ro|master is "slamaster" on @#sla #openttd #love
10:58<supermop>big diesel trains ringing bells and idling outside of the window here making of an odd background noise
11:00<V453000>in case anyone wants to help: https://dev.openttdcoop.org/attachments/download/8526/send.zip
11:00<V453000>I have no clue
11:00<V453000>:|
11:03-!-Maraxus [~chatzilla@87-56-231-247-dynamic.dk.customer.tdc.net] has quit [Quit: ChatZilla 0.9.93 [Firefox 54.0.1/20170628075643]]
11:18-!-Cubey [~Coobies@pool-96-241-233-56.washdc.fios.verizon.net] has joined #openttd
11:18-!-Cubey is "Jaybar" on #openttd
11:19-!-Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has joined #openttd
11:19-!-Gja is "Martin" on #bcache #openttd
11:26<@Alberth>V453000: no, but the standard library has a "multiprocessing" package
11:27<@Alberth>just adding threads won't work
11:27<@Alberth>you can have only 1 thread actually running in the Python interpreter
11:28<@Alberth>so unless most threads are waiting for IO or so, you don't gain much :p
11:29<@Alberth>https://docs.python.org/3/library/multiprocessing.html#module-multiprocessing
11:34-!-Progman [~progman@p5DC5F06A.dip0.t-ipconnect.de] has joined #openttd
11:34-!-Progman is "Peter Henschel" on #openttdcoop.dev #openttdcoop #openttd
11:34-!-synchris [~synchris@139.138.202.72] has joined #openttd
11:34-!-synchris is "Synesios Christou" on #openttd
11:40-!-supermop [~user@c-24-1-94-53.hsd1.il.comcast.net] has quit [Ping timeout: 480 seconds]
11:44<Wolf01>__ln__: do you need a chatbot? https://www.windowscentral.com/microsoft-built-chatbot-aims-shame-online-johns-trolling-sex
11:46<__ln__>it may not be optimal for emulating Bjarni an T***
11:50<Wolf01>Let me finish my exercises on design patterns, then I'll specialize on state machines and maybe later on neural networks
12:00-!-mescalito [~mescalito@10-178-191-90.dyn.estpak.ee] has joined #openttd
12:00-!-mescalito is "realname" on #openttd #openttdcoop
12:23-!-supermop [~user@c-24-1-94-53.hsd1.il.comcast.net] has joined #openttd
12:23-!-supermop is "Guest" on #tycoon #openttd
12:33-!-roidal [~roidal@cm56-179-103.liwest.at] has joined #openttd
12:33-!-roidal is "roidal" on #openttd
12:44-!-Edgeli [~Edgeli@9J5AAA34Y.tor-irc.dnsbl.oftc.net] has joined #openttd
12:44-!-Edgeli is "Edgeli" on #openttd
12:45-!-Edgeli [~Edgeli@9J5AAA34Y.tor-irc.dnsbl.oftc.net] has left #openttd []
12:48-!-FLHerne [~flh@cpc129772-papw8-2-0-cust286.know.cable.virginm.net] has quit [Quit: There's a real world out here!]
12:51-!-Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has quit [Quit: Going offline, see ya! (www.adiirc.com)]
12:58-!-Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has joined #openttd
12:58-!-Gja is "Martin" on #bcache #openttd
12:59-!-HerzogDeXtEr [~farci@i59F6B89C.versanet.de] has joined #openttd
12:59-!-HerzogDeXtEr is "purple" on #openttd
13:00-!-Wormnest [~Wormnest@s5596abd2.adsl.online.nl] has joined #openttd
13:00-!-Wormnest is "Wormnest" on #openttd
13:01-!-roidal [~roidal@cm56-179-103.liwest.at] has quit [Quit: WeeChat 1.9]
13:04-!-supermop [~user@c-24-1-94-53.hsd1.il.comcast.net] has quit [Ping timeout: 480 seconds]
13:05-!-Sheogorath [~madgod@0001f8ef.user.oftc.net] has quit [Ping timeout: 480 seconds]
13:11-!-Sheogorath [~madgod@0001f8ef.user.oftc.net] has joined #openttd
13:11-!-Sheogorath is "Daedric prince of madness" on #gcc #openttd #openttdcoop #osm-de #tor #tor-de
13:35<V453000>Alberth: in the zip you can see I am using the multiprocessing thing, but there is just something basic I am missing which does not use it correctly
13:35<V453000>but generally it seems to work
13:35<V453000>but it just does each thing in individual steps and requires confirmation :D
13:37<@Alberth>I don't have time to debug your thing, but if it fails, it's too complicated
13:37<@Alberth>either make it simpler, or start from a working example
13:37<@Alberth>keeping it working is simpler than fixing something that is broken
13:38<V453000>sounds like a good idea
13:39-!-Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has quit [Quit: Going offline, see ya! (www.adiirc.com)]
13:42-!-FLHerne [~flh@cpc129772-papw8-2-0-cust286.know.cable.virginm.net] has joined #openttd
13:42-!-FLHerne is "Francis Herne" on #openttd
13:43-!-Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has joined #openttd
13:43-!-Gja is "Martin" on #bcache #openttd
13:51-!-glx [~glx@000128ec.user.oftc.net] has joined #openttd
13:51-!-mode/#openttd [+v glx] by ChanServ
13:51-!-glx is "Loïc GUILLOUX" on +#openttd
13:55-!-roidal [~roidal@cm56-179-103.liwest.at] has joined #openttd
13:55-!-roidal is "roidal" on #openttd
13:59-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has joined #openttd
13:59-!-andythenorth is "andythenorth" on #openttd
14:01<andythenorth>o/
14:03<V453000>andythenorth have you ever used multiprocessing in python? I have it almost working I think but there must be some little thing I am missing... https://paste.openttdcoop.org/pm3knafr6
14:04<V453000>can you help me with this pls? :)
14:04<andythenorth>Wolf01: I only use Pool
14:04*andythenorth looks
14:05<andythenorth>I use it here http://dev.openttdcoop.org/projects/road-hog/repository/entry/src/render_graphics.py
14:05<andythenorth>probably doesn’t help you much :)
14:05<andythenorth>what doesn’t work?
14:07<V453000>when I run it, it asks for press any key at every "thread run"
14:07<andythenorth>hmm
14:07<andythenorth>you might need a python developer :P
14:07-!-mescalito [~mescalito@10-178-191-90.dyn.estpak.ee] has quit [Read error: Connection reset by peer]
14:07<V453000>I'll harass dudes at work tomorrow I guess :D
14:08<andythenorth>I can look at it more later
14:08<andythenorth>have to build some lego with kids
14:08<V453000>I will try to figure it out but so far I seem to be hopeless :D
14:08<V453000>sure thing
14:08<andythenorth>what’s it supposed to do? o_O
14:08<V453000>convert 32bpp to 8bpp
14:08-!-mescalito [~mescalito@10-178-191-90.dyn.estpak.ee] has joined #openttd
14:08-!-mescalito is "realname" on #openttd #openttdcoop
14:08<V453000>which is slow as fuck with 50megapixel spritesheets
14:09<andythenorth>http://sebastianraschka.com/Articles/2014_multiprocessing.html#the-pool-class
14:09<andythenorth>I use Pool for a reason :P
14:09<andythenorth>it removes the need to manage any threads
14:10<andythenorth>you just define n workers in the pool
14:10<andythenorth>then pass a function and a list
14:10<V453000>interesting
14:10<V453000>I'll try that
14:10<andythenorth>it sounds like jargon, until you see how it works
14:10<andythenorth>then it’s really simple and smart
14:11<V453000>well my thing atm isn't working so trying anything else doesn't sound like a bad idea at all :P
14:11-!-gelignite [~gelignite@x4e31cac5.dyn.telefonica.de] has joined #openttd
14:11-!-gelignite is "gelignite" on #openttd #openttdcoop.devzone
14:11<andythenorth>I use it to make graphics processing much faster with PIL
14:11<V453000>yeah that's basically the same I want to do, I think I use pillow
14:12<V453000>ok PIL
14:12<V453000>:)
14:12<andythenorth>I probably use pillow
14:12<V453000>right
14:12<V453000>it's the same syntax right
14:12<V453000>as in from PIL import Image can mean pillow
14:13<andythenorth>yup, pillow is just PIL repackaged mostly
14:13<andythenorth>using Pool speeds up Iron Horse graphics from 4s to 2s
14:14<V453000>my palette conversion takes 50 minutes...
14:14<V453000>:)
14:14<V453000>now have 16 thread processor so want to make use of it
14:17-!-frosch123 [~frosch@00013ce7.user.oftc.net] has joined #openttd
14:17-!-frosch123 is "frosch" on #openttdcoop.devzone #openttd.dev #openttd
14:19<V453000>k I go devastate my brain in the Pool
14:22<Wolf01><andythenorth> Wolf01: I only use Pool <- That's the last one I did
14:23<V453000>https://dev.openttdcoop.org/attachments/download/8527/pool-wtf.png this is basically the same error I am getting from my multiprocessing thingy
14:23-!-FLHerne [~flh@cpc129772-papw8-2-0-cust286.know.cable.virginm.net] has quit [Ping timeout: 480 seconds]
14:24<V453000>https://paste.openttdcoop.org/pwd6iyoac
14:24-!-FLHerne [~flh@cpc129772-papw8-2-0-cust286.know.cable.virginm.net] has joined #openttd
14:24-!-FLHerne is "Francis Herne" on #openttd
14:25<Wolf01>V453000, in c# you lock the execution, so the other process must wait for the bootstrap
14:26<V453000>I guess that's the pool.map thing then
14:33<V453000>hm still
14:35-!-FLHerne [~flh@cpc129772-papw8-2-0-cust286.know.cable.virginm.net] has quit [Ping timeout: 480 seconds]
14:36<V453000>weird thing is that I can't copypaste even the simplest scripts and make them run
14:36<V453000>something must be proper fucked
14:36<Wolf01>python 3 scripts on python 2.x or vice versa?
14:37<V453000>python 36-32
14:37<andythenorth>hmm
14:37<andythenorth>never seen that :P
14:37<V453000>oh the guide is for python 2.7
14:37<Wolf01>It's *always* that
14:38<andythenorth>this paste works for me https://paste.openttdcoop.org/pwd6iyoac/ih7evz/raw
14:38<andythenorth>python 3.5
14:39<andythenorth>V453000: windows?
14:39<V453000>that doesn't work for me, same error
14:39<V453000>yeah windoze
14:39<V453000>win10 to be specific
14:39<andythenorth>oh is it __main__ ?
14:40<V453000>this worked https://paste.openttdcoop.org/p4t8frs64
14:40<V453000>which has the main thing :)
14:42<andythenorth>https://stackoverflow.com/questions/20360686/compulsory-usage-of-if-name-main-in-windows-while-using-multiprocessi
14:42<andythenorth>or https://stackoverflow.com/questions/14175348/why-does-pythons-multiprocessing-module-import-main-when-starting-a-new-pro?rq=1
14:42<andythenorth>second one is better
14:43<Wolf01>V453000: install linux subsystem
14:43<V453000>..
14:44-!-sim-al2 [~sim-al2@108-221-157-231.lightspeed.mmphtn.sbcglobal.net] has quit [Ping timeout: 480 seconds]
14:44<andythenorth>nah just use __main__
14:45<andythenorth>same as http://dev.openttdcoop.org/projects/iron-horse/repository/entry/src/render_graphics.py#L71
14:46<V453000>do i need to import anything for it?/
14:47<V453000>oh I see
14:47<V453000>hm
14:47<andythenorth>multiprocessing effectively reimports the same file
14:47<andythenorth>so it will fork bomb if not protected :P
14:47<andythenorth>https://en.wikipedia.org/wiki/Fork_bomb
14:52-!-Biolunar [Biolunar@dslb-188-109-221-020.188.109.pools.vodafone-ip.de] has quit [Quit: leaving]
14:58<V453000>:DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
14:58<V453000>no module named PIL
14:58<V453000>didn't install that at home yet I guess
15:03<V453000>ok now I fail at installing pillow
15:03<V453000>jeez :D
15:04<V453000>all things I saw say > pip install Pillow
15:04<V453000>but idk how to do htat :D
15:05<frosch123>[20:43] <Wolf01> V453000: install linux subsystem
15:06<frosch123>:p
15:06<Wolf01>That feature is maybe onw of the most useful made by microsoft
15:07-!-eekee [~ethan@90.252.229.235] has joined #openttd
15:07-!-eekee is "purple" on #openttd
15:08*eekee ponders ecs or firs
15:08<Wolf01>ECS, because FIRS was made by a crazy man
15:08<Wolf01>:D
15:08<eekee>oh :D
15:09<frosch123>i would claim that applies to both
15:09-!-roidal [~roidal@cm56-179-103.liwest.at] has quit [Quit: aber jetzt ;)]
15:09<V453000>._.
15:10<ST2>nothing new... I'm still searching for a sane person around OpenTTD and not even the mirror says "yes" to me :S
15:10<ST2>but that's normal ^^
15:10<eekee>hehehe
15:11<eekee>a local shop sells chairs with things like "we're all mad here" painted on the seat. i'd get one if i had room
15:12<V453000>why does this have to be so hard
15:13<eekee>because i like my games to last for years :)
15:15<eekee>which one has the yeti?
15:16<V453000>YETI? :D
15:16<frosch123>neither ecs nor firs have yeti
15:16<eekee>yup :D #openttdcoop use it sometimes
15:16<eekee>ty
15:17<andythenorth>there is yeti
15:17<eekee>i like the idea of supplying workers to industries (which is what the yeti are,) but that one set had huge in-your-face graphics i don't really want
15:18<eekee>ah, the whole set is called YETI extended towns and industrie
15:18<V453000>yeah the graphics are shit
15:18<frosch123>eekee: firs has supplies, isn't that the same?
15:19<eekee>yeah kinda. firs it is, then :)
15:20<V453000>YETI mechanism works better, more dynamically :P you can grow the industries basically as much as you can handle
15:24<eekee>ah, right ^.^
15:24<andythenorth>pssh
15:25<andythenorth>who wants to build massive networks like that :P
15:25<eekee>o/ :)
15:25<andythenorth>it’s a model train set
15:25<andythenorth>or boats
15:25<andythenorth>FIRS has supplies to justify getting a bigger boat :P
15:25<V453000>it's a retardedly large model trian set :P
15:27<eekee>https://www.tt-forums.net/download/file.php?id=168408
15:27<andythenorth>I’m not done until http://www.miniatur-wunderland.com/
15:27<andythenorth>maglev is so ugly eh :)
15:28<V453000>https://wiki.openttdcoop.org/images/a/ac/PSG268.png
15:28<V453000>WETRail is where shit is at
15:28<eekee>ooh i ought to visit that some day
15:28<eekee>i converted that game to nuts, it's all color coded purr now :)
15:28<V453000>purr needs 32bpp upgrade
15:28<eekee>haha wetrail! i love it for decoration
15:28<eekee>i like it
15:29<andythenorth>this is a proper junction http://dev.openttdcoop.org/attachments/download/7782/4-way.png
15:29<eekee>sheesh that wetrail network :D
15:29<andythenorth>dunno what all that other stuff is
15:30<andythenorth>or this http://dev.openttdcoop.org/attachments/download/7347/Wafflebury%20Transport,%2001-05-2007.png
15:30<eekee>mmh, slow turns
15:30<andythenorth>ah metro http://dev.openttdcoop.org/attachments/download/6775/Puddlebury%20Transport,%2011-02-1921.png
15:30<eekee>i've made big changes since that screenshot actually
15:30<andythenorth>who need subways? ^^
15:31<eekee><3 metro hehe
15:31<andythenorth>subway idiots :P
15:31<andythenorth>where would be the challenge in building everything underground?
15:31<eekee>quite XD
15:32<eekee> in that 2050 game i made a metro line before i used any grf
15:32<andythenorth>hey look, I did a wetrail http://dev.openttdcoop.org/attachments/download/5384/iron_horse_wet_2.png
15:33<eekee>hahahhaha
15:36<eekee>i'd update my screenshot thread, but actually playing the game is more fun
15:36-!-sla_ro|master [~sla.ro@95.76.45.217] has quit []
15:37<V453000>hm, thing runs, but it keeps throwing the same error as originally and is on just 1 thread
15:37<V453000>will probably have to rewrite the thing I guess
15:37<Wolf01><andythenorth> or this http://dev.openttdcoop.org/attachments/download/7347/Wafflebury%20Transport,%2001-05-2007.png <- full of ugly 90° turns
15:39<V453000>could it be something related to the thing that I am doing stuff to an image?
15:39<V453000>do I need to save each of the threaded images separately?
15:39<V453000>and then combine them or something?
15:39<eekee>i try to only use those with (nuts) trains which can handle them, apart from metro lines
15:40<eekee>sometimes there just isn't room though
15:48<eekee>sometimes nuts seems too easy. when i switched to it, i halved the size of bradnor station https://www.tt-forums.net/download/file.php?id=182363
15:49<V453000>that's only because it has higher loading speeds
15:49<eekee>yeah
15:49<V453000>the throughput on maglev trains isn't higher
15:49<V453000>since wagon capacity is 22 per halftile
15:49<eekee>i use its local trains a lot
15:49<V453000>vs 37 of vanilla
15:50<eekee>right, yeah
15:50<V453000>3 loading stages help :)
15:50<eekee>dramatically :)
15:50<eekee>i use its one maglev local a lot in another game
15:50<V453000>all of the local trains have a use
15:51<eekee>yeah
15:51<V453000>the maglev one is good because it can travel through any curve at full speed
15:51<eekee>also 'touch of hate', the one maglev intercity with a slightly higher loading speed
15:51<eekee>not quite, it only takes /\ at 90mph XD
15:51<V453000>yes, and lower curve length requirements :)
15:51<eekee>yes!
15:52<V453000>well, 90deg turns are assumed to be turned off :P
15:52<eekee>i turned them on for my 'new wetworld' game. one station in particular just got insane!
15:54<V453000>Slugs must rule the universe by 2055
15:57<V453000>all threads under load =D finaly
15:57<V453000>let's see if it shit something
15:57<frosch123>how many rockets do i need to launch until one returns with a slug?
15:57<frosch123>also, what stack size do slugs have?
15:57<eekee>hahahahaha
15:58<V453000>not YET
15:58<eekee>I
15:58<V453000>soon(tm)
15:58<V453000>slugs must automate
15:58<frosch123>i considered replacing the train engine with the nuts slug, but it's too much work for a short hoke :p
15:58<frosch123>*j
15:59<V453000>I'll probably do it eventually
15:59<V453000>it's just a matter of time really
16:02<frosch123>https://s-media-cache-ak0.pinimg.com/originals/5c/21/b5/5c21b5eb8e29a2fb2bec3d7690b3712f.jpg <- i can't quite read the company name
16:03<V453000>nice
16:03<V453000>oh now I know why factorio has no slugs yet
16:03<andythenorth>Wolf01: if you don’t enable 90º turns, your ships get stuck :D
16:03<V453000>didn't know how would the front-tail detection work
16:04<Wolf01>We'll fix that
16:08<frosch123>http://www.mackenzieschocolates.com/index.php/molded-items/animals/slugs <- found it
16:09<frosch123>but i am too afraid to buy american chocolates
16:09<andythenorth>how long are the slugs?
16:09<andythenorth>integer?
16:09-!-Alberth [~alberth@00015f9e.user.oftc.net] has left #openttd []
16:10*andythenorth wonders how industry placement hints could be given
16:10<andythenorth>seems like a UI for n random options is a non-starter :P
16:11<frosch123>andythenorth: http://devs.openttd.org/~frosch/diffs/vehstack/vehstack_screenshot.png <- all the parts are 8/8
16:11<andythenorth>how pleasing
16:12<frosch123>there is also an 8bpp slug
16:12<V453000>ok I got it to use all cores :D but it doesn't do anything useful
16:12<V453000>just cycles in that one weird error
16:13<andythenorth>haz want help?
16:13<V453000>so the error is https://dev.openttdcoop.org/attachments/download/8528/pool-wtf-2.png
16:14<V453000>code iz https://paste.openttdcoop.org/pte2anunx
16:14<andythenorth>such
16:14<V453000>the biggest issue probably was the run() and traceback stuff
16:14<V453000>which was real weird
16:14<andythenorth>delete Line 213
16:14<V453000>now even if I use a tiny image, it runs for seemingly forever
16:15<andythenorth>well what else are your fans for? o_O
16:15<V453000>:D that seems better
16:16<V453000>now it doesn't throw that evil error at least
16:16<V453000>I won't try to understand why it does the run() thing through the main
16:16<V453000>ok seems like there are other issues in teh code that need fixing
16:16<V453000>should be straight forward though
16:16<andythenorth>when you start the script directly, it’s name is __main__
16:17<andythenorth>or something similar
16:17<andythenorth>I won’t try to explain, I only vaguely know the facts
16:17<andythenorth>when you import it to another script, it’s name is not __main__
16:17<andythenorth>This Is Important
16:18<V453000>k :D
16:18<V453000>hm, variable isnt global
16:18<V453000>now how did I do this :)
16:24-!-FLHerne [~flh@cpc129772-papw8-2-0-cust286.know.cable.virginm.net] has joined #openttd
16:24-!-FLHerne is "Francis Herne" on #openttd
16:25<andythenorth>just type randomly until it works
16:25<V453000>that's pretty much exactly what is happening right now
16:25<andythenorth>how many monkeys would it take pasting from Stack Overflow to create works of Shakespeare?
16:26<andythenorth>V453000: unless you know better, I would use Pool.map()
16:26<andythenorth>you may know better
16:26<V453000>that seems to be working now, just the script itself has fucked places
16:40<V453000>OMFG it seems to be doing something right
16:40<V453000>just not able to save pictures yet
16:42<andythenorth>you can call Image.show()
16:42<andythenorth>to check progress
16:42<andythenorth>I wouldn’t if you have lots :P
16:42<andythenorth>can DoS your system for a bit
16:43<andythenorth>your save is outside the loop?
16:43<V453000>hm the thing is that it doesn't see the imageOutput atm
16:43<andythenorth>L 203?
16:43<V453000>because the variable isn't global or somehow exported by the function which I forgot how
16:43<V453000>yeah
16:44<V453000>I'm guessing the putpixel from L 129 should also be outside of the loop?
16:45<V453000>no
16:45<V453000>hm
16:45<andythenorth>I would do one function for the entire open->transform->save
16:45<andythenorth>and call that with map() and a list of images
16:46<V453000>the list of images being the inputs?
16:46<V453000>what's the difference between map and apply?
16:46<andythenorth>stuff I barely understand, so can’t explain :)
16:46<andythenorth>apply seems to be blocking
16:46<andythenorth>why you’d want blocking with multi-processing, I have no idea :P
16:48<andythenorth>you need Eddi|zuHause or someone else proper to explain it :)
16:49<eekee>i have no idea why you wouldn't want blocking :)
16:49<eekee>i don't know much though
16:49-!-sim-al2 [~sim-al2@108-221-157-231.lightspeed.mmphtn.sbcglobal.net] has joined #openttd
16:49-!-sim-al2 is "sim-al2" on #openttd @#/r/openttd
16:49<andythenorth>if we’re processing images, each image is usually totally independent from the others
16:50<andythenorth>so map() seems best
16:50<V453000>pool.map(rgb2palette, q[0], q[1], q[2]) I'm trying to use map now
16:50<V453000>but it says incorrect amount of arguments
16:50<V453000>which is weird because this is the amount it worked with before, just with apply
16:51<V453000>TypeError: map() takes from 3 to 4 positional arguments but 5 were given
16:52<andythenorth>it usually takes 3
16:52<V453000>I mainly don't see the 5th
16:52<V453000>I just see 4
16:53<V453000>the rgb2palette is function name, and the 3 others are part of the queue list
16:53<andythenorth>map() takes a function, a list, and an optional chunk size iirc
16:53<andythenorth>if you want to pas multiple args you have to wrap them up in the list
16:53<V453000>OH
16:53<andythenorth>[(foo, bar), (ham, eggs)] etc
16:54<V453000>well that I already have I guess :D
16:54-!-synchris [~synchris@139.138.202.72] has quit [Remote host closed the connection]
16:54<V453000>I guess I have [[,], []]
16:54<V453000>not ()
16:55<V453000>difference iz?
16:55<andythenorth>with map you don’t have to fuck around handling results
16:55<andythenorth>and it will use as many workers in the pool as it can
16:55<V453000>map's fine, that I am going to use
16:55<V453000>just wondering how to feed the list to it
16:55<V453000>ah maybe this
16:56<andythenorth>you’ve pretty much got them in q already
16:56<andythenorth>just pass queue
16:56<andythenorth>and unpack it in the function
16:57<V453000>current thing https://paste.openttdcoop.org/pllisyxce
16:57<andythenorth>rgb2palette(input_image, x_start, x_end) -> rgb2palette(queue)
16:57<andythenorth>or so
16:57<V453000>oh
16:57<V453000>:0
16:57<andythenorth>then queue[1] etc
16:57<andythenorth>or so
16:58<andythenorth>L52-54 here, then L63 then L37-39 http://dev.openttdcoop.org/projects/iron-horse/repository/entry/src/render_graphics.py
16:58<V453000>I think I understand
16:58<V453000>https://paste.openttdcoop.org/pz6fqzdif
16:59<V453000>and pool.map(rgb2palette(queue))
16:59<V453000>well there are no crashes atm
16:59<V453000>but something doesn't seem right
17:00<andythenorth>pool.map(rgb2palette, queue)
17:00<V453000>oh :) was wondering
17:00<V453000>omg it's doing things again
17:00<V453000>right
17:00<V453000>now to save the picture somehow I guess?
17:02<andythenorth>Image.save()?
17:03<V453000>right so now I need to somehow access the imageOutput
17:04<V453000>https://paste.openttdcoop.org/pkhcjzhw9
17:04<V453000>at 207
17:04<V453000>it can't see the imageOutput
17:04<V453000>because it's a variable from the function
17:05<V453000>should I just move the saving to inside of the function? That would just save the last thread strip that finished, right?
17:05<andythenorth>you need to do the save inside rgb2palette
17:05<V453000>oh
17:05<andythenorth>you might eventually split that up into smaller functions, but eh
17:05<andythenorth>that’s why I have all the pipelines stuff, but let’s not go there now :P
17:06-!-Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has quit [Quit: Going offline, see ya! (www.adiirc.com)]
17:08<V453000>something is wrong but I think I just need to understand my own script better
17:09<V453000>even when I am saving the picture at the end of the function it still saves a blank image
17:09<andythenorth>that will just be PIL shit
17:09<andythenorth>it’s quite easy to get a blank image :P
17:09<andythenorth>paste it
17:10<V453000>https://paste.openttdcoop.org/pukavouiq
17:11<andythenorth>I would move L134 somewhere else
17:11<andythenorth>probably don’t need to check that for every pixel in the image ;)
17:12<V453000>sense it makes
17:12<V453000>so away from the function to the top somewhere
17:12<andythenorth>I would
17:13<V453000>ok that's there :)
17:13<andythenorth>can’t see why it’s not working though
17:13<andythenorth>how many images you testing with?
17:14<V453000>1
17:14<andythenorth>ok
17:14<andythenorth>try L52 “i.show()"
17:14<andythenorth>see if the input is valid
17:15<andythenorth>dunno if show() works on windows eh
17:15<V453000>it tried to open it in some image viewer but failed
17:16<V453000>iz valid
17:16<andythenorth>balls
17:16<andythenorth>show() is easiest way to debug PIL scripts :P
17:16<andythenorth>seems https://www.daniweb.com/programming/software-development/threads/308081/problem-with-pil
17:17-!-gpsoft [~gpsoft@178-143-69-238.dynamic.orange.sk] has quit [Ping timeout: 480 seconds]
17:17<andythenorth>saved image is white or black?
17:17<V453000>pure alpha
17:17<V453000>guess black
17:18<V453000>I'm guessing it's ignoring the putpixel
17:18<V453000>or something
17:18<V453000>but why
17:18<andythenorth>maybe
17:18<andythenorth>seems non-standard
17:18*andythenorth looking again
17:18<V453000>maybe the finalR G B is inside of he for cycles?
17:18<V453000>while the imageOutput is outside?
17:20<V453000>now I see something
17:20<V453000>when the script is running
17:20<V453000>the image keeps changing
17:20<V453000>OH
17:20<V453000>I undertand why it's empty now
17:20<V453000>because it's only taking some strip which only has alpha
17:20<V453000>and that one is saved last
17:21<V453000>for $reason
17:21<V453000>basically it's not combining the images but just saving each of them over and over
17:21<V453000>so I need to somehow merge them
17:21<V453000>from all the threads
17:21*andythenorth will look
17:22<andythenorth>likely you want to swap to point() at some time
17:22<andythenorth>it’s faster than putpixel afaik
17:22<andythenorth>but not urgent
17:22<andythenorth>http://pillow.readthedocs.io/en/4.2.x/reference/Image.html#PIL.Image.Image.point
17:22<andythenorth>pixel access has a speed warning http://pillow.readthedocs.io/en/4.2.x/reference/PixelAccess.html
17:22<V453000>ok moar optimizing later :D
17:23<andythenorth>https://stackoverflow.com/questions/2181292/using-the-image-point-method-in-pil-to-manipulate-pixel-data
17:23<V453000>another weird part is that it seems to be running again and again
17:24<andythenorth>the whole function?
17:24<andythenorth>or just part of it?
17:24<V453000>I think everything
17:24-!-frosch123 [~frosch@00013ce7.user.oftc.net] has quit [Quit: be yourself, except: if you have the opportunity to be a unicorn, then be a unicorn]
17:25<andythenorth>add “print queue” somewhere around L 202 or so
17:25<andythenorth>see if it’s 1 item or more
17:25<andythenorth>also you don’t need L204 for q in queue:
17:25<andythenorth>just do pool.map(rgb2palette, queue)
17:25<V453000>OH
17:26<V453000>that might be why
17:26<V453000>because queue is kind of a long list
17:26<V453000>XD
17:26-!-JacobD88 [~Thunderbi@cpc80683-stap13-2-0-cust1547.12-2.cable.virginm.net] has joined #openttd
17:26-!-JacobD88 is "JacobD88" on #openttd.dev #openttd.notice #openttd
17:26-!-mescalito [~mescalito@10-178-191-90.dyn.estpak.ee] has quit [Ping timeout: 480 seconds]
17:26<V453000>ok now it was fast as hell
17:27<V453000>output picture iz 1 strip
17:27<andythenorth>super
17:28<andythenorth>I didn’t really look what all the thread and chunks stuff is
17:28<V453000>ok yeah now it works properly, just the saving not
17:28<V453000>all threads at 100% utilization :D
17:28<V453000>fans started doing serious shit :D
17:28<V453000>and it took like several seconds for a bigger file
17:28<V453000>holy shit
17:29<V453000>well now it's just about figuring out that output
17:30<V453000>idk fi point will help me with that?
17:30<V453000>if*
17:30<andythenorth>yeah I can’t see what’s wrong with it currently
17:30<andythenorth>what is all the chunk stuff doing? o_O
17:30<andythenorth>seems that it breaks up multiple jobs per image?
17:30<V453000>yeah
17:30<V453000>exactly that
17:30<andythenorth>is this multiple images on a spritesheet?
17:30<andythenorth>or frame output or something?
17:30<V453000>yes it's a giant spritesheet of potentially even thousands of sprites
17:31<andythenorth>ok, opening that a bazillion times might have IO trauma
17:31<andythenorth>although you might have SSD :P
17:31<V453000>https://dev.openttdcoop.org/projects/brix/repository/entry/gfx/BRIDGES_8bpp.png
17:31<V453000>I have m.2 ,it's fast as hell
17:31<andythenorth>probably we can just past the image across in the args, you already have it open
17:32<V453000>right
17:32<V453000>that sounds like a good idea
17:32<andythenorth>might be no difference, dunno
17:32<V453000>speed is whatever if it's reasonable
17:32<V453000>just need 8bpp conversion :D
17:32<andythenorth>I would probably slice out the sprite, and then pass the image in the args
17:32<andythenorth>it’s an object, you can just pass it around
17:33<andythenorth>not for tonight though
17:33*andythenorth needs bed
17:33<V453000>exactly
17:33<V453000>I will try some self study tomorrow and let's see where I get
17:34<V453000>many thanks mate
17:34<V453000>wouldn't do shit without you tonight
17:34<andythenorth>faster is fun
17:34<andythenorth>just check stuff down the function
17:34<andythenorth>e.g. I’d try printing (finalR,finalG,finalB,finalAlpha) and so on
17:35<V453000>will try stuff
17:35<V453000>good night :)
17:35<V453000>and thanks again
17:35<andythenorth>bye
17:35-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has quit [Quit: andythenorth]
17:39-!-FLHerne_ [~flh@cpc129772-papw8-2-0-cust286.know.cable.virginm.net] has joined #openttd
17:39-!-FLHerne_ is "Francis Herne" on #openttd
17:39-!-FLHerne [~flh@cpc129772-papw8-2-0-cust286.know.cable.virginm.net] has quit [Read error: Connection reset by peer]
17:39-!-FLHerne_ [~flh@cpc129772-papw8-2-0-cust286.know.cable.virginm.net] has quit []
17:40-!-gelignite [~gelignite@x4e31cac5.dyn.telefonica.de] has quit [Quit: http://bit.ly/1kso8Ta]
17:49-!-HerzogDeXtEr [~farci@i59F6B89C.versanet.de] has quit [Read error: Connection reset by peer]
18:01-!-Progman [~progman@p5DC5F06A.dip0.t-ipconnect.de] has quit [Remote host closed the connection]
18:13-!-mindlesstux [~mindlesst@2001:19f0:5:238:5400:ff:fe30:7f01] has quit [Quit: ZNC - http://znc.in]
18:13-!-mindlesstux [~mindlesst@2001:19f0:5:238:5400:ff:fe30:7f01] has joined #openttd
18:13-!-mindlesstux is "ZNC - http://znc.in" on #virtualization #virt @#tuz-oftc @#tuz #qemu #osm #openttd #openconnect #observium #linode #ipv6 #OpenRailwayMap
18:15-!-dark_pingus [~pingus@93-41-113-30.ip81.fastwebnet.it] has quit [Ping timeout: 480 seconds]
18:21-!-Wormnest [~Wormnest@s5596abd2.adsl.online.nl] has quit [Quit: Leaving]
18:34-!-JacobD88 [~Thunderbi@cpc80683-stap13-2-0-cust1547.12-2.cable.virginm.net] has quit [Quit: JacobD88]
18:51-!-Stimrol [~Stimrol@82-221-246-15.ljoshradi.is] has quit [Quit: ZNC - http://znc.in]
19:15-!-Mazur [~mazur@5ED2923C.cm-7-3c.dynamic.ziggo.nl] has quit [Ping timeout: 480 seconds]
19:24-!-Mazur [~mazur@5ED2923C.cm-7-3c.dynamic.ziggo.nl] has joined #openttd
19:24-!-Mazur is "Stefan Linnemann" on #oolite #openttd #openttdcoop.stable #openttdcoop
20:00-!-mindlesstux [~mindlesst@2001:19f0:5:238:5400:ff:fe30:7f01] has quit [Quit: ZNC - http://znc.in]
20:01-!-mindlesstux [~mindlesst@2001:19f0:5:238:5400:ff:fe30:7f01] has joined #openttd
20:01-!-mindlesstux is "ZNC - http://znc.in" on #virtualization #virt @#tuz-oftc @#tuz #qemu #osm #openttd #openconnect #observium #linode #ipv6 #OpenRailwayMap
20:34-!-Wolf01 [~wolf01@0001288e.user.oftc.net] has quit [Quit: Once again the world is quick to bury me.]
22:03-!-Flygon [~Flygon@124-148-133-27.dyn.iinet.net.au] has joined #openttd
22:03-!-Flygon is "Flygon" on #openttd
22:14-!-Lejving [~Lejving@81-233-148-192-no524.tbcn.telia.com] has quit [Read error: Connection reset by peer]
22:15-!-Lejving [~Lejving@81-233-148-192-no524.tbcn.telia.com] has joined #openttd
22:15-!-Lejving is "realname" on #openttd #/r/openttd #factoriocoop #mashinky #mi-gaming #openttdcoop #openttdcoop.dev #openttdcoop.stable @#openttdcoop.pz
22:16-!-eekee [~ethan@90.252.229.235] has quit [Read error: Connection reset by peer]
22:17-!-eekee [~ethan@90.252.229.235] has joined #openttd
22:17-!-eekee is "purple" on #openttd
22:19-!-juzza1 [~juzza1@0001bead.user.oftc.net] has quit [Remote host closed the connection]
22:27-!-juzza1 [~juzza1@0001bead.user.oftc.net] has joined #openttd
22:27-!-juzza1 is "juzza1" on #openttdcoop.devzone #openttd
22:31-!-glx [~glx@000128ec.user.oftc.net] has quit [Quit: Bye]
23:44-!-Cubey [~Coobies@pool-96-241-233-56.washdc.fios.verizon.net] has quit [Ping timeout: 480 seconds]
23:53-!-sla_ro|master [~sla.ro@95.76.45.217] has joined #openttd
23:53-!-sla_ro|master is "slamaster" on @#sla #openttd #love
---Logclosed Tue Aug 08 00:00:45 2017