Back to Home / #openttd / 2017 / 10 / Prev Day | Next Day
#openttd IRC Logs for 2017-10-13

---Logopened Fri Oct 13 00:00:37 2017
00:06-!-supermop_home [~user@pool-100-37-117-232.nycmny.fios.verizon.net] has quit [Remote host closed the connection]
00:38-!-tycoondemon [~ashnohoe@ip503d7ac1.speed.planet.nl] has quit [Ping timeout: 480 seconds]
01:05-!-mindlesstux [~mindlesst@2001:19f0:5:238:5400:ff:fe30:7f01] has quit [Quit: ZNC - http://znc.in]
01:05-!-mindlesstux [~mindlesst@2001:19f0:5:238:5400:ff:fe30:7f01] has joined #openttd
01:05-!-mindlesstux is "ZNC - http://znc.in" on #virtualization #virt @#tuz-oftc @#tuz #qemu #osm #openttd #openconnect #observium #linode #ipv6 #OpenRailwayMap
01:09-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has joined #openttd
01:09-!-andythenorth is "andythenorth" on #openttd
01:15-!-sla_ro|master [~sla.ro@78.96.209.89] has joined #openttd
01:15-!-sla_ro|master is "slamaster" on @#sla #openttd #love
02:07-!-sim-al2 [~sim-al2@108-221-157-231.lightspeed.mmphtn.sbcglobal.net] has quit [Ping timeout: 480 seconds]
02:20<andythenorth>o/
02:29-!-Cubey [~Coobies@pool-96-241-233-56.washdc.fios.verizon.net] has quit [Ping timeout: 480 seconds]
02:33<V453000>morning good sir
02:33<V453000>https://img-9gag-fun.9cache.com/photo/am2VEY4_460sv.mp4
02:33<V453000>with sound
02:35<andythenorth>winning
02:39-!-sh4 [~sh4@228.85-87-86.dynamic.clientes.euskaltel.es] has joined #openttd
02:39-!-sh4 is "realname" on #openttd #debian-mentors
03:06<andythenorth>V453000: more tank car bollocks http://dev.openttdcoop.org/attachments/download/8685/horse_tanks_2.png
03:06<andythenorth>less shit
03:07<V453000>very nice but I think it could use some sort of shading at the ends
03:07<V453000>it looks flat horizontally
03:07<V453000>at the end I would expect some darkening or brightening or something
03:07<V453000>idk
03:08<andythenorth>I will try pissing around with some highlights
03:17<andythenorth>I have to draw another two generations also :P
03:17<andythenorth>tank wagons don’t have doors even
03:17<andythenorth>hard
03:19<Arveen2>clicking that video with a headset on and sound set to 90% is not a good idea
03:19<andythenorth>fair
03:26-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has quit [Quit: andythenorth]
03:32-!-Sova [~Sova@cable-89-216-123-190.static.sbb.rs] has joined #openttd
03:32-!-Sova is "realname" on #openttd #openttdcoop
03:58-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has joined #openttd
03:58-!-andythenorth is "andythenorth" on #openttd
03:59-!-Compu [~Compu@0001feeb.user.oftc.net] has quit [Remote host closed the connection]
04:00-!-Compu [~Compu@0001feeb.user.oftc.net] has joined #openttd
04:00-!-Compu is "Compu" on #/r/openttd #openttdcoop #openttdcoop.stable #openttd #help
04:06-!-sla_ro|master [~sla.ro@78.96.209.89] has quit []
04:09-!-goodger [~goodger@185.83.217.70] has quit [Quit: +++ Redo From Start +++]
04:11-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has quit [Quit: andythenorth]
04:20-!-Supercheese [~Superchee@cpe-76-178-137-142.natnow.res.rr.com] has left #openttd []
04:39-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has joined #openttd
04:39-!-andythenorth is "andythenorth" on #openttd
04:40-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has quit []
05:06-!-Wolf01 [~wolf01@0001288e.user.oftc.net] has joined #openttd
05:06-!-Wolf01 is "Wolf01" on #openttd
05:07<Wolf01>o/
05:07<Wolf01>Fook humidity, fish swimming in the air :|
05:38-!-andythenorth [~andytheno@194.168.185.226] has joined #openttd
05:38-!-andythenorth is "andythenorth" on #openttd
05:38-!-andythenorth [~andytheno@194.168.185.226] has left #openttd []
05:59-!-ToffeeYogurtPots [~ToffeeYog@7MPAACAQ0.tor-irc.dnsbl.oftc.net] has quit [Remote host closed the connection]
05:59-!-ToffeeYogurtPots [~ToffeeYog@tor3e1.digitale-gesellschaft.ch] has joined #openttd
05:59-!-ToffeeYogurtPots is "realname" on #apparmor #tor-onions #tor-offtopic #i2p #tor #tor-project #https-everywhere #privacybadger #openttd #privacytools.io #privacytech #redditprivacy #oftc
06:02-!-Defaultti [defaultti@lakka.kapsi.fi] has joined #openttd
06:02-!-Defaultti is "Defaultti" on #vserver #tor #powerdns #pentadactyl #openttd #love #gcc #debian
06:17-!-mindlesstux [~mindlesst@2001:19f0:5:238:5400:ff:fe30:7f01] has quit [Quit: ZNC - http://znc.in]
06:18-!-mindlesstux [~mindlesst@2001:19f0:5:238:5400:ff:fe30:7f01] has joined #openttd
06:18-!-mindlesstux is "ZNC - http://znc.in" on #virtualization #virt @#tuz-oftc @#tuz #qemu #osm #openttd #openconnect #observium #linode #ipv6 #OpenRailwayMap
06:24-!-Sova [~Sova@cable-89-216-123-190.static.sbb.rs] has quit [Ping timeout: 480 seconds]
06:24-!-Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has joined #openttd
06:24-!-Gja is "Martin" on #bcache #openttd
06:33-!-Defaultti [defaultti@lakka.kapsi.fi] has quit [Quit: WeeChat .]
06:34-!-Defaultti [defaultti@lakka.kapsi.fi] has joined #openttd
06:34-!-Defaultti is "Defaultti" on #vserver #tor #powerdns #pentadactyl #openttd #love #gcc #debian
06:35-!-goodger [~goodger@185.83.217.70] has joined #openttd
06:35-!-goodger is "GOODGER" on #openttd
07:07-!-Sova [~Sova@cable-89-216-123-190.static.sbb.rs] has joined #openttd
07:07-!-Sova is "realname" on #openttdcoop #openttd
07:09-!-Sova [~Sova@cable-89-216-123-190.static.sbb.rs] has quit []
07:23-!-smoke_fumus [~smoke_fum@37.151.179.94] has joined #openttd
07:23-!-smoke_fumus is "Crapping wizard" on #qemu #oolite #openttd
07:53-!-Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has quit [Quit: Going offline, see ya! (www.adiirc.com)]
08:10-!-Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has joined #openttd
08:10-!-Gja is "Martin" on #bcache #openttd
08:13-!-behalebabo [~behalebab@00020bd1.user.oftc.net] has joined #openttd
08:13-!-behalebabo is "Beha" on #openttd
08:14-!-behalebabo [~behalebab@00020bd1.user.oftc.net] has quit []
08:24-!-synchris [~synchris@139.138.202.72] has joined #openttd
08:24-!-synchris is "Synesios Christou" on #openttd
08:28-!-sim-al2 [~sim-al2@108-221-157-231.lightspeed.mmphtn.sbcglobal.net] has joined #openttd
08:28-!-sim-al2 is "sim-al2" on #openttd @#/r/openttd
08:36-!-Breckett [~DDD@x2f7f9e8.dyn.telefonica.de] has joined #openttd
08:36-!-Breckett is "Breckett" on #openttd #openttd.dev
09:03-!-sla_ro|master [~sla.ro@78.96.209.89] has joined #openttd
09:03-!-sla_ro|master is "slamaster" on @#sla #openttd #love
09:08-!-sh4 [~sh4@228.85-87-86.dynamic.clientes.euskaltel.es] has quit [Remote host closed the connection]
09:13-!-sim-al2 [~sim-al2@108-221-157-231.lightspeed.mmphtn.sbcglobal.net] has quit [Ping timeout: 480 seconds]
09:28-!-Breckett_ [~DDD@pool8021x174-92.RZ.HS-Augsburg.DE] has joined #openttd
09:28-!-Breckett_ is "Breckett" on #openttd
09:28-!-Breckett [~DDD@x2f7f9e8.dyn.telefonica.de] has quit [Read error: Connection reset by peer]
09:58-!-Alberth [~alberth@00015f9e.user.oftc.net] has joined #openttd
09:58-!-Alberth is "purple" on #openttd
09:58-!-mode/#openttd [+o Alberth] by ChanServ
10:04-!-Breckett_ [~DDD@pool8021x174-92.RZ.HS-Augsburg.DE] has quit [Ping timeout: 480 seconds]
10:04<Wolf01>o/
10:06<supermop>yo
10:07<supermop>locomotives coded but not yet drawn
10:07<supermop>except for one
10:08<supermop>i added switches to chose between all the liveries i want to draw
10:11-!-smoke_fumus [~smoke_fum@37.151.179.94] has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
10:13<@Alberth>ha, invisble engines :)
10:17-!-ToffeeYogurtPots [~ToffeeYog@0BGAACVIE.tor-irc.dnsbl.oftc.net] has quit [Remote host closed the connection]
10:37-!-Flygon [~Flygon@124-148-158-195.dyn.iinet.net.au] has quit [Read error: Connection reset by peer]
10:39-!-ToffeeYogurtPots [~ToffeeYog@5.254.112.154] has joined #openttd
10:39-!-ToffeeYogurtPots is "realname" on #oftc #redditprivacy #privacytech #privacytools.io #openttd #privacybadger #https-everywhere #tor-project #tor #i2p #tor-offtopic #tor-onions #apparmor
10:46-!-ricus [~ricus@chunli.enric.me] has quit [Quit: WeeChat 1.9.1]
10:46<supermop>also need to figure this out: https://www.tt-forums.net/viewtopic.php?p=1192913#p1192913
11:03-!-Breckett [~DDD@194.39.183.2] has joined #openttd
11:03-!-Breckett is "Breckett" on #openttd
11:03-!-Breckett [~DDD@194.39.183.2] has quit []
11:04<Wolf01>I don't know why, but the coal one looks bigger
11:15<supermop>Wolf01: ???
11:16<Wolf01>Screenshot you linked
11:16<Wolf01>The truck with iron ore seem it carries less stuff than the coal one on top right
11:17<supermop>oh thats a ways above
11:18<supermop>i think it is because the inside of the hopper is dark grey
11:18<supermop>so the last 1-px of empty hopper space looks like more coal
11:19<supermop>i guess i could lighten the inside of the hopper, but then gravel might have the same problem
11:20<Wolf01>Make iron ore fill the whole hopper instead of leaving 1px of border
11:21<supermop>too heavy
11:21<supermop>ooh its not a bug its a feature
11:21<supermop>i ore is heavier so same number of tons fills less of hopper
11:21<supermop>problem solved?
11:22<Wolf01>Lol
11:22<supermop>yessss
11:22<supermop>hmm do i want liveries to be random, or based on build date? or last service date?
11:23<@Alberth>likely you do
11:23<supermop>do old trams get new livery ever?
11:24<supermop>irl they gradually do as they come in for service
11:24<supermop>but some keep old livery for years
11:25<supermop>based on build date gives interesting effect where each towns trams might differ based on when then received new trams, even if the model of tram is the same
11:26<supermop>i guess i could also allow refit to whatever livery you want
11:26<supermop>but that is boring
11:27<@Alberth>some people freak out if they can't control the livery to whatever is supposed to be used in a city
11:28<supermop>the trams and liveries are not real though
11:29<supermop>only real-world 'inspired'
11:29<supermop>one of them looks like a sweatshirt i had in the 90s
11:30<supermop>maybe ill use variable 'company_type' so that only AI can get cool liveries
11:33<Wolf01>https://img-9gag-fun.9cache.com/photo/am2VEY4_460sv.mp4 NSFW
11:35<@Alberth>we are a bit pretentious in thinking we are not an artificial life form :p
11:40-!-Wormnest [~Wormnest@s5596abd2.adsl.online.nl] has joined #openttd
11:40-!-Wormnest is "Wormnest" on #openttd
11:40<supermop>https://newgrf-specs.tt-wiki.net/wiki/NML:Random_switch
11:41<supermop>looking at this i can't see how i would have a date specific result like i want
11:41<supermop>it seems like i could make it so that each time a tram goes to depot, it gets some random new livery
11:42<supermop>but not have say, "40% chance to receive current_year livery, 60% chance to keep whatever livery already had"
11:42-!-TheMask96 [martijn@lust.vhost.ne2000.nl] has quit [Ping timeout: 480 seconds]
11:45<Wolf01>4: cur_year_livery;
11:45<Wolf01>6: random_livery;
11:45<Wolf01>This won't work?
11:45<supermop>as i want to make sure that a tram never reverts to an older style
11:45<supermop>like if tram comes into the depot with 90s livery and then leaves with 80s livery
11:46-!-TheMask96 [martijn@pride.vhost.ne2000.nl] has joined #openttd
11:46-!-TheMask96 is "Martijn Zweistra" on @#altcontrol #openttd #openttd.notice
11:46<Wolf01>Use the "dependent"?
11:46<Wolf01>And 2 randoms
11:50<supermop>i don't think i understand
11:50<supermop>how does the tram remember it's current livery?
11:51<Wolf01>You have one random to select a livery based by year, and another random to select the livery based on the previous random or a new one, at least this is what I understood about it
11:57<supermop>is there a way for the random trigger to only randomly trigger
11:58<supermop>like it only actually triggers 40% of the time?
12:00<Eddi|zuHause>you'd need storage for that
12:01<supermop>like bitmask(TRIGGER_VEHICLE_SERVICE, TRIGGER_???, TRIGGER_ALL_NEEDED)
12:01<supermop>where trigger_??? is just some random that doesn't seem to exist
12:02<supermop>but would be nice if it did
12:02<Wolf01>That looks like an event
12:02<supermop>even if it was just 50/50 0 or 1
12:02<supermop>the even is going to depot
12:02<supermop>event
12:02<supermop>tram doesn't get repainted out on the street
12:03<Eddi|zuHause>i think there's an undocumented trigger callback (1? 2? something like that), you could do fancy magic there
12:03<supermop>undocumented hmm
12:03<supermop>do i have to use nfo?
12:03<Eddi|zuHause>but you can't base your decision on random bits there
12:04<Wolf01>I would like an online tool for doing OTTD stuff... it would be cool to debug without compiling and firing up the game, loading grfs, prepare the things you need to see
12:04<Eddi|zuHause>(because if you decide to not trigger, you have no chance to undo that decision)
12:04-!-Progman [~progman@p5DC5F598.dip0.t-ipconnect.de] has joined #openttd
12:04-!-Progman is "Peter Henschel" on #openttdcoop.dev #openttdcoop #openttd
12:05<Wolf01>You can trigger to "do nothing" maybe
12:05<supermop>Wolf01: thats what i want
12:05<Eddi|zuHause>supermop: seems like nml has "random_trigger" callback
12:06<supermop>but i don't think i can return 'do nothing' as a livery
12:06<supermop>brb
12:06<Eddi|zuHause>supermop: note that if you use that, all triggers you put in your other random decisions are ignored
12:06<supermop>i don't get it
12:06<supermop>this is over my head
12:08<Eddi|zuHause>supermop: normally, when a trigger happens, the game traverses the "default" decision chain, and on every random switch it finds there, it triggers the appropriate bits mentioned there
12:08<Eddi|zuHause>supermop: if you define "random_trigger" callback, it ignores the default chain and does this chain instead
12:09<Eddi|zuHause>so you have to duplicate the random switches for that callback
12:09<Eddi|zuHause>and possibly all relevant other decisions
12:17-!-Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has quit [Quit: Going offline, see ya! (www.adiirc.com)]
12:26-!-HerzogDeXtEr [~farci@dslb-188-103-254-155.188.103.pools.vodafone-ip.de] has joined #openttd
12:26-!-HerzogDeXtEr is "purple" on #openttd
12:40-!-Stimrol [~Stimrol@82-221-246-15.ljoshradi.is] has joined #openttd
12:40-!-Stimrol is "Stimrol" on #openttd
12:53<supermop>hmm
12:53<supermop>ok that might me a pain
12:53<supermop>but workable
12:53<supermop>the only other random thing these trams do other than livery is which end the pantograph is on
12:55<supermop>do RVs have any kind of storage?
12:58<supermop>what is the 32 day callback?
12:59<supermop>does it just return 1 one day out of 32? is it every 32 days counting from day 0 or from day vehicle was 'born'
13:00<supermop>~3% chance of new livery might be ok, but feels low for trams that do not regularly service
13:01<supermop>on short lines where i have depot as terminus, tram might service 6-10 times a year, but on a loop line it may only service for auto renew
13:02<supermop>i assume other players have trams visit the depot at most 1-2 times a year
13:04-!-glx [~glx@000128ec.user.oftc.net] has joined #openttd
13:04-!-mode/#openttd [+v glx] by ChanServ
13:04-!-glx is "Loïc GUILLOUX" on +#openttd
13:09<supermop>oh. the 70s tram gets extra doors if build after 1980
13:09<supermop>but thats not random
13:22-!-Cubey [~Coobies@pool-96-241-233-56.washdc.fios.verizon.net] has joined #openttd
13:22-!-Cubey is "Jaybar" on #openttd
13:26-!-frosch123 [~frosch@00013ce7.user.oftc.net] has joined #openttd
13:26-!-frosch123 is "frosch" on #openttdcoop.devzone #openttd.dev #openttd
13:26<supermop>hi frosch123
13:27<frosch123>hoi
13:27<Wolf01>Quak
13:33<supermop>ugh idk what im going to do
13:35<supermop>the random_switch page of docs doesn't make itclear to me where random_trigger callback goes
13:37<frosch123>random triggers are probably the second hardest thing after stations :)
13:38<frosch123>anyway, you put the triggers directly into the random_switch
13:38<Eddi|zuHause>all callbacks go in the graphics block
13:38<frosch123>and the random_switch must be in the graphics chain
13:38<frosch123>if you want to randomise a callback result, you still need a random_switch in the graphics chain for linking the rerandomisation trigger
13:39<supermop>Eddi|zuHause: like random_trigger: random_switch ?
13:39<Eddi|zuHause>yes
13:40<supermop>frosch123: i am trying to come up with a way where by old trams have some chance of getting new livery paint in depot
13:40<frosch123>rule 1: DO NOT USE "random_trigger"
13:40<supermop>but where they never get an old livery as new paint
13:41<Eddi|zuHause>frosch123: you forgot rule 0: "do not listen to eddi" :p
13:41<supermop>so they randomly decide to either 1: keep current livery, or 2: receive the 'new' livery for the current year
13:42<Eddi|zuHause>supermop: i sort of tried that in CETS by treating the random bits as a delay between new livery appearing and repainting
13:42<frosch123>i don't think that is possible
13:42<Eddi|zuHause>which has a whole load of problems
13:42<supermop>i cant figure out a way to have a switch have a 'do nothing option'
13:43<Eddi|zuHause>like accessing the random bits in a normal formula
13:43<supermop>the only way would seem to be randomly decide whether to traverse the switch at all
13:43<frosch123>hmm, oh, i have an idea, it works with gray code
13:43<supermop>...gray code?
13:43<supermop>what am i getting myself into here
13:43<frosch123>gray code is a method to count while only ever changing a single bit for incrementing/decrementing
13:44<Eddi|zuHause>and rerandomizing between different generations is also tricky
13:44<frosch123>that allows you to "count" by rerandomising a single bit
13:44<frosch123>supermop: so, how many generations?
13:44<supermop>most trams have 4 liveries
13:45<supermop>but only 3 regularly used
13:45<supermop>'livery A' is special, only appears if built during exclusive preview
13:45<frosch123>aww, then there is a easier solution without gray code :/
13:45<supermop>however, one tram has 8 liveries
13:45<@DorpsGek>Commit by translators :: r27927 trunk/src/lang/french.txt (2017-10-13 19:45:40 +0200 )
13:45<@DorpsGek>-Update from Eints:
13:45<@DorpsGek>french: 6 changes by glx
13:45<frosch123>why do the best solutions never have a usecase?
13:45<supermop>because i went crazy drawing them
13:46<supermop>frosch123: i am happy to draw more and more and more liveries
13:47<Eddi|zuHause>like i said, would be way easier if there were storage
13:47<supermop>yet
13:47<supermop>*yep
13:47<frosch123>ok, next question: what should be the probabiliy for upgrading the livery in every depot visit?
13:47<supermop>hmm something between 10 and 40 %
13:47<supermop>i'd need to test it to see
13:48<frosch123>ok, i'll make an example for 25%
13:48<supermop>i have some lines where trams are in the depot almost every 30 days, but i assum most trams go to depot 1-2 times per year
13:48<Eddi|zuHause>50% needs one bit, 25% needs two bits, 12.5% or 37.5% need 3 bits
13:49<supermop>i guess i should say 31.25% to be difficult then
13:49<supermop>heh
13:54<Eddi|zuHause>i could imagine a few ways to abuse triggers to get this behaviour, but it might still be easier to allow STORE/LOAD acces to the random bits directly
14:06-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has joined #openttd
14:06-!-andythenorth is "andythenorth" on #openttd
14:07<andythenorth>o/
14:08-!-Breckett [~DDD@p57B95858.dip0.t-ipconnect.de] has joined #openttd
14:08-!-Breckett is "Breckett" on #openttd #openttd.dev
14:09<supermop>hi andythenorth
14:12<Wolf01>o/
14:14<Breckett>hi
14:17<supermop>man adding sprites for drive-on-left is going to be a pain
14:17<@Alberth>o/
14:29-!-Breckett [~DDD@p57B95858.dip0.t-ipconnect.de] has quit [Ping timeout: 480 seconds]
14:30<frosch123>supermop: https://paste.openttdcoop.org/pxeshf1oz <- possibly something like that
14:31<andythenorth>supermop: “don’t”? :)
14:32<supermop>frosch123: ooooh
14:32<frosch123>hmm, i think it is incomplete
14:33<frosch123>i need to downgrade vehicle which are built as gen1 with inital random bits saying "upgraded"
14:41<frosch123>supermop: https://paste.openttdcoop.org/pr1k87qsc <- next try
14:41<supermop>ok
14:42*frosch123 probably scared him away :p
14:44<supermop>what is #define YEAR_ etc is that something you can do in nml?
14:49<Eddi|zuHause>those are preprocessor commands
14:50<Eddi|zuHause>if you run your file through the c-preprocessor (cpp)
14:59<supermop>oh
15:00<supermop>i wonder if i can write this thing out just once per generation of trams rather than per model of tram
15:01<supermop>like so all the results are 'Gen 3 livery B' etc
15:01<supermop>hmm no
15:03<supermop>there isn't a way i can think of for the switch in the tram graphics area to get 'gen 3 livery A' from the other switches and do anything meaningful with it
15:03-!-gelignite [~gelignite@x4e3066a1.dyn.telefonica.de] has joined #openttd
15:03-!-gelignite is "gelignite" on #openttd #openttdcoop.devzone
15:03-!-tycoondemon [~ashnohoe@ip503d7ac1.speed.planet.nl] has joined #openttd
15:03-!-tycoondemon is "..." on #openttdcoop.stable #openttdcoop #openttd
15:03<andythenorth>you could
15:03<supermop>ie so that 'gen 3 livery A' is one spritegroup for a 1 car tram, and a different one for the parts of a 3 car tram
15:03<andythenorth>but it’s not the right problem to solve
15:06<supermop>right solution to the right problem would have been 'don't have various liveries'
15:06<supermop>but too late i already drew them
15:09<andythenorth>is your problem manually writing the switches?
15:10<supermop>that isn't a problem so much as a feeling of efficiency or propriety
15:12<supermop>if all the trams of a certain body style have the same 4 styles of livery, it 'feels' right that they all use the same mechanism to decide which livery they receive
15:13<supermop>ofc i can put frosch123's chain of switches once per tram, and that may be better even, allowing finer control of the years for each style
15:13<supermop>but something about it feels clunky
15:14<Wolf01>https://www.flickr.com/photos/omega3108/36096870022/in/pool-788191@N24/ flat wagon
15:14<supermop>Wolf01: beautiful
15:24<andythenorth>5/8
15:24<andythenorth>doesn’t fit Horse
15:24<andythenorth>ha ha it actually is 5/8
15:24*andythenorth just guessed without counting studs
15:25<andythenorth>hmm 6/8 including buffers :P
15:25<supermop>andythenorth: yeah
15:25<supermop>the deck is 22 studs not 20
15:29<andythenorth>supermop: so the switch thing…you’re opening a box labelled ‘templating’ :P
15:30<supermop>T_T
15:36-!-Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has joined #openttd
15:36-!-Gja is "Martin" on #bcache #openttd
16:19-!-Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has quit [Quit: Going offline, see ya! (www.adiirc.com)]
16:22-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has quit [Quit: andythenorth]
16:23-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has joined #openttd
16:23-!-andythenorth is "andythenorth" on #openttd
16:23-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has quit []
16:28-!-Alberth [~alberth@00015f9e.user.oftc.net] has left #openttd []
16:29<supermop>frosch123: sorry i am meaning to try your code, but i have to fill in lots of code for the liveries themselves and the trams to use them first
16:30<frosch123>the more graphics the more complex :)
16:30<frosch123>there is a reason why andy does python magic
16:37<supermop>i need to do some recoloring on my open wagons too
16:37<supermop>which idk how to do, but need to get these trams working first
16:44<V453000>yo
16:45<V453000>automation
16:46<Wolf01>Need more high level language or a dedicated ide
16:46-!-sim-al2 [~sim-al2@108-221-157-231.lightspeed.mmphtn.sbcglobal.net] has joined #openttd
16:46-!-sim-al2 is "sim-al2" on #openttd @#/r/openttd
16:49<V453000>I will also try to do some pythony pythoning with my next project
16:49<V453000>many graphics = mayhem
16:51<Wolf01>Shit, I already ate half of a maxi-pack of loackers
16:51<Wolf01>I should try with some cement
16:56<supermop>i dont really get this page: https://newgrf-specs.tt-wiki.net/wiki/NML:Recolour_sprites
16:56<V453000>which part don't you get
16:56<supermop>it seems like i list the color i want to recolor, then the color it should become, but where the hell do i apply it to a sprite
16:57<V453000>you give it values and it recolours from A to B autmoatically
16:57<supermop>like i have recolor_sprite_mop
16:57<supermop>and i have spriteset_mop_01
16:58<supermop>where do i say 'use recolor_sprite_mop on spriteset_mop_01'
17:01<V453000>colour_mapping: RAINBOWSLUG_colour_mapping_random;
17:01<V453000>in graphics{}
17:02<V453000>and there you have a random or whatever switch leading to the recolour table
17:02<V453000>rainbow slugs do it if you check out nuts.nml
17:03<V453000>http://dev.openttdcoop.org/projects/nuts/repository/changes/nuts.nml
17:03<V453000>note that frosch wrote that part, so it's utter batshit insane
17:03<supermop>ok
17:03<supermop>makes sense
17:03<V453000>but I think the basic part is this simple
17:04<frosch123>supermop: just use the normal cc recolour sprites
17:04<frosch123>is there a need to define custom ones?
17:04<supermop>for one case i want to make an open wagon either grey, 1cc, or 2cc
17:05<frosch123>anyway, selecting the recolouring works different when using sprite stacks
17:06<frosch123>so before you start with recolouring you should decide whether to possibly use stacks somewhen, or whether to never use them
17:06<frosch123>(you can use a stack of 1 for starting)
17:07<V453000>what's the major difference?
17:07<frosch123>[23:04] <supermop> for one case i want to make an open wagon either grey, 1cc, or 2cc <- does "grey" look the same as when grey is selected as cc? or is it some other grey?
17:07<V453000>I'll want to use both
17:07<frosch123>V453000: when not using stacks you select sprites and recolouring in two independent switch chains
17:08<frosch123>with stacks you select both as pairs in the same switch chain
17:08<frosch123>though if the whole stack shall use the same recolouring you can still use the old method
17:09<V453000>nice, another dimension wtf :D this going to be crazy
17:10<V453000>no I will use it for each layer
17:10<V453000>probably just for 2 at most
17:24<Wolf01>https://www.flickr.com/photos/45034697@N03/albums/72157622766262277 andy... nothere, supermop you might like this
17:25<supermop>cool
17:26<supermop>frosch123: i could make it so the whole stack recolors the same, but was thinking each layer would color separately
17:27<frosch123>http://devs.openttd.org/~frosch/diffs/vehstack/vehstack.nml <- that's still the example grf for that
17:28<frosch123>thought it can probably be written more intuititve
17:29<frosch123>-t -t
17:30<supermop>i already use stacks for almost all of my vehicles
17:31<supermop>i wonder what is better switch chain: [position in consist]-[stack]-[livery style]
17:32<supermop>or [style]-[stack]-[position]
17:32<frosch123>if you store some intermediate results using STORE_TEMP, it does not matter
17:32<supermop>[style]-[position]-[stack] sounds intuitive
17:33<frosch123>in that case there is no need to duplicate all the cases
17:33<supermop>ooh
17:36<supermop>does i need to set a unique location to store for each tram?
17:37<frosch123>no
17:37<frosch123>you can use link them globally
17:37<frosch123>register 0 for style, register 1 for position, ...
17:38<frosch123>s/use/just/
17:38<supermop>ok so i can have like:
17:38<supermop>switch_style, <magic>;
17:39<supermop>then STORE_TEMP(switch_style, 0)
17:39-!-mindlesstux [~mindlesst@2001:19f0:5:238:5400:ff:fe30:7f01] has quit [Quit: ZNC - http://znc.in]
17:40<frosch123>well, the point is, if you have a complicated formular for "position", you do not need to duplicate it for each "style"
17:40-!-mindlesstux [~mindlesst@2001:19f0:5:238:5400:ff:fe30:7f01] has joined #openttd
17:40-!-mindlesstux is "ZNC - http://znc.in" on #virtualization #virt @#tuz-oftc @#tuz #qemu #osm #openttd #openconnect #observium #linode #ipv6 #OpenRailwayMap
17:40<frosch123>and you do not need to duplicate "stack" for each combination of "style" and "position"
17:45<supermop>so this is my simplest tram:
17:45<supermop>https://paste.openttdcoop.org/p1xgacof6
17:45<supermop>only one car, only two things to stack, only two random livery variations
17:46<supermop>now i am adding trams with 5 cars, different things to stack on each, switch to vary which end gets pantograph, and special livery magic
17:46<supermop>so i imagine it will make a big branching tree of switches
17:58-!-synchris [~synchris@139.138.202.72] has quit [Quit: No Ping reply in 180 seconds.]
17:59-!-synchris [~synchris@139.138.202.72] has joined #openttd
17:59-!-synchris is "Synesios Christou" on #openttd
18:00<frosch123>supermop: https://paste.openttdcoop.org/pqdqvoowf <- same thing with recolouring and all combinations in a single switch
18:02<frosch123>https://paste.openttdcoop.org/pxheywckn <- i missed some parentheses
18:07-!-Wormnest [~Wormnest@s5596abd2.adsl.online.nl] has quit [Quit: Leaving]
18:08-!-gelignite [~gelignite@x4e3066a1.dyn.telefonica.de] has quit [Quit: I have always found that mercy bears richer fruits than strict justice.]
18:08-!-tycoondemon [~ashnohoe@ip503d7ac1.speed.planet.nl] has quit [Ping timeout: 480 seconds]
18:11-!-sla_ro|master [~sla.ro@78.96.209.89] has quit []
18:29-!-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]
18:36-!-supermop_home [~user@pool-100-37-117-232.nycmny.fios.verizon.net] has joined #openttd
18:36-!-supermop_home is "Guest" on #tycoon #openttd
18:37<supermop_home>ok back home
18:37<supermop_home>@logs
18:37<@DorpsGek>supermop_home: https://webster.openttdcoop.org/index.php?channel=openttd
18:54-!-supermop_ [~user@pool-100-37-117-232.nycmny.fios.verizon.net] has joined #openttd
18:54-!-supermop_ is "Guest" on #tycoon #openttd
18:57-!-supermop_home [~user@pool-100-37-117-232.nycmny.fios.verizon.net] has quit [Ping timeout: 480 seconds]
18:59-!-Progman [~progman@p5DC5F598.dip0.t-ipconnect.de] has quit [Remote host closed the connection]
19:18-!-Stimrol [~Stimrol@82-221-246-15.ljoshradi.is] has quit [Quit: ZNC - http://znc.in]
19:32-!-goodger [~goodger@185.83.217.70] has quit [Remote host closed the connection]
19:33-!-goodger [~goodger@185.83.217.70] has joined #openttd
19:33-!-goodger is "GOODGER" on #openttd
20:11-!-HerzogDeXtEr [~farci@dslb-188-103-254-155.188.103.pools.vodafone-ip.de] has quit [Read error: Connection reset by peer]
20:20-!-debdog [~debdog@2a02:8070:4182:a200:7a24:afff:fe8a:d04d] has quit [Quit: No Ping reply in 180 seconds.]
20:24-!-Flygon [~Flygon@124-148-158-195.dyn.iinet.net.au] has joined #openttd
20:24-!-Flygon is "Flygon" on #openttd
20:27-!-debdog [~debdog@2a02:8070:4182:a200:7a24:afff:fe8a:d04d] has joined #openttd
20:27-!-debdog is "Wowbagger" on #openttd
20:35-!-Wolf01 [~wolf01@0001288e.user.oftc.net] has quit [Quit: Once again the world is quick to bury me.]
20:37-!-synchris [~synchris@139.138.202.72] has quit [Remote host closed the connection]
20:47-!-tokai [~tokai@00012860.user.oftc.net] has quit [Quit: c('~' )o]
20:50-!-debdog [~debdog@2a02:8070:4182:a200:7a24:afff:fe8a:d04d] has quit [Quit: No Ping reply in 180 seconds.]
20:51-!-debdog [~debdog@2a02:8070:4182:a200:7a24:afff:fe8a:d04d] has joined #openttd
20:51-!-debdog is "Wowbagger" on #openttd
21:53-!-mindlesstux [~mindlesst@2001:19f0:5:238:5400:ff:fe30:7f01] has quit [Quit: ZNC - http://znc.in]
21:54-!-mindlesstux [~mindlesst@2001:19f0:5:238:5400:ff:fe30:7f01] has joined #openttd
21:54-!-mindlesstux is "ZNC - http://znc.in" on #virtualization #virt @#tuz-oftc @#tuz #qemu #osm #openttd #openconnect #observium #linode #ipv6 #OpenRailwayMap
22:09-!-tokai [~tokai@00012860.user.oftc.net] has joined #openttd
22:09-!-tokai is "Christian Rosentreter" on #openttd
22:09-!-mode/#openttd [+v tokai] by ChanServ
22:38-!-tokai [~tokai@00012860.user.oftc.net] has quit [Ping timeout: 480 seconds]
22:39-!-tokai [~tokai@00012860.user.oftc.net] has joined #openttd
22:39-!-tokai is "Christian Rosentreter" on #openttd
22:39-!-mode/#openttd [+v tokai] by ChanServ
23:00-!-Coobies [~Coobies@pool-96-241-233-56.washdc.fios.verizon.net] has joined #openttd
23:00-!-Coobies is "Jaybar" on #openttd
23:04-!-glx [~glx@000128ec.user.oftc.net] has quit [Quit: Bye]
23:07-!-Cubey [~Coobies@pool-96-241-233-56.washdc.fios.verizon.net] has quit [Ping timeout: 480 seconds]
23:08-!-DDR [~DDR_unhap@S0106f0f249839863.vc.shawcable.net] has quit [Quit: DDR is not Dance Dance Revolution]
23:14-!-DDR [~DDR_unhap@S0106f0f249839863.vc.shawcable.net] has joined #openttd
23:14-!-DDR is "David" on #openttd
---Logclosed Sat Oct 14 00:00:38 2017