 |
 |
 |
[WTB] Sender script for FreeSHop: 400k + 500 Hath, 26/10 edit: raised reward - now about 4M |
|
Aug 24 2014, 16:20
|
FreeSHop
Group: Members
Posts: 862
Joined: 28-February 14

|
As some of you may have noted, patch 0.80 fucked some scripts. Among them there's also the one we use to automatize the process of sending gears, which minimum requirements are: 1) load all EID from forge/inventory 2) parsing each post in thread to search for EID tags 3) highlight the tags with a queue button: different highlights fora. equipment not queued so it can be sent b. equipment already queued for other users c. unknown EID - no need to queue this 4) process the queue anc send gears to requesters: button will create a mooglemail to user with the attached item Other useful addictions (suggested by ai here) may be: 1) higher priority: (once the script is loading the inventory) the chance to unlock everything that's locked 2) higher priority: buttons in each post to queue potions 3) ban list, maybe implemented with external storage 4) request limit checking We would like to have a new one which does a work most possible similar to the old one: reward 400k + 125 Hath for the best one that will be sent (that is, the one which satisfy most of the useful additions), plus 'consolatory' prizes of 200k for everyone will send a script which provides at least the minimum requirements; we absolutely don't care if you work as a single or as a team, but reward will be sent to a single one (it's up to you to divide it in a second moment, only tell us who we should send it to (IMG:[ invalid] style_emoticons/default/tongue.gif) ) after we'll find it working. Also, please specify if you prefer credits or hath. For further info you can write here, PM/MM this account, the manager of this topic Scremaz, the supervisor of the project animeai or the other active members piyin and WhiteWolfRevy92. here's the link to download it:
HV_SpecialSender_1.05.user.zip ( 4.24k )
Number of downloads: 47[11/09 edit]: following a donation from something the original reward (400k) has raised to 400k + 25 Hath (roughly 600k) [14/09 edit]: list of requirements updated due to a more technical analysis [02/10 edit]: following a donation from animeai the reward has raised to 400k + 125 Hath (roughly 1.3M) [26/10 edit]: following a donation from jacksonville the reward has raised to 400k + 500 Hath (roughly 4M) ~ FreeSHop staff member Scremaz This post has been edited by FreeSHop: Oct 26 2014, 15:42
|
|
|
|
 |
|
Aug 26 2014, 19:49
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07

|
bump, we'd really need it. a hint on how to resolve the matter would be appreciated too
|
|
|
Sep 2 2014, 14:10
|
FreeSHop
Group: Members
Posts: 862
Joined: 28-February 14

|
bump for adjusted reward
|
|
|
Sep 11 2014, 19:29
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07

|
another bump. recently it was pointed out that it may be easier to write it from zero rather than patch it. we won't complain about it, as long as it's still quick-to-use like the previous one. yet to decide the reward in this case though, but surely equal or higher to the previous
|
|
|
|
 |
|
Sep 12 2014, 07:08
|
Colman
Group: Gold Star Club
Posts: 7,333
Joined: 15-November 10

|
Downloaded and looking how it work right now (IMG:[ invalid] style_emoticons/default/smile.gif) Do not expect anything since I dunno browser script. (IMG:[ invalid] style_emoticons/default/tongue.gif) BTW, could someone explain how it work when it was still working; as well as explain what is the problem(s) now? At least, could someone post what is the expected input and what is the expected output? I think it is necessary for the code writer. EDIT: The code is too messy (IMG:[ invalid] style_emoticons/default/mad.gif) After tidy up the code, I find that there are too many functions declare within another function. (IMG:[ invalid] style_emoticons/default/mad.gif) Better write a new one. There is no way to debug. This post has been edited by Colman: Sep 12 2014, 11:15
|
|
|
|
 |
|
Sep 12 2014, 16:06
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07

