v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
Editing User talk:Lethosor
Jump to navigation
Jump to search
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | {{User:Lethosor/ | + | <div class="usermessage plainlinks" style="background-color:#dfc; {{border radius|5px}} border-color:#ac9"> |
+ | If you want to start a new topic, [{{fullurl:User talk:Lethosor|action=edit§ion=new&preloadtitle={{urlencode:(Title here)}}&preload={{urlencode:User:Lethosor/message here}}}} click here]. I'll usually reply here, so {{action|watch|User talk:Lethosor|adding this page to your watchlist}} will make it easier to check for replies. | ||
+ | </div> | ||
{{Archive| | {{Archive| | ||
* [[/archive1|Archive 1 <br>(February-August 2013)]] | * [[/archive1|Archive 1 <br>(February-August 2013)]] | ||
− | |||
}} | }} | ||
__TOC__ | __TOC__ | ||
Line 14: | Line 15: | ||
To keep this organized, please add requests at the bottom of this section in a sub-section (e.g. === Title ===, with 3 = signs) | To keep this organized, please add requests at the bottom of this section in a sub-section (e.g. === Title ===, with 3 = signs) | ||
--> | --> | ||
− | == | + | == Raw ripping == |
− | + | Several questions about things I'd like to implement (check my [[User_talk:Asva|userpage]] for current progress): | |
− | + | * Don't those fancy scripts increase traffic cost and such? | |
− | + | * Bulk upload images for workshops, doable? | |
+ | * I'm currently working on images-from-raws script. Is it possible to use actual graphic tiles? | ||
+ | * In perspective, script should take every possible information from raws. For workshops it would be: keybind, components, profession, size, reactions, maybe even input and output. Which as well opens the way for such a glorious implementations as: workshop of profession list, output/input to workshop list, workhop|keybind|components table etc. With less possible tedious editing required. Any thoughts on the matter? --[[User:Asva|Asva]] ([[User talk:Asva|talk]]) 12:45, 7 September 2013 (UTC) | ||
− | + | : > Don't those fancy scripts increase traffic cost and such? | |
− | + | :They do increase the time it takes to generate pages, especially if they pull a | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | :::: | + | Arrow: |
− | ::::: | + | <div style="width:16px;height:16px;overflow:hidden;position:relative"><div style="position:relative;top:-21px;left:-16px"> |
− | ::: | + | [[File:Phoebus 16x16.png|link=]] |
− | ::::::: | + | </div></div> |
− | :::::::: | + | Bush: |
− | :::: | + | <div style="background:#00CC00;width:16px;height:16px;overflow:hidden;position:relative"><div style="position:relative;top:-32px;left:-32px">[[File:Phoebus 16x16.png|link=]] |
+ | </div></div> | ||
+ | Something: | ||
+ | <div style="width:16px;height:16px;overflow:hidden;position:relative"><div style="position:relative;top:-32px;left:-48px">[[File:Phoebus 16x16.png|link=]] | ||
+ | </div></div> | ||
+ | 2,3,1: | ||
+ | <div style="background:#0000FF;width:16px;height:16px;overflow:hidden;position:relative"><div style="position:relative;top:-53px;left:-32px"> | ||
+ | [[File:Phoebus 16x16.png|link=]] | ||
+ | </div></div><div style="background:#FF0000;width:16px;height:16px;overflow:hidden;position:relative"><div style="position:relative;top:-48px;left:-48px">[[File:Phoebus 16x16.png|link=]] | ||
+ | </div></div><div style="background:#00FF00;width:16px;height:16px;overflow:hidden;position:relative"><div style="position:relative;top:-48px;left:-16px">[[File:Phoebus 16x16.png|link=]]</div></div> | ||
− | + | Though the padding is a bit weird. Somewhy for "arrow" and "2" it is not dividable by 16. --[[User:Asva|Asva]] ([[User talk:Asva|talk]]) 11:06, 14 September 2013 (UTC) | |
− | + | * I'm almost done. Here's the [https://dl.dropboxusercontent.com/u/57572806/screenshoot_00364.jpg result]. And that's how it looks after I save the page [https://dl.dropboxusercontent.com/u/57572806/screenshoot_00365.jpg =.=]. Same syntax as before. --[[User:Asva|Asva]] ([[User talk:Asva|talk]]) 14:28, 14 September 2013 (UTC) | |
− | + | Wow, nice work. A few things I've noticed about the tiles, though - they don't seem to support non-square tilesets or different foreground colors. :( Personally, I'd prefer to use JavaScript for this (assuming I can get transparency to work) but the CSS works a lot better than I expected. | |
− | |||
− | + | (And by the way, the "Close" button at the bottom of the [https://github.com/quietust/DFRawFunctions/pull/3 pull request] is probably what you're looking for.) --[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 17:44, 14 September 2013 (UTC) | |
− | + | :> support non-square tilesets | |
− | + | :Probably fixaeble. Non square big tiles can be squarified. That will make messy code even messier... | |
− | |||
− | |||
− | + | :Foreground colors? You mean, for monochrome tilesets? I don't think supporting these would be of any merit. For workshop articles, ascii and graphic tiles are plenty. Only implementation - would be tricky option, allowing any user to chose his favorite tileset from list. | |
− | + | :Surely, clean javascript would suit much better. | |
− | + | :PS Thanks for github editing and supportive information. --[[User:Asva|Asva]] ([[User talk:Asva|talk]]) 18:41, 14 September 2013 (UTC) | |
− | --[[User: | ||
− | : | + | ::I was referring to the text color - for example, the background color of the numbers above (2,3,1) can easily be changed to red, green, and blue, but the colors of the numbers themselves are still white (I'm not even sure if it's possible to do this in CSS, although it could be). You're probably right about workshops not needing them, though. |
+ | ::> allowing any user to chose his favorite tileset from list | ||
+ | ::Definitely possible with an extension (could be added in [[Special:Preferences]] somewhere, for example), although it would require at least some JS to modify the CSS appropriately. --[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 19:05, 14 September 2013 (UTC) | ||
+ | ::: I'm talking about [[Graphics_set_repository|graphics sets]]. You can't possibly change color without turning them into monochrome+alpha. Which is weird and probably bothersome. | ||
+ | ::: While for [[Tileset_repository|tilesets]] the idea is valid. | ||
+ | * While working on items I encountered tags like FIRE_BUILD_SAFE, NEEDS_MAGMA, WORTHLESS_STONE_ONLY. Don't you have an idea, how those can be put in workshop or item template without taking too much space? | ||
+ | * About huge tables (f.e. workshop | buildmat | tiled image | build profession). Is it possible to make them editable only by your bot? Like, simply update once new version arrives? Otherwise large tables may hurt server costs. | ||
− | |||
− | + | Hi. | |
+ | I remade the previous script a bit. Now it uses global array of objects. Which means, to get any output you'll have to (pseudocode warning): | ||
+ | * <nowiki>{{load files}}</nowiki> | ||
+ | * <nowiki>{{process files}}</nowiki> | ||
+ | * <nowiki>{{output files}}</nowiki> | ||
+ | Beforehead, I passed all data for every function just to avoid excessive file loading. Was hectic, hard to debug, hard to process. | ||
+ | As for now, stuff seems much brighter. For instance, I can make <nowiki>{{show me errors}}</nowiki> wiki template without much ado. | ||
− | + | So, back to globals, is it a good idea (safety-wise)? Won't it break something? | |
− | |||
− | + | BTW, I decided on quietust's functionality. I'll left it intact. Won't touch a thing. I'll use only one parser template, which is <nowiki>{{#df:}}</nowiki>. Approved, sir?--[[User:Asva|Asva]] ([[User talk:Asva|talk]]) 19:18, 17 October 2013 (UTC) | |
− | |||
− | |||
− | + | == ArticleVersion bug? == | |
− | |||
− | == | + | The updated ArticleVersion template seems to believe [[Dwarf Fortress Italia]] is in the 40d namespace. --[[User:Loci|Loci]] ([[User talk:Loci|talk]]) 19:48, 21 October 2013 (UTC) |
+ | :That's because there was a redirect created when I moved [[40d:Dwarf Fortress Italia]] to the main namespace. I don't know of any way to resolve redirects from a template, so I just removed {{#delay:av}} from the article altogether. --[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 20:21, 21 October 2013 (UTC) | ||
− | + | == New Push Page == | |
− | |||
− | + | Hey man I wanted to create a page about the default "push" attack creatures have, as its not always clear what that attack is. I thought I'd put some concrete into about it and a list of creatures that use it by default. I made the page and added content, but I really have no idea what I'm doing such as how to add that version box for what version of DF its for how to add it to the df2012 namespace...whatever namespace is. And how to see a list of categories. Internal links to creatures also will not work. I thought creating a page would be easy, apparently not. | |
− | + | Also is it ok to link to things like my Amazon Writing profile on my talk page? I just wanted to put something about me there and what I do. | |
− | |||
− | + | Thanks. Hope you're liking my edits. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | http://dwarffortresswiki.org/index.php/Push | |
− | I | + | :I took care of the namespace and link problems - you just add "DF2012:" to the beginning of the title to create a page in the DF2012 namespace. The link issue was a result of capitalization - MediaWiki treats the entire article title as case-sensitive except for the first letter. |
+ | :Anyway, putting up links to your other profiles on your user page is fine with me (as long as they're not super-promotional or inappropriate), and some other users have done things like that too. --[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 20:14, 28 October 2013 (UTC) | ||
− | ' | + | Great, thanks for fixing it. I didn't realize it was that easy. and i didn't know about the case sensitive thing either I'll keep that in mind. |
− | + | And thank you I will then. I've done plenty of writing :) [[User:Proudnerd|Proudnerd]] ([[User talk:Proudnerd|talk]]) 00:11, 29 October 2013 (UTC) | |
− | + | == Rating script bug == | |
− | == | + | It appears the new rating script is stripping returns when it rearranges ArticleVersion templates ([http://dwarffortresswiki.org/index.php?title=DF2012:Engraving&diff=next&oldid=193707 example]). This can lead to [http://dwarffortresswiki.org/index.php?title=DF2012:Climate&diff=prev&oldid=193509 page layout problems]. Can you revise the rating script to retain the returns?--[[User:Loci|Loci]] ([[User talk:Loci|talk]]) 19:53, 30 October 2013 (UTC) |
− | + | : I did manage to fix the second example you listed in the script with a recent update, which was caused by accidentally retaining spaces (see [http://dwarffortresswiki.org/index.php?title=DF2012%3AClimate&diff=193830&oldid=193829 this edit]), but I'll try to make it work with the source code better. Thanks for pointing out the first example, too – I hadn't thought of that as a possibility. --[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 20:04, 30 October 2013 (UTC) | |
− | |||
− | |||
− | |||
− | --[[User: | ||
− | + | ::Just to point out, your test didn't have any spaces after the <nowiki>{{av}}</nowiki> template. But, beyond spaces, a number of special characters (such as ":") could probably still cause problems if they end up attached to the beginning of a paragraph. You could probably just add an extra return after the av template line to prevent most problems.--[[User:Loci|Loci]] ([[User talk:Loci|talk]]) 20:17, 30 October 2013 (UTC) | |
− | :: | ||
− | |||
− | |||
− | == | + | :The rating script is apparently still stripping newlines: [http://dwarffortresswiki.org/index.php?title=DF2012:Native_aluminum&curid=22324&diff=194068&oldid=188188 Native aluminum] [http://dwarffortresswiki.org/index.php?title=DF2012:Bismuthinite&curid=22309&diff=194067&oldid=178239 Bismuthinite]. --[[User:Loci|Loci]] ([[User talk:Loci|talk]]) 15:27, 9 November 2013 (UTC) |
+ | ::This should be [https://github.com/lethosor/dfwiki-rater/commit/0bd88981d5eee69e90223e23a4f8a238871486e1 fixed] now. (I actually fixed this about an hour ago, but I didn't save the fix to the branch used on this wiki -_-) This wiki automatically fetches updates for the rating script, so it should probably be updated in an hour or less (the new version that should appear on [[Special:Version]] is 1.0.2). --[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 18:13, 9 November 2013 (UTC) | ||
− | + | :Thanks! ...But now the script is inserting an extra newline each time the page is rated [http://dwarffortresswiki.org/index.php?title=DF2012:Mud_man&diff=next&oldid=194135]. This may lead to content creeping down the page until the newlines are manually removed. Is it possible to only add newlines when rearranging the page templates? --[[User:Loci|Loci]] ([[User talk:Loci|talk]]) 20:53, 14 November 2013 (UTC) | |
+ | ::Wow, thanks for noticing that! Right now the {{#delay:quality}} replacement is using a single regex, and I fixed the last problem by changing \s to a space. Apparently I forgot that this was the reason it included newlines in the first place. I'll fix this when I can (hopefully in the next couple of days). --[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 21:14, 14 November 2013 (UTC) | ||
− | + | I've also noticed that the rating script tab appears at the top of pages that it shouldn't, such as [[Special:RecentChanges]]. That's a pretty minor bug, but if you're changing it anyway and it's easy to fix... --[[User:Loci|Loci]] ([[User talk:Loci|talk]]) 18:28, 16 November 2013 (UTC) | |
− | |||
− | |||
− | + | :I can definitely get that done. The only reason I hadn't was because I didn't want to create future issues with new namespaces, but that's no longer an issue since I made the script into an extension. I'm probably going to implement this as a system message (and maybe a preferences option as well). Hopefully I can get to these things today or tomorrow. --[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 18:39, 16 November 2013 (UTC) | |
− | |||
− | --[[User: | ||
− | == | + | ::This part is done ([[Special:Version|v1.0.3]]): see [[Mediawiki:rater-enable-ns]] and [[Mediawiki:rater-disable-ns]] (which specify a list of namespaces to enable/disable rating). Other namespaces still allow the rating to be viewed, but not saved (which is really only useful for testing purposes). --[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 22:26, 20 November 2013 (UTC) |
− | + | And I've fixed the issues with whitespace, as far as I can tell. The only one that wasn't resolvable was <pre>{{av}} {{quality...}} content</pre> which is changed to: <pre>{{quality...}} | |
− | + | {{av}}content</pre> (this doesn't cause any layout problems, and the source doesn't appear any worse than it was before). The recent edits I made to [[DF2012:Native aluminum]] were using an older version of the script – the current version works fine. (I've also added a debug mode, so I can test the script on the [[Sandbox]] in the future instead of messing with content pages.) --[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 01:28, 22 November 2013 (UTC) | |
− | |||
− | |||
− | |||
− | |||
− | == | + | == Creature template problem == |
− | + | Creature pages for untamable egg-laying creatures (like [[raven man|raven men]]) currently show them producing food products. Untamed egg-laying creatures don't actually produce eggs in this version (and probably wouldn't willingly hand them over to a hungry dwarf even if they did). The template probably needs to check that the creature has [PET] or [PET_EXOTIC]. --[[User:Loci|Loci]] ([[User talk:Loci|talk]]) 20:22, 20 November 2013 (UTC) | |
− | |||
− | |||
− | --[[User: | ||
− | == | + | :Fixed (it now checks for {{token|PET|c}} and {{token|PET_EXOTIC|c}}). --[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 22:20, 20 November 2013 (UTC) |
+ | == Bot tests == | ||
+ | Testing on Python 3.4.0b1 --[[User:LethosorBot|<span style="color:#f40;">LethosorBot</span>]] ([[User talk:LethosorBot|<span style="color:#f62;">talk</span>]] | [[User:Lethosor|<span style="color:#074">Lethosor</span>]] | [[User talk:Lethosor|<span style="color:#092">talk</span>]]) 19:08, 8 December 2013 (UTC) | ||
− | + | Testing on Python 2.7.5 --[[User:LethosorBot|<span style="color:#f40;">LethosorBot</span>]] ([[User talk:LethosorBot|<span style="color:#f62;">talk</span>]] | [[User:Lethosor|<span style="color:#074">Lethosor</span>]] | [[User talk:Lethosor|<span style="color:#092">talk</span>]]) 19:11, 8 December 2013 (UTC) | |
− | |||
− | + | Summary test | |
− | + | == test == | |
− | + | test | |
− | |||
− |