User:Aichon/Userscripts
From The Urban Dead Wiki
Jump to navigationJump to search
I have begun editing and creating a variety of userscripts to replicate the functionality of some of the Firefox extensions I've seen. Most of them are just minor aesthetic changes, but several of them greatly enhance the look and feel of the game to such an extent that it is hard to go back after having used them. Currently, these are the scripts I have developed.
Developed from Scratch
- Urban Dead A-GPS Coordinates: Simply displays the GPS coordinates next to the suburb name above the minimap. Other userscripts provided similar functionality, but I noticed several logic errors in the one I was previously using and also felt that a rather brutish approach was used for parsing the page, when a much nicer one should have been used.
- Urban Dead AP Recovery Time Indicator: Again, several other userscripts already provide this functionality (and use the same name as well, I believe), but I liked the implementation I saw in one particular Firefox extension, so I adapted it for use as a userscript. It's simple an unobtrusive and stays out of my way. I do like the feature that another userscript offers though, where it can calculate the time down to the minute. I may have to either add that myself, or else use that script instead, since that seems imminently useful.
- Urban Dead Survivor Aggregator: UDToolbar has a nice feature which, rather than displaying the names of survivors on the minimap, simply displays the number of survivors. I found that approach to be much better, since it declutters the display and lets you get at the useful information quickly. I simply replicated that functionality in a userscript by parsing the list of survivors at your present location, removing any names (or a "...") from the minimap, and then adding the survivor count to the minimap.
Edited from Existing
- QuickLinks: This userscript was designed to add a new menu bar to the top of the Urban Dead screen from which several contextually useful buttons could be selected. I found the concept to be good, but the space seemed like it was being wasted, so I moved all of the buttons that typically go on the left side of the screen (e.g. Wiki, FAQ, Logout, Settings, etc.) to the menu bar as well. It seems to make the screen much less cluttered, and it puts that space at the top to much better use as well.
- UDMap: A wonderful userscript that displays two additional minimaps that you can mouseover for information. I modified them to fill up the space at the bottom of the left column better, and then also corrected a slight error in the way that the GPS coordinates were calculated since the display was incorrect in about 10% of cases (I haven't gotten around to submitting the fix to the author yet). I also made a few other modifications to meet my personal taste, such as prioritizing the display of the "You are here" square over existing TRPs and displaying the name of the location next to "You are here" in the tooltip that appears on mouseover.
- Urban Dead Building State Colourizer: Love this userscript to death, but a few of the colors provided poor contrast against the background, or else "shouted" too loudly at the user when such wasn't necessary. Since I prefer to only be shouted at when necessary, I redid almost all of the colors, stripped the bolding from most of the text, and added an ability to underline text as well. The end result is a userscript that subtly points out information on the screen that is considered useful but not in need of action, while shouting out information that is in need of immediate action on the player's part.
To Do and Ideas
- QuickLinks: I'd love to make it contextually aware for if the player is a zombie or a survivor at the time. For instance, providing a ?rise link is of little use to survivors, just as providing a "cade" link is useless to zombies. It'd be nice if it only showed the links that were useful at any given time. Honestly though, the script's code is messy enough that I might just trash it and write my own at this point, rather than investing more time in it.
- Urban Dead Building State Colourizer: Again, contextual awareness. While having the doors open and the barricades down might be something calling for red text for survivors, it might be better to have green for zombies. Other similar examples exist. For instance, if a building is already in ruins, zombies don't need to have it shouted at them since it requires no further action on their part.
- Urban Dead Survivor Table Sorter: UDToolbar had another wonderful feature that allowed it to sort the list of survivors at the current location by their activity. I fully intend to implement this feature at some point, since I found it to be the best feature in UDToolbar. After seeing how easy it was to grab the list of survivors, I'm sure I won't have any trouble implementing a bare bones version in a few minutes' time.
- A Group-wide UDBrain: UDBrain was a great extension, but it suffered from a major flaw in that the information could be easily shared with others. Furthermore, the timestamps that were present made things even more dangerous for survivors, since it could paint a path directly to the survivor for any zombies that wanted to follow. I've been toying with the idea of using a server to handle something like this, but only allowing trusted sources to submit or request information, and keeping a tight rein on it all. I'm not sure that I'm up for developing it at the moment, but if I did, it would offer a better way for groups to communicate the state of the suburbs that they patrol. I might also extend the idea to track zombies as well, given how easy that would be to add on top of the other features.
- Restructure the information under the minimap: UDToolbar provides the graphical display, and while that's nice, I think a simple text-based one that didn't rely on full sentences would be just as useful. I might even integrate that information into a revamped QuickLinks menu bar, that way it's entirely out of the way.
- Provide a quick character change: I'd have to look into the feasibility, but it might be possible to provide a quick menu for logging out of your current character and into another character of your choice without any additional interaction. It'd be nice if we could skip that home screen every time we wanted to check another character's status.