Powered by Jitbit .Net Forum free trial version.

HomeFallen London » The Bazaar

This is the place to discuss playing the game. Find tips, debate the best places to find certain items and share advice.

Fallen London's Valet: a userscript Messages in this topic - RSS

PotatoEngineer
PotatoEngineer
Posts: 5

6/10/2014
I humbly present my latest endeavor: a gentleman's gentleman, in electronic form. Of course, if we're going to be downright technical about it, it's more of a gentlebeing's gentlebeing, but that rather grates on the ear and there's only so far I'm willing to go to be gender-balanced.

Fallen London's Valet is pleased to dress you in your finest equipment, to meet your exacting requirements on what a particular Quality must be. He takes pride in service, not in fashion; if you truly desire to wear the lowest, meanest clothing, he will indeed dress you as a base villain.

In less florid prose: pick a quality, then choose whether to minimize, maximize, or hit a particular value on that quality, and your valet will dress you to meet that. This is particularly good for stat-grinding, when you want to have exactly a 60% or 90% chance of success to maximize the change points you'll gain while playing a storylet. Of course, it's also useful when you're bouncing back and forth between actions that require different qualities. The control panel for this script is in the far lower-left part of the page.

Find this userscript here: https://greasyfork.org/scripts/2353-fallen-london-s-valet

NOTE: BEFORE IT WILL WORK AT ALL, YOU NEED TO LOOK AT BOTH PAGES OF YOUR INVENTORY ONCE! (And you need to look at the relevant inventory page again when you pick up new equipment, if you want the Valet to be able to dress you in it.) The Valet is terribly polite, and refuses to rifle through your goods without your presence.

If you find any errors, you can drop me a line in-game to PotatoEngineer, send me a message here, or just reply to the post. I think I've got most of the bugs out.

Technical details:
I've only tested this in Greasemonkey on Firefox, but I've refrained from using all of the Greasemonkey-specific functions, so it should work in Chrome, Opera, and Safari as well. It might even work in Internet Explorer, except that a) IE likes using using different functions for everything, and b) I'm not even sure there's a way to run userscripts in IE anymore; I keep finding forum posts about "X used to work, but not anymore."

This script is harmless: it doesn't "phone home" to report usage stats to me, it doesn't make HTTP requests to anywhere else, and the only way it defaces Fallen London is with a small, inconspicuous control panel at the far lower-left of the page. It does make HTTP requests to storynexus.com, in order to dress you, update the left sidebar, and update your inventory screen if you choose to change your equipment while looking at your inventory. It also puts a few click-listeners on your inventory when you're looking at it, so that it knows what you're currently wearing.
edited by PotatoEngineer on 6/10/2014

--
My profile; may you find it slightly more enlightening than a truncheon to the head.

Now accepting all social actions except cats and the Affluent Photographer. Satisfaction and a prompt response may be slightly related to my services.
+5 link
Tom West
Tom West
Posts: 1

5/24/2015
I am grateful for the authors work on this extension, but I have to admit my surprise that this is not part of FL's user interface.

A significant portion of the player base are min-maxers like myself, and face either the tedium of switching outfits with every card, or don't switch to the optimal outfit to save the tedium, and then face disappointment at our laziness (and annoyance at FailBetter) when the endeavour fails on a bad roll.

I can understand the MMO design construct of leaving tedious elements in to extend gameplay, but FL already has the actions mechanism to do so, so there's no design justification to force the users to face an additional 20 seconds of meaningless clicking between each card interaction.

If choosing what to optimize (attributes, menace, etc.) is too complicated, then simply allow the users to "save" their current outfit into a list, and then allow a single click switch to different outfits on the main page.

Here's hoping FailBetter devotes a few days of developer time to adding this time saving feature to an entertaining game.
+5 link
ancusohm
ancusohm
Posts: 77

12/12/2014
Hi,

I'm not the original poster, but I think I figured out how the original poster made it work. More or less.

Here is a quick description of how to use the extension:
1) Click the "Myself" tab. (You should see some new buttons near the top of the page. If you don't, please check your installation.)
2) Click the "Read Page" button.
3) Click the "Expanded Inventory" button. (This is necessary to equip the best affiliations, transportations, etc...)
4) Click the "Read Page" button again.
5) Click the "Watchful", "Shadowy", "Dangerous", or "Persuasive" buttons, and the script will equip the items that give the highest bonus to the respective stats.