|
QUOTE(Colman @ Sep 12 2014, 07:08)  BTW, could someone explain how it work when it was still working; as well as explain what is the problem(s) now?
At least, could someone post what is the expected input and what is the expected output? I think it is necessary for the code writer.
i'd like to post a few caps but unfortunately now it's completely broken, i can't really make it work anymore (IMG:[ invalid] style_emoticons/default/sad.gif) basically is as i wrote in the first post: whenever there was a combination of an item code + the name of a gear, the script intercepted it, added a blue bar on the left of the post with the buttons 'add to list' and 'send' and interfaced directly with MoogleMail to automatically send the requester(s) the desired item, eventually in a cue starting from the older ones QUOTE(Colman @ Sep 12 2014, 07:08)  EDIT: The code is too messy (IMG:[ invalid] style_emoticons/default/mad.gif) After tidy up the code, I find that there are too many functions declare within another function. (IMG:[ invalid] style_emoticons/default/mad.gif) Better write a new one. There is no way to debug. oh, so there was a reason behind the fact i couldn't understand a thing XD well, i can't even understand whether it's a bad thing or not at this point... (IMG:[ invalid] style_emoticons/default/dry.gif) many thanks for your time and this info though (IMG:[ invalid] style_emoticons/default/smile.gif)
|
|
|
|
 |
|
Sep 12 2014, 20:29
|
Koaen
Group: Catgirl Camarilla
Posts: 2,225
Joined: 7-April 12

|
Is this what the script should do? 1) Parse out EID's on page load 2) for any found EID's, create a button near forum post 3) button will create a mooglemail to user with the attached item
|
|
|
|
 |
|
Sep 12 2014, 20:41
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07

|
QUOTE(jenga201 @ Sep 12 2014, 20:29)  Is this what the script should do? 1) Parse out EID's on page load 2) for any found EID's, create a button near forum post 3) button will create a mooglemail to user with the attached item
yep, i guess this language is a bit more technical than mine, thanks (IMG:[ invalid] style_emoticons/default/heh.gif) also, it does a colour discrimination between equipment requested in that post for the first time, items already in queue - thus already requested before that certain post but still owned by FS - and doesn't include items requested but not in possession of FS anymore
|
|
|
|
 |
|
Sep 12 2014, 21:03
|
Koaen
Group: Catgirl Camarilla
Posts: 2,225
Joined: 7-April 12

|
QUOTE(Scremaz @ Sep 12 2014, 14:41)  yep, i guess this language is a bit more technical than mine, thanks (IMG:[ invalid] style_emoticons/default/heh.gif) also, it does a colour discrimination between equipment requested in that post for the first time, items already in queue - thus already requested before that certain post but still owned by FS - and doesn't include items requested but not in possession of FS anymore Ok, so 'New' items have a specific color, 'old' items have another color, and items you've sent don't have the button. I'll look into writing something to accomplish that. From what I see of the other script, it basically posts to itself the page data. But, no data is being sent, so nothing can be processed. I think all that logic could be done inline in a much simpler manner.
|
|
|
|
 |
|
Sep 12 2014, 21:08
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07

|
QUOTE(jenga201 @ Sep 12 2014, 21:03)  Ok, so 'New' items have a specific color, 'old' items have another color, and items you've sent don't have the button. I'll look into writing something to accomplish that. From what I see of the other script, it basically posts to itself the page data. But, no data is being sent, so nothing can be processed. I think all that logic could be done inline in a much simpler manner.
yep, i guess there's something broken within that processing chain too. i can't provide you further details because the original writer is Lement, who last connected on March This post has been edited by Scremaz: Sep 12 2014, 21:08
|
|
|
|
 |
|
Sep 12 2014, 23:58
|
Razor320
Group: Members
Posts: 220
Joined: 17-October 13

|
This script uses several entry points and exchanges messages with data between windows.
Look at 'crossSite' function. It based on message passing between windows, and actively using context transfer between iframe and original window. While first is a part of official specification, later is possible exclusively because iframe and parent window share some parts of context. Today browsers move farther away from this model, so it could be root of your problems.
|
|
|
Sep 13 2014, 01:48
|
sssss2
Group: Gold Star Club
Posts: 3,959
Joined: 11-April 14

|
I received equiment - Is this script fixed?
I've reviewed the script and figured out a rough structure of code.
As others said, it is complex and inefficient a bit, so I decided that it would be better to write new script than to debug.
If it works now, I'll stop doing the work.
This post has been edited by sssss2: Sep 13 2014, 01:49
|
|
|
|
 |
|
Sep 13 2014, 02:15
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07

|
QUOTE(sssss2 @ Sep 13 2014, 01:48)  I received equiment - Is this script fixed? I've reviewed the script and figured out a rough structure of code.
As others said, it is complex and inefficient a bit, so I decided that it would be better to write new script than to debug. If it works now, I'll stop doing the work.
It seems piyin's work. I really don't know, but since the script gradually broke on my pc it's possible that he sent it manually, you should ask him. Sorry for the grammar but friday evening here (IMG:[ invalid] style_emoticons/default/tongue.gif)
|
|
|
|
 |
