User talk:Klexur: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
(→‎Special Dumbwit Reports: I'm accumulating a list of Dumbwit locations for testing purposes.)
mNo edit summary
 
(46 intermediate revisions by 8 users not shown)
Line 1: Line 1:
== General ==
{{User:Klexur/navbar}}
<span style="font: bold larger 'Lucida Console'; text-shadow:1px 1px 0px black; color: {{User:Klexur/labelcolor}};">Userscript specific discussion can be found {{User:Klexur/snazzylink|User_Talk:Klexur/Userscripts|here}}.</span>
 
{{User:Klexur/snazzylink|Category talk:Danger Reports#Single click updates for buildings?}}
 
== {{User:Klexur/th|Welcome}} ==
Thanks for the [http://wiki.urbandead.com/index.php?title=External_Links&curid=18168&diff=1998078&oldid=1991063 feedback on extensions]! I'll see if I can take a look or at least prod the people responsible. (I make no promises. {{shifty}})
Thanks for the [http://wiki.urbandead.com/index.php?title=External_Links&curid=18168&diff=1998078&oldid=1991063 feedback on extensions]! I'll see if I can take a look or at least prod the people responsible. (I make no promises. {{shifty}})


Line 10: Line 15:
::About all you'd learn is what not to do. :P I rewrote one or two of them later on, and I was able to reduce the code by as much as 90% while making it both clearer and more efficient. I have no doubt that there are hundreds of examples of shoddy code still in my userscripts, since I was brand new to making them when I started making them for UD. {{User:Aichon/Signature}} 05:40, 23 June 2012 (BST)
::About all you'd learn is what not to do. :P I rewrote one or two of them later on, and I was able to reduce the code by as much as 90% while making it both clearer and more efficient. I have no doubt that there are hundreds of examples of shoddy code still in my userscripts, since I was brand new to making them when I started making them for UD. {{User:Aichon/Signature}} 05:40, 23 June 2012 (BST)


==UD PK Reporter/Private==
== {{User:Klexur/th|Special Dumbwit Reports}} ==
Nice PK reporting scripts. I noticed that when you use private PK Reporter, your AP, HP and Inventory remain hidden in the game screen after the witness is taken. They come back after a refresh but was just wandering if that is just the way it is or some other way around it. Only down side is that refreshing the map takes IP hits. ~[[Image:Vsig.png|link=User:Vapor]] <sub>03:52, 23 June 2012 (UTC)</sub>
If anybody is watching, I would greatly appreciate it if I could get some Dumbwit reports of special locations in Malton. Places like map edges and corners especially. Reason being is that I use Dumbwit reports to test most of my scripts to reduce IP hits. --{{User:Klexur/Signature}} 20:31, 11 July 2012 (BST)
: Nice catch, I actually just wrote that an hour ago. I'll see about replacing the values after submitting to Dumbwit. --[[User:Klexur|Klexur]] 03:59, 23 June 2012 (BST)
:The only help I can offer is [http://www.google.com/search?hl=en&q=site:http://iamscott.net+Pritchard+Grove+Railway+Station this]. The other four corners had no relevant results. {{User:Aichon/Signature}} 21:38, 11 July 2012 (BST)
::That would be good. It's not thaaaat big of a deal. There is another issue, though. If this script is enabled and you perform a regular dumwit, it will still open a window to report to RG. Nice if that all you intend to use dumwit for but not so nice if you just want to post the wit somewhere else. I'm going to keep the script and just enable it when I want to make an RG report (it really does take a lot of work out of it). If you end up updating the script, though, please let me know. Thanks. ~[[Image:Vsig.png|link=User:Vapor]] <sub>04:56, 23 June 2012 (UTC)</sub>
::Yeah, that was the only corner I found too. =/ I was hoping some wiki people might know or made others. --{{User:Klexur/Signature}} 21:42, 11 July 2012 (BST)
:::Unfortunately, all of my testing was done in-game at those locations, which is also part of the reason why I ended up going ahead and donating for all of them. I was certainly hitting his server enough to justify paying, and it gives each of them their own IP hit count to deplete, rather than sharing a single pool. {{User:Aichon/Signature}} 21:57, 11 July 2012 (BST)
::::That works too, but means you need to have a character at the desired location. I like instant gratification when it comes to testing. =P I have a growing list of Dumbwit reported locations that I'd be glad to share if there is an interest. --{{User:Klexur/Signature}} 02:02, 18 July 2012 (BST)
:::::If I have a need, I'll definitely hit you up. As it is, I haven't had to do heavy testing in at least a year, and my Survivor Aggregator and A-GPS were the only two that I recall really needing testing of odd locations (the Aggregator in particular, since it had quite a few edge cases for multi-block structures and the like). {{User:Aichon/Signature}} 03:50, 18 July 2012 (BST)


What about the players who like to hold onto reports for a few days before submitting them? RG has a two week deadline to submit PK reports. --{{User:Axe Hack/Sig}} 06:52, 23 June 2012 (BST)
== {{User:Klexur/th|Content outside the page boundary}} ==
: What about them? =P I'll be making another version which will only hide HP, AP, and Inventory then make the Dumbwit report. It won't automatically submit it to RG. --[[User:Klexur|Klexur]] 16:30, 23 June 2012 (BST)
Careful that your content doesn't exceed the designated areas and [http://wiki.urbandead.com/index.php?title=User:Klexur&curid=156339&diff=2013395&oldid=2013159 block stuff that should be visible], such as the difference between revisions in that link. I don't think anyone will really mind if it's just your userpage and most of the navigation is still intact, but you should try to avoid it if possible, since there is a policy against covering up stuff. {{User:Aichon/Signature}} 00:22, 21 July 2012 (BST)
::What about those using Aichon's Barrista, which turns the HP/AP stuff into a bar at the top left of the page? --{{User:Axe Hack/Sig}} 18:07, 23 June 2012 (BST)
:Is it okay how it is now though? I've since changed the included templates so the linked page looks way wrong. --{{User:Klexur/Signature}} 00:26, 21 July 2012 (BST)
:::He would have to specifically code it to remove the numbers from Barrista, which shouldn't be too bad with some simple XPath code, given that Barrista's structure for that portion never changes, meaning he wouldn't need to consider any edge cases. {{User:Aichon/Signature}} 19:08, 23 June 2012 (BST)
::Sorry for not getting back to you quickly on this. Anyway, I think it's okay. The only thing you're blocking is the "User:Klexur" at the top, and it's generally understood that that's fine, so long as it's done in good faith for good reason (the policy saying content outside of the boundaries is not allowed makes an exception for custom titles on pages in some circumstances). My user page does the same thing, for instance. {{User:Aichon/Signature}} 21:21, 30 July 2012 (BST)
Updated for Aichon's new Barrista. --[[User:Klexur|Klexur]] 06:48, 29 June 2012 (BST)
:::Also, this dark background is making me think I should put the invisible-unless-on-dark-background glow that I used to have back in my sig. {{User:Aichon/Signature}} 21:26, 30 July 2012 (BST)
::::Unless you plan on visiting my talk page a lot, you might not see the lack of shadow on your sig. =P By the way, how would you do that? I'm guessing with a light color that would just blend with light backgrounds. I'm still playing with the colors of my pages. Originally they were based on a website design a made a while back but I found they are a tad dark on a wiki with so much white. --{{User:Klexur/Signature}} 22:00, 30 July 2012 (BST)
:::::It's not the lack of shadow that bothers me. It's the lack of contrast on the "Aich" portion, which a glow might help to solve. Unfortunately, my earlier tests showed that the legibility didn't improve much with a simple glow, but if I used multiple text-shadows (CSS supports multiple text-shadows simultaneously) to produce multiple glows, the result isn't actually that bad, and it would result in the glow appearing on dark backgrounds, while the shadow appears on light backgrounds. That's how I've configured it now. {{User:Aichon/Signature}} 23:30, 30 July 2012 (BST)


==UD Map Skinner==
== {{User:Klexur/th|borrowed code}} ==
For some reason its not displaying cathedral skins. An oversight, or a lack of images from the original incarnation? --[[User:Rosslessness|Ross]]<sup>[[User:Rosslessness/Battle of Tebbett|less]]</sup>[[User:Rosslessness|ness]]  13:57, 23 June 2012 (BST)
Hi, I saw your map tracking your own movements, and I tried applying the code for a tour I'm putting together.
:UDTool never had skins for cathedrals. I think the Zookeepers' map skins are just a bit better, although it breaks a few of Aichon's scripts... --{{User:Axe Hack/Sig}} 14:04, 23 June 2012 (BST)
The result is extremely basic and can be found [[User:Peralta/Workspace#Map-thingie_for_the_bartour|here]].
:: That's correct, there were not images for cathedrals. I could make a version with the Zookeepers' images if you locate them for me. --[[User:Klexur|Klexur]] 16:30, 23 June 2012 (BST)
:::It's one of [http://www.ray3k.com/downloads/scripts/mapgraphics.html Ray3K's scripts]. --{{User:Axe Hack/Sig}} 18:09, 23 June 2012 (BST)
:::: Ah, right. Is he even still active? --[[User:Klexur|Klexur]] 19:17, 23 June 2012 (BST)
:::::I really don't know. You'll have to check in with the Zookeepers on that. All I know is his map skins script breaks sone of Aichon's stuff. --{{User:Axe Hack/Sig}} 21:18, 23 June 2012 (BST)
::::::Which stuff of mine breaks? I might be able to look into making my stuff more robust for some of that. {{User:Aichon/Signature}} 21:58, 23 June 2012 (BST)
:::::::Honestly? I don't even remember. It's been a while since I had Ray's script installed. But I know it broke something. Just can't remember what. But it was definitely one of your scripts, Aich. --{{User:Axe Hack/Sig}} 23:04, 23 June 2012 (BST)
:::::::: Sounds like you're sure but not sure. --[[User:Klexur|Klexur]] 04:54, 24 June 2012 (BST)


== UD Dumbwit Privacy ==
I've copied the original template code as well, trying to make sense out of it and changing it to fit my needs, but if you have some advices, that would be great.


Okay, for those that would like to have their HP, AP, and Inventory hidden before a Dumbwit report and restored after, try [http://userscripts.org/scripts/show/136874 this.] If you try it, please give feedback.
If you'd prefer me not using the code, just say the word. I know this wiki says that everything you post on it is public domain, but I'd start looking for something else if you didn't want me using it :) [[User:Peralta|-- Johnny Twotoes]] 18:23, 31 July 2012 (BST)
:Just to quibble, it doesn't actually say that everything is public domain. It merely requires that everything we post either be public domain or have permission from the copyright holder, but that doesn't mean that the copyright holder has necessarily ceded their rights to it (in fact, [[UDWiki:Copyrights]] specifies that the copyright stays with the person who created the content). Since everyone has an automatic copyright on the things they write as soon as they're written, they could, in theory, choose to not allow anyone else to use their code.
:That said, looking at his code, I'm willing to bet that his map was inspired from either an [[User:Aichon/Sandbox/Templates8|old sandbox project]] of mine or [[User:Aichon/Visited_Suburbs|my own visited suburbs template]], both of which have been around for years and which I'd be happy to let anyone else use. That said, as is typical of Klexur, his work is very clear, clean, and easy to use, whereas mine is rather unwieldy since I had some other things in mind for it.
:Also, I just saw you in-game about an hour ago. You might want to move, since you're getting eaten by a zombie, I think. {{User:Aichon/Signature}} 20:00, 31 July 2012 (BST)
:::I was just about to post this when I got the notification of your response, Aichon. =P --{{User:Klexur/Signature}} 20:10, 31 July 2012 (BST)
::::Thanks for the heads up about everything, I'll keep it in mind :) [[User:Peralta|-- Johnny Twotoes]] 20:19, 31 July 2012 (BST)


Side note for [[User:Aichon|Aichon]]: If you would give the Barrista items IDs it would have made this infinitely easier! =P --[[User:Klexur|Klexur]] 05:06, 24 June 2012 (BST)
:I don't mind you using the code but from what I can see, you are simply calling the map from my page. I'd prefer you make your own template page for the code and call it from there since I had plans to change it. This way it looks different -- different colors and whatnot -- and when I make changes it is not reflected on your page as well. I should also note that I got most of the code from [[User:Aichon|Aichon]] and changed it to suit my needs and design. Other than that, feel free to use what you like. --{{User:Klexur/Signature}} 20:10, 31 July 2012 (BST)
:That was actually the VERY first thing I checked when Axe mentioned it, since I did give some of them classes so that they could be manipulated using some of the CSS-altering userscripts out there. Unfortunately, I didn't give any of them IDs. Keep poking me about this if I don't post an updated version of it in the next few days. {{User:Aichon/Signature}} 05:13, 24 June 2012 (BST)
:: As I said, I just copied the code and fooled around a bit, but I haven't gotten around to creating own templates yet, since I have to figure out what I need first and I'm kind of at work now ;) Thanks ! [[User:Peralta|-- Johnny Twotoes]] 20:19, 31 July 2012 (BST)
:: Poke =P --[[User:Klexur|Klexur]] 19:00, 26 June 2012 (BST)
:::You may need to keep poking me. I'm busy with a few random things after work this week, which may continue to distract me, though there's more than enough time to fix it if I actually remember to do so. {{User:Aichon/Signature}} 19:13, 26 June 2012 (BST)
::::hop too it. i would like this to work with barrista.--{{User:Sexualharrison/sig}}<small>22:19, 26 June 2012 </small>
:::::I haven't returned home yet for the day, so I can't exactly hop to it. :P As a note to Klexur, I'll give the four objects you're grabbing the IDs "barristahptext", "barristaaptext", "barristahpbar", and "barristaapbar". That should let you code it in advance of whenever I get around to fixing things on my end, which will save your users the hassle of updating two userscripts later. {{User:Aichon/Signature}} 22:44, 26 June 2012 (BST)
:::::: You know, Aichon, you really wouldn't need to add the IDs. I know I'm late in saying that but my script works perfectly fine without them. I just had some trouble getting the XPaths right (I'm new to them) when I was coding it. =S --[[User:Klexur|Klexur]] 18:51, 28 June 2012 (BST)
:::::::Of this I am aware, but there are a few good reasons to do so anyway:
:::::::#It allows others to script for them too
:::::::#Future changes to Barrista won't break your script
:::::::#Future changes to the game won't break your script
:::::::#You need to change your code anyway (more on that in next edit)
:::::::Mainly I'm concerned with #2 and #3. While your current XPath ''does'' work, the fact that it's so explicit while using very generic elements means that it's very likely to break at the slightest tweak either to the game or Barrista. {{User:Aichon/Signature}} 20:26, 28 June 2012 (BST)


In glancing at your code, I noticed that it has the potential for a few issues. I don't think they're actually causing any problems, but I thought I'd point them out in case you're interested:
:Probably a stupid question, but what does this call upon? {{CodeInline|<nowiki>{{User:Klexur/{{{00|bg}}}color}}</nowiki>}} [[User:Peralta|-- Johnny Twotoes]] 20:37, 31 July 2012 (BST)
#When you're checking to see if Barrista exists, using .snapshotitem(0) at the end of the line will throw exceptions when no snapshotitems are returned (as would be the case when Barrista exists). Admittedly, it's a bad practice still found in some of my userscripts, but the better way to handle it is to not use .snapshotitem(0) until you know that an item exists, and instead use .snapshotLength > 0 in your if statement to check for them. That issue is in a few places.
::That is basically and If Then statement. If {{CodeInline|00}} is defined as a variable, then use {{CodeInline|00color}} as the color, if not use {{CodeInline|bgcolor}}. --{{User:Klexur/Signature}} 20:42, 31 July 2012 (BST)
#If you want to check for Barrista, it'd be better if you checked for it, rather than checking for the lack of something it removes, since other userscripts may remove the gt div as well. I'll add a "barrista" id for the outermost barrista div when I make my changes, that way it's easier to check for.
::: I see, making sense again :) Thanks! [[User:Peralta|-- Johnny Twotoes]]
#When you try to grab HP from Barrista, you have "//" in the XPath code, which means that the div does not ''need'' to be an immediate child of body. As a result, other divs may be grabbed in addition to the correct one. By itself that isn't a problem, but because you're using UNORDERED_NODE, we can't say for sure which one will be .snapshotitem(0) vs. .snapshotitem(1) and so on, but you're always using .snapshotitem(0). That means you may end up using the wrong div in some cases. Switching it to ORDERED_NODE or just a "/" should fix the issue, I think (ideally the latter, since ORDERED_NODE is slower than UNORDERED_NODE).
::::No problem, feel free to continue asking me or Aichon (I'm sure he wouldn't mind, he's answered my share of questions too.) --{{User:Klexur/Signature}} 20:56, 31 July 2012 (BST)
Anyway, keep using XPath, since all of the major browser vendors have done heavy optimization around it, meaning that it's very fast compared to things like GetElementById. {{User:Aichon/Signature}} 20:44, 28 June 2012 (BST)
:::::Thanks! And thank god, because I can't find the template "User:Klexur/00color". Is 00color set somewhere else or is it the alternative bg2color that appears later on the same line? [[User:Peralta|-- Johnny Twotoes]] 21:00, 31 July 2012 (BST)
: That has got to be the most detailed and informative glance I've heard of in my life. THANK YOU! I'll try to have this updated in the next few days. Please feel free to continue glancing. --[[User:Klexur|Klexur]] 21:14, 28 June 2012 (BST)
::::::00 is a variable. So, whenever you call the template, you might do something like {{Codeinline|<nowiki>{{User:Klexur/visitedsuburbs|00=border}}</nowiki>}}, which would result in [[User:Klexur/bordercolor]] being used. If you don't give variable 00 a value, it defaults to using "bg" because of the code you asked about earlier, so it would result in [[User:Klexur/bgcolor]]. {{User:Aichon/Signature}} 21:04, 31 July 2012 (BST)
::Lol, well, I just looked at the code related to Barrista to see if there were any other IDs that could help, and that's when I saw loads of divs, which got me looking a bit more closely, though I still only looked at the stuff related to Barrista. :P {{User:Aichon/Signature}} 01:03, 29 June 2012 (BST)
::::::::And I was wrong when I said everything was ok... -_- I still get these templates as "used on the page" (although I can't see where) [[User:Peralta/map1|here]]
::: Well it's a good thing you did because it made me look back over the rest. I must have been real tired when I "finished" it because I also found unused code and some redundancy. -_- I cleaned it up and will upload the id version once you finish yours so that they will match. --[[User:Klexur|Klexur]] 01:23, 29 June 2012 (BST)
    User:Klexur/bg2color (edit)
::::Updated Barrista, finally. Let me know if I did something stupid like misspell an ID. :P {{User:Aichon/Signature}} 01:48, 29 June 2012 (BST)
    User:Klexur/bgcolor (edit)
::::: Uploaded mine as well. --[[User:Klexur|Klexur]] 06:48, 29 June 2012 (BST)
    User:Klexur/bodycolor (edit)
    User:Klexur/labelcolor (edit)
::::::::: and I have no idea where I can change the titel of the blocks (as in: "Unvisited", "Visited", "Current" ) [[User:Peralta|-- Johnny Twotoes]] 22:25, 31 July 2012 (BST)
::::::::::That is odd, I searched but couldn't find my name anywhere. I'll try again in a sec. The block labels you are referring to are at the very bottom of the [[User:Peralta/smallmap]] code. --{{User:Klexur/Signature}} 22:32, 31 July 2012 (BST)
:::::::::::Those "used on the page" templates are just the wiki having fun. Basically, you updated smallmap after you updated map1, so map1 still thinks it's using Klexur's stuff. If you just edit map1 and save it without making any changes, it'll fix the issue, I believe. If that doesn't work, just change a space or something. {{User:Aichon/Signature}} 22:33, 31 July 2012 (BST)
::::::::::::I had just figured that out when I got your change notification, Aichon. You keep beating me to the answer! =P --{{User:Klexur/Signature}} 22:35, 31 July 2012 (BST)
::::::::::::: Same here, I was answer-sniped by both of you :P Anyway, what I wanted to accomplish with the map has been done (to be found in all its glory [[User:Peralta/Bars_of_Malton | here]]. I'll be playing around with colors etc a bit more, but that4s it for now. Thanks for all the help! [[User:Peralta|-- Johnny Twotoes]] 22:41, 31 July 2012 (BST)


== Special Dumbwit Reports ==
== {{User:Klexur/th|FOR THE LOVE OF GOD!}} ==
'''USE THE SHOW PREVIEW BUTTON''' god damn it!--{{User:Sexualharrison/sig}}<small>03:01, 2 September 2012 </small>
:'''LOL''' I do. A lot actually. Sorry though, but they were templates included in other pages so I had to save the one page to see it's differences in the others. If it's any consolation I think I'm done for a while. --{{User:Klexur/Signature}} 03:05, 2 September 2012 (BST)
:Yeah, this is pretty normal if you're doing a lot of template work. The proper response is to either unwatch those pages or not check RC. Stalker. {{User:Aichon/Signature}} 19:30, 2 September 2012 (BST)


If anybody is watching, I would greatly appreciate it if I could get some Dumbwit reports of special locations in Malton. Places like map edges and corners especially. Reason being is that I use Dumbwit reports to test most of my scripts to reduce IP hits. --{{User:Klexur/Signature}} 20:31, 11 July 2012 (BST)
=={{User:Klexur/th|TRP Maps}}==
:The only help I can offer is [http://www.google.com/search?hl=en&q=site:http://iamscott.net+Pritchard+Grove+Railway+Station this]. The other four corners had no relevant results. {{User:Aichon/Signature}} 21:38, 11 July 2012 (BST)
So the problem we are going to run into is hitting the inclusion limits on the templates, which is why I sorta put the brakes on this. I think each TRP map is going to have to have all the suburb data in one file, and then perhaps we can make the resource color as an input. Like [[User:MHSstaff/TRPMapFAK|here]]. What are your thoughts on the colors and what informaion should we include in the mouseover? Right now, I will probably generate it to be Name, Suburb, and Resource?-[[MHS|<span style="color: Black">'''MHS'''</span>]][[User_Talk:MHSstaff|<span style="color: DarkBlue">'''staff'''</span>]] 01:34, 13 October 2012 (BST)
::Yeah, that was the only corner I found too. =/ I was hoping some wiki people might know or made others. --{{User:Klexur/Signature}} 21:42, 11 July 2012 (BST)
:Taking from the lessons learned from [[User:DangerReport/DangerCenter|Jonny and Charles map]], it is a good idea to reduce the amount of passed variables. I made this [http://wiki.urbandead.com/index.php?title=Template%3AFAK99&action=historysubmit&diff=2032820&oldid=2032803 change] as an example. With that we wouldn't need to pass the suburb name and we could go even further by including the TRP item (FAKs in this case) within the suburb's template. As a side thought, it might not even be neccessary to include the TRP item in the mouse over if the page is called something like "FAK Locations". As for colors I think it best to stick with the generally used building colors. --{{User:Klexur/Signature}} 02:00, 13 October 2012 (BST)
:::Unfortunately, all of my testing was done in-game at those locations, which is also part of the reason why I ended up going ahead and donating for all of them. I was certainly hitting his server enough to justify paying, and it gives each of them their own IP hit count to deplete, rather than sharing a single pool. {{User:Aichon/Signature}} 21:57, 11 July 2012 (BST)
::Right now, [[User:MHSstaff/TRPMapFAK|this version]] is around 200,000 on the include size. We can pick any color we want for the FAKs, Malls, and Forts. Do you think making it with individual suburb templates will be smaller than 200,000? -[[MHS|<span style="color: Black">'''MHS'''</span>]][[User_Talk:MHSstaff|<span style="color: DarkBlue">'''staff'''</span>]] 02:08, 13 October 2012 (BST)
::::That works too, but means you need to have a character at the desired location. I like instant gratification when it comes to testing. =P I have a growing list of Dumbwit reported locations that I'd be glad to share if there is an interest. --{{User:Klexur/Signature}} 02:02, 18 July 2012 (BST)
:::Maybe search rates might be useful? -[[MHS|<span style="color: Black">'''MHS'''</span>]][[User_Talk:MHSstaff|<span style="color: DarkBlue">'''staff'''</span>]] 02:14, 13 October 2012 (BST)
::::I don't know much in the area of inclusions and their limits, but from what I saw from Johnny and Charles' work it seems like the size does go up with more inclusions. So it might be better to keep it in one page. Displaying the search rates would be pretty good to include IMO. --{{User:Klexur/Signature}} 02:19, 13 October 2012 (BST)
:::::I'm working on this as well, although it means another giant crunch: I'm using our earlier project as a base and I'll see how that works out for the first few. ;) {{User:Peralta/Signature}} 10:43, 13 October 2012 (BST)
 
== {{User:Klexur/th|Map Legend Touchup}} ==
You're one step ahead of me on fixing up the legend. Thanks. -[[User:Charles Whipplebotum|Charles Whipplebotum]] 20:25, 2 November 2012 (UTC)

Latest revision as of 09:33, 17 November 2012

+
Don't forget to close the Subject field with }}.

Userscript specific discussion can be found here.

Category talk:Danger Reports#Single click updates for buildings?

Welcome

Thanks for the feedback on extensions! I'll see if I can take a look or at least prod the people responsible. (I make no promises. Shifty >_> <_<)

Also, welcome to the wiki! Happy If you need anything, feel free to give me or one of the other active lot a nudge. ᚱᛁᚹᛖᚾ 05:48, 28 April 2012 (BST)

Thanks for the welcome. I've noted some things on the External Links page. Mostly pointing out broken links or updated old ones. --Klexur 20:31, 19 June 2012 (BST)


Someone who does userscripts? I have a feeling I'm gonna like you. :) Aichon 23:02, 22 June 2012 (BST)

Haha, thanks. I'm still fairly new to making userscripts, but why do you not want me looking at your early ones? I might learn something. =P --Klexur 01:58, 23 June 2012 (BST)
About all you'd learn is what not to do. :P I rewrote one or two of them later on, and I was able to reduce the code by as much as 90% while making it both clearer and more efficient. I have no doubt that there are hundreds of examples of shoddy code still in my userscripts, since I was brand new to making them when I started making them for UD. Aichon 05:40, 23 June 2012 (BST)

Special Dumbwit Reports

If anybody is watching, I would greatly appreciate it if I could get some Dumbwit reports of special locations in Malton. Places like map edges and corners especially. Reason being is that I use Dumbwit reports to test most of my scripts to reduce IP hits. --Klexur 20:31, 11 July 2012 (BST)

The only help I can offer is this. The other four corners had no relevant results. Aichon 21:38, 11 July 2012 (BST)
Yeah, that was the only corner I found too. =/ I was hoping some wiki people might know or made others. --Klexur 21:42, 11 July 2012 (BST)
Unfortunately, all of my testing was done in-game at those locations, which is also part of the reason why I ended up going ahead and donating for all of them. I was certainly hitting his server enough to justify paying, and it gives each of them their own IP hit count to deplete, rather than sharing a single pool. Aichon 21:57, 11 July 2012 (BST)
That works too, but means you need to have a character at the desired location. I like instant gratification when it comes to testing. =P I have a growing list of Dumbwit reported locations that I'd be glad to share if there is an interest. --Klexur 02:02, 18 July 2012 (BST)
If I have a need, I'll definitely hit you up. As it is, I haven't had to do heavy testing in at least a year, and my Survivor Aggregator and A-GPS were the only two that I recall really needing testing of odd locations (the Aggregator in particular, since it had quite a few edge cases for multi-block structures and the like). Aichon 03:50, 18 July 2012 (BST)

Content outside the page boundary

Careful that your content doesn't exceed the designated areas and block stuff that should be visible, such as the difference between revisions in that link. I don't think anyone will really mind if it's just your userpage and most of the navigation is still intact, but you should try to avoid it if possible, since there is a policy against covering up stuff. Aichon 00:22, 21 July 2012 (BST)

Is it okay how it is now though? I've since changed the included templates so the linked page looks way wrong. --Klexur 00:26, 21 July 2012 (BST)
Sorry for not getting back to you quickly on this. Anyway, I think it's okay. The only thing you're blocking is the "User:Klexur" at the top, and it's generally understood that that's fine, so long as it's done in good faith for good reason (the policy saying content outside of the boundaries is not allowed makes an exception for custom titles on pages in some circumstances). My user page does the same thing, for instance. Aichon 21:21, 30 July 2012 (BST)
Also, this dark background is making me think I should put the invisible-unless-on-dark-background glow that I used to have back in my sig. Aichon 21:26, 30 July 2012 (BST)
Unless you plan on visiting my talk page a lot, you might not see the lack of shadow on your sig. =P By the way, how would you do that? I'm guessing with a light color that would just blend with light backgrounds. I'm still playing with the colors of my pages. Originally they were based on a website design a made a while back but I found they are a tad dark on a wiki with so much white. --Klexur 22:00, 30 July 2012 (BST)
It's not the lack of shadow that bothers me. It's the lack of contrast on the "Aich" portion, which a glow might help to solve. Unfortunately, my earlier tests showed that the legibility didn't improve much with a simple glow, but if I used multiple text-shadows (CSS supports multiple text-shadows simultaneously) to produce multiple glows, the result isn't actually that bad, and it would result in the glow appearing on dark backgrounds, while the shadow appears on light backgrounds. That's how I've configured it now. Aichon 23:30, 30 July 2012 (BST)

borrowed code

Hi, I saw your map tracking your own movements, and I tried applying the code for a tour I'm putting together. The result is extremely basic and can be found here.

I've copied the original template code as well, trying to make sense out of it and changing it to fit my needs, but if you have some advices, that would be great.

If you'd prefer me not using the code, just say the word. I know this wiki says that everything you post on it is public domain, but I'd start looking for something else if you didn't want me using it :) -- Johnny Twotoes 18:23, 31 July 2012 (BST)

Just to quibble, it doesn't actually say that everything is public domain. It merely requires that everything we post either be public domain or have permission from the copyright holder, but that doesn't mean that the copyright holder has necessarily ceded their rights to it (in fact, UDWiki:Copyrights specifies that the copyright stays with the person who created the content). Since everyone has an automatic copyright on the things they write as soon as they're written, they could, in theory, choose to not allow anyone else to use their code.
That said, looking at his code, I'm willing to bet that his map was inspired from either an old sandbox project of mine or my own visited suburbs template, both of which have been around for years and which I'd be happy to let anyone else use. That said, as is typical of Klexur, his work is very clear, clean, and easy to use, whereas mine is rather unwieldy since I had some other things in mind for it.
Also, I just saw you in-game about an hour ago. You might want to move, since you're getting eaten by a zombie, I think. Aichon 20:00, 31 July 2012 (BST)
I was just about to post this when I got the notification of your response, Aichon. =P --Klexur 20:10, 31 July 2012 (BST)
Thanks for the heads up about everything, I'll keep it in mind :) -- Johnny Twotoes 20:19, 31 July 2012 (BST)
I don't mind you using the code but from what I can see, you are simply calling the map from my page. I'd prefer you make your own template page for the code and call it from there since I had plans to change it. This way it looks different -- different colors and whatnot -- and when I make changes it is not reflected on your page as well. I should also note that I got most of the code from Aichon and changed it to suit my needs and design. Other than that, feel free to use what you like. --Klexur 20:10, 31 July 2012 (BST)
As I said, I just copied the code and fooled around a bit, but I haven't gotten around to creating own templates yet, since I have to figure out what I need first and I'm kind of at work now ;) Thanks ! -- Johnny Twotoes 20:19, 31 July 2012 (BST)
Probably a stupid question, but what does this call upon? {{User:Klexur/{{{00|bg}}}color}} -- Johnny Twotoes 20:37, 31 July 2012 (BST)
That is basically and If Then statement. If 00 is defined as a variable, then use 00color as the color, if not use bgcolor. --Klexur 20:42, 31 July 2012 (BST)
I see, making sense again :) Thanks! -- Johnny Twotoes
No problem, feel free to continue asking me or Aichon (I'm sure he wouldn't mind, he's answered my share of questions too.) --Klexur 20:56, 31 July 2012 (BST)
Thanks! And thank god, because I can't find the template "User:Klexur/00color". Is 00color set somewhere else or is it the alternative bg2color that appears later on the same line? -- Johnny Twotoes 21:00, 31 July 2012 (BST)
00 is a variable. So, whenever you call the template, you might do something like {{User:Klexur/visitedsuburbs|00=border}}, which would result in User:Klexur/bordercolor being used. If you don't give variable 00 a value, it defaults to using "bg" because of the code you asked about earlier, so it would result in User:Klexur/bgcolor. Aichon 21:04, 31 July 2012 (BST)
And I was wrong when I said everything was ok... -_- I still get these templates as "used on the page" (although I can't see where) here
   User:Klexur/bg2color (edit)
   User:Klexur/bgcolor (edit)
   User:Klexur/bodycolor (edit)
   User:Klexur/labelcolor (edit) 
and I have no idea where I can change the titel of the blocks (as in: "Unvisited", "Visited", "Current" ) -- Johnny Twotoes 22:25, 31 July 2012 (BST)
That is odd, I searched but couldn't find my name anywhere. I'll try again in a sec. The block labels you are referring to are at the very bottom of the User:Peralta/smallmap code. --Klexur 22:32, 31 July 2012 (BST)
Those "used on the page" templates are just the wiki having fun. Basically, you updated smallmap after you updated map1, so map1 still thinks it's using Klexur's stuff. If you just edit map1 and save it without making any changes, it'll fix the issue, I believe. If that doesn't work, just change a space or something. Aichon 22:33, 31 July 2012 (BST)
I had just figured that out when I got your change notification, Aichon. You keep beating me to the answer! =P --Klexur 22:35, 31 July 2012 (BST)
Same here, I was answer-sniped by both of you :P Anyway, what I wanted to accomplish with the map has been done (to be found in all its glory here. I'll be playing around with colors etc a bit more, but that4s it for now. Thanks for all the help! -- Johnny Twotoes 22:41, 31 July 2012 (BST)

FOR THE LOVE OF GOD!

USE THE SHOW PREVIEW BUTTON god damn it!--User:Sexualharrison03:01, 2 September 2012

LOL I do. A lot actually. Sorry though, but they were templates included in other pages so I had to save the one page to see it's differences in the others. If it's any consolation I think I'm done for a while. --Klexur 03:05, 2 September 2012 (BST)
Yeah, this is pretty normal if you're doing a lot of template work. The proper response is to either unwatch those pages or not check RC. Stalker. Aichon 19:30, 2 September 2012 (BST)

TRP Maps

So the problem we are going to run into is hitting the inclusion limits on the templates, which is why I sorta put the brakes on this. I think each TRP map is going to have to have all the suburb data in one file, and then perhaps we can make the resource color as an input. Like here. What are your thoughts on the colors and what informaion should we include in the mouseover? Right now, I will probably generate it to be Name, Suburb, and Resource?-MHSstaff 01:34, 13 October 2012 (BST)

Taking from the lessons learned from Jonny and Charles map, it is a good idea to reduce the amount of passed variables. I made this change as an example. With that we wouldn't need to pass the suburb name and we could go even further by including the TRP item (FAKs in this case) within the suburb's template. As a side thought, it might not even be neccessary to include the TRP item in the mouse over if the page is called something like "FAK Locations". As for colors I think it best to stick with the generally used building colors. --Klexur 02:00, 13 October 2012 (BST)
Right now, this version is around 200,000 on the include size. We can pick any color we want for the FAKs, Malls, and Forts. Do you think making it with individual suburb templates will be smaller than 200,000? -MHSstaff 02:08, 13 October 2012 (BST)
Maybe search rates might be useful? -MHSstaff 02:14, 13 October 2012 (BST)
I don't know much in the area of inclusions and their limits, but from what I saw from Johnny and Charles' work it seems like the size does go up with more inclusions. So it might be better to keep it in one page. Displaying the search rates would be pretty good to include IMO. --Klexur 02:19, 13 October 2012 (BST)
I'm working on this as well, although it means another giant crunch: I'm using our earlier project as a base and I'll see how that works out for the first few. ;) PB&J 10:43, 13 October 2012 (BST)

Map Legend Touchup

You're one step ahead of me on fixing up the legend. Thanks. -Charles Whipplebotum 20:25, 2 November 2012 (UTC)