User talk:Klexur

From The Urban Dead Wiki
Jump to navigationJump to search
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?


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)


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)