|
Sep 13 2014, 20:04
|
animeai
Group: Members
Posts: 620
Joined: 18-November 09

|
Just to confirm what the script SHOULD do... 1. Load all eid from the forge / inventory (a useful extra here would be to unlock anything that's locked as I kept finding randomly locked equipment which broke the send function) 2. Parse each post in the correct thread to search for eid tags 3. Highlight the tags with a queue button. Different highlights for a) Equipment not queued and can be sent (IMG:[ invalid] style_emoticons/default/cool.gif) Equipment already queued for another user c) Unknown eid (not in the original script, but useful nonetheless - naturally no queue button for these lol) 4. Process the queue and send equipments to the requestor Nice Extras 1. Three buttons in each post to queue potions 2. Ban list (complex to implement without external storage) 3. Request limit checking (as per 2, hard to implement without external storage) Thoughts: 1. Holy_Demon's moogle spam script is fantastic and efficient - can code from this be used/recycled (with permission)? 2. Could everything be run from a server more efficiently than javascripts in browsers? I have a lot of linux servers that could do various things This post has been edited by animeai: Sep 13 2014, 20:07
|
|
|
|
 |
|
Sep 14 2014, 00:54
|
Razor320
Group: Members
Posts: 220
Joined: 17-October 13

|
QUOTE(animeai @ Sep 13 2014, 22:04)  ... Thoughts: 1. Holy_Demon's moogle spam script is fantastic and efficient - can code from this be used/recycled (with permission)? 2. Could everything be run from a server more efficiently than javascripts in browsers? I have a lot of linux servers that could do various things
1. In much cases it is easier to study and reimplent code rather than trying to copy it, also its script works without requirement to cross same-origin boundary for XMLHttpRequest, so won't work as is. 2. It is possible, but building a server application is somewhat harder than write client-side user script. If it is not harder in sense of code difficulty, amount of work required is much greater. If you have hard time rewriting 10-20Kb userjs, full fledged server application would be out of question. Currently i'm slowly writing another implementation, trying to make it as extensible and easy to debug as possible. I already have some code that could be used, though it's a shame that nothing from previous script turned actually useful. This post has been edited by Razor320: Sep 14 2014, 00:56
|
|
|
|
 |
|
Sep 14 2014, 12:44
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07

|
it seems that ai is too demanding or i was simply too naive when asking for this work (IMG:[ invalid] style_emoticons/default/heh.gif) either way, list of requests is being updated, so please check it. shame and curses on me if you have to redo everything
|
|
|
Sep 14 2014, 18:28
|
animeai
Group: Members
Posts: 620
Joined: 18-November 09

|
XD I'm not too demanding (IMG:[ invalid] style_emoticons/default/tongue.gif) I just listed the features of the original script (before it broke) with one minor addition (highlighting unknown eid so we know it's not a script glitch that missed it). The second section for suggestions is simply to make life easier... In a few days I'll throw another 100 hath into the mix (got to pay off Holy_Demon for some IW work first!)
|
|
|
|
 |
|
Sep 15 2014, 22:46
|
animeai
Group: Members
Posts: 620
Joined: 18-November 09

|
QUOTE(Scremaz @ Sep 15 2014, 15:01)  me being too naive is the only other explanation then (IMG:[ invalid] style_emoticons/default/laugh.gif) LMAO maybe, then again you never really delved into the script like I did when I was beta testing with Lement and making random fixes to it later on... As I said before, I'll throw in at least another 100 hath once I've cleared off my debts (about 3.5 mil at the moment). The ever dimishing hath price is killing me!
|
|
|
|
 |
|
Sep 16 2014, 01:19
|
Razor320
Group: Members
Posts: 220
Joined: 17-October 13

|
Had some time to actually write (big word, just used one from auctioneer) parser and some ui. Button in top right corner acts as trigger for dropdown dialog with queued items list and buttons 'send' and 'clear'. Any changes need? (Screenshot with disabled item existence check - otherwise only black "not found" will appear) I think i also could do automatic limits checking and share data between different PCs using some post in shop thread. How much characters allowed in one message in thread? This post has been edited by Razor320: Sep 16 2014, 01:21
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
 |
 |
 |
|