Back to Home / #openttd / 2017 / 12 / Prev Day | Next Day
#openttd IRC Logs for 2017-12-22

---Logopened Fri Dec 22 00:00:16 2017
00:06-!-cHawk [] has joined #openttd
00:06-!-cHawk is "realname" on #openttd #tor-project #tor
00:06-!-sim-al2 is now known as Guest250
00:06-!-sim-al2 [] has joined #openttd
00:06-!-sim-al2 is "sim-al2" on #openttd @#/r/openttd
00:10-!-Guest250 [] has quit [Ping timeout: 480 seconds]
01:00-!-Guest533 [] has quit [Remote host closed the connection]
01:00-!-ATMunn [] has joined #openttd
01:00-!-ATMunn is "person" on #openttdcoop #openttd
01:01-!-ATMunn is now known as Guest254
01:18-!-Smedles [] has joined #openttd
01:18-!-Smedles is "Paul Smedley" on #openttd
01:35-!-sim-al2 is now known as Guest255
01:35-!-sim-al2 [] has joined #openttd
01:35-!-sim-al2 is "sim-al2" on #openttd @#/r/openttd
01:39-!-Guest255 [] has quit [Ping timeout: 480 seconds]
02:03-!-synchris [~synchris@] has joined #openttd
02:03-!-synchris is "Synesios Christou" on #openttd
02:06-!-sla_ro|master [] has joined #openttd
02:06-!-sla_ro|master is "slamaster" on #sla #openttd #love
02:21-!-Guest254 [] has quit [Quit: oh noes i quit]
02:22-!-ATMunn [] has joined #openttd
02:22-!-ATMunn is "person" on #openttdcoop #openttd
02:22-!-ATMunn is now known as Guest256
02:24-!-tokai [] has joined #openttd
02:24-!-mode/#openttd [+v tokai] by ChanServ
02:24-!-tokai is "Christian Rosentreter" on +#openttd
02:29-!-ToBeFree [] has joined #openttd
02:29-!-ToBeFree is "ToBeFree" on #openttd @#freiwuppertal #https-everywhere #oolite-dev #oolite-ger #oolite #tor #linux
02:31-!-tokai|noir [] has quit [Ping timeout: 480 seconds]
02:31-!-chomwitt [~chomwitt@2a02:587:dc08:a00:5d62:de18:5084:4933] has joined #openttd
02:31-!-chomwitt is "chomwitt" on #debian-mentors #oolite #openttd #qemu #debian #debian-games
03:35-!-Flygon_ [] has joined #openttd
03:35-!-Flygon_ is "Flygon" on #openttd
03:42-!-Flygon [] has quit [Ping timeout: 480 seconds]
04:39-!-ToBeFree [] has quit [Quit: Connection closed for inactivity]
04:44-!-Progman [] has joined #openttd
04:44-!-Progman is "Peter Henschel" on #openttdcoop #openttd
04:50-!-sla_ro|master [] has quit []
05:07-!-sim-al2 [] has quit [Ping timeout: 480 seconds]
05:36-!-longtomjr [~longtomjr@] has joined #openttd
05:36-!-longtomjr is "realname" on #openttd
05:37<longtomjr>Hello! I have been looking at GRFs and seen that some people does not use NML (at least not that I can see) to create GRFs and instead use python. (As an example, SQUID, FIRS etc.)
05:42<longtomjr>Is there any help/docs available to help with the python approach, or should I just use figure it out reading source? If the latter, any pointers? Should I look at SQUID, or go straight to NML itself?
05:44<Alkel_U3>If I understand right they use Python to generate NML where suitable, not really directly using python to write newgrfs
05:47<longtomjr>Ah ok, thanks for the reply, is there any reason for doing it that way around?
05:49<Alkel_U3>I guess getting rid of more repetition in bigger projects and having control of more elements from more concentrated piece of code but you'd best ask someone native to those projects you mentioned
05:53<longtomjr>Thanks again. How would I go about contacting andythenorth for example? Forums? Is there a way to do it on ottdcoop?
05:56<__ln__>@seen andythenorth
05:56<@DorpsGek>__ln__: andythenorth was last seen in #openttd 13 hours, 18 minutes, and 22 seconds ago: <andythenorth> too dark?
05:58<longtomjr>ty __ln__ , Will hang around here :)
05:58<Alkel_U3>he'll appear here, eventualy
05:58<longtomjr>Thanks guys
06:05-!-HerzogDeXtEr [] has joined #openttd
06:05-!-HerzogDeXtEr is "purple" on #openttd
06:07-!-Progman [] has quit [Remote host closed the connection]
06:25-!-m3henry [] has joined #openttd
06:25-!-m3henry is "henry" on #openttd
06:25-!-SgtStroopwafel [] has quit [Ping timeout: 480 seconds]
06:26-!-ToBeFree [] has joined #openttd
06:26-!-ToBeFree is "Tobias "ToBeFree" Frei" on #https-everywhere @#freiwuppertal #oolite-dev #openttd #tor #debian #linux #oolite #oolite-ger
06:30-!-ToBeFree [] has quit []
07:15<longtomjr>Does anyone here have a small major mode for NML in emacs? (Just wanna know if I should write my own, or if there is one available)
07:26-!-Alberth [] has joined #openttd
07:26-!-mode/#openttd [+o Alberth] by ChanServ
07:26-!-Alberth is "purple" on @#openttd
07:27-!-Gja [] has joined #openttd
07:27-!-Gja is "Martin" on #ceph #bcache #openttd
07:32<m3henry>Man, trying to refactor anything to do with SmallVector seems to confuse the hell out of KDevelop
07:46-!-SgtStroopwafel_ [] has joined #openttd
07:46-!-SgtStroopwafel_ is "Chuck Norris" on #tor #debconf18-taiwan #openttd #debian #qtile #hackbeach #ck #area31 #wardriving
07:48<@Alberth>IDEs are pretty stupid :p
07:48-!-Gustavo6046 [] has joined #openttd
07:48-!-Gustavo6046 is "realname" on #openttd #ohnx @#gusbot #doom64ex
07:51-!-Thedarkb [] has quit [Ping timeout: 480 seconds]
08:30-!-Thedarkb [] has joined #openttd
08:30-!-Thedarkb is "realname" on #oolite #openttd #/r/openttd
08:31-!-sim-al2 [] has joined #openttd
08:31-!-sim-al2 is "sim-al2" on #openttd @#/r/openttd
08:36<m3henry>It is a little understandable, the inheritance hierachy doesn't make it easy
08:38<m3henry>I'd like to take SmallVector::Begin() and ::End() and make them begin() and end() so that one can do `for (auto& val : vec) {...}`
08:43-!-SgtStroopwafel_ [] has quit [Ping timeout: 480 seconds]
08:51-!-SgtStroopwafel_ [] has joined #openttd
08:51-!-SgtStroopwafel_ is "Chuck Norris" on #tor #debconf18-taiwan #openttd #debian #qtile #hackbeach #ck #area31 #wardriving
08:51<@Alberth>I wonder if composition would be better
08:51<@Alberth>or even a begin() and end() template function
08:53-!-RafiX [] has joined #openttd
08:53-!-RafiX is "rafix" on #openttd #oolite #love
08:57<m3henry>composition would certainly better for readability
08:58-!-Borg [] has joined #openttd
08:58-!-Borg is "Unknown" on #openttd
09:12-!-HerzogDeXtEr [] has quit [Read error: Connection reset by peer]
09:15-!-debdog [~debdog@2a02:8070:41cd:5a00:7a24:afff:fe8a:d04d] has quit [Quit: No Ping reply in 180 seconds.]
09:20-!-murr4y is "AK" on #bitlbee #suckless
09:20-!-murr4y [] has joined #openttd
09:21-!-debdog [~debdog@2a02:8070:41cd:5a00:7a24:afff:fe8a:d04d] has joined #openttd
09:21-!-debdog is "Wowbagger" on #openttd
09:28-!-Progman [] has joined #openttd
09:28-!-Progman is "Peter Henschel" on #openttdcoop #openttd
09:35-!-Samu [] has joined #openttd
09:35-!-Samu is "OFTC WebIRC Client" on #openttd
09:54-!-sim-al2 [] has quit [Ping timeout: 480 seconds]
10:34<Borg>daaa fuck :D
10:34<Borg>2 oil rigs closed in same time ;D
10:38-!-Thedarkb [] has quit [Ping timeout: 480 seconds]
10:39-!-Thedarkb [] has joined #openttd
10:39-!-Thedarkb is "realname" on #oolite #openttd
11:00-!-Stimrol [] has joined #openttd
11:00-!-Stimrol is "Stimrol" on #openttd
11:06-!-Flygon_ [] has quit [Read error: Connection reset by peer]
11:15-!-Cubey [] has joined #openttd
11:15-!-Cubey is "Jaybar" on #openttd
11:45-!-Wormnest [] has joined #openttd
11:45-!-Wormnest is "Wormnest" on #openttd
12:27-!-frosch123 [] has joined #openttd
12:27-!-frosch123 is "frosch" on #openttdcoop.devzone #openttd
12:28-!-andythenorth [] has joined #openttd
12:28-!-andythenorth is "andythenorth" on #openttd
12:35<longtomjr>Hey andythenorth. I seen that your newGRFs are written in python, I was wondering what the purpose of that is, and if there is any resources for making newGRF's with python.
12:36<andythenorth>there is a tutorial in forums
12:37<andythenorth>but it's not how I actually work
12:37<longtomjr>mmm? Are you generating NML code with python?
12:38<andythenorth>is the beginners guide I wrote
12:38<andythenorth>I generated docs, sprites and NML with python
12:39<longtomjr>wow cool. Thanks for the link :)
12:39<Borg>anyone here does loco transfers on 8 tiles distance? ;)
12:39<Borg>or its just me
12:40<longtomjr>Have been cloning them and looking already, thanks a lot for the help though :)
12:40<longtomjr>Have been looking at SQUID too.
12:41<frosch123>longtomjr: <- also, that page is generated from the same source
12:41<frosch123>so they documentation always fits the grf
12:41<longtomjr>Nice thanks for chiming in frosch123
12:41<andythenorth>it's much better having the vehicles or industries as objects in code
12:41<longtomjr>do you use Sphinx for the docs?
12:42<andythenorth>there's a sort of irony, that NML also parses the declarations, and builds objects in code :P
12:42<andythenorth>no I wrote my own templates
12:42<longtomjr>ah ok
12:42<andythenorth>python objects -> NML -> python objects -> grf
12:42<andythenorth>it's a really silly interface in retrospect :P
12:42<longtomjr>What dev enviroment do you use? Do you have some syntax higlighting for vim (or emacs)?
12:43<andythenorth>I have an editor on OS X that understands python
12:43<Borg>andythenorth: holy necro.. long path... no misgenerations? :)
12:43<longtomjr>I meant for NML
12:43<andythenorth>my editor doesn't understand nml :(
12:43<andythenorth>I could write a syntax plugin for it, but meh
12:43<andythenorth>I don't write much nml, I try to avoid it :)
12:43<longtomjr>ah ok, I have the same issue, currently looking to write a major-mode in emacs for it
12:44<andythenorth>I have to read the docs every time I want to write nml
12:45<longtomjr>Since NML is written in python, would it not make sense to create something that interfaces through the nml source/compiler directly without needing the generation of NML
12:45<frosch123>longtomjr: there are nml syntax files for kate and geany
12:45<frosch123>maybe you can base your stuff on that
12:46<longtomjr>The reason I ask is because I am much more comfortable with python and have been using it for years, so that is why I wanted to use python for this too, since I love working in it.
12:48<longtomjr>@frosch123, thanks. I am using the files available, but emacs is a wierd beast when it comes to implementations like this. Still, even though it is different, it is a hell of a lot better than working in TMLanguage files in xml
12:48<longtomjr>It is just difficult for me since I only started using emacs this year, but it sounds like a fin challenge, and I get to learn some list while I am at it
12:52-!-Thedarkb [] has quit [Ping timeout: 480 seconds]
12:53-!-Thedarkb [] has joined #openttd
12:53-!-Thedarkb is "realname" on #oolite #openttd
12:56<andythenorth>Eddi|zuHause imported some of the nml packages for CETS, and wrote directly with them, I think
12:56<andythenorth>doing that and assembling the tree is beyond my programming skills
12:57<@Alberth>makes use of the code in other projects also complicated
12:57<@Alberth>not many people have that deep knowledge of python and nml internals
12:58<@Alberth>while eg FIRS source is being used in several other projects, precisely because it's nml text
13:01<Borg>as we speak.. but newgrf
13:01-!-glx [] has joined #openttd
13:01-!-mode/#openttd [+v glx] by ChanServ
13:01-!-glx is "Loïc GUILLOUX" on #opendune #openttd.noai #openttd.notice +#openttd
13:01<Borg>anyone can explain me how to catch industry production callback?
13:02<Borg>its Action 2 industry... but.. I cant figure out how its being catched...
13:02<Borg>there is no such callback..
13:02<Eddi|zuHause>andythenorth: i think i wanted to try something like that, but it never went very far
13:02<Borg>or I can just use action 3 to bind it.. and engine is smart enough to find it?
13:03<andythenorth>Borg: you writing nfo or nml?
13:03<Borg>from description they said I need to check CB 1C variable..
13:03<Borg>but they didnt say what value..
13:03<andythenorth>I can't remember how to do the production CB
13:03<Eddi|zuHause>Borg: variable 1C stores the callback number
13:04<Borg>erm... NFO is that binary thingie?
13:04<@Alberth>hexadecimal, but yes
13:04<Borg>Eddi|zuHause: yeah.. but what value... its not state anywhere..
13:04<Eddi|zuHause>so you check 1C for whatever number the production callback. but nml does that automatically
13:05<Eddi|zuHause>iirc nml has "produce"-blocks
13:05<Borg>but I dont use NML. I could not wrap myself around it..
13:05<@Alberth> produce_* entries (2nd and 3rd)
13:06<Borg>andythenorth: yeah.. but what are they values
13:06<Borg>I even start digging OpenTTD source.. and it doent look like callback at all :(
13:07<Eddi|zuHause> <-- the callback number is the number in () at the end of the title
13:07<andythenorth>try an action 3 -> action 2
13:07<andythenorth>there is only one action 2 for industries
13:07<andythenorth>the production cb
13:07<andythenorth>afaik, action 2 always must be chained in action 3
13:08<andythenorth>I could look up *really* old FIRS code
13:08<frosch123>the "production callback" is no "callback"
13:08<frosch123>it has no callback id
13:08<frosch123>it's the default thing
13:08<Borg>so I can have multiple action 3 binding action 2?
13:08<Borg>currently I have some callbacks in use
13:09*andythenorth looking in old FIRS code
13:09<Eddi|zuHause>yes, you can reuse an action2 in multiple action3
13:09<Borg>Eddi|zuHause: but other way around?
13:10<Borg>or wait!
13:10<Eddi|zuHause>there is no other way around
13:10<Borg>there is no colission after all :)
13:10<Borg>so.. it might work.. thx
13:10<Borg>because production callbacks are only for primary industries
13:10<Borg>and secondary one.. use that action 2
13:10<Eddi|zuHause>you have exactly one action3 per industry
13:11<Borg>okey, thx :)
13:11<andythenorth>C1 in my example chains to the production cb
13:12*andythenorth can still read NFO :P
13:12<andythenorth>after about 5 years of not touching it
13:13<Eddi|zuHause>is it like riding a bike?
13:13<Borg>or wait...
13:13<Borg>I was mistaken.. there is collision!
13:14<Borg>but.. okey :) I will do exacly as you
13:15<Borg>andythenorth: do you have any additional checks in C1 action2 ?
13:15<Borg>or its directly a production callback?
13:16<andythenorth>it runs through some varaction 2 storing to registers
13:16-!-Wolf01 [] has joined #openttd
13:16-!-Wolf01 is "Wolf01" on #openttd
13:17<Wolf01>(I didn't use this one for a long time)
13:34-!-sla_ro|master [] has joined #openttd
13:34-!-sla_ro|master is "slamaster" on #sla #openttd #love
13:45<@DorpsGek>Commit by translators :: r27947 trunk/src/lang/spanish_MX.txt (2017-12-22 19:45:39 +0100 )
13:45<@DorpsGek>-Update from Eints:
13:45<@DorpsGek>spanish (mexican): 1 change by Absay
14:25-!-Gustavo6046 [] has quit [Ping timeout: 480 seconds]
14:39-!-Thedarkb [] has quit [Ping timeout: 480 seconds]
14:50-!-Thedarkb [] has joined #openttd
14:50-!-Thedarkb is "realname" on #oolite #openttd
15:03<Borg>RafiX: still have problems joining servers?
15:03<Borg>im looking for players ;)
15:03-!-Gustavo6046 [] has joined #openttd
15:03-!-Gustavo6046 is "realname" on #openttd #ohnx @#gusbot #doom64ex
15:05-!-Gustavo6046 [] has quit []
15:19<andythenorth>anyone played new Steeltown?
15:20-!-Gustavo6046 [] has joined #openttd
15:20-!-Gustavo6046 is "realname" on #openttd #ohnx @#gusbot #doom64ex
15:21<Borg>I think I will set train maintenance interval to 540 days
15:21<Borg>270 and they sit too much in depots
15:29-!-sla_ro|master [] has quit []
15:58<@Alberth>andy, started somewhat
15:58<@Alberth>seems ok, chemicals is new
15:59-!-Alberth [] has left #openttd []
16:29-!-debdog [~debdog@2a02:8070:41cd:5a00:7a24:afff:fe8a:d04d] has quit [Quit: No Ping reply in 180 seconds.]
16:30-!-debdog [~debdog@2a02:8070:41cd:5a00:7a24:afff:fe8a:d04d] has joined #openttd
16:30-!-debdog is "Wowbagger" on #openttd
16:43*andythenorth considering adding Tyres cargo
16:44<andythenorth>primarily for the cargo graphics at station
16:52-!-frosch123 [] has quit [Quit: be yourself, except: if you have the opportunity to be a unicorn, then be a unicorn]
16:58-!-andythenorth [] has quit [Quit: andythenorth]
17:11-!-Borg [] has quit [Quit: late here.. nite]
17:40-!-Wolf01 [] has quit [Quit: Once again the world is quick to bury me.]
17:44-!-Gja [] has quit [Quit: Going offline, see ya! (]
17:58-!-Flygon [] has joined #openttd
17:58-!-Flygon is "Flygon" on #openttd
18:45-!-m3henry [] has quit [Quit: WeeChat 1.9.1]
18:48-!-Stimrol [] has quit [Quit: ZNC -]
18:55-!-synchris [~synchris@] has quit [Remote host closed the connection]
19:15-!-Wormnest [] has quit [Quit: Leaving]
19:53-!-longtomjr_ [~longtomjr@] has joined #openttd
19:53-!-longtomjr_ is "realname" on #openttd
19:53-!-Gustavo6046 [] has quit [Ping timeout: 480 seconds]
19:56-!-Progman [] has quit [Remote host closed the connection]
20:00-!-longtomjr [~longtomjr@] has quit [Ping timeout: 480 seconds]
20:05-!-Gustavo6046 [~Gustavo60@] has joined #openttd
20:05-!-Gustavo6046 is "realname" on #openttd #ohnx @#gusbot #doom64ex
20:12-!-Samu [] has quit [Quit: Page closed]
20:53-!-FLHerne [] has quit [Ping timeout: 480 seconds]
21:29-!-glx [] has quit [Quit: Bye]
21:34-!-chomwitt [~chomwitt@2a02:587:dc08:a00:5d62:de18:5084:4933] has quit [Ping timeout: 480 seconds]
21:53-!-techmagus [] has quit [Remote host closed the connection]
21:56-!-Gustavo6046 [~Gustavo60@] has quit [Quit: Leaving]
21:57-!-sim-al2 [] has joined #openttd
21:57-!-sim-al2 is "sim-al2" on #openttd @#/r/openttd
23:45-!-TheHawk [] has joined #openttd
23:45-!-TheHawk is "realname" on #tor #tor-project #openttd
23:52-!-cHawk [] has quit [Ping timeout: 480 seconds]
---Logclosed Sat Dec 23 00:00:17 2017