The stat buttons will appear on the story page as well, although they are in the habit of disappearing. If you click the "Story" tab, they should reappear.


WARNING The script does not check for menaces, and will equip items that give menaces if they also give the highest bonus.




Here is a link to the extension. It comes bundled with two text files describing how to install it and how to use it.
https://drive.google.com/file/d/0B4_pkuL9YRWpY3hMdEtxLXBNVHM/view?usp=sharing


Here is a link to the raws, should anyone want them. If there's interest, I can put in some comments explaining the code.
https://drive.google.com/file/d/0B4_pkuL9YRWpU1B3ZDdNRmt3TGM/view?usp=sharing


I'm new to writing extensions and javascript, so any constructive criticism would be helpful.
Please let me know if you find any bugs or problems. I will try to fix them.



Thank you "An Individual" for posting their "Goat Farmer's" extension. I used your raws as the basis for this extension.
Your work was very useful, and I want to give credit where it's due.
http://community.failbettergames.com/topic9501-goat-farmers-browser-extension.aspx


And thank you Failbetter Games for letting me post this.


I would like to add a few more features, such as:
  • Equipping items to increase/decrease the different menaces
  • Equipping items to increase Respectable, Bizarre, and Dreaded
  • Equipping items to increase the sum of one's Respectable, Bizarre, and Dreaded
  • Handling a few fringe use cases. (For example: If you had an item equipped that decreased an attribute and no other item in that category that increased that attribute, you would be better of not using any item in that category. But the script doesn't realize that right now).



I will update you if/when I make improvements.

--
http://fallenlondon.storynexus.com/Profile/ancusohm
+4 link
ancusohm
ancusohm
Posts: 77

12/14/2014
I updated the script.

Now you can equip the items that raise each stat, menace, Dreaded, Respectful, or Bizarre as high as possible.
You can also choose to raise the sum of Dreaded, Respectful, and Bizarre as high as possible

Additionally, if you want to lower a stat instead, click the "Positive" button. The name will change to "Negative" and you will then equip gear that lowers stats as much as possible until you click the button again.

Here is a .zip file that contains the raw files and also files to allow you to install the extension in Chrome or Firefox.
https://drive.google.com/file/d/0B4_pkuL9YRWpb010YnZDMjBaYkU/view?usp=sharing


Enjoy.

--
http://fallenlondon.storynexus.com/Profile/ancusohm
+3 link
babelfishwars
babelfishwars
Administrator
Posts: 1152

11/13/2014
Except ... ta da: http://community.failbettergames.com/topic9506-fallen-london-extensions-whitelist.aspx

--
Mars, God of Fish; Leaning Tower of Fish
+3 link
Brandon Truax
Brandon Truax
Posts: 3

10/16/2015
I submitted a ticket, in case it was a FL bug, but they replied that they can't assist with addons. Still this seems like a pretty serious bug even if it is with the addon since it allows for a (potentially) indefinite mood when using the valet.

(Potentially because if you reset the valet's knowledge of your inventory by resetting your browser/reading your inventory etc the bug and mood go away)
+2 link
babelfishwars
babelfishwars
Administrator
Posts: 1152

10/16/2015
Brandon Truax wrote:
I submitted a ticket, in case it was a FL bug, but they replied that they can't assist with addons. Still this seems like a pretty serious bug even if it is with the addon since it allows for a (potentially) indefinite mood when using the valet.


Sorry about that. A case of left hand and right hand failing to communicate. No, wait, that's not the phrase.

ANYway - we've done some investigation, and part of this problem is definitely FL-side - the addon is exacerbating it. Please keep an eye on this thread - I'll update when we've fixed it. If it's still an issue, it may then be just the addon.

edited by babelfishwars on 10/16/2015

--
Mars, God of Fish; Leaning Tower of Fish
+2 link
Grenem
Grenem
Posts: 2067

2/16/2016
xKiv wrote:
Nanako wrote:
To fix this, before attempting the addon, you have to reconfigure firefox to allow unsigned addons:


And they will remove that too. The only way to have an unsigned addon installed will be "have a developer build of firefox".

Is this pessimism or Word of Devs? because the clarification would be nice.

--
Married!:http://fallenlondon.storynexus.com/Profile/takuza
I will accept all social actions that do not consume free evenings- and i will provide patronage to anyone who requests it, though it will be split between all requesters.
On psudeo-hiatus. Will be inactive and active and fluctuate without warning.
Grinding Favors without cards: http://community.failbettergames.com/topic22266-storylet-favors-grinding.aspx
+2 link
Mr. Sails
Mr. Sails
Posts: 37

10/19/2016
Could somebody pretty please make this an official Chrome/Firefox extension so that it's possible to run even under the gaze of our new Firefox and Chrome overlords who thankfully decide what I'm allowed to do on the internet (praise Google, the almighty. I am but a dumb sheep who would jump off a cliff without their gentle helping fist). I'd greatly appreciate it
+2 link
dov
dov
Posts: 2580

6/10/2014
And more specifically, in this post by Alexis:
All scripts are prohibited, including relatively benign ones that e.g. automate outfit-changing, in part because it's difficult to draw the line, in part because we dislike wasting time on support and finding that the cause of weird behaviour is user scripts. Of course we pursue some sorts of thing more aggressively than others. We can and will delete accounts permanently.

-----
edited by dov on 6/10/2014

--
Want a sip of Hesperidean Cider? Send me a request in-game. Here's an_ocelot's guide how.
(Most social actions are welcome. Please no requests to Loiter Suspiciously and no investigations of the Affluent Photographer)
+2 link
PotatoEngineer
PotatoEngineer
Posts: 5

6/10/2014
Well, that's unfortunate. I'm a continent away from the servers, and it's not uncommon to get 10-20 seconds of latency on some actions - and it's often a little higher around inventory-related actions. Ah, well, back to clicking.

--
My profile; may you find it slightly more enlightening than a truncheon to the head.

Now accepting all social actions except cats and the Affluent Photographer. Satisfaction and a prompt response may be slightly related to my services.
+2 link
A B Nile
A B Nile
Posts: 414

6/11/2014
It IS unfortunate. Hopefully the functionality you talk about will be built in at some point in the future.

Appreciate the effort, anyway.

--
My profile: A B Nile

My alt: Zanzibar Buck-Buck McFate
(seeking Acquaintances and accepting all social actions)

Item conversion table - finally complete with all rare successes!

Bloody, bold and resolute
+1 link
ancusohm
ancusohm
Posts: 77

12/15/2014
I emailed the Failbetter Games people, and they said it was okay.

@vermilliant, yes it unequips items that do not help what you're trying to do. I can change that if it is annoying.
edited by ancusohm on 12/15/2014

--
http://fallenlondon.storynexus.com/Profile/ancusohm
+1 link
Kade Carrion (an_ocelot)
Kade Carrion (an_ocelot)
Posts: 1372

12/14/2014
If you're using Chrome on Windows, which no longer lets you keep extensions that don't come from the store, here's what to do:

Download the raw file.

Install Tampermonkey.

Make a new script.

Put the following at the top:

// ==UserScript==
// @name Fallen London Item Equiper
// @include http://echobazaar.failbettergames.com/Gap/Load*
// @include http://*fallenlondon.com/Gap/Load*
// @include http://fallenlondon.storynexus.com/Gap/Load*
// ==/UserScript==

Then copy the contents of fl-item_equiper-extension.js into the rest of the script.

Save and close, reload FL, proceed according to directions in download.

--
Social Actions: send them to Kade Carrion (she/her; no Tournament of Lilies, please). an_ocelot has gone NORTH and cannot benefit from social actions!

Possibly-Useful Things: Spreadsheets and hints and link collections, oh my.
+1 link
Brandon Truax
Brandon Truax
Posts: 3

10/15/2015
This is a fantastic script, thank you very much. However, I have noticed a bug with moods. If I read the pages while I have a mood and then the mood goes away, the valet will still equip it. So I currently have equipped "0 x Cool as Ice" for +30 shadowy.
+1 link
Brandon Truax
Brandon Truax
Posts: 3

10/15/2015
I no longer have the mood, but the valet equips it anyways. And I am gaining the mood bonus.
+1 link




Powered by Jitbit Forum 8.0.2.0 © 2006-2013 Jitbit Software