Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   Variants (http://angband.oook.cz/forum/forumdisplay.php?f=4)
-   -   Equipment optimiser for frogcomposband characters (http://angband.oook.cz/forum/showthread.php?t=9602)

schatz October 2, 2019 04:11

Equipment optimiser for frogcomposband characters
 
1 Attachment(s)
TLDR version

https://optimiser.riverwaterhill.com is a website that takes in a HTML character dump from frogcomposband and tries to figure out what combination of equipment your character should wear given a set of constraints set by you.

-----------------------------

Still interested? keep reading.

After uploading a HTML character dump, you can start defining constraints. There are currently 4 kinds of constraints:
  1. Item inclusions - equipment slot and associated equipment that must be included in the solution. For instance, you can define that the Jewel of Judgement must be included because you like its utility of clairvoyance and recall.
  2. Item exclusions - items matching a certain name to be excluded from consideration. For instance, monk characters should not be wearing heavy armour so you can specify 'Metal Brigandine', 'Bar Chain Mail' and the like to be excluded.
  3. Slot constraints - number and type of slots available for a character. For instance, weapon == 0 but left_arm == 1 for an unarmed, shield-carrying monk. Or ring == 6 for a monster character like Beholder.
  4. Attribute constraints - what attributes you would like the solution of equipment set to provide. For instance, you can specify that you would like to have at least speed 20, melee damage of +10 or above, telepathy, etc. from the equipment set. That is specified as Sp >= 20, Melee_Dmg >= 10, ~Tele >= 1.

Once you are done specifying the constraints, click on the 'Save' button and you will be presented with a listing of the constraints as well as a solution, if any. If the solution is not satisfactory, you can continue to add/remove/update the set of constraints. Sometimes the system will not be able to provide a solution and it will say "Status: infeasible". This happens when the available set of equipment is really not able to achieve the given set of constraints or when you have accidentally added contradicting constraints, e.g. St >= 4 and St <= 3.

See the attached screen capture for my monk character as an example.

This website is a work in progress so feel free to give feedback, comments, report bugs.

werecobalt October 2, 2019 15:57

Hi Schatz!

I talked about if there is an automatic gear shuffling tool the other day on angband.live and today I see this! This is really cool.

But I have problem registering. It doesn't send confirmation mail to my mailbox. I checked the spambox and it was empty too. I use yahoo mail.

schatz October 2, 2019 16:22

Quote:

Originally Posted by werecobalt (Post 140302)
But I have problem registering. It doesn't send confirmation mail to my mailbox. I checked the spambox and it was empty too. I use yahoo mail.

Sent you a private message with the contents of the email. The yahoo mail servers are blocking the mailgun server I was using for this app. Let me know if you did not receive the private message.

CyclopsSlayer October 2, 2019 16:30

Just a heads up, the email says to click the link, but it sends an incomplete URL Easy enough to fix, just preface with an http, but...

://optimiser.riverwaterhill.com/accounts/activate/...

werecobalt October 2, 2019 16:46

Thanks Schatz, and CyclopsSlayer! I register successfully.

schatz October 2, 2019 16:50

Quote:

Originally Posted by CyclopsSlayer (Post 140305)
Just a heads up, the email says to click the link, but it sends an incomplete URL Easy enough to fix, just preface with an http, but...

://optimiser.riverwaterhill.com/accounts/activate/...

Thanks for the bug report. Pushing a fix now.

ShadowTechnology October 2, 2019 17:21

Very cool. I plan to try it.
Question: In your example there appears to be one (and only one?) solution. This is probably where you want to end up, but how do you start? If you have a Home full of stuff and start with minimal attribute constrains, you may get a million combinations (literally) that meet your requirements. How is this reported? Later, as you are approaching "the best" kit, you may get a more reasonable number of solutions that meet you requirements (e.g. 3 solutions, or 10). Will it present all of these for the player of choose from?
Or possibly it attempts to do that for you, and presents it's estimate of the one best solution from among those that meet your minimal requirements?

schatz October 2, 2019 17:35

Quote:

Originally Posted by ShadowTechnology (Post 140309)
Or possibly it attempts to do that for you, and presents it's estimate of the one best solution from among those that meet your minimal requirements?

Yes, that's what it does. It looks at all possible combinations that meet the minimal requirements. For each of these combinations, it naively does a sum of the attribute pluses and minuses of each equipment set and the equipment set with the highest sum is selected and presented as the solution.

That's usually not optimal at the start since the solution will favor equipment that gives the highest pluses and minuses, e.g. Rings of Archery, which might not be what you want. So you start adding more item exclusions and attribute constraints. For instance it was giving me too much stealth previously so I ended up specifying Sl <= 8 or increase other requirements like Sp until it gives you something that looks more reasonable.

schatz October 3, 2019 05:35

Switching away from mailgun to AWS SES to send emails in order to resolve issues with sending email to yahoo.com email addresses.

Now waiting for AWS to respond to my request to move my account out from their sandbox. Meanwhile new account registration and password resets will not work. Will update here when the transition completes successfully.

schatz October 3, 2019 14:39

Completed transition to new mail sending service. Account registration and reset account password email should work now.


All times are GMT +1. The time now is 18:35.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.