Difference between revisions of "User talk:Haliphax"

From The Urban Dead Wiki
Jump to navigationJump to search
(Updated UDRecon bookmarklet)
Line 107: Line 107:
javascript:var%20w=window.open('','ud_recon');if(!w.document.body.innerHTML.match(/<h2/))w.document.write('<style%20type=%22text/css%22>@import%20%22http://www.urbandead.com/d15.css%22;</style><h2>UDRecon%20report</h2><p><form%20style=%22display:none;%22%20name=%22udreport%22%20action=%22http://udrecon.oddnetwork.org/submit.php%22%20method=%22post%22><textarea%20name=%22report%22%20id=%22report%22></textarea></form><a%20style=%22cursor:pointer;%22%20onclick=%22document.getElementById(\'report\').innerHTML=escape(document.body.innerHTML);document.udreport.submit();%22>Submit</a></p>');var%20map=document.querySelector("table[class='c']");var%20gp=document.querySelector("td[class='gp']");var%20gt=gp.querySelector("div[class='gt']");w.document.write('<table%20width="100%"><tr><td%20class="cp"><table%20class="c">');w.document.write(map.innerHTML);w.document.write('</table></td><td%20class="gp"><div%20class="gt">');w.document.write(gt.innerHTML);w.document.write('</div></td></tr></table><p>');
javascript:var%20w=window.open('','ud_recon');if(!w.document.body.innerHTML.match(/<h2/))w.document.write('<style%20type=%22text/css%22>@import%20%22http://www.urbandead.com/d15.css%22;</style><h2>UDRecon%20report</h2><p><form%20style=%22display:none;%22%20name=%22udreport%22%20action=%22http://udrecon.oddnetwork.org/submit.php%22%20method=%22post%22><textarea%20name=%22report%22%20id=%22report%22></textarea></form><a%20style=%22cursor:pointer;%22%20onclick=%22document.getElementById(\'report\').innerHTML=escape(document.body.innerHTML);document.udreport.submit();%22>Submit</a></p>');var%20map=document.querySelector("table[class='c']");var%20gp=document.querySelector("td[class='gp']");var%20gt=gp.querySelector("div[class='gt']");w.document.write('<table%20width="100%"><tr><td%20class="cp"><table%20class="c">');w.document.write(map.innerHTML);w.document.write('</table></td><td%20class="gp"><div%20class="gt">');w.document.write(gt.innerHTML);w.document.write('</div></td></tr></table><p>');
</nowiki></tt>
</nowiki></tt>
*Thanks! I've updated the bookmarklet on the [http://udrecon.oddnetwork.org UDRecon Homepage]. - &nbsp;<small>[[User:Haliphax|<span style="color: #FF9999;background: #394939;padding-right:8px;padding-left:7px"><small>&nbsp;'''H'''aliphax</small></span>]][[User talk:Haliphax|<span style="color:#BBCCBB;background: #7d8f7d;padding-left:5px;padding-right:2px">'''T'''</span>]][[User:Haliphax#Characters|<span style="color:#BBCCBB;background: #7d8f7d;padding-left:2px;padding-right:2px;">'''C'''</span>]][[User:Haliphax#Scripts|<span style="color:#BBCCBB;background: #7d8f7d;padding-right:5px;padding-left:2px">'''S'''</span>]]</small> 17:40, 3 March 2011 (UTC)


== Misc. ==
== Misc. ==

Revision as of 17:40, 3 March 2011

Please try to post in the appropriate (sub)section if at all possible.

Scripts

CHUD

UDBrain Frame Fix

UDInventory

Problem with UDinventory

It's not compatible with the profile viewer script. Just thought I'd let you know about that, in case you're interested in trying to make it compatible. Either way, great script. --dgw 16:23, 4 March 2009 (UTC)

UDMapSlice

Tidy UDTool

UD Profile Expander

  • Any chance we might be able to get a fix on THIS to be compatible with the recent game updates? I sorely miss it now. It's one of my most favoured addons. Pretty please? It now just expands the players profile, not the building population.--AU10Pantomime Mistress of Pain┌∩┐()┌∩┐ 23:53, 19 August 2010 (BST)
  • It's fixed now. I posted a reply on your talk page. Thanks for your interest in my scripts! :) -   HaliphaxTCS 20:24, 1 December 2010 (UTC)
It doesn't work for me...Probably a conflict with some of the other scripts I'm using... --•▬ ▬••▬ • •••• •▬ ▬•▬• ▬•▬ #nerftemplatedsigs 20:43, 1 December 2010 (UTC)
Same. ~Vsig.png 21:04, 1 December 2010 (UTC)
I've been tooling with UDInventory a bit this evening--download a fresh copy and see if it works for you now. There was a bit of a mix-up as to how I was finding the correct place in the HTML to insert the "Expand profiles" link, and I think I've got it cleaned up. Regardless of your other add-ons, it should find its place. -   HaliphaxTCS 00:39, 2 December 2010 (UTC)
Ack.. I meant UD Profile Expander. :P -   HaliphaxTCS 00:41, 2 December 2010 (UTC)

Nope. Still doesn't work. I have:

  • UD Travel
  • ActOnProfile
  • A-GPS
  • Survivor Aggregator
  • Item Combiner, Organizer, and Sorter
  • Radio Accelerator
  • UDMap
  • UD Quicklinks
  • UD Zero Out Buttons
  • chud
  • Mass Contacts
  • UD Same Character Highlighter
  • Show recovery time for AP
  • DSS SatPhone
  • Profile Viewer

Most are Aichon's. Maybe you should work with him to see if anything conflict with each other. --•▬ ▬••▬ • •••• •▬ ▬•▬• ▬•▬ #nerftemplatedsigs 00:49, 2 December 2010 (UTC)

Which browser are you using again, Axe? Profile Expander doesn't work in Safari (and I think it doesn't work in Chrome either, but haven't checked) due to the security handling of the browser and how it manages additional requests, such as the one that goes to the server to grab the character info. If you're using Firefox, then you might try disabling the following scripts one at a time to see if it works: UDICOS, UD Same Character Highlighter, and UD Quicklinks. Those three, out of my scripts, seem like the most likely culprits (same character highlighter in particular, since it fools around with the elements in the HTML that Profile Expander would be using). I haven't studied the problem in detail however, so it could be something else entirely, but if one of mine is causing issues, I'd be happy to work towards a fix, depending on where the problem is. Aichon 05:47, 2 December 2010 (UTC)
Just realized I posted a comment above in the wrong spot. Axe, try disabling Profile Viewer. That's what I did and it worked beautifully. ~Vsig.png 14:11, 2 December 2010 (UTC)
Profile Viewer is indeed the culprit...Now I'm gonna see if anything else would be the problem by reorganizing my script list...And I'm using Firefox, by the way. --•▬ ▬••▬ • •••• •▬ ▬•▬• ▬•▬ #nerftemplatedsigs 17:47, 2 December 2010 (UTC)
If I get some free time in the next week, I'll try to install Profile Viewer and see if I can't fix UD Profile Expander (or patch it) to work in a more seamless fashion with additional scripts. Thanks for the detailed info, guys! -   HaliphaxTCS 16:53, 6 December 2010 (UTC)
That would be awesome. So that you don't have to dig for it, here is the wiki page for Vikto Suvorov's Profile Viewer. ~Vsig.png 19:54, 6 December 2010 (UTC)

Services

Note: If you are reporting a bug with one of the web services, please let me know what other UD-related mods you are using! Chances are, one of them is preventing the script from behaving normally.

UDWitness

Code Improvements?

I noticed your UDW's bookmarklet uses a lot of the same code as the Iwitness BM. Is the backend the same? Some of the stuff in IWs bm is meaningless without the backend support (and even then is pretty much dead code). At some point I;d like to re-do Iwitness, and I was wondering if (assuming your code is better) I could take a look at UDW's backside? (And no, I'm not crying about code theft here- In fact, I'd much rather get folks who have coded / use witness systems together on an open source project.) SIM Core Map.png Swiers 23:05, 1 April 2010 (BST)

  • Swiers, I'd be willing to provide you with my source code. -   HaliphaxTCS 00:50, 2 December 2010 (UTC)

Private records?

Yo, Haliphax. Thank you for UDW, best screenshot service for UD. We can haz private repository? --Sophie ◆◆◆ CAPD 19:43, 22 September 2009 (BST)

  • Feature added! -   HaliphaxTCS 17:05, 3 October 2009 (BST)
    Yay! Now to get it accepted by the gallery! :D Btw, I hadn't seen your notice asking for support for that, I was just miffed at the inconvenience and posted in BS... and now I think you didn't know either I was asking them the very same thing. Synchronicity, heh. --Sophie ◆◆◆ CAPD 19:36, 3 October 2009 (BST)

Boring codemonkey talk

Hey :) Just read your comment in the UDwitness talk page, re: long names. So that's a hash then, heh, I thought it was random noise to make filenames hard to guess. So it serves another purpose? From the size must be an MD5, but can't imagine what of.

Iwitness uses date, location, and 9 seemingly random chars, but date and location can be obtained from the page itself so it seems redundant to me. I like dumbwit's approach: UNIX timestamp plus 3 random digits (millisecs?). Short and sweet. Maybe I'd have hex-coded the 32-bit timestamp and a 32-bit random. That's 16 chars (e.g. "4ACD71F809B399A0.html"), increases monotonically so it sorts correctly, and would be a bugger to guess.

Er... just out-loud thinking here, I hope you don't mind :") --Sophie ◆◆◆ CAPD 10:35, 8 October 2009 (BST)

  • Yeah, it's a salted MD5 hash of the page contents. I suppose I could shorten it using something more like CRC, but I'll most likely just wind up putting a hand-holding bit.ly link with each submission on the "submission accepted" page. I'm more worried about "verifying" the contents of the page than the time of submission. Anyway, I'll think it over. (And I don't mind the thinking out loud at all--I appreciate the comments!) -   HaliphaxTCS 03:59, 12 October 2009 (BST)

Iwitness uses the date and location because I originally expected to make the file system searchable by date and time. Ended up another developer came up with a better system, namely a database that lets you search for anything anywhere in any (public) record- although, having the date and time formatted in the file neame ends up being useful for that, its an easy search term!
The 9 digits on the end are from a salted md5 hash of various submission variables, and its just broken up into triplets to make manual typing easie. I figured 9 hex digits was enough to make guessing / brute force searches impractical. tI doubt anybody has ever manully typed an Iwitness URL, but when I first developed the system I had little idea how it would really be used, or what the final functioning would end up as. Instead, I went for cool looking file names that had an "info network" look to them. :P SIM Core Map.png Swiers 23:01, 1 April 2010 (BST)

Haha I've done that myself too :D Yup, that's what I thought, the purpose of the random bits was just to make brute searches impractical. I see your point about searches, yeah I think I even did a Google "site:" search once using them. Still, I now use dumbwit most of the time, because of URL length, UDwitness makes it a faff to share screenies in-game. And Haliphax's solution, the bit.ly shortcut, didn't quite did it for me because I make a point of never clicking on bit.ly links. Been rickrolled one time too many >.<
Still, I do use UDwitness for anything "official," like PK reports I'll submit to BS or whatever. It just looks better to me. Both Iwitness and dumbwit do something to the game colours. And dumbwit makes a right mess of some Unicode characters that UDICOS embeds in my inventory. --Sophie ◆◆◆ CAPD 06:39, 2 April 2010 (BST)
Well, there's the bit.ly link generator option once you've submitted a report. ;) I'm thinking about adding a masked Google "site search" box to the UDWitness home page. It's the best way, I believe, since the UDWitness public folders are all robot-browseable... and I generally find any report I'm looking for through a "site:udwitness.oddnetwork.org" query already. -   HaliphaxTCS 00:49, 2 December 2010 (UTC)

Link truncated

Hey! Was just trying out UDWitness again, and noticed a slight bug with the record link when submitting a report from my character Rite Rev'd Revenant. I was able to copy-paste the link fine, but the URL in the <a> tag was truncated at the apostrophe. Might want to escape 'em via HTML entities? Just thought you'd like to know. :) ᚱᛁᚹᛖᚾ 14:04, 21 October 2009 (BST)

  • Would've worked fine, but I was using a single apostrophe as the href delimiter. I was unaware that apostrophes were allowed in character names, so not only have I fixed a bug in the UDWitness code (which I was drinking waaaay too much coffee when I wrote :D), but I've also learned something new about the game! Huzzah! Anyhow, the change has been implemented. Thanks for your report! -   HaliphaxTCS 14:55, 23 October 2009 (BST)

Redirected

After I use the bookmarklet I am redirected from http://udwitness.oddnetwork.org/submit.php to http://udwitness.oddnetwork.org/index.php, and no where is the link to the uploaded screen-shot displayed. Would it be possible to display a link the screen-shot?--Kooks 15:03, 28 November 2009 (UTC)

Hi, sorry to bother you again. It seems that UDWitness is not working for me. After I click on the UDWitness bookmarklet I am redirected to http://udwitness.oddnetwork.org/index.php. However if I check the archive I find that a screenshot was created. Example: http://udwitness.oddnetwork.org/reports/2009/12/udw-20091205-123626-46c6d098802ebe07491babe6332933c7-pk4lyf.html

If it helps, this is what Live HTTP Headers is giving me when I use the bookmarklet.

- Removed -

Thanks.--Kooks 18:45, 5 December 2009 (UTC)

Hi, I'm glad I wasn't going crazy. I'm sorry to say I have another request :) . I have made a Greasemonkey script which allows users to automatically generate PK Reports (for the Rouges Gallery), as part of the GM script I wish to add a feature that will take an UDWitness of the PK automatically using GM_xmlhttprequest, and add the UDWitness to the PK Report. Unfortunately Greasemonkey will not allow referrer information to be added within GM_xmlhttprequest, and so obviously any request to your server fails to create a screenshot. I understand that there is a good reason for this, however I'm hoping we can work something out. Perhaps if I append something like 'pkreport=true' as part of the data sent within the POST request, the script could allow reports without header information. I don't think it would cause any security concern as any hacker could easily fake the referrer field anyway. Thanks again. --Kooks 14:26, 13 December 2009 (UTC)
You should be able to do this now, Kooks. -   HaliphaxTCS 00:43, 2 December 2010 (UTC)

Chrome woes

Hey Haliphax. So I'm in the process of ditching Firefox for Google Chrome, almost done too heh. But UDwitness is not working for me in Chrome. I traced the network request with a sniffer and got some logs you may find useful, packed those in a zip and published to my server: [1]. Can you have a look? Thanks! --Sophie ◆◆◆ CAPD 20:29, 1 July 2010 (BST)

Oops. And only now I read the report above. So you require a referer? Chrome doesn't send one, see the request headers in my logs. This is the problem, right? --Sophie ◆◆◆ CAPD 20:37, 1 July 2010 (BST)
Not anymore. Chrome it up, bud. -   HaliphaxTCS 20:27, 1 December 2010 (UTC)

UDRecon

Not accepting submissions

When I tried to do a submission, I just get a page with the following PHP error:

Warning: file_put_contents(reports/udr-20101105-231500-177fc739b1d679969b1da7a8eaca5c92.html) [function.file-put-contents]: failed to open stream: Permission denied in /home/haliphax/vhosts/udrecon/submit.php on line 79

Report saved to http://udrecon.oddnetwork.org/reports/udr-20101105-231500-177fc739b1d679969b1da7a8eaca5c92.html.

--Thvortex 23:21, 5 November 2010

I believe the error has been corrected. I'm not sure when or how the permissions went janky (it seems like some time ago, according to the files left in the folder), but they should be back on track. Let me know if it still gives you any trouble. Thanks for the report! -   HaliphaxTCS 21:09, 18 November 2010 (UTC)

Bookmarklet not picking up building status

The current bookmarklet code is only capturing the minimap and not the barricade state or the lists of survivors. The game output must have changed since you wrote the code. I re-wrote part of the bookmarklet and now it's capturing all the state again. Here's the code in case you want to update the one on your site:

javascript:var%20w=window.open('','ud_recon');if(!w.document.body.innerHTML.match(/<h2/))w.document.write('<style%20type=%22text/css%22>@import%20%22http://www.urbandead.com/d15.css%22;</style><h2>UDRecon%20report</h2><p><form%20style=%22display:none;%22%20name=%22udreport%22%20action=%22http://udrecon.oddnetwork.org/submit.php%22%20method=%22post%22><textarea%20name=%22report%22%20id=%22report%22></textarea></form><a%20style=%22cursor:pointer;%22%20onclick=%22document.getElementById(\'report\').innerHTML=escape(document.body.innerHTML);document.udreport.submit();%22>Submit</a></p>');var%20map=document.querySelector("table[class='c']");var%20gp=document.querySelector("td[class='gp']");var%20gt=gp.querySelector("div[class='gt']");w.document.write('<table%20width="100%"><tr><td%20class="cp"><table%20class="c">');w.document.write(map.innerHTML);w.document.write('</table></td><td%20class="gp"><div%20class="gt">');w.document.write(gt.innerHTML);w.document.write('</div></td></tr></table><p>');

Misc.

Hi Haliphax. You posted on my talk page. I answered you, but I guess you didn't watch my talk-page. So just take a look. You can delete this message, if you want to lateron. Cheers --Cliff Runner 20:10, 20 July 2009 (BST)

I've replied on your talk page. Thanks for the input! :) --  HaliphaxTCS 21:25, 20 July 2009 (BST)

Welcome to the FoD!

Hey there boyd, figured I'd greet yah on here too. If you need help pimping out your wiki just ask away. I know you probably don't being the big computer guy you are, but it's always nice to offer :). Again, welcome to the FoD and I look forward to working with you. -- Denver  5MoC 22:05, 21 May 2009 (BST)