Log for #openttd on 7th August 2017:
Times are UTC Toggle Colours
00:38:36  *** Wolf01 has quit IRC
01:16:32  *** JacobD88 has joined #openttd
01:37:15  *** JacobD88 has quit IRC
01:46:31  *** glx has quit IRC
02:18:07  *** sim-al2 is now known as Guest1704
02:18:12  *** sim-al2 has joined #openttd
02:23:08  *** Guest1704 has quit IRC
03:42:48  *** Flygon has joined #openttd
04:03:05  *** sla_ro|master has joined #openttd
04:32:50  *** Cubey has quit IRC
05:26:01  *** lolrus has joined #openttd
05:26:09  *** sla_ro|master has quit IRC
05:28:12  *** lolrus has quit IRC
05:56:54  *** gpsoft has joined #openttd
06:19:03  *** tokai|noir has quit IRC
06:27:12  *** andythenorth has joined #openttd
06:41:01  *** DDR has quit IRC
06:48:51  *** Celestar has joined #openttd
06:50:12  *** Celestar has quit IRC
06:55:54  *** dark_pingus has joined #openttd
07:11:19  *** debdog has quit IRC
07:17:05  *** debdog has joined #openttd
07:21:05  *** andythenorth has left #openttd
07:27:09  *** tokai has joined #openttd
07:27:09  *** ChanServ sets mode: +v tokai
07:35:19  *** debdog has quit IRC
07:40:40  *** debdog has joined #openttd
08:02:15  *** DDR has joined #openttd
08:28:36  *** debdog has quit IRC
08:32:37  *** debdog has joined #openttd
08:32:52  *** FLHerne has joined #openttd
09:16:07  *** dark_pingus has quit IRC
09:18:01  <__ln__> it's time for a Wolf01
10:00:02  *** Exec has quit IRC
10:00:36  *** Exec has joined #openttd
10:12:18  *** Wolf01 has joined #openttd
10:12:59  <Wolf01> o/
10:15:56  <__ln__> there he is, 54 minutes delayed from the approximated time
10:17:03  <Wolf01> Showered :P
10:17:19  <Wolf01> I take 50 minutes to clean all my fur
10:27:16  <Wolf01> Meh... microsoft... do they even try to not break stuff every 2 updates?
10:28:50  <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 :|
10:31:23  <__ln__> fortunately you know both!
10:41:38  *** Biolunar has joined #openttd
11:12:19  *** JacobD88 has joined #openttd
11:13:00  *** debdog has quit IRC
11:14:02  *** debdog has joined #openttd
11:21:46  *** JacobD88 has quit IRC
12:13:03  *** popup has joined #openttd
12:24:02  *** popup has quit IRC
12:30:33  *** Stimrol has joined #openttd
12:47:46  *** dark_pingus has joined #openttd
12:51:37  <V453000> I'm making the most badass looking python script ever
12:51:44  <V453000> who cares it will be slow as fuck
12:51:48  <V453000> F.A.N.C.Y
13:38:05  *** Flygon has quit IRC
13:45:18  *** Alberth has joined #openttd
13:45:18  *** ChanServ sets mode: +o Alberth
13:45:22  <Alberth> o/
13:45:29  <crem> \o
14:09:04  *** Maraxus has joined #openttd
14:12:00  *** debdog has quit IRC
14:15:02  *** debdog has joined #openttd
14:48:50  *** supermop has joined #openttd
14:51:25  <V453000> Alberth: have you ever used multiprocessing in python?
14:51:35  <V453000> I'm trying to make the palette converter run on multiple threads
14:51:47  <V453000> but something is fucking up and I can't seem to figure out why
14:51:55  <V453000> it kind of works but it requires my confirmation on every run
14:51:58  <V453000> hm one more test
14:58:17  *** sla_ro|master has joined #openttd
14:58:28  <supermop> big diesel trains ringing bells and idling outside of the window here making of an odd background noise
15:00:27  <V453000> in case anyone wants to help:
15:00:33  <V453000> I have no clue
15:00:34  <V453000> :|
15:03:37  *** Maraxus has quit IRC
15:18:43  *** Cubey has joined #openttd
15:19:30  *** Gja has joined #openttd
15:26:51  <Alberth> V453000:  no, but the standard library has  a "multiprocessing" package
15:27:16  <Alberth> just adding threads won't work
15:27:43  <Alberth> you can have only 1 thread actually running in the Python interpreter
15:28:09  <Alberth> so unless most threads are waiting for IO or so, you don't gain much :p
15:29:02  <Alberth>
15:34:46  *** Progman has joined #openttd
15:34:50  *** synchris has joined #openttd
15:40:34  *** supermop has quit IRC
15:44:26  <Wolf01> __ln__: do you need a chatbot?
15:46:17  <__ln__> it may not be optimal for emulating Bjarni an T***
15:50:01  <Wolf01> Let me finish my exercises on design patterns, then I'll specialize on state machines and maybe later on neural networks
16:00:24  *** mescalito has joined #openttd
16:23:09  *** supermop has joined #openttd
16:33:52  *** roidal has joined #openttd
16:44:08  *** Edgeli has joined #openttd
16:45:21  *** Edgeli has left #openttd
16:48:42  *** FLHerne has quit IRC
16:51:34  *** Gja has quit IRC
16:58:36  *** Gja has joined #openttd
16:59:37  *** HerzogDeXtEr has joined #openttd
17:00:56  *** Wormnest has joined #openttd
17:01:58  *** roidal has quit IRC
17:04:03  *** supermop has quit IRC
17:05:42  *** Sheogorath has quit IRC
17:11:51  *** Sheogorath has joined #openttd
17:35:20  <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
17:35:24  <V453000> but generally it seems to work
17:35:44  <V453000> but it just does each thing in individual steps and requires confirmation :D
17:37:20  <Alberth> I don't have time to debug your thing, but if it fails, it's too complicated
17:37:34  <Alberth> either make it simpler, or start from a working example
17:37:49  <Alberth> keeping it working is simpler than fixing something that is broken
17:38:47  <V453000> sounds like a good idea
17:39:35  *** Gja has quit IRC
17:42:59  *** FLHerne has joined #openttd
17:43:46  *** Gja has joined #openttd
17:51:08  *** glx has joined #openttd
17:51:08  *** ChanServ sets mode: +v glx
17:55:57  *** roidal has joined #openttd
17:59:43  *** andythenorth has joined #openttd
18:01:52  <andythenorth> o/
18:03:55  <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...
18:04:05  <V453000> can you help me with this pls? :)
18:04:24  <andythenorth> Wolf01: I only use Pool
18:04:29  * andythenorth looks
18:05:15  <andythenorth> I use it here
18:05:21  <andythenorth> probably doesn’t help you much :)
18:05:35  <andythenorth> what doesn’t work?
18:07:06  <V453000> when I run it, it asks for press any key at every "thread run"
18:07:13  <andythenorth> hmm
18:07:34  <andythenorth> you might need a python developer :P
18:07:47  *** mescalito has quit IRC
18:07:58  <V453000> I'll harass dudes at work tomorrow I guess :D
18:08:08  <andythenorth> I can look at it more later
18:08:19  <andythenorth> have to build some lego with kids
18:08:22  <V453000> I will try to figure it out but so far I seem to be hopeless :D
18:08:24  <V453000> sure thing
18:08:33  <andythenorth> what’s it supposed to do? o_O
18:08:40  <V453000> convert 32bpp to 8bpp
18:08:41  *** mescalito has joined #openttd
18:08:58  <V453000> which is slow as fuck with 50megapixel spritesheets
18:09:47  <andythenorth>
18:09:51  <andythenorth> I use Pool for a reason :P
18:09:57  <andythenorth> it removes the need to manage any threads
18:10:05  <andythenorth> you just define n workers in the pool
18:10:10  <andythenorth> then pass a function and a list
18:10:13  <V453000> interesting
18:10:20  <V453000> I'll try that
18:10:42  <andythenorth> it sounds like jargon, until you see how it works
18:10:46  <andythenorth> then it’s really simple and smart
18:11:09  <V453000> well my thing atm isn't working so trying anything else doesn't sound like a bad idea at all :P
18:11:27  *** gelignite has joined #openttd
18:11:28  <andythenorth> I use it to make graphics processing much faster with PIL
18:11:47  <V453000> yeah that's basically the same I want to do, I think I use pillow
18:12:04  <V453000> ok PIL
18:12:05  <V453000> :)
18:12:08  <andythenorth> I probably use pillow
18:12:15  <V453000> right
18:12:22  <V453000> it's the same syntax right
18:12:39  <V453000> as in from PIL import Image can mean pillow
18:13:27  <andythenorth> yup, pillow is just PIL repackaged mostly
18:13:51  <andythenorth> using Pool speeds up Iron Horse graphics from 4s to 2s
18:14:21  <V453000> my palette conversion takes 50 minutes...
18:14:25  <V453000> :)
18:14:41  <V453000> now have 16 thread processor so want to make use of it
18:17:55  *** frosch123 has joined #openttd
18:19:27  <V453000> k I go devastate my brain in the Pool
18:22:19  <Wolf01> <andythenorth> Wolf01: I only use Pool <- That's the last one I did
18:23:47  <V453000> this is basically the same error I am getting from my multiprocessing thingy
18:23:56  *** FLHerne has quit IRC
18:24:15  <V453000>
18:24:36  *** FLHerne has joined #openttd
18:25:54  <Wolf01> V453000, in c# you lock the execution, so the other process must wait for the bootstrap
18:26:07  <V453000> I guess that's the thing then
18:33:27  <V453000> hm still
18:35:47  *** FLHerne has quit IRC
18:36:16  <V453000> weird thing is that I can't copypaste even the simplest scripts and make them run
18:36:20  <V453000> something must be proper fucked
18:36:45  <Wolf01> python 3 scripts on python 2.x or vice versa?
18:37:03  <V453000> python 36-32
18:37:14  <andythenorth> hmm
18:37:23  <andythenorth> never seen that :P
18:37:36  <V453000> oh the guide is for python 2.7
18:37:52  <Wolf01> It's *always* that
18:38:17  <andythenorth> this paste works for me
18:38:19  <andythenorth> python 3.5
18:39:12  <andythenorth> V453000: windows?
18:39:26  <V453000> that doesn't work for me, same error
18:39:27  <V453000> yeah windoze
18:39:30  <V453000> win10 to be specific
18:39:57  <andythenorth> oh is it __main__ ?
18:40:39  <V453000> this worked
18:40:45  <V453000> which has the main thing :)
18:42:14  <andythenorth>
18:42:38  <andythenorth> or
18:42:46  <andythenorth> second one is better
18:43:40  <Wolf01> V453000: install linux subsystem
18:43:44  <V453000> ..
18:44:10  *** sim-al2 has quit IRC
18:44:26  <andythenorth> nah just use __main__
18:45:00  <andythenorth> same as
18:46:05  <V453000> do i need to import anything for it?/
18:47:04  <V453000> oh I see
18:47:06  <V453000> hm
18:47:25  <andythenorth> multiprocessing effectively reimports the same file
18:47:36  <andythenorth> so it will fork bomb if not protected :P
18:47:50  <andythenorth>
18:52:03  *** Biolunar has quit IRC
18:58:27  <V453000> no module named PIL
18:58:32  <V453000> didn't install that at home yet I guess
19:03:33  <V453000> ok now I fail at installing pillow
19:03:35  <V453000> jeez :D
19:04:49  <V453000> all things I saw say > pip install Pillow
19:04:53  <V453000> but idk how to do htat :D
19:05:59  <frosch123> [20:43] <Wolf01> V453000: install linux subsystem
19:06:01  <frosch123> :p
19:06:47  <Wolf01> That feature is maybe onw of the most useful made by microsoft
19:07:44  *** eekee has joined #openttd
19:08:03  * eekee ponders ecs or firs
19:08:27  <Wolf01> ECS, because FIRS was made by a crazy man
19:08:31  <Wolf01> :D
19:08:33  <eekee> oh :D
19:09:16  <frosch123> i would claim that applies to both
19:09:47  *** roidal has quit IRC
19:09:48  <V453000> ._.
19:10:27  <ST2> nothing new... I'm still searching for a sane person around OpenTTD and not even the mirror says "yes" to me :S
19:10:34  <ST2> but that's normal ^^
19:10:34  <eekee> hehehe
19:11:19  <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
19:12:58  <V453000> why does this have to be so hard
19:13:25  <eekee> because i like my games to last for years :)
19:15:39  <eekee> which one has the yeti?
19:16:12  <V453000> YETI? :D
19:16:42  <frosch123> neither ecs nor firs have yeti
19:16:42  <eekee> yup :D #openttdcoop use it sometimes
19:16:46  <eekee> ty
19:17:17  <andythenorth> there is yeti
19:17:54  <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
19:18:34  <eekee> ah, the whole set is called YETI extended towns and industrie
19:18:35  <V453000> yeah the graphics are shit
19:18:56  <frosch123> eekee: firs has supplies, isn't that the same?
19:19:19  <eekee> yeah kinda. firs it is, then :)
19:20:10  <V453000> YETI mechanism works better, more dynamically :P you can grow the industries basically as much as you can handle
19:24:55  <eekee> ah, right ^.^
19:24:56  <andythenorth> pssh
19:25:07  <andythenorth> who wants to build massive networks like that :P
19:25:13  <eekee> o/ :)
19:25:14  <andythenorth> it’s a model train set
19:25:24  <andythenorth> or boats
19:25:31  <andythenorth> FIRS has supplies to justify getting a bigger boat :P
19:25:36  <V453000> it's a retardedly large model trian set :P
19:27:28  <eekee>
19:27:29  <andythenorth> I’m not done until
19:27:48  <andythenorth> maglev is so ugly eh :)
19:28:02  <V453000>
19:28:08  <V453000> WETRail is where shit is at
19:28:09  <eekee> ooh i ought to visit that some day
19:28:25  <eekee> i converted that game to nuts, it's all color coded purr now :)
19:28:38  <V453000> purr needs 32bpp upgrade
19:28:48  <eekee> haha wetrail! i love it for decoration
19:28:59  <eekee> i like it
19:29:29  <andythenorth> this is a proper junction
19:29:32  <eekee> sheesh that wetrail network :D
19:29:35  <andythenorth> dunno what all that other stuff is
19:30:02  <andythenorth> or this,%2001-05-2007.png
19:30:19  <eekee> mmh, slow turns
19:30:52  <andythenorth> ah metro,%2011-02-1921.png
19:30:56  <eekee> i've made big changes since that screenshot actually
19:30:58  <andythenorth> who need subways? ^^
19:31:08  <eekee> <3 metro hehe
19:31:09  <andythenorth> subway idiots :P
19:31:23  <andythenorth> where would be the challenge in building everything underground?
19:31:43  <eekee> quite XD
19:32:19  <eekee>  in that 2050 game i made a metro line before i used any grf
19:32:35  <andythenorth> hey look, I did a wetrail
19:33:48  <eekee> hahahhaha
19:36:44  <eekee> i'd update my screenshot thread, but actually playing the game is more fun
19:36:51  *** sla_ro|master has quit IRC
19:37:04  <V453000> hm, thing runs, but it keeps throwing the same error as originally and is on just 1 thread
19:37:16  <V453000> will probably have to rewrite the thing I guess
19:37:28  <Wolf01> <andythenorth> or this,%2001-05-2007.png <- full of ugly 90° turns
19:39:10  <V453000> could it be something related to the thing that I am doing stuff to an image?
19:39:17  <V453000> do I need to save each of the threaded images separately?
19:39:22  <V453000> and then combine them or something?
19:39:31  <eekee> i try to only use those with (nuts) trains which can handle them, apart from metro lines
19:40:27  <eekee> sometimes there just isn't room though
19:48:57  <eekee> sometimes nuts seems too easy. when i switched to it, i halved the size of bradnor station
19:49:34  <V453000> that's only because it has higher loading speeds
19:49:41  <eekee> yeah
19:49:44  <V453000> the throughput on maglev trains isn't higher
19:49:49  <V453000> since wagon capacity is 22 per halftile
19:49:52  <eekee> i use its local trains a lot
19:49:59  <V453000> vs 37 of vanilla
19:50:06  <eekee> right, yeah
19:50:24  <V453000> 3 loading stages help :)
19:50:32  <eekee> dramatically :)
19:50:45  <eekee> i use its one maglev local a lot in another game
19:50:56  <V453000> all of the local trains have a use
19:51:00  <eekee> yeah
19:51:18  <V453000> the maglev one is good because it can travel through any curve at full speed
19:51:26  <eekee> also 'touch of hate', the one maglev intercity with a slightly higher loading speed
19:51:44  <eekee> not quite, it only takes /\ at 90mph XD
19:51:49  <V453000> yes, and lower curve length requirements :)
19:51:56  <eekee> yes!
19:52:01  <V453000> well, 90deg turns are assumed to be turned off :P
19:52:35  <eekee> i turned them on for my 'new wetworld' game. one station in particular just got insane!
19:54:46  <V453000> Slugs must rule the universe by 2055
19:57:06  <V453000> all threads under load =D finaly
19:57:09  <V453000> let's see if it shit something
19:57:44  <frosch123> how many rockets do i need to launch until one returns with a slug?
19:57:51  <frosch123> also, what stack size do slugs have?
19:57:57  <eekee> hahahahaha
19:58:01  <V453000> not YET
19:58:04  <eekee> I
19:58:08  <V453000> soon(tm)
19:58:14  <V453000> slugs must automate
19:58:55  <frosch123> i considered replacing the train engine with the nuts slug, but it's too much work for a short hoke :p
19:58:58  <frosch123> *j
19:59:09  <V453000> I'll probably do it eventually
19:59:13  <V453000> it's just a matter of time really
20:02:48  <frosch123> <- i can't quite read the company name
20:03:08  <V453000> nice
20:03:19  <V453000> oh now I know why factorio has no slugs yet
20:03:24  <andythenorth> Wolf01: if you don’t enable 90º turns, your ships get stuck :D
20:03:28  <V453000> didn't know how would the front-tail detection work
20:04:01  <Wolf01> We'll fix that
20:08:36  <frosch123> <- found it
20:09:11  <frosch123> but i am too afraid to buy american chocolates
20:09:51  <andythenorth> how long are the slugs?
20:09:54  <andythenorth> integer?
20:09:55  *** Alberth has left #openttd
20:10:45  * andythenorth wonders how industry placement hints could be given
20:10:58  <andythenorth> seems like a UI for n random options is a non-starter :P
20:11:10  <frosch123> andythenorth: <- all the parts are 8/8
20:11:37  <andythenorth> how pleasing
20:12:03  <frosch123> there is also an 8bpp slug
20:12:26  <V453000> ok I got it to use all cores :D but it doesn't do anything useful
20:12:33  <V453000> just cycles in that one weird error
20:13:09  <andythenorth> haz want help?
20:13:49  <V453000> so the error is
20:14:12  <V453000> code iz
20:14:27  <andythenorth> such
20:14:30  <V453000> the biggest issue probably was the run() and traceback stuff
20:14:37  <V453000> which was real weird
20:14:48  <andythenorth> delete Line 213
20:14:51  <V453000> now even if I use a tiny image, it runs for seemingly forever
20:15:23  <andythenorth> well what else are your fans for? o_O
20:15:58  <V453000> :D that seems better
20:16:08  <V453000> now it doesn't throw that evil error at least
20:16:27  <V453000> I won't try to understand why it does the run() thing through the main
20:16:37  <V453000> ok seems like there are other issues in teh code that need fixing
20:16:41  <V453000> should be straight forward though
20:16:49  <andythenorth> when you start the script directly, it’s name is __main__
20:17:01  <andythenorth> or something similar
20:17:13  <andythenorth> I won’t try to explain, I only vaguely know the facts
20:17:33  <andythenorth> when you import it to another script, it’s name is not __main__
20:17:37  <andythenorth> This Is Important
20:18:31  <V453000> k :D
20:18:42  <V453000> hm, variable isnt global
20:18:49  <V453000> now how did I do this :)
20:24:33  *** FLHerne has joined #openttd
20:25:16  <andythenorth> just type randomly until it works
20:25:32  <V453000> that's pretty much exactly what is happening right now
20:25:33  <andythenorth> how many monkeys would it take pasting from Stack Overflow to create works of Shakespeare?
20:26:02  <andythenorth> V453000: unless you know better, I would use
20:26:06  <andythenorth> you may know better
20:26:26  <V453000> that seems to be working now, just the script itself has fucked places
20:40:09  <V453000> OMFG it seems to be doing something right
20:40:15  <V453000> just not able to save pictures yet
20:42:30  <andythenorth> you can call
20:42:33  <andythenorth> to check progress
20:42:38  <andythenorth> I wouldn’t if you have lots :P
20:42:50  <andythenorth> can DoS your system for a bit
20:43:33  <andythenorth> your save is outside the loop?
20:43:39  <V453000> hm the thing is that it doesn't see the imageOutput atm
20:43:47  <andythenorth> L 203?
20:43:50  <V453000> because the variable isn't global or somehow exported by the function which I forgot how
20:43:51  <V453000> yeah
20:44:43  <V453000> I'm guessing the putpixel from L 129 should also be outside of the loop?
20:45:01  <V453000> no
20:45:02  <V453000> hm
20:45:37  <andythenorth> I would do one function for the entire open->transform->save
20:45:45  <andythenorth> and call that with map() and a list of images
20:46:09  <V453000> the list of images being the inputs?
20:46:24  <V453000> what's the difference between map and apply?
20:46:40  <andythenorth> stuff I barely understand, so can’t explain :)
20:46:44  <andythenorth> apply seems to be blocking
20:46:59  <andythenorth> why you’d want blocking with multi-processing, I have no idea :P
20:48:24  <andythenorth> you need Eddi|zuHause or someone else proper to explain it :)
20:49:17  <eekee> i have no idea why you wouldn't want blocking :)
20:49:27  <eekee> i don't know much though
20:49:39  *** sim-al2 has joined #openttd
20:49:56  <andythenorth> if we’re processing images, each image is usually totally independent from the others
20:50:00  <andythenorth> so map() seems best
20:50:07  <V453000>, q[0], q[1], q[2]) I'm trying to use map now
20:50:14  <V453000> but it says incorrect amount of arguments
20:50:29  <V453000> which is weird because this is the amount it worked with before, just with apply
20:51:14  <V453000> TypeError: map() takes from 3 to 4 positional arguments but 5 were given
20:52:28  <andythenorth> it usually takes 3
20:52:38  <V453000> I mainly don't see the 5th
20:52:44  <V453000> I just see 4
20:53:07  <V453000> the rgb2palette is function name, and the 3 others are part of the queue list
20:53:29  <andythenorth> map() takes a function, a list, and an optional chunk size iirc
20:53:46  <andythenorth> if you want to pas multiple args you have to wrap them up in the list
20:53:53  <V453000> OH
20:53:57  <andythenorth> [(foo, bar), (ham, eggs)] etc
20:54:12  <V453000> well that I already have I guess :D
20:54:32  *** synchris has quit IRC
20:54:54  <V453000> I guess I have [[,], []]
20:54:57  <V453000> not ()
20:55:06  <V453000> difference iz?
20:55:10  <andythenorth> with map you don’t have to fuck around handling results
20:55:27  <andythenorth> and it will use as many workers in the pool as it can
20:55:43  <V453000> map's fine, that I am going to use
20:55:48  <V453000> just wondering how to feed the list to it
20:55:58  <V453000> ah maybe this
20:56:30  <andythenorth> you’ve pretty much got them in q already
20:56:34  <andythenorth> just pass queue
20:56:38  <andythenorth> and unpack it in the function
20:57:01  <V453000> current thing
20:57:02  <andythenorth> rgb2palette(input_image, x_start, x_end) -> rgb2palette(queue)
20:57:04  <andythenorth> or so
20:57:12  <V453000> oh
20:57:13  <V453000> :0
20:57:13  <andythenorth> then queue[1] etc
20:57:42  <andythenorth> or so
20:58:12  <andythenorth> L52-54 here, then L63 then L37-39
20:58:42  <V453000> I think I understand
20:58:59  <V453000>
20:59:19  <V453000> and
20:59:33  <V453000> well there are no crashes atm
20:59:37  <V453000> but something doesn't seem right
21:00:01  <andythenorth>, queue)
21:00:18  <V453000> oh :) was wondering
21:00:28  <V453000> omg it's doing things again
21:00:46  <V453000> right
21:00:51  <V453000> now to save the picture somehow I guess?
21:02:52  <andythenorth>
21:03:56  <V453000> right so now I need to somehow access the imageOutput
21:04:15  <V453000>
21:04:20  <V453000> at 207
21:04:25  <V453000> it can't see the imageOutput
21:04:32  <V453000> because it's a variable from the function
21:05:02  <V453000> should I just move the saving to inside of the function? That would just save the last thread strip that finished, right?
21:05:13  <andythenorth> you need to do the save inside rgb2palette
21:05:18  <V453000> oh
21:05:23  <andythenorth> you might eventually split that up into smaller functions, but eh
21:05:48  <andythenorth> that’s why I have all the pipelines stuff, but let’s not go there now :P
21:06:00  *** Gja has quit IRC
21:08:55  <V453000> something is wrong but I think I just need to understand my own script better
21:09:12  <V453000> even when I am saving the picture at the end of the function it still saves a blank image
21:09:26  <andythenorth> that will just be PIL shit
21:09:34  <andythenorth> it’s quite easy to get a blank image :P
21:09:58  <andythenorth> paste it
21:10:23  <V453000>
21:11:42  <andythenorth> I would move L134 somewhere else
21:11:51  <andythenorth> probably don’t need to check that for every pixel in the image ;)
21:12:08  <V453000> sense it makes
21:12:24  <V453000> so away from the function to the top somewhere
21:12:52  <andythenorth> I would
21:13:00  <V453000> ok that's there :)
21:13:29  <andythenorth> can’t see why it’s not working though
21:13:44  <andythenorth> how many images you testing with?
21:14:10  <V453000> 1
21:14:13  <andythenorth> ok
21:14:23  <andythenorth> try L52 “"
21:14:28  <andythenorth> see if the input is valid
21:15:04  <andythenorth> dunno if show() works on windows eh
21:15:36  <V453000> it tried to open it in some image viewer but failed
21:16:04  <V453000> iz valid
21:16:04  <andythenorth> balls
21:16:15  <andythenorth> show() is easiest way to debug PIL scripts :P
21:16:23  <andythenorth> seems
21:17:03  *** gpsoft has quit IRC
21:17:04  <andythenorth> saved image is white or black?
21:17:38  <V453000> pure alpha
21:17:40  <V453000> guess black
21:18:19  <V453000> I'm guessing it's ignoring the putpixel
21:18:20  <V453000> or something
21:18:21  <V453000> but why
21:18:23  <andythenorth> maybe
21:18:28  <andythenorth> seems non-standard
21:18:30  * andythenorth looking again
21:18:42  <V453000> maybe the finalR G B is inside of he for cycles?
21:18:50  <V453000> while the imageOutput is outside?
21:20:27  <V453000> now I see something
21:20:34  <V453000> when the script is running
21:20:37  <V453000> the image keeps changing
21:20:40  <V453000> OH
21:20:46  <V453000> I undertand why it's empty now
21:20:55  <V453000> because it's only taking some strip which only has alpha
21:20:58  <V453000> and that one is saved last
21:21:03  <V453000> for $reason
21:21:13  <V453000> basically it's not combining the images but just saving each of them over and over
21:21:26  <V453000> so I need to somehow merge them
21:21:32  <V453000> from all the threads
21:21:48  * andythenorth will look
21:22:16  <andythenorth> likely you want to swap to point() at some time
21:22:22  <andythenorth> it’s faster than putpixel afaik
21:22:25  <andythenorth> but not urgent
21:22:27  <andythenorth>
21:22:46  <andythenorth> pixel access has a speed warning
21:22:50  <V453000> ok moar optimizing later :D
21:23:35  <andythenorth>
21:23:37  <V453000> another weird part is that it seems to be running again and again
21:24:09  <andythenorth> the whole function?
21:24:12  <andythenorth> or just part of it?
21:24:31  <V453000> I think everything
21:24:40  *** frosch123 has quit IRC
21:25:20  <andythenorth> add “print queue” somewhere around L 202 or so
21:25:29  <andythenorth> see if it’s 1 item or more
21:25:41  <andythenorth> also you don’t need L204 for q in queue:
21:25:50  <andythenorth> just do, queue)
21:25:59  <V453000> OH
21:26:01  <V453000> that might be why
21:26:06  <V453000> because queue is kind of a long list
21:26:09  <V453000> XD
21:26:22  *** JacobD88 has joined #openttd
21:26:31  *** mescalito has quit IRC
21:26:45  <V453000> ok now it was fast as hell
21:27:08  <V453000> output picture iz 1 strip
21:27:45  <andythenorth> super
21:28:10  <andythenorth> I didn’t really look what all the thread and chunks stuff is
21:28:28  <V453000> ok yeah now it works properly, just the saving not
21:28:34  <V453000> all threads at 100% utilization :D
21:28:38  <V453000> fans started doing serious shit :D
21:28:55  <V453000> and it took like several seconds for a bigger file
21:28:56  <V453000> holy shit
21:29:56  <V453000> well now it's just about figuring out that output
21:30:02  <V453000> idk fi point will help me with that?
21:30:06  <V453000> if*
21:30:08  <andythenorth> yeah I can’t see what’s wrong with it currently
21:30:15  <andythenorth> what is all the chunk stuff doing? o_O
21:30:22  <andythenorth> seems that it breaks up multiple jobs per image?
21:30:25  <V453000> yeah
21:30:32  <V453000> exactly that
21:30:33  <andythenorth> is this multiple images on a spritesheet?
21:30:46  <andythenorth> or frame output or something?
21:30:51  <V453000> yes it's a giant spritesheet of potentially even thousands of sprites
21:31:16  <andythenorth> ok, opening that a bazillion times might have IO trauma
21:31:21  <andythenorth> although you might have SSD :P
21:31:25  <V453000>
21:31:35  <V453000> I have m.2 ,it's fast as hell
21:31:49  <andythenorth> probably we can just past the image across in the args, you already have it open
21:32:01  <V453000> right
21:32:07  <V453000> that sounds like a good idea
21:32:09  <andythenorth> might be no difference, dunno
21:32:23  <V453000> speed is whatever if it's reasonable
21:32:29  <V453000> just need 8bpp conversion :D
21:32:41  <andythenorth> I would probably slice out the sprite, and then pass the image in the args
21:32:49  <andythenorth> it’s an object, you can just pass it around
21:33:05  <andythenorth> not for tonight though
21:33:08  * andythenorth needs bed
21:33:44  <V453000> exactly
21:33:55  <V453000> I will try some self study tomorrow and let's see where I get
21:34:00  <V453000> many thanks mate
21:34:12  <V453000> wouldn't do shit without you tonight
21:34:26  <andythenorth> faster is fun
21:34:34  <andythenorth> just check stuff down the function
21:34:41  <andythenorth> e.g. I’d try printing (finalR,finalG,finalB,finalAlpha) and so on
21:35:14  <V453000> will try stuff
21:35:19  <V453000> good night :)
21:35:22  <V453000> and thanks again
21:35:30  <andythenorth> bye
21:35:33  *** andythenorth has quit IRC
21:39:07  *** FLHerne_ has joined #openttd
21:39:08  *** FLHerne has quit IRC
21:39:11  *** FLHerne_ has quit IRC
21:40:49  *** gelignite has quit IRC
21:49:52  *** HerzogDeXtEr has quit IRC
22:01:18  *** Progman has quit IRC
22:13:01  *** mindlesstux has quit IRC
22:13:49  *** mindlesstux has joined #openttd
22:15:42  *** dark_pingus has quit IRC
22:21:15  *** Wormnest has quit IRC
22:34:05  *** JacobD88 has quit IRC
22:51:22  *** Stimrol has quit IRC
23:15:28  *** Mazur has quit IRC
23:24:07  *** Mazur has joined #openttd

Powered by YARRSTE version: svn-trunk