![]() |
#1 |
Scout
Join Date: Feb 2009
Posts: 30
![]() |
Gripes -- equipment optimizing program
What equipment should I wear? This is a common question, and a while ago there was interest in making a program to help out with this.
So, fph and I have been developing Gripes (Generic Roguelike Integer Programming Equipment Selector), and we have a first release available for download: http://sourceforge.net/projects/gripes/ Gripes is a command-line tool that reads a chardump and reports the optimal set of equipment to wear, and it shows how its recommendation compares to your current equipment set. You can configure what "optimal" means by changing the importance of different resists/bonuses, and you can force certain items to be worn (e.g., if you have a cursed item that you can't take off). While Gripes is especially useful for novice and intermediate players with a complex set of equipment, it may also be fun for veteran players to see how well a computer program stands up to their expert choices! Gripes currently works with Angband 3.x and PosBand 0.9.9a, but it may work with chardumps from other variants, too. It is written in perl, so it's cross-platform (we've tested it on Mac OS X and Linux). Please try it out and let us know what you think! Comments, suggestions, and bug reports are welcome, and if you're an expert player and you don't agree with the recommendations of Gripes, tell us why so we can improve it. |
![]() |
![]() |
![]() |
#2 |
Administrator
|
This is very cool! (You might want to tell people that it needs glpk to run.)
__________________
See the elves and everything! http://angband.oook.cz |
![]() |
![]() |
![]() |
#3 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 57
Posts: 9,481
Donated: $60
![]() ![]() |
Nice. I ran it on my abortive attempt at the last V comp, and it told me I'd be better without the cursed ring of Searching...
I may have a go at adapting to FA at some point - I'm not sure if percentage resists will make it easier or harder.
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#4 |
Adept
Join Date: Jan 2009
Age: 64
Posts: 200
![]() |
It looks neat. Unfortunately when I try to use it on Windows 7 (with either recommended perl program installed) I get the error:
c:\gms\gripes>perl gripes.pl ..\angband-r1622\lib\user\Celoth.txt List form of pipe open not implemented at gripes.pl line 1416, <CHARDUMP> chunk 1. I did install glpk but not sure if I did so successfully. Regards, Jonathan |
![]() |
![]() |
![]() |
#5 | ||
Scout
Join Date: Feb 2009
Posts: 30
![]() |
To pav: yes, it does require glpk (or some lp solver that can read gmpl/ampl files). Thanks for pointing this out.
Quote:
![]() Quote:
If I have time this weekend, I might try running a FA dump through gripes to see how different it is. If you get it working with FAngband (which would be great!) let us know and we can put your changes back in the main version. |
||
![]() |
![]() |
![]() |
#6 |
Scout
Join Date: Feb 2009
Posts: 30
![]() |
jevansau: Sorry it's not working for you yet. Neither fph or I have windows machines, so we weren't able to test it there. Thanks for being the guinea pig. To pin down where the problem is, try running gripes to just create the model, and then run the model separately through glpsol. So first:
Code:
perl gripes.pl -write-gmpl yourcharname.gmpl yourchardump.txt Code:
glpsol -m ./problem_model.gmpl -d yourcharname.gmpl If you want, you can send me your char dump (or point to where it is on the ladder, if it's there) and I can tell you what the results should look like, and see if it's a windows-specific problem or a general gripes problem. |
![]() |
![]() |
![]() |
#7 | |
Veteran
Join Date: Apr 2009
Location: Pisa / DL0
Posts: 1,023
![]() |
Quote:
Try replacing line 1416 Code:
open GLPSOL, "-|", $glpsol_path, '-m', $model, '-d', $tmpfile or die "Could not execute command: $glpsol_path -m $model -d $tmpfile\nDo you have glpsol installed (and the right PATH set)?"; #this should be the safest "pipe open" variant Code:
open GLPSOL, "| $glpsol_path -m $model -d $tmpfile" or die "Could not execute command: $glpsol_path -m $model -d $tmpfile\nDo you have glpsol installed (and the right PATH set)?"; #this should be the safest "pipe open" variant |
|
![]() |
![]() |
![]() |
#8 |
Veteran
Join Date: Apr 2009
Location: Pisa / DL0
Posts: 1,023
![]() |
|
![]() |
![]() |
![]() |
#9 | ||
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 57
Posts: 9,481
Donated: $60
![]() ![]() |
Quote:
Quote:
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
||
![]() |
![]() |
![]() |
#10 | |
Unangband maintainer
Join Date: Apr 2007
Location: Sydney, Australia
Age: 48
Posts: 872
![]() |
Quote:
Andrew
__________________
The Roflwtfzomgbbq Quylthulg summons L33t Paladins -more- In UnAngband, the level dives you. ASCII Dreams: http://roguelikedeveloper.blogspot.com Unangband: http://unangband.blogspot.com |
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Equipment Optimizer | juggle5 | Vanilla | 1 | September 13, 2009 14:07 |
Help with endgame equipment | bebo | Vanilla | 6 | May 3, 2009 17:23 |
Starting Equipment | bobthegreat | Vanilla | 13 | April 22, 2009 22:45 |
advice on equipment | bebo | Vanilla | 5 | February 7, 2009 09:04 |
Which equipment to prefer? | Softwarer | Vanilla | 4 | March 2, 2008 09:07 |