User talk:Klexur: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
(→‎UD Dumbwit Privacy: Don't really need the IDs)
Line 42: Line 42:
:::::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)
:::::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)
:::::: 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)

Revision as of 19:26, 28 June 2012

General

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)

UD PK Reporter/Private

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. ~Vsig.png 03:52, 23 June 2012 (UTC)

Nice catch, I actually just wrote that an hour ago. I'll see about replacing the values after submitting to Dumbwit. --Klexur 03:59, 23 June 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. ~Vsig.png 04:56, 23 June 2012 (UTC)

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. --•▬ ▬••▬ • •••• •▬ ▬•▬• ▬•▬ #nerftemplatedsigs 06:52, 23 June 2012 (BST)

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. --Klexur 16:30, 23 June 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? --•▬ ▬••▬ • •••• •▬ ▬•▬• ▬•▬ #nerftemplatedsigs 18:07, 23 June 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. Aichon 19:08, 23 June 2012 (BST)

UD Map Skinner

For some reason its not displaying cathedral skins. An oversight, or a lack of images from the original incarnation? --Rosslessness 13:57, 23 June 2012 (BST)

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... --•▬ ▬••▬ • •••• •▬ ▬•▬• ▬•▬ #nerftemplatedsigs 14:04, 23 June 2012 (BST)
That's correct, there were not images for cathedrals. I could make a version with the Zookeepers' images if you locate them for me. --Klexur 16:30, 23 June 2012 (BST)
It's one of Ray3K's scripts. --•▬ ▬••▬ • •••• •▬ ▬•▬• ▬•▬ #nerftemplatedsigs 18:09, 23 June 2012 (BST)
Ah, right. Is he even still active? --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. --•▬ ▬••▬ • •••• •▬ ▬•▬• ▬•▬ #nerftemplatedsigs 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. Aichon 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. --•▬ ▬••▬ • •••• •▬ ▬•▬• ▬•▬ #nerftemplatedsigs 23:04, 23 June 2012 (BST)
Sounds like you're sure but not sure. --Klexur 04:54, 24 June 2012 (BST)

UD Dumbwit Privacy

Okay, for those that would like to have their HP, AP, and Inventory hidden before a Dumbwit report and restored after, try this. If you try it, please give feedback.

Side note for Aichon: If you would give the Barrista items IDs it would have made this infinitely easier! =P --Klexur 05:06, 24 June 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. Aichon 05:13, 24 June 2012 (BST)
Poke =P --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. Aichon 19:13, 26 June 2012 (BST)
hop too it. i would like this to work with barrista.--User:Sexualharrison22:19, 26 June 2012
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. Aichon 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 --Klexur 18:51, 28 June 2012 (BST)
Of this I am aware, but there are a few good reasons to do so anyway:
  1. It allows others to script for them too
  2. Future changes to Barrista won't break your script
  3. Future changes to the game won't break your script
  4. 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. Aichon 20:26, 28 June 2012 (BST)