Back to Home / #openttd / 2011 / 06 / Prev Day | Next Day
#openttd IRC Logs for 2011-06-14

---Logopened Tue Jun 14 00:00:53 2011
00:42-!-DDR [~DDR@] has joined #openttd
00:51-!-bodis [] has joined #openttd
00:54-!-DayDreamer [~DayDreame@] has joined #openttd
00:55<CIA-10>OpenTTD: rubidium * r22586 /trunk/ (changelog.txt known-bugs.txt os/debian/changelog readme.txt): -Merge: documentation updates from 1.1
00:56-!-Eddi|zuHause2 [] has joined #openttd
00:56<CIA-10>OpenTTD: rubidium * r22587 /trunk/known-bugs.txt: -Fix: inconsistency in known-bugs.txt
01:03-!-Eddi|zuHause [] has quit [Ping timeout: 480 seconds]
01:20-!-sla_ro|master [~slaco@] has joined #openttd
01:24-!-KouDy [] has quit [Quit: Leaving.]
01:44-!-bodis [] has quit [Remote host closed the connection]
01:45-!-DayDreamer [~DayDreame@] has quit [Read error: Connection reset by peer]
02:00<@Terkhen>good morning
02:05<@planetmaker>moin Terkhen
02:06-!-DDR [~DDR@] has quit [Quit: In democracy it's your vote that counts; In feudalism it's your count that votes. - Mogens Jallberg]
02:15-!-Prof_Frink [] has quit [Ping timeout: 480 seconds]
02:15-!-Br33z4hSlut5 [] has joined #openttd
02:27-!-Amis [] has joined #openttd
02:27-!-Amis_ [] has joined #openttd
02:35-!-[WOODY] [woodygfx@] has joined #openttd
02:35-!-Amis [] has quit [Ping timeout: 480 seconds]
02:42-!-Juo [~Juo@] has joined #openttd
02:46-!-JVassie_ [] has joined #openttd
02:47-!-Cybertinus [] has joined #openttd
02:55-!-Juo [~Juo@] has quit [Ping timeout: 480 seconds]
03:10-!-pugi [] has joined #openttd
03:17-!-Cybertinus [] has quit [Remote host closed the connection]
03:20-!-Cybertinus [] has joined #openttd
03:21-!-Neon [] has joined #openttd
03:27-!-KouDy [] has joined #openttd
03:43<@Terkhen>planetmaker: will the script convert < to < and > to >?
03:45-!-KouDy [] has quit [Quit: Leaving.]
03:55-!-Juo [~Juo@] has joined #openttd
03:58-!-Juo_ [] has joined #openttd
03:59-!-Juo_ [] has quit [Remote host closed the connection]
03:59-!-Juo_ [] has joined #openttd
04:03-!-xi234 [] has joined #openttd
04:03-!-Juo [~Juo@] has quit [Ping timeout: 480 seconds]
04:04-!-Juo_ is now known as Juo
04:05-!-Bilge [~bilge@] has joined #openttd
04:05-!-Mks [] has quit [Ping timeout: 480 seconds]
04:08-!-xi23 [] has quit [Ping timeout: 480 seconds]
04:16-!-Juo_ [] has joined #openttd
04:19-!-Juo [] has quit [Ping timeout: 480 seconds]
04:19-!-Juo_ is now known as Juo
04:24<@planetmaker>Terkhen, I think it doesn't do that atm. Probably issues with the &
04:25<@planetmaker>or the > and <.
04:25<@Terkhen>hmm... ok
04:26<@planetmaker>would be helpful, eh? :-)
04:26<@Terkhen>yes :)
04:26<@Terkhen> <--- some pages are full of those :P
04:28<@planetmaker>hm, Terkhen should work. Maybe it's not included in the uploaded version
04:28<@planetmaker>try to add two lines which read like s/>/>/g
04:29<@planetmaker>and accordingly for <
04:29<@planetmaker>or is that part of it?
04:29-!-sla_ro|master [~slaco@] has quit [Quit: TTW -]
04:29<@planetmaker>yes... the uploaded version doesn't have it
04:29<@planetmaker>but easy to add
04:30<@planetmaker>in wikised
04:30<@Terkhen>I don't know; I have only been working in that page so I did not try to apply it yet, but I will for the following ones
04:30<@Terkhen>do I need something else besides
04:31<@planetmaker>yes, the script which calls it:
04:31<@planetmaker>mind that it uses hard-coded filenames. You'll want to adopt that
04:32-!-sla_ro|master [~slaco@] has joined #openttd
04:32<@Terkhen>ok, thank you :)
04:32<@planetmaker>no worries
04:33<@planetmaker>what you'll have to fix manually: for each wiki-link `a la [[wikipage|description] it'll add a |-\n| at the beginning of the paragraph
04:34<@planetmaker>And you'll probably need to adjust the headers / introduction section.
04:34<@planetmaker>And examples. They *should* work without the <pre> tag and the +- and -+
04:34<@planetmaker>(you could add the removal of +- and -+ to the sed script, too)
04:36<@planetmaker>I noticed that the newgrf wiki has 94 pages. And about 66 were not touched this morning. So we did about 25% yesterday
04:36<@Terkhen>that's nice :)
04:36<@Terkhen>I touched varaction2vehicles but it is far from finished :P
04:36-!-Juo [] has quit [Read error: Connection reset by peer]
04:37<@planetmaker>yes, there are others which need another re-touch, too
04:37-!-Juo [] has joined #openttd
04:37<@planetmaker>but well. Most important is that the tables become readible and that no content is missing
04:37<@planetmaker>fixing the other style is secondary to that
04:38<@Terkhen>agreed :)
04:38<@planetmaker>which again has precedence over nice classes and beautyfication changes ;-)
04:38<@Terkhen>once that everything is done, it would be nice to add missing variables to the specs
04:39<@Terkhen> <--- there are far more than 3 town variables for example
04:39<@Terkhen>they were documented in other place IIRC but IMO this should contain the entire list
04:40<@planetmaker>yes, I very much support that.
04:40<@planetmaker>I was slightly annoyed about them missing previously. But... well...
04:40<@planetmaker>one cannot complain if one could fix it oneself somewhat easily ;-)
04:41<@Terkhen>yes but now it is easier :P
04:42<@Terkhen>hmm... I should probably hurry to do the part where town storage must be documented... if I had any clue about the right place
04:43<@planetmaker>Terkhen, exactly ;-)
04:43<@planetmaker>And... somehow I'd be more motivated if it's found in a place with future ;-)
04:43<@Terkhen> <--- given that this is the only mention of "storage", maybe it needs a new page now that it is more complex
04:43<@Terkhen>that too :P
04:44<@Terkhen> <--- oh, this one mentions it as "persistent data"
04:44<@Terkhen>one is read, the other is store, so maybe I should add a new page for storage
04:44<@planetmaker>hm... Terkhen you don't need to fix it. But make a list of such "same thing, different name"
04:44<@Terkhen>hmm... not sure
04:44<@planetmaker>I can then bot-edit all pages later
04:44<@planetmaker>that's something I can do as it's a simple word / phrase replace
04:45<@planetmaker>now that you mentioned that: doing such thing would very generally be a very good thing, I guess
04:45<@Terkhen>not worth the effort in this case IMO; there are only three appearances
04:45<@planetmaker>there are many places where the same thing is called differently
04:45<@Terkhen>but definitely needed for other places and terms
04:46<@Terkhen>I'll add it to the todo list
04:55<@Terkhen> <--- I'm not sure if this is the best way to list the problems :P
04:56<@Yexo>Terkhen: have fun with: sprite / action / real sprite / action sprite / pseudo sprite
04:57<@Yexo>although the wiki might even be consistent, the rest of the information is definitely not
04:57<@Terkhen>I'm not 100% sure of the relation between all those terms myself :P
04:58<@Terkhen>what do you mean with the "rest of the information"?
04:58<@Yexo>nml documentation, tutorials on various sites, tt-forums
04:58<@Terkhen>hmm... I see :/
04:59-!-Juo_ [] has joined #openttd
04:59-!-Juo [] has quit [Read error: Connection reset by peer]
04:59-!-Juo_ is now known as Juo
05:03<JVassie_>hi Yexo o/
05:09-!-Brianetta [] has joined #openttd
05:19-!-Zeknurn [] has quit [Read error: Connection reset by peer]
05:22-!-Zeknurn [] has joined #openttd
05:23<@Yexo>hey JVassie_
05:24<JVassie_>did you get a chance to have a read through the PM at all?
05:24<@Yexo>got your msg all right, looks good :)
05:24<JVassie_>ah good :)
05:24<JVassie_>I hope it all made sense, was getting tired towards the end of it! :p
05:26<@Yexo>it did
05:26-!-Mazur [] has joined #openttd
05:30<JVassie_>gonna be quite complex to code all the features i think :s as well as direction and adjacent tiles, some tiles have passenger graphics drawn (dependent on waitign cargo), some tiles have track, some dont, some have a roof/canopy/etc
05:31<JVassie_>quite a lot of combinations
05:31<JVassie_>mind you, dont really know how complex till i get into it i guess :p
05:33<Ammler>the spec is also a bit inconsistent about calling ActionX, sometimes "Action X", sometimes ActionX
05:36<@Terkhen>and which one would be more correct?
05:37<Ammler>the main article title is without
05:40<Ammler>it is specially silly, as sometimes you see wiki entries, where it uses [[Action7|Action 7]], so it looks like intendend
05:41<@Terkhen>IMO it is more clear with an space
05:42<@Terkhen>but I don't mind either way
05:44<Ammler>hmm, maybe tikiwiki didn't allow title with space?
05:44<@Terkhen>I don't know, but the title should not have spaces
05:46<Ammler>indeed, it would end in Action_X, which might be uglier... :-)
05:50-!-Eddi|zuHause2 is now known as Eddi|zuHause
06:09<@planetmaker>Dunno. We just need to decide one way or another. The api also allows renaming of pages ;-)
06:11<Ammler>wouldn't it be easier to use categories to create index pages?
06:11<@planetmaker>maybe. But they need adding, too :-)
06:11<@planetmaker>And that's something for later when pages are restored
06:12<Ammler>it could also make history navigation
06:18-!-Progman [] has joined #openttd
06:22<@planetmaker>what is 'history navigation'?
06:27-!-keky___ [] has joined #openttd
06:31-!-Fzero^ [] has joined #openttd
06:31<Ammler>oh, meant hirarchical
06:31<Fzero^>hi :)
06:31<@planetmaker>yes, possibly. I guess it's worth looking into that when things consolidate a bit
06:31<@planetmaker>We have no category so far at all
06:31<@planetmaker>hi Fzero^
06:32<@planetmaker>Ammler, and indeed, I plan(ned) to introduce categories. But... when we know how things look like ;-)
06:36-!-Chris_Booth [] has joined #openttd
06:42<@planetmaker>Terkhen, you can download a new version of wikised
06:43<Chris_Booth>good morning all
06:44<@planetmaker>moin Chris_Booth
06:45<Chris_Booth>how is everyone on this fine sunny day
06:45<@planetmaker>sunny? It's been raining cats and dogs a bit earlier
06:46<Chris_Booth>not here in england
06:46<Chris_Booth>we haven't had rain for ever
06:51<@peter1138>it pissed it down this weekend...
06:51-!-DayDreamer [~DayDreame@] has joined #openttd
06:52-!-DayDreamer [~DayDreame@] has quit []
06:53<Eddi|zuHause>it rains here right now
06:53<Eddi|zuHause>and it's awfully dark
06:56-!-Intexon_ [] has joined #openttd
06:59<@Terkhen>planetmaker: ok, thanks :)
06:59<@Terkhen>I'll do some pages now
07:02<@planetmaker>it works much better now :-)
07:02<@planetmaker>I just did two pages w/o manual edits afterwards
07:03<@Terkhen>great :)
07:04<Fzero^>can some support me in german :D? my englich istn well ^^ :/
07:06<Ammler>Fzero^: :-)
07:06<Fzero^>:) thx
07:09<@Terkhen>planetmaker: the ones at the end (except maybe the last one) don't look very universal :)
07:10<@Terkhen>they probably don't hurt either
07:11<@planetmaker>yes, they're not, but that's also not their intention ;-)
07:12<@planetmaker>btw... fixed the error with <
07:12<@planetmaker>it was spellt wrongly
07:12<@planetmaker>thus... download again :-P
07:13<Eddi|zuHause>it's a great piece of art to misspell a two letter word ;)
07:13<@planetmaker>but it's not a word ;-)
07:13-!-HerzogDeXtEr1 [] has joined #openttd
07:13<@planetmaker>also... you as saxonian shouldn't mind the difference between d and t :-P
07:14<Eddi|zuHause>planetmaker: half-saxonian ;)
07:16-!-KingJ [~KingJ-OFT@] has joined #openttd
07:17<Eddi|zuHause>planetmaker: funnily enough, i had that problem just yesterday when trying to type ""
07:18<@Terkhen>planetmaker: s/Format: /'''Format:''' /gi <--- this fixes lower case formats and also sets them in bold (for varaction2vars)
07:19<@Terkhen>hmm... the script also breaks links in the format [[WikiPage|name]
07:20-!-HerzogDeXtEr [] has quit [Ping timeout: 480 seconds]
07:20<@Terkhen>but I don't know enough regex magic to define "matches | and is not surrounded by [string | string]" :P
07:21<@Yexo>can't you make it simpler? ie match | surrounded by spaces?
07:22<@Terkhen>sorry, it has no spaces
07:23<Eddi|zuHause>typical case of "there are no girls on the internet": "Syrian blogger Amina 'A Gay Girl in Damascus' Arraf turns out to actually be Tom McAlister from Georgia, currently residing in Edinburgh. Also the editor of 'Lez Get Real', Paula Brooks is actually Bill Graber from Ohio, who took on the identity of his wife. The two actually flirted with each other, neither realizing the other was a man."
07:27<Eddi|zuHause><Terkhen> but I don't know enough regex magic to define "matches | and is not surrounded by [string | string]" :P <-- something like replacing \[([^|]*)|([^|])\] with a temporary symbol, e.g. %, then replacing remaining |, and replacing the temporary symbol back
07:27<Eddi|zuHause>hm... missing something
07:28-!-Intexon_ [] has quit [Ping timeout: 480 seconds]
07:28<@Terkhen>nice, let's test it
07:28<Eddi|zuHause>can be replaced by something like \[\1%\2\]
07:28<@planetmaker>Terkhen, does the current version really break links for you?
07:29<@Terkhen>planetmaker: if they are inside tables, yes
07:29<Eddi|zuHause>the temporary symbol better be something that doesn't occur naturally ;)
07:30<@planetmaker>XXXXXXX - so far -did not :-P
07:30<@Terkhen>can it be multiple symbols? something like %#%
07:30<@Terkhen>ok :)
07:31<@Terkhen>I'll test once I finish with the current page
07:32<@planetmaker>well, I only adopt it to the pages I visited. And maybe sometimes I also break what I already added ;-)
07:32<@planetmaker>it's mostly one-time use ;-)
07:36<Eddi|zuHause>of course i forgot escaping \| above
07:36*JVassie_ escapes
07:37<@Terkhen>I'm going to modify the style for varaction2 pages a bit
07:37<@Terkhen>otherwise I'll need to invent introduction for all pages :P
07:38-!-dfox [] has joined #openttd
07:39<Eddi|zuHause>so this should work: s/\[([^\|\]]*)\|([^\|\]])*\]/\[\1%#%\2\]/g s/\|/whatever/g s/%#%/\|/g
07:39<@planetmaker>Terkhen, just leave the introduction. If it's one sentence, that's ok IMHO
07:39<@planetmaker>and one sentence usually remains ;-)
07:40<@planetmaker>or it's an empty section... to be filled in later
07:40<@Terkhen>currently there is no introduction so it will just be an introduction explaining the title: "this page contains varaction2 for vehicles"
07:40<@Terkhen>but yes, makes sense
07:41<@Terkhen>things that are currently under the variable table should be in the introduction
07:41<Ammler>hehe, planetmaker, did you buy "Das (in)offizielle Handbuch zu OpenTTD"?
07:41<@Terkhen>I'll leave it empty though
07:41<@planetmaker>Ammler, no. I proof-read it
07:42<@planetmaker>thus I have it without buying it ;-)
07:42<Ammler>ah ok, is it better as the wiki?
07:43<@Terkhen> <--- something like this I guess
07:43<@planetmaker>As the German part? Well. It has some parts which are not well translated yet. But where there's a translation (like tutorial), it doesn't really matter
07:43<@planetmaker>and, more important, Ammler, it is very limited in depth. Thus the wiki will get you eventually much further
07:44<@planetmaker>yes, why not, Terkhen :-)
07:44<@planetmaker>I'd just hit 'save' and move on ;-)
07:44<Ammler>well, anyway, he doesn't become rich with it, he should rahter make it os
07:44<@Terkhen>ok, I'll update the style guide then :)
07:45<@planetmaker>hm, what is different? :-D
07:45<@planetmaker>s/Variables/List of Variables/g ?
07:46<@Terkhen>it is now more similar to the format used in action0
07:46<@planetmaker>right :-)
07:47<@planetmaker>I guess that's where my main focus was so far
07:47<@Terkhen>and yes, list of variables should be "variables"
07:48<@Terkhen>oh, I forgot the "version" in the table
07:48<@Terkhen>I'll leave it empty too, though
07:48<@Terkhen>it can be fixed later
07:49-!-Fzero^ [] has quit []
07:52-!-Chris_Booth [] has quit [Remote host closed the connection]
08:00<@Terkhen> <--- should all pages with "Size" on the table header have a link to GRFActionsDetailed as this one?
08:02<@planetmaker>I didn't yet think about that, but why not?
08:02<@Terkhen>I'll add it to the style then :)
08:04-!-Chris_Booth [] has joined #openttd
08:05<@planetmaker>38 pages visited, 56 to go
08:05<@planetmaker>of the newgrf wiki
08:05<@Terkhen>time for testing that crazy sed code :)
08:05<@planetmaker>38 pages were touched by *someone*
08:05<@planetmaker>56 are still virgin
08:07<Eddi|zuHause>rule #1 when testing crazy sed code: have an easily restorable backup ;)
08:08<@planetmaker>Eddi|zuHause, the wiki pages don't edit and save themselves ;-)
08:08<@planetmaker>thus rule #1 is ensured ;-)
08:08<@Terkhen>yes, I'm testing on a local text file :P
08:08<@planetmaker>unless I mess up big time with the wiki bot :-P
08:08<@planetmaker>but then... there's history
08:09<JVassie_>dont muck up then :D
08:10<@planetmaker> <-- still limited edits :-P
08:11<@Terkhen>Eddi|zuHause: sed: file wikised.txt line 2: invalid reference \2 on `s' command's RHS
08:11<@Terkhen>it only contains: s/\[([^\|\]]*)\|([^\|\]])*\]/\[\1%#%\2\]/g
08:11-!-glx [glx@2a01:e35:2f59:c7c0:b0e8:be60:5054:524a] has joined #openttd
08:11-!-mode/#openttd [+v glx] by ChanServ
08:12<Eddi|zuHause>switch )* to *)
08:12<Eddi|zuHause>(but that shouldn't cause this error)
08:13<@Terkhen>yes, the error still happens with that correction
08:14<Eddi|zuHause>i think it needs escaping \( and \)
08:15<Eddi|zuHause>hm... still doesn't work properly
08:16<@Terkhen>Eddi|zuHause: with those escapes the error is gone for me
08:17<Eddi|zuHause>yes. but it doesn't do what i expect it to do ;)
08:17<@Terkhen>[[GRFActionsDetailed|'''Size''']] ----> [|][|]GRFActionsDetailed!!'''Size''[|']] <--- no, it does not :P
08:19<JVassie_>the link should be [[GRFActionsDetailed|'''Size''']]
08:19<JVassie_>its a pipe in the middle not !
08:20<@Terkhen>JVassie_: yes, it is an error of the script
08:20<JVassie_>ah :p
08:20<@planetmaker>Ah... Terkhen I think that can be fixed:
08:21<@planetmaker>/\[\[[A-Za-z0-9#_-].*[A-Za-z0-9#_-\. ].*\]\]/s/|/XXXXXX/g ---> /\[\[[A-Za-z0-9#_-].*|[A-Za-z0-9#_-\. '].*\]\]/s/|/XXXXXX/g or /\[\[[A-Za-z0-9#_-].*|[A-Za-z0-9#_-\. \'].*\]\]/s/|/XXXXXX/g
08:21<Eddi|zuHause>Terkhen: somehow the \] in the [] is not recognized properly
08:21<@planetmaker>dunno whether ' needs escaping
08:21<Eddi|zuHause>and the \| should be unescaped to |
08:21<Eddi|zuHause> echo '[te|st]' | sed 's/\[\([^|]*\)|\([^|]*\)\]/\[\1%#%\2\]/g'
08:22<Eddi|zuHause>planetmaker: isn't there like [:alphanum:]?
08:22<@planetmaker>Eddi|zuHause, regex are greedy, that will fail for two consecutive links, I think
08:22<Eddi|zuHause>planetmaker: yes, which is why i originally put the \] in
08:24<@Terkhen>huh... all three look the same to me
08:24<Eddi|zuHause>planetmaker: but you have some ill-placed . in there
08:24<@planetmaker>Terkhen, the difference is a ' or \' in the latter two
08:24<@planetmaker>I did not consider that character to occur there in the link description
08:25<Eddi|zuHause>planetmaker: don't put . before *
08:25<Eddi|zuHause>the * must be behind the ]
08:25<@planetmaker>hm, yes. that's wrong
08:25-!-TWerkhoven [] has joined #openttd
08:25<Eddi|zuHause>and the \( \) are relevant
08:25<Eddi|zuHause>you need to include those again
08:25<@planetmaker>actually .* --> +
08:26<Eddi|zuHause>that shouldn't really matter
08:26<@planetmaker>* also matches no character. We want by definition at least one ;-)
08:26<@planetmaker>but that's beside our actual issue
08:29<Eddi|zuHause>the actual issue was why [^\]] does not get interpreted properly
08:30<@Terkhen>hmm... how can I upload an image to the wiki?
08:31<@planetmaker>Terkhen, click on the image button. Choose a name. Save the page. Click on the resulting link
08:32<@Terkhen>oh :P
08:35<@planetmaker>JVassie_, the <pre> tags can go in most cases. Replace them simply by a leading space for that or those lines.
08:36<@planetmaker>Then you can additionally use things like italics or bold
08:36<@Terkhen>regarding the link problem, it would also work to have a single command for turning [[string1!!string2]] into [[string1|string2]] at the end
08:36<JVassie_>fair enough
08:36<@planetmaker>The latter might be interesting to highlight certain bytes. Like the action byte
08:36<JVassie_>thought it was used to make them stand out
08:36<@planetmaker>Yes. Nearly same effect visually ;-)
08:36<@planetmaker>except additional formating ;-)
08:36<@Terkhen>oh, and [[string1||string2]] into [[string1|string2]]
08:37<@planetmaker>Terkhen, no. The links first have to be deprived of the |
08:37<@planetmaker>Otherwise the table fixes affect them with side-effects
08:37<@Terkhen>oh, ok
08:37<@planetmaker>in the end the links must then be restored
08:38<@planetmaker>thus the s/[...|...]/[...XXXXXX...]/ and the revert later
08:39<Eddi|zuHause> <-- this somehow fails to mention how to check for ] whithin a list
08:42<Eddi|zuHause>ah, i'm just blind
08:42<Eddi|zuHause>it says it right there
08:43<JVassie_>planetmaker, whats {toc} for?
08:43<Eddi|zuHause>> echo '[te|st]' | sed 's/\[\([^]|]*\)|\([^]|]*\)\]/\[\1%#%\2\]/g'
08:44<Eddi|zuHause>this works now
08:45<JVassie_>table of contents
08:46<Eddi|zuHause>Terkhen, planetmaker: checked this above?
08:46<@Terkhen>Eddi|zuHause: I'm finishing a page, I'll test after that :)
08:47<@Terkhen> <--- what should be do regarding this?
08:47<@Terkhen>right now it is linked in many placed
08:47<@Terkhen>the document has copyright so we can't just pick the stuff and port it to the specs
08:48<@planetmaker>Terkhen, I suggest we integrate that in the appropriate places once the current stuff is readable.
08:48<@planetmaker>hm... is it?
08:48<@Terkhen>yes, check the bottom
08:49<Eddi|zuHause>keep the links there, and in long-term either try to ask Martin Grzegorczyk for permission, or re-create the information from TTDPatch sources
08:49<@planetmaker>openttd sources ;-)
08:49<@Terkhen>I was thinking on that, except recreate from openttd sources and let the ttdpatch update to someone else
08:49<Eddi|zuHause>not all of this seems to apply to openttd
08:50<Eddi|zuHause>e.g. the landscape part is totally different from docs/landscape.html
08:51<@Terkhen>but that part should not be part of the specs
08:52<Eddi|zuHause>most important for newgrfs are the 80+ variables
08:55<@Terkhen>yes, in the case of those IMO we should keep the link and document the ones we can from openttd code
08:58<@planetmaker>if I don't forget I'll write an e-mail tonight
09:01-!-sllide [] has joined #openttd
09:04<@Terkhen>ok :)
09:04<JVassie_>wiki updates are coming along nicely :)
09:05<@planetmaker>I guess we'll have done most basic stuff by the end of the week, if we all keep our pace :-)
09:06<@planetmaker>That's nice
09:06<@Terkhen>let's test the new sed magic with the next one :P
09:06<@Terkhen>VarAction2Cities <--- meh, IMO this should be Towns
09:08<@Terkhen>Eddi|zuHause: works fine, thank you :)
09:08<Eddi|zuHause>Terkhen: i stumbled across that as well
09:08<Eddi|zuHause>i support this change ;)
09:09<@Terkhen>I'll add it to the todo list :)
09:09<@planetmaker>ok :-)
09:09<@planetmaker>_now_ we can do that :-P
09:10<@planetmaker>before we couldn't even edit the TOC
09:10<@planetmaker>Table Of Contents
09:10<@Terkhen>oh :P
09:12<JVassie_>Terkhen, ive made some additions to the list too :p
09:12<@planetmaker>yes, please keep it coming :-)
09:12<JVassie_>more examples we have in the specs the better i think
09:12<@planetmaker>Yoda your father is? :-P
09:12<JVassie_>believe so I
09:13<@Terkhen>I think that splitting Item into Page and Description would be good :)
09:13<@Terkhen>(in the todo list)
09:13<JVassie_>*believe so I do
09:14<Ammler>if you keep the copyright, you can copy it, can't you?
09:15<Eddi|zuHause>no, it doesn't work like that
09:16<@planetmaker>not at all
09:16<Eddi|zuHause>unless you have a piece of paper that says "you can copy it", you can't.
09:16<@planetmaker>otherwise I could also copy $movie or $cd
09:18<@Terkhen>I think that giving tables a background colour slightly darker than the page background colour would improve readability (as done in the ttdpatch wiki)
09:19<JVassie_>i agree Terkhen
09:19<JVassie_>only slightly though
09:19<@planetmaker>Terkhen, yes, I agree.
09:19<JVassie_>make it happen buddy :p
09:19<@planetmaker>it's one of those things I postponed atm
09:20<@Terkhen>ok :)
09:21<JVassie_>I think the combination of merging the wikis, giving them a facelift, and hopefully including more examples will see more budding NFO devs start appearing
09:22<@Terkhen>that would be great :)
09:23<@Terkhen>maybe "make an example" entries should have their own table in the todo list, otherwise other items will get drown in them :P
09:23<JVassie_>one thing the sidebar is missing is a link to the main tt-wiki, no?
09:23<JVassie_>good idea
09:23-!-sllide [] has quit [Ping timeout: 480 seconds]
09:23<JVassie_>ill split them out
09:23<@planetmaker>good point. I actually edited a lot of pages... but indeed did not add it to the todo as I didn't think of it.
09:24<@planetmaker>they lack an example, too
09:24<@Terkhen>neither did I... all varaction2var pages will be missing an introduction and an example, so I'll add them all in a single modification later
09:26<JVassie_>ToDo list edited
09:26<JVassie_>split the two types out
09:26<@Terkhen>ok :)
09:26<JVassie_><JVassie_> one thing the sidebar is missing is a link to the main tt-wiki, no?
09:26<JVassie_>reckon it should be added?
09:26<@orudge>JVassie_: I would say yes
09:27<@orudge>and I would also say they should be coordinated in some way
09:27<@orudge>but we can work on that later
09:27<JVassie_>coordinated in what sense?
09:27<JVassie_>Hmm just remember I can edit sidebar, /me pokes planetmaker
09:27<@orudge>maintaining a roughly similar order and entries to certain common sites
09:27<@orudge>but as I say, we can sort that out later
09:27<JVassie_>ah yes I see
09:28<JVassie_>TT Wiki is lacking a lot of the links that are in the grf specs currently
09:30-!-hgnmu128 [~hgnmu128@] has joined #openttd
09:32<@Terkhen> <--- does openttd compile with this? :P
09:36-!-Kurimus [] has joined #openttd
09:36<hgnmu128>Starting at $1795? Yes it should. Pfft.
09:37<@Yexo>the nightly build is a free download
09:37<hgnmu128>How much is it? Bandwidth costs me. :|
09:39<@Terkhen>hgnmu128: the announcement is about it going open source :P
09:40<@Terkhen>it seems that I have something difficult and probably not worth the effort to test :)
09:42<@Terkhen>really not worth the effort, as it is for multicore apps :P
09:44<George>Why do bold style does not work in codes?
09:44<@Terkhen>JVassie_: class="wikitable" is not required anymore
09:45<@Terkhen>George: IIRC you have to substitute <pre> with a single space at the start of the line
09:45-!-hgnmu128_ [~hgnmu128@] has joined #openttd
09:46-!-hgnmu128_ [~hgnmu128@] has left #openttd []
09:46<JVassie_>oh now you tell me :D
09:46<@Terkhen>sorry, I only noticed when I reached one of the varactions you edited :P
09:47<George>Terkhen: does not help :(
09:47-!-hgnmu128 [~hgnmu128@] has quit [Ping timeout: 480 seconds]
09:47<George>can you fix one case to illustrate?
09:47-!-hgnmu128 [~hgnmu128@] has joined #openttd
09:49<hgnmu128>13:39:10 <@Terkhen> hgnmu128: the announcement is about it going open source
09:49<@Terkhen>George: <--- note the space at the start of the line
09:49<hgnmu128>I saw that, on the next page was 'Starting at $1795'. I didn't notice the nightly link, my bad.
09:50<@Terkhen>it's understandable that the cost caught your eye :P
09:51<George>Terkhen: ''' disappeared, but no bold style is provided
09:51<@Terkhen>hmm... it appears as bold to me
09:51<@Terkhen>it is barely noticeable, though
09:51<hgnmu128>Hmm. I heard someone (who has gone wacko) complain about me making the wiki intros bold. I didn't make them. I left the line unedited. I removed the normal text intro. My bad (again?).
09:53<@orudge>hgnmu128: generally, the pages imported from TikiWiki have redundant lines at the top. For instance,
09:53<JVassie_><Terkhen> sorry, I only noticed when I reached one of the varactions you edited :P
09:53<JVassie_>no worries :D
09:53<@orudge>they should generally be removed, as the page title should already be descriptive enough
09:53<George>Terkhen: Hm, at 200% zoom it is bold. but with no zoom it is not seen. How to fix it?
09:53<@orudge>In some cases one line of description may be appropriate:
09:53<JVassie_>New signature on tt-forums \o/
09:53<@planetmaker>hgnmu128, you could just follow Style guidelines which you asked to be put into place ;-)
09:54<hgnmu128>orudge: I know. The style guide does *not* say intro should not be in bold, explicitly, anyway. ;)
09:54<@Terkhen>George: I guess that the style for that type of text needs to be changed
09:54<@orudge>Oh, well, no, it shouldn't.
09:54<@Terkhen>probably as a global change
09:54<@Terkhen>but I don't know how to do that :P
09:55<@planetmaker>generally the pages (at least on the newgrf wiki) should start with an introduction 2nd order topic. And then it needs removal of the first two lines which are somewhat redundant.
09:55<hgnmu128>I think Owen can do that by editing the appropriate sections in the CSS.
09:56<@planetmaker>hgnmu128, the wikis have a Media:Common.css (or similar) which you probably could also edit
09:56<@planetmaker>But it's a good idea to install Firebug (or similar) and thus test a style change locally first before doing so
09:56<hgnmu128>planetmaker: didn't know I could do that.
09:56<@planetmaker>there are MANY inter-dependencies, so any change is not exactly straight forward
09:56<hgnmu128>I do have Firebug, anyway.
09:56<@planetmaker>hgnmu128, I don't know, but at least worth a try ;-)
09:56<@orudge>What exactly is the problem in this case, hgnmu128 / George?
09:57<@orudge>if we're looking at, I see bold bits in the <pre> - is that the issue?
09:57<@orudge>since it seems fine here for me (Firefox 4 on Windows 7)
09:57<hgnmu128>Nobody's getting *my* point yet. GoneWacko complained earlier on this channel (or tycoon) that I made the introduction in bold text. He said it was ugly and it should be edited by CSS. All that happens when I was offline and...
09:58<@planetmaker>he's totally right with that. Large-scale text style should be CSS
09:58<hgnmu128>*introductions to the TikiWiki ported redundant title-intro pages
09:58<@orudge>Indeed. However, since they shouldn't be there anyway, let's not argue about it :)
09:58<@planetmaker>And I'm personally not convinced that the introduction(s) should be bold face
09:58*orudge shall get some work done on the wiki shortly, anyway
09:58<@orudge>I would say they shouldn't
10:00<hgnmu128>... I know I couldn't agree more, but I didn't get a chance to talk with him after that. On the original (unformatted) pages, there was two lines of intro (yeah, the redundant ones), one in bold italics and the other in normal typeface. I just removed the normal line and left the bold one untouched. Sorry about that,
10:01<@orudge>well, I wouldn't worry about it
10:01<@planetmaker>I usually delete the bold one
10:01*hgnmu128 's network is having some real trouble
10:01<@planetmaker>but indeed sounds like no biggy whichever way
10:01-!-hgnmu128 [~hgnmu128@] has quit [Quit: ChatZilla 0.9.87 [Firefox 3.6.17/20110420140830]]
10:01<George>orudge: this bold text is seen only at high zoom (FF4, WinXP)
10:01<George>do you need screenshots?
10:02<@orudge>George: might be handy. It works fine for me, as I say.
10:02<@orudge>I'll test in some other browsers, too
10:02-!-hgnmu128 [~hgnmu128@] has joined #openttd
10:02<@orudge>hmm, it looks fine in both IE and Google Chrome
10:02<@orudge>as well as Firefox, as I mentioned before
10:02<@Yexo>looks fine for me in FF4 too
10:02<hgnmu128>What does?
10:02<@orudge>the bold text
10:03-!-Chris_Booth is now known as Guest4558
10:04<hgnmu128>I missed that part. Will slightly colorizing the to-be-bold text solve the problem? I don't know if that's apt, but, whatever.
10:05*planetmaker fancies simple designs ;-)
10:06<@orudge>George: the top one is bold, I can see that here
10:06<@orudge>it's perhaps just not that obvious
10:06<@planetmaker>I see it in both cases
10:06<George>I can't
10:06<@planetmaker>same bytes are bold
10:06<@orudge>as I say, it's perhaps a little less obvious, but it's definitely bold
10:07<George>1920x1080 on 23" Samsung
10:07<@planetmaker>George, how does the source of that look like?
10:07<hgnmu128>Can you turn down the font smoothing a bit, then look again?
10:07<@planetmaker>is the bold intended? Or not?
10:07<@Terkhen>I can barely distinguish that the text is bold with at 1280x1024
10:07<George>21 * 34 04 0A '''FF''' 01 '''00 D0''' 94 80 " should be built in towns" 00
10:07<@planetmaker>George, ''' indicates that bold text shall follow up to the next '''
10:08<@planetmaker>and it works obviously
10:08<George>it works on 200% zoom, yes
10:08<@planetmaker>If you don't want that (but I think you do), remove the '''
10:08<George>And I suppose on 100% too, but I can't see it
10:08<@Terkhen>it is a problem of visibility IMO
10:08<@planetmaker>George, then it's your local font / font smoothing
10:09<George>Well, in case other people see that fine it would not be much problem for me
10:09<@planetmaker>it's less obvious than one will wish for, definitely
10:09<hgnmu128>That's what I said! :|
10:09-!-Chris_Booth [~chris@] has joined #openttd
10:10<Chris_Booth>Afternoon all
10:11<@Terkhen>hi Chris_Booth
10:11<hgnmu128>By the way, I've been offline since early morning, what happened to M.Blunck's copyright and shit?
10:11<George>where is this page in the new wiki?
10:11<hgnmu128>I noticed that too.
10:11<Chris_Booth>M.Blunck grrr
10:11<hgnmu128>There is a link at the bottom of the ECS pages, leading to a page creation.
10:11<@Terkhen> <--- here, but it does not seem to be linked anywhere
10:12<@Terkhen>wait, I'll fix the format
10:12<George>How to make the right link to it from &
10:13<George>(different domains)
10:13<@planetmaker> <-- it must be linked *somewhere*, Terkhen ;-)
10:14<@Yexo>George: [ String codes]
10:14<hgnmu128>Yep, different dimains.
10:14<@Yexo>everything after the first space will be used as link text
10:14<hgnmu128>I edited it already. Sorry. :|
10:15<hgnmu128>planetmaker: WhatLinksHere shows only the links from the current domain, does it not?
10:15<@Terkhen> <--- the format is fixed now
10:16<George>You fix pages so fast - do you have a script?
10:16<@planetmaker>yes ;-)
10:16<George>If yes, can you fix ECS pages too?
10:16<@planetmaker>it still takes time...
10:16<George>Please ^)
10:16<@Terkhen>IIRC a bot was going to be able to do that
10:17<@planetmaker>hopefully ;-)
10:17<@planetmaker>when it's done. Sorry, dunno, it's a bit uncharted territory for me
10:17<@planetmaker>maybe it's quicker to do it by hand than me figuring out how to write that in python
10:18<@Terkhen>planetmaker: what about creating a small website that applies the script to the given text?
10:18<@planetmaker>I can edit. But I have not yet managed to put the whole regex stuff into the python script
10:18<hgnmu128>planetmaker: But it is better in the long run, I guess.
10:18<@planetmaker>hgnmu128, it's only crude a conversion script. Thus for the one-time use now mostly
10:19<@planetmaker>simple edits are feasible already, out of box for the pywikibot
10:19<hgnmu128>In case someone creates new TikiWikis on TTD and Owen decides to merge them into tt-wiki.
10:20-!-Chris_Booth [~chris@] has quit [Quit: Colloquy for iPhone -]
10:20<@planetmaker>anyway, I'll give the bot a bit more thought later today, though I won't have much time tonight and tomorrow neither
10:21<@planetmaker>there's a path. But it's paved with python syntax boulders to stumble over ;-)
10:21<hgnmu128>I don't see the bot on the prowl on the wiki, anyway... Does anyone else?
10:22<@planetmaker> <-- it was only present two times so far (and I rolled back the 1st)
10:23-!-Chris_Booth [~chris@] has joined #openttd
10:23<@planetmaker>George, I'll try to get it work. if not... doing it the manual way... at this pace it'll take approx a week I guess
10:24<@orudge>For what it's worth, I'll have a long time in airport lounges next week, so if nothing else, I can spend the time working my way through wiki pages :P
10:24<@planetmaker>how many pages are the ECS pages, George ?
10:25<George>214 if I'm not mistaken
10:25<@Terkhen>wow :P
10:25<@planetmaker>that's 225% of the whole NewGRF wiki
10:25<George>I count the number of pages exported from the old wiki
10:26<@Yexo>of most of those are translations they'll be easy to fix automatically though
10:26<George>less than 33% were exported
10:27<@orudge>all pages were exported from the old wiki, except the two problematic pages, and the German and Russian translations
10:27<@orudge>(which were problematic for the same reason, due to the non-ASCII characters, unfortunately)
10:27<@planetmaker>George, you use perl, do you?
10:27<@planetmaker>or do you have access to sed?
10:27<George>Yes, I do
10:27<@orudge>if somebody is knowledgeable enough in Python, they can perhaps try to fix the script I used to fix those
10:28<@planetmaker> <-- those are replacement rules for sed to throw on the page(s) in that very succession
10:28<@Terkhen>sed can be installed on windows easily:
10:28<@Yexo>orudge: is that script available somewhere?
10:28<@planetmaker>sed 'N; s/\n|-/|-/g; P; D' <-- that is then needed in a last run
10:29<@planetmaker>that's what I basically use currently
10:29<Ammler>maybe the translations are outdated anyway
10:30<@Yexo>thanks, might have a look later to see if I can fix that
10:30<George>Well, if your jog with script would fail, I'll have a look at writing my perl scripts. But I hope this would not happen :)
10:30<@planetmaker>Yexo, but would that help at this point?
10:30<hgnmu128>Orudge: Do you have an overview of what needs fixing?
10:30<@Yexo>dunno, would it?
10:30<@Yexo>if not, I won't bother ;)
10:30<Ammler>translations are very bad implemented in openttd. please don't do it similar on newgrf wiki
10:30<@orudge>hgnmu128: for what?
10:31<hgnmu128>What could be? For the script.
10:31<@planetmaker>Yexo, I'm not too familiar, but the pages are already imported... though orudge certainly has the tikiwiki dump around somewhere
10:31<@orudge>hgnmu128: for what script? I'm confused
10:31<Ammler>they screw up search completely
10:31<hgnmu128>You python script.
10:31<@orudge>hgnmu128: if you mean the script I just linked Yexo to, that's just for the initial conversion of tiki to mediawiki
10:31<@orudge>it chokes when it encounters a non-ASCII character, it seems.
10:32<George>Yexo: of most of those are translations they'll be easy to fix automatically though <- how? They are even not exported to the new wiki
10:32<hgnmu128>But can't that be solved using Unicode?
10:32<@orudge>as for multilingual mediawiki, it seems that's something they're planning, but isn't properly implemented. We could have multiple wikis - ie,,, in the same manner as Wikipedia, perhaps.
10:33<@Yexo>or you could copy the way the openttd wiki does it, although that's also far from ideal
10:33<hgnmu128>Dream big.
10:33<Ammler>Yexo: that is worst :-)
10:33<@orudge>hgnmu128: I don't know Python, so I can't fix it. Somebody who does, hopefully can. :p
10:33<@Yexo>George: by fixing the conversion script so they can be exported
10:33<George>Yexo: I hope to see that happen :)
10:33<hgnmu128>But I thought that was *your* script. Is it planetmakers?
10:33<@orudge>hgnmu128: no.
10:34<@orudge>hgnmu128: you're confusing two scripts here, I think.
10:34<@Yexo>hgnmu128: orudge used it, but didn't write it himself
10:34<@orudge>planetmaker has a script to tidy up the mediawiki pages.
10:34<Ammler>specially if the only translation is copy the English text
10:34<@orudge>my script was one I found online
10:34<@orudge>for the initial conversion
10:34<@planetmaker>Yexo, it might be easier to put move the sed script into the of the bot you gave me
10:34<hgnmu128> planetmaker has a shell script, I know. Then who made the python script?
10:34<@Yexo>Ammler: that can happen with any system
10:34<hgnmu128>I see it. Got it.
10:34<hgnmu128>*online*, huh?
10:35<Ammler>Yexo: how does that happen in wikimedia?
10:35<@Terkhen>oh, VarAction2Objects has examples :)
10:35<@planetmaker>it "just" needs kinda not using the current replace method (which is not bad, but... limited) and replace it by the custom one working on the whole page source. I guess I'll canibalize some of the translations bot of yours... and so far....
10:35<@Yexo>someone copies the english page over and only than starts translating
10:35<@planetmaker>it's just a steep learning curve for me :-)
10:35<@Yexo>if you leave out the "start translating" part you'll end up with a copy of the english page
10:36<hgnmu128>planetmaker: steep learning curve, huh? I read the exact phrase somewhere else...
10:38*Terkhen is also surprised of reading that sentence in a different context than "OpenTTD"
10:38<Ammler>if you you really like again to translate, it might be worth to check how does it
10:38<@planetmaker>I just can't promise how fast I'll learn ;-)
10:40-!-Amis_ [] has quit [Ping timeout: 480 seconds]
10:40-!-Chris_Booth [~chris@] has quit [Ping timeout: 480 seconds]
10:42-!-hgnmu128 [~hgnmu128@] has quit [Quit: tired]
10:44<@Terkhen>I'm done with conversions until this evening or tomorrow, time to work :P
10:45-!-Chris_Booth [~chris@] has joined #openttd
10:47<@planetmaker>George, how many of the ECS pages have tables, though?
10:48<@planetmaker>well... most I randomly looked at had no tables ;-)
10:49<@planetmaker>That's why I'm asking
10:50-!-Amis [] has joined #openttd
10:50-!-Chris_Booth [~chris@] has quit [Read error: Connection reset by peer]
10:51-!-Chris_Booth [~chris@] has joined #openttd
10:51<George>103 of 214 pages have tables
10:51<@Terkhen>George: do you have the pages in text format?
10:52<George>Export from old wiki
10:52<George>text + wiki header
10:52<@planetmaker>ok, I'll see that I'll get this replace script done asap
10:54<Ammler>maybe you can call a competition on tt-forums for a logo :-)
10:54-!-Pulec [] has joined #openttd
10:55<George>Ammler: :))))
10:55<Ammler>(or remove the dummy)
10:55<@planetmaker>The competition idea is not that bad, I think
10:56<George>I'd prefer to see it done by a script :)
10:56<@planetmaker>the logo?
10:57<George>the pages
10:57<@planetmaker>yes. Ammer suggested competition for the logo, though. Not for the wiki edits ;-)
10:58<@Yexo>just create a competition who can cleanup the most wiki pages :)
10:58<Ammler> <-- wanted to add a text that grf spec is moving to tt-wiki but editing is disabled :-P
10:58<@orudge>Ammler: eventually, the pages will be redirected
10:59<@Terkhen>George: if you have all of them in text files, I could run the script on all of them at once
10:59<@Terkhen>mind that they still need some formatting after the conversion
10:59<Ammler>will the whole domain go down?
10:59<@orudge>Ammler: no.
10:59<@orudge>I don't host, or have anything to do with it.
10:59<@orudge>it's just the wiki (and svn) that I host
10:59<@planetmaker>Ammler, no. But... there's only one angry person "maintaining" it
11:00<Ammler>I should not but :-D
11:01<Ammler>svn could be converted to hg or git and moved to bitbucket or github
11:01<@orudge>could be, but I see no need for that
11:01<@orudge>I'm quite happy to host everything
11:02<@orudge>I might move it to a different server with a more modern version of svn and trac, though
11:02<George>Terkhen: I have old wiki export. I can send it to you if you wish
11:02<Ammler>orudge: it would make forking easier...
11:03<@planetmaker>how so?
11:03<@orudge>Ammler: it would, but who's going to want to fork TTDPatch in this day and age? ;)
11:03<@orudge>anyway, we'll see, I guess
11:03<@Terkhen>George: I think that the script is made to work with the code at tt-wiki, it won't work with the old code
11:03<@planetmaker>I bet everyone who really wants to work on it and comes with patches w/could get svn
11:04<George>Terkhen: then I do not have them in the text form. There is only the wiki itself
11:05<@Terkhen>hmm... ok, let's wait for the bot then :P
11:05<@planetmaker>hm... ok. I'll have another go during (extended) dinner ;-)
11:06<Ammler>planetmaker: you can kinda "close" it
11:06<Ammler>running svn for a "dead" project isn't really worth
11:07<Ammler>and it could happen, that svn just will switch off
11:07<Ammler>and forgotten
11:07<@planetmaker>there are still the src bundles
11:09<JVassie_>Terkhen, in the ToDo, there seems to be a missing table row for Var2AirportTiles, the text for it is floating underneath the main table
11:09<@Terkhen>woops :(
11:10<@Terkhen>cleaned :P
11:15-!-goblin [] has joined #openttd
11:15-!-Chris_Booth is now known as Guest4565
11:15-!-Chris_Booth [~chris@] has joined #openttd
11:21-!-Belugas [~belugas@] has quit [Ping timeout: 480 seconds]
11:22-!-Guest4565 [~chris@] has quit [Ping timeout: 480 seconds]
11:24-!-Belugas [~belugas@] has joined #openttd
11:24-!-mode/#openttd [+o Belugas] by ChanServ
11:27<@Belugas>who turned off the lights?
11:33-!-Brianetta [] has quit [Quit: Tschüß]
11:45-!-Chris_Booth is now known as Guest4569
11:45-!-Guest4569 [~chris@] has quit [Read error: Connection reset by peer]
11:45-!-Chris_Booth [~chris@] has joined #openttd
11:46-!-sllide [] has joined #openttd
11:53-!-Br33z4hSlut5 [] has quit [Remote host closed the connection]
11:57<@planetmaker>hm, I'm getting a feel for python regex
11:58-!-dfox [] has quit [Ping timeout: 480 seconds]
11:58<@Terkhen>good or bad? :P
11:58<@planetmaker>different. But not bad
11:59<@planetmaker>mainly the (?... ) syntax confused the hell out of me
12:01<@Terkhen>huh... why a different syntax? most programs use the common one
12:02<@Terkhen>maybe it is not as complicated to use :P
12:02-!-Chris_Booth is now known as Guest4570
12:02-!-Guest4570 [~chris@] has quit [Read error: Connection reset by peer]
12:02-!-Chris_Booth [~chris@] has joined #openttd
12:03-!-sllide [] has quit [Ping timeout: 480 seconds]
12:03<@planetmaker>it's a sort of extension / short-cut
12:04<@planetmaker>what exactly depends on the character(s) to follow after the ? ;-)
12:05-!-Chris_Booth is now known as Guest4571
12:05-!-Chris_Booth [] has joined #openttd
12:06-!-Chris_Booth [] has quit []
12:06-!-Guest4558 is now known as Chris_Booth
12:12-!-Guest4571 [~chris@] has quit [Ping timeout: 480 seconds]
12:22-!-|Jeroen| [] has joined #openttd
12:30<welshdragon>where can I get a listing of all the older versions?
12:30<welshdragon>(in particular 1.0.5)
12:31<welshdragon>I want to download it
12:31-!-ar3kaw [] has joined #openttd
12:38-!-ar3k [] has quit [Ping timeout: 480 seconds]
12:44-!-TheMask96 [] has quit [Ping timeout: 480 seconds]
12:48-!-pugi [] has quit [Quit: I reject your reality and substitute my own]
12:49-!-TheMask96 [] has joined #openttd
12:59-!-Lakie [~Lakie@] has joined #openttd
13:05-!-Juo [] has quit [Quit: Juo]
13:16-!-frosch123 [] has joined #openttd
13:17<@planetmaker> <-- I try to find lines which start with ABC, replace some stuff within them and then put them back into the original text
13:18<@planetmaker>obviously that doesn't work this way... what's the proper way to do that in python?
13:18<@planetmaker>actual goal: replace <something> in all lines which start with <something else>
13:25-!-bodis [] has joined #openttd
13:37<Rubidium>Terkhen: just teach them<version> ;)
13:38<@Terkhen>oh, ok :)
13:45<CIA-10>OpenTTD: translators * r22588 /trunk/src/lang/ (danish.txt korean.txt):
13:45<CIA-10>OpenTTD: -Update from WebTranslator v3.0:
13:45<CIA-10>OpenTTD: danish - 11 changes by majbom
13:45<CIA-10>OpenTTD: korean - 3 changes by junho2813
13:53-!-Pixa [~Pixa@] has joined #openttd
13:59-!-DjoN [] has joined #openttd
14:01-!-keky___ [] has quit [Quit: Verlassend]
14:01-!-KouDy [] has joined #openttd
14:01-!-|Jeroen| [] has quit [Quit: oO]
14:10-!-Lakie [~Lakie@] has quit [Quit: brb]
14:14-!-Macha [~macha@] has joined #openttd
14:14-!-Mks [] has joined #openttd
14:15-!-Wolf01 [] has joined #openttd
14:16<@Terkhen>hi Wolf01
14:16<welshdragon>I've just done something I've not done in a while
14:17<@Terkhen>planetmaker: <--- this is the wikised I'm using now :)
14:17<welshdragon>CIA-10 will announce it soon :O
14:19<@Terkhen>huh... I don't understand this one at all:
14:23-!-Macha is now known as Macha|XChat
14:24-!-Wolf03 [] has joined #openttd
14:24-!-Wolf01 is now known as Guest4591
14:24-!-Wolf03 is now known as Wolf01
14:27<frosch123>Terkhen: yes, new signals is a lost case
14:27<@Terkhen>I have just applied formatting and added an entry to the todo list
14:27<@Terkhen>I don't understand why that page talks about callbacks :S
14:27<frosch123>it's a try to put everything in a single action5 instead of adding action1s
14:28-!-Macha [] has joined #openttd
14:28-!-Macha [] has left #openttd []
14:28<frosch123>Terkhen: new signals have no normal action2 to reference action1s, there are only callback results, which return indices into an action5
14:29<frosch123>well, and there is also only one callback
14:29-!-Macha|XChat [~macha@] has left #openttd [Leaving]
14:29<frosch123>so the usual pages for action2, varaction2 and callbacks are merged into one page for signals :)
14:29-!-Guest4591 [] has quit [Ping timeout: 480 seconds]
14:29<frosch123>because all is one
14:29<@Terkhen>quite confusing
14:29<frosch123>not supported by ottd anyway :p
14:30<frosch123>and not going to be ever supported either
14:30<@Terkhen>well, it's formatted now; it's up to someone else to clarify it if he wants to
14:30<@Terkhen>yes, I can understand why :P
14:32-!-Lakie [~Lakie@] has joined #openttd
14:37<@Terkhen>when are temporary registers cleared? after finishing a varaction2?
14:39-!-Intexon_ [] has joined #openttd
14:41<@Terkhen>hmm... source says "never"
14:43<@Terkhen>ah, found it in the specs; "values undefined"
14:49<frosch123>yes, if you run expert's hard industries next to a grf which changes registers, it causes an infite loop :p
14:49<frosch123>(which ottd detects since then :s)
14:50<@Terkhen>that newgrf seems to be a nice source of bugs
14:50<frosch123>it does not initialise the 'call again' register of the industry production callback
14:51<@Terkhen>I'll emphasize even more that the temporary register is not to be trusted between different varaction2 :P
14:52<@Terkhen>I'm doing a new page describing storages, I couldn't think of a good place to describe how town persistent storage works (right now everything is scattered between different pages anyways)
14:57-!-Chruker [] has joined #openttd
15:01<frosch123>Terkhen: planetmaker. just skimmed the logs. it is very much intentional that the specs do not mention all 80+ variables
15:01<@Terkhen>hmm... why?
15:01<frosch123>some variables were changed by ttdp and do not match the originals
15:01<frosch123>and quite a lot are also very troublesome wrt. ottd features
15:01<frosch123>so, the general consensus was to only document what is actually needed
15:02<frosch123>ttdp reserved to itself to change any non documented variables to something else
15:02<frosch123>while that does not matter for ottd, quite of them are a nuisance nevertheless
15:03<@Terkhen>it is a complicated issue, yes
15:03<@Terkhen>what should we do regarding openttd variables that are not documented in the specs?
15:03<frosch123>are there any?
15:04<@Terkhen>compare this with src/newgrf_town.cpp:
15:05<@Terkhen>I know that those are in the 80+ range that you mentioned, but there should be a way to know about them besides the source
15:06<frosch123>well, as i said, 80+ variables are not documented intentional
15:06<frosch123>towns are no exception to that
15:07<@Terkhen>hmm... not an ideal solution at all :/
15:07<frosch123>e.g. what's the point of accessing the ratings of the first 8 companies?
15:07<@Terkhen>none, most of them make no sense
15:07<frosch123>a grf does not know about companies, and there are also more than 8
15:07<@Terkhen>but it's the only way to access stuff like "number of houses"
15:08<frosch123>thus "number of houses" is documented :)
15:08<frosch123>if you put it like "everything which makes sense, should be documented", then that should be mostly the case
15:08<@Terkhen>oh, right
15:08<@Terkhen>it is in the table :P
15:09<@Terkhen>I was looking at the description only
15:09<@Terkhen>well, I guess we should make a note of this
15:09<@Terkhen>s/this/the decision regarding 80+ variables/
15:14<frosch123>there could be some page about the meaning of the 00-3f, 40-5f, 60-7f, 80-ff variable ranges
15:15<@Terkhen>yes, the 80+ issue could be mentioned in that page :)
15:15<@Terkhen>I'll add another todo entry
15:19<CIA-10>OpenTTD: frosch * r22589 /trunk/src/ (order_cmd.cpp order_func.h train_cmd.cpp): -Fix [FS#4641]: PBS order forecasting modified the current order index in case of a goto-nearest-depot order and no depot could be found.
15:20-!-Twerkhoven[L] [] has joined #openttd
15:31-!-APTX_ [] has joined #openttd
15:34-!-APTX [] has quit [Ping timeout: 480 seconds]
15:37-!-KritiK [] has joined #openttd
15:39-!-pugi [] has joined #openttd
16:06-!-Twerkhoven[L] [] has quit [Quit: He who can look into the future, has a brighter future to look into]
16:38<@planetmaker>frosch123: why no 80+x? So that they're not used by authors as they're expensive?
16:39<frosch123>most of them are useless
16:39<frosch123>some of them were changed by ttdp (and also ottd)
16:39<@planetmaker>right. Just reading backlog :-)
16:40<frosch123>a lot do not work in ottd because of ottd features
16:40-!-Amis [] has quit [Read error: Connection reset by peer]
16:40<frosch123>they cause trouble all the time, it is hard to support them
16:40<Rubidium>planetmaker: e.g. some allow you to read pointers
16:40<Eddi|zuHause><frosch123> if you put it like "everything which makes sense, should be documented", then that should be mostly the case <-- so if i have a valid case for accessing a certain variable, i need to document it, to make it fixed?
16:41<@planetmaker>frosch123: I still think it's worth documenting that actually. Even useless, obsolete or whatever
16:42<@planetmaker>but it should come with a strong note. Or on some extra page of obsolete variables
16:42<@planetmaker>hm, where's alberth when one needs him...
16:42<@Terkhen>strong notes are not known for deterring people from doing what they want to do :P
16:42<frosch123>planetmaker: there is a item on the todo list
16:43<Rubidium>industry variable 0x83: byte 2 of town pointer ;)
16:43-!-andythenorth [] has joined #openttd
16:43<@planetmaker>I need the python equivalent of sed "/ABC/s/nix als Verdruß/pure Freude/g"
16:43<@Terkhen>also, if they can change between openttd and ttdpatch, I'm not sure they should be in the specs
16:43<frosch123>anyway, callbacks page done \o/
16:44<Eddi|zuHause>planetmaker: line.startswith("ABC")?
16:44<frosch123>Eddi|zuHause: basically yes, but we will ban you if you add something stupid
16:44<@Terkhen>frosch123: nice :)
16:44<@Terkhen>broken table on cb29
16:45<Eddi|zuHause>planetmaker: i meant that literally ;)
16:45<Rubidium>oh... yes...
16:46<Rubidium>we need company variable 0x2B6 + 0x80 ;)
16:46<@planetmaker>hm... let's see
16:46<Rubidium>i.e. the current action the AI is executing
16:47<Ammler>is it somehow obvious, what is spec, what is recommends only?
16:47<Ammler>like cargo table
16:47<frosch123>Ammler: the table of contents has a special sections for recommends
16:47<Rubidium>frosch123: yeah, NewGRF controlled companies
16:47<frosch123>but the stuff is likely not properly split yet
16:49<Eddi|zuHause>Rubidium: callback 18 ;)
16:49<@Terkhen> <--- how does this look?
16:49<@Terkhen>(it will need a cleanup of some pages that is not done yet)
16:50<@Terkhen>hmm... I think we need a style regarding hex numbers
16:51<@Terkhen>I used two in that page :P
16:51<Eddi|zuHause>"what is a hex number is recognizable from context. or something"
16:51<frosch123>Terkhen: "Size:FF" and "Size: 0F"
16:51<Rubidium>Terkhen: I think the sizes are off-by-one
16:52<frosch123>there are 256 registers in range 00 to FF
16:52<frosch123>"Size" sounds if there are 255 registers
16:52<@Terkhen>true, access only to FF != size FF :)
16:53<Eddi|zuHause>why are callback numbers 40 to 13F "reserved"?
16:53<frosch123>How about putting the escape sequences in the operator links?
16:54<frosch123>Eddi|zuHause: because stupid grf authors used to only test the first byte of callbacks
16:54<frosch123>so everything would break when 00-FF were used, as everyone would consider 100 as 00
16:54<frosch123>thus, the byte-sized indices were skipped to kind of force them to use proper word tests
16:55<frosch123>actually, afaik callback id was only a byte in the early days
16:55<Eddi|zuHause>frosch123: so also 200..23F will be skipped?
16:56<@Terkhen>frosch123: Data storage: Operator 0E (sto) allows to store values inside the registers of this storage. <--- something like this?
16:56<frosch123>include the \
16:56<frosch123>so it is clear what it means
16:56<frosch123>maybe also reverse Operator \sto (0E)
16:57<@Terkhen>ok :)
16:57<frosch123>Features that support it: Industries (0A) <- and airports
16:57<Eddi|zuHause>isn't it \2sto?
16:58<frosch123>:o indeed
16:58<@Terkhen>I was wondering why all the escapes have that 2
16:58<frosch123>well, those of action 7 have a 7 :)
16:59<@Yexo>to make sure they don't clash with the actionD and action7 escapes
16:59<Eddi|zuHause>there are also \7 escapes, like \7GG
16:59<frosch123>and there are \2< and \7<
16:59<@Terkhen>oh, ok :)
17:00<Eddi|zuHause>basically someone was too lazy to drag the context with them when evaluating escapes :p
17:01<frosch123>Eddi|zuHause: they are freely defineable nowdays
17:01<@Yexo>not too lazy, grfcodec supports them and knows _nothing_ about context
17:03<Eddi|zuHause>Yexo: yes, but it would have been possible (not necessarily easy or even sensible) to have grfcodec evaluate the context (whether it is currently in an action 2,6(?),7,9 or D
17:04<@Yexo>sure that is possible, however that introduces knowledge about the contents of nfo in grfcodec, as opposed to only knowledge about the format
17:04<@Terkhen>does it know what is an action?
17:05<frosch123>it knows action FF
17:05<frosch123>i.e. binary include sprites
17:05<frosch123>but maybe that is no real action :)
17:05<@Yexo>and binary include files, is that action FE?
17:06<frosch123>hmm? no FF
17:06<@Yexo>no, sprites are differently encoded from sound files
17:06<frosch123>they are an FF action byte, then the filename, and the the data
17:07<@Yexo>oh, right :)
17:08<Eddi|zuHause>so... i can manually put in action FF and after that a hexdumped real sprite?
17:08<@Yexo>IIRC you can do that file sound files, not so sure about real sprites
17:10<frosch123>grfcodec does not care about the file content
17:10<@Yexo>no, real sprites don't start with FF, they start with the type
17:10<frosch123>you can include anything :)
17:10<frosch123>which does not exceed 64kB of course
17:11<frosch123>oh, that way, sure it won't be considered a real sprite
17:12<@planetmaker>Eddi|zuHause: my lines seem to be of length one character each. Unfortunately
17:12<@planetmaker>why ever ...
17:12<Eddi|zuHause>crazy idea #496: we need conditional action 4's so we can change spelling rules of german in 1901 and 1996 :p
17:13<@Yexo>you can have that, as long as you save/load your game in 1996 :)
17:14<__ln__>if i asked why aren't there any trams with ottd by default, would i regret it?
17:14<Eddi|zuHause>we actually discussed changing vehicle names based on date, but i don't remember why we didn't do it
17:14-!-goblin [] has quit [Quit: leaving]
17:14<@Yexo>Eddi|zuHause: to confusing for users?
17:15<@planetmaker>ah... one step further now :-)
17:18<Eddi|zuHause>Yexo: the case would be DBSet engines which occasionally have two or three different names, one in the Länderbahn-era (before 1922), e.g prussian "P8", one in the DRG/early DB era, e.g. "BR 38", "BR E10", and one in the later DB era (UIC-conform), e.g. "BR 110"
17:19<@Terkhen>ok, town persistent storage is now documented :)
17:19<@Yexo>Eddi|zuHause: my point still stands: I think that would be _very_ confusing
17:21<@planetmaker>Eddi|zuHause: thanks with the line.startswith. That got me on the right track
17:24<Eddi|zuHause>Yexo: that's something a newgrf author can solve though.
17:25<Eddi|zuHause>e.g. the BR 38 could be called "pr. P8" before 1922, and "BR 38 (ex. pr P8)" after 1922
17:25<Eddi|zuHause>and the "BR E10" could be called "BR 110 (ex. E10)" after 1970
17:26<Eddi|zuHause>or the east german "BR 132" could be called "BR 232 (ex DR 132)" after 1990
17:27<Eddi|zuHause>the DBSet is actually full of these :p
17:27<Eddi|zuHause>makes for looooooong discussions with MB over which is the right name :p
17:28-!-frosch123 [] has quit [Remote host closed the connection]
17:30-!-Brianetta [] has joined #openttd
17:34-!-TWerkhoven [] has quit [Quit: He who can look into the future, has a brighter future to look into]
17:34<@Terkhen>hi andythenorth
17:35<andythenorth>"is it done yet?" :P
17:35<@Terkhen>yes, for certain definition of "it"
17:36<@Terkhen> <-- this is done for example
17:37-!-Wolf01 [] has quit [Quit: Once again the world is quick to bury me.]
17:40<@planetmaker>ha... tables slowly seem to be fixed... getting somewhere :-)
17:42<andythenorth>there's no regex that could do it en-masse?
17:43<@planetmaker>well... there is not a single one. But a chain of regex to treat stuff
17:45<@Terkhen> <--- only a handful of pages remain untouched :)
17:49*Terkhen is going to finish the remaining action0
17:49-!-sla_ro|master [~slaco@] has quit [Quit: TTW -]
18:01-!-simbabque [] has joined #openttd
18:01<simbabque>hi there
18:01<simbabque>i've got a couple of trains that accidently loaded oil at the station they were supposed to drop oil from another station of...
18:02<simbabque>how can i tell them to loose their cargo permanently so they can start picking up oil at the proper station again?
18:02<@planetmaker>:-D and I wonder why my script suddently behaves differently
18:02<@planetmaker>Terkhen fixed my "test" page: Action0Industries ;-)
18:02<@Terkhen>oh :(
18:03<@planetmaker>that's no har
18:03<@planetmaker>any does
18:03<@planetmaker>and should do
18:03<@Terkhen>simbabque: I think that the fastest way is to send them to depot, sell them and buy new ones
18:03<@Yexo>simbabque: use "unload and no load" orders at that station
18:03<@Terkhen>make sure that the order in the second station is "no load"
18:03<simbabque>i've got the no load now
18:04<@Yexo>the oil will be dropped and will remain at the station
18:04<@Terkhen>planetmaker: ok, which one should I left untouched? action0s are done now :P
18:04<simbabque>ok, thanks
18:04<simbabque>i'll try having them unload until there's nothing left
18:05<@planetmaker>it's lengthy anyway
18:05<@Terkhen>ok :)
18:05*andythenorth -> bed
18:05<@Terkhen>I think that we can finish them today
18:05<andythenorth>good night
18:05<@Terkhen>good night andythenorth
18:05-!-andythenorth [] has quit [Quit: andythenorth]
18:06<@Terkhen>planetmaker: did you check the wikised I uploaded? it contains a few extra checks
18:07<@planetmaker>I looked at it. But I have not yet implemented it in the bot. Let's check action7 results. The first real test :-)
18:07<@planetmaker>hm... kinda failed :S
18:07<@Terkhen>hmm... failed how? wrong conversion?
18:08<@planetmaker>missing line break in tables
18:10<simbabque>changing the directions temporarily worked... thanks a lot :)
18:10-!-Cybertinus [] has quit [Remote host closed the connection]
18:11<@planetmaker>oh... no. table start missing.
18:11<@planetmaker>not line breaks
18:12-!-simbabque [] has left #openttd []
18:16-!-Lakie` [~Lakie@] has joined #openttd
18:23-!-Lakie [~Lakie@] has quit [Ping timeout: 480 seconds]
18:23-!-Prof_Frink [] has joined #openttd
18:23-!-bryjen [~bryjen@] has joined #openttd
18:24-!-Neon [] has quit [Quit: Python is way too complicated... I prefer doing it quickly in C.]
18:29-!-DDR [~DDR@] has joined #openttd
18:31<@Terkhen>good night
18:33-!-tokai|mdlx [] has joined #openttd
18:36<@planetmaker>good night Terkhen
18:37-!-Chruker [] has quit [Read error: Connection reset by peer]
18:39-!-tokai|noir [] has quit [Ping timeout: 480 seconds]
18:45-!-JVassie_ [] has quit [Ping timeout: 480 seconds]
18:50-!-Pixa [~Pixa@] has quit [Ping timeout: 480 seconds]
18:54-!-Pulec [] has quit []
19:00-!-[WOODY] [woodygfx@] has quit [Ping timeout: 480 seconds]
19:03-!-Lakie` [~Lakie@] has quit [Quit: Sleep.]
19:08-!-lordmwa [~lordmwa@] has joined #openttd
19:08<lordmwa>good evening everyone
19:09<lordmwa>anyone got any ideas on this:
19:10<Sacro>Good Evening lordmwa
19:11<Sacro>sounds like an issue with TCP getting through
19:12<Sacro>Using any firewall?
19:12<Sacro>I know :)
19:12*Sacro chortles
19:13<lordmwa>it was router port forwarding error
19:13<lordmwa>it was inbound fine but not outbound
19:13<Sacro>Hmm, strange, NAT should handle that
19:14<lordmwa>i had set it to block UDP port 3797
19:15<lordmwa>when i didnt need an outbound rule because it auto allows
19:15<Sacro>Hmm, strange
19:16<Sacro>Oh well, back to OpenTTD!
19:17-!-amkoroew1 [] has quit [Quit: Leaving.]
19:30-!-KouDy [] has quit [Read error: Connection reset by peer]
19:31-!-KouDy [] has joined #openttd
19:33-!-Chris_Booth [] has quit [Remote host closed the connection]
19:44-!-pugi [] has quit [Quit: I reject your reality and substitute my own]
19:45-!-xi234 [] has quit [Ping timeout: 480 seconds]
19:53-!-xi23 [] has joined #openttd
19:53-!-KouDy [] has quit [Read error: Connection reset by peer]
19:54-!-KouDy [] has joined #openttd
19:54-!-DjoN [] has quit [Quit: Page closed]
20:07-!-lordmwa [~lordmwa@] has quit [Quit: Bye for now!]
20:14<@planetmaker>Terkhen: the remaining wiki pages have been bot-edited. What still might need checking if somewhere content wrt the TTDP wiki is missing. And the usual general review, of course. But everything which has not been looked at should now approx. follow the style
20:14-!-Bilge [~bilge@] has quit [Ping timeout: 480 seconds]
20:16-!-Brianetta [] has quit [Quit: Tschüß]
20:31-!-Progman [] has quit [Remote host closed the connection]
20:47-!-KritiK [] has quit [Quit: Leaving]
21:12-!-Intexon_ [] has quit [Read error: Connection reset by peer]
21:15-!-fjb is now known as Guest4631
21:15-!-fjb [] has joined #openttd
21:21-!-Guest4631 [] has quit [Ping timeout: 480 seconds]
21:58-!-glx [glx@2a01:e35:2f59:c7c0:b0e8:be60:5054:524a] has quit [Quit: bye]
22:07-!-DDR [~DDR@] has quit [Quit: In democracy it's your vote that counts; In feudalism it's your count that votes. - Mogens Jallberg]
22:27-!-rhaeder [] has joined #openttd
22:31-!-rhaeder1 [] has quit [Ping timeout: 480 seconds]
22:55-!-tim_ [] has joined #openttd
23:56-!-tim_ [] has quit [Remote host closed the connection]
---Logclosed Wed Jun 15 00:00:54 2011