PriceAdvisor: Maximize your profits

philmasterplus

Active member
I added the following lines to my login script as described in the OP:

Code:
cli_execute("update prices http://zachbardon.com/mafiatools/updateprices.php?action=getmap");
cli_execute("update prices http://nixietube.info/mallprices.txt");

However, mafia keeps telling me that the file was not found (used second source instead). Manually following the http://zachbardon.com/mafiatools/updateprices.php?action=getmap link resulted in a 404.

Is this a broken link, or an invalid URL to the Map Manager?
 

Spiny

Member
I added the following lines to my login script as described in the OP:

Code:
cli_execute("update prices http://zachbardon.com/mafiatools/updateprices.php?action=getmap");
cli_execute("update prices http://nixietube.info/mallprices.txt");

However, mafia keeps telling me that the file was not found (used second source instead). Manually following the http://zachbardon.com/mafiatools/updateprices.php?action=getmap link resulted in a 404.

Is this a broken link, or an invalid URL to the Map Manager?

Delete both lines that you added as they are no longer relevant. Do be sure to check your mafia General -> Preferences and make sure "Share recent mall price data with other users" is selected. Mafia now handles this by itself and the data is no longer hosted at Zarqon's site. Nixietube is JasonHarper's site and still works, but chances are that you won't see much come from there.
 

philmasterplus

Active member
Thanks, spiny!

I also received this just now:

Code:
> pa hot nuggets

hot nuggets:
acquire 4 hot nuggets; make 1 [B]cold wad[/B]; mallsell 1 hot wad: 335.0 meat
autosell 1 hot nuggets: 60.0 meat

Trying for both hot powder (which PA told me to malus into wads) and cold nuggets (again, malus into wads) yielded normal results. I downloaded the latest build from http://builds.kolmafia.us/ to test this again and successfully reproduced this bug.
 

slyz

Developer
Code:
> pa hot nuggets

Checking for updates (running ZLib ver. : 20)...
_version_zlib => : 20
You have a current version of ZLib.
Checking for updates (running SmashLib ver. 1.2)...
_version_smashlib => 1.2
You have a current version of SmashLib.
Checking for updates (running PriceAdvisor ver. 1.62)...
_version_priceadvisor => 1.62
You have a current version of PriceAdvisor.
map_use_for_meat.txt => 2010-01-26T15:56:41-06:00, checked 20100612
You have the latest use_for_meat.txt. Will not check again today.
map_use_for_items.txt => 2009-12-31T23:06:36-06:00, checked 20100612
You have the latest use_for_items.txt. Will not check again today.
hot nuggets:
acquire 4 hot nuggets; make 1 hot wad; mallsell 1 hot wad: 65.0 meat
autosell 1 hot nuggets: 60.0 meat

I don't really know where to look... do you have the latest smashlib?
 

philmasterplus

Active member
If the version number in the script file is correct, yes. I am using SmashLib v1.2 and ZLib v20.

Some more interesting results:

Code:
> pa hot nuggets

hot nuggets:
mallsell 1 hot nuggets: 168.0 meat
autosell 1 hot nuggets: 60.0 meat
acquire 4 hot nuggets; make 1 cold wad; mallsell 1 hot wad: -97.0 meat


> pa cold nuggets

cold nuggets:
mallsell 1 cold nuggets: 380.0 meat
autosell 1 cold nuggets: 60.0 meat
acquire 4 cold nuggets; make 1 stench wad; mallsell 1 cold wad: -934.0 meat


> pa spooky nuggets

spooky nuggets:
acquire 4 spooky nuggets; make 1 spooky wad; acquire 1 cocoa egg; make 1 Spooky Surprise Egg; mallsell 1 Spooky Surprise Egg: 236.99994 meat
mallsell 1 spooky nuggets: 129.0 meat
autosell 1 spooky nuggets: 60.0 meat


> pa twinkly nuggets

twinkly nuggets:
acquire 4 twinkly nuggets; make 1 twinkly wad; mallsell 1 twinkly wad: 240.0 meat
autosell 1 twinkly nuggets: 60.0 meat


> pa sleaze nuggets

sleaze nuggets:
mallsell 1 sleaze nuggets: 195.0 meat
autosell 1 sleaze nuggets: 60.0 meat
acquire 4 sleaze nuggets; make 1 hot wad; mallsell 1 sleaze wad: -183.0 meat


> pa stench nuggets

stench nuggets:
mallsell 1 stench nuggets: 168.0 meat
autosell 1 stench nuggets: 60.0 meat
acquire 4 stench nuggets; make 1 cold wad; mallsell 1 stench wad: -138.0 meat

Perhaps it's a bug in SmashLib itself, though I don't know how to test it.
 
Last edited:

slyz

Developer
Actually, this might come from concoctions.txt, not from SmashLib. Do you have a concoctions.txt in your kolmafia /data folder? If so, look for "hot wad", maybe the MALUS lines got mixed up?

If so, try removing that file and run PA again.

If that doesn't work, try doing update clear and update data in the gCLI.
 

philmasterplus

Active member
Actually, this might come from concoctions.txt, not from SmashLib. Do you have a concoctions.txt in your kolmafia /data folder? If so, look for "hot wad", maybe the MALUS lines got mixed up?

If so, try removing that file and run PA again.

If that doesn't work, try doing update clear and update data in the gCLI.

I don't have concoctions.txt in my data folder, the only ones being
Code:
itemflags.txt
mallprices.txt
use_for_items.txt
use_for_meat.txt
vars_(Main_id).txt
vars_(Multi_id).txt

FWI I am running r8479 at the moment. I tried update clear, but no differences before and after.

Also, update data resulted in manual downloading of concoctions.txt, which doesn't seem to have any problems with any wad recipes. Since mafia displays the final result correctly (malus hot nugget -> cold wad -> mallsell hot wad?), I think this may be a visual issue.
 
Last edited:

slyz

Developer
It's strange that it doesn't happen with everyone though. I was unsure of what update data did, but I think you should remove the files Mafia just downloaded, since they will override any new data files that come bundled in a .jar build.

You can see your current data files by simply unzipping the .jar file and looking in it's /data folder.
 

philmasterplus

Active member
I tested it again right now, and instead of wrong results, mafia now displays a correct result twice, each with different meat gain.

I got tired of all this and put everything into a zip file. Please take a look, will you?
 
Last edited:

slyz

Developer
I realized recently that with Way of the Sauce, you can transmute wads into each other, that would explain the "acquire 4 hot nuggets; make 1 cold wad;" perhaps. Then I guess recursion prevention or something else makes that transmutation not very profitable.
 

damonmensch

New member
Ok I just downloaded and gave this a try, but everything I put into it comes up as Returned: Void

Did I do something wrong?

This is the most recent one I did... Meat Maid Body
Code:
> pa meat maid body

Searching for "frilly skirt"...
Searching for "useless powder"...
Searching for "meat engine"...
Searching for "cog and sprocket assembly"...
Searching for "sprocket assembly"...
Searching for "spring"...
Searching for "empty meat tank"...
Searching for "meat stack"...
Searching for "dope wheels"...
Searching for "sweet rims"...
Searching for "meat maid"...
Searching for "maid head"...
Searching for "brainy skull"...
Searching for "disembodied brain"...
Searching for "smart skull"...
Searching for "bartender skull"...
Searching for "beer goggles"...
Searching for "twinkly powder"...
Searching for "twinkly nuggets"...
Searching for "twinkly wad"...
Searching for "beer lens"...
Searching for "4-d camera"...
Searching for "nothing-in-the-box"...
Searching for "box"...
Searching for "box-in-the-box"...
Searching for "nothing-in-the-box-in-the-box"...
Searching for "box-in-the-box-in-the-box"...
Searching for "present"...
Searching for "wrapping paper"...
Searching for "bartender-skull-in-the-box"...
Searching for "bartender-in-the-box"...
Searching for "cocktailcrafting kit"...
Searching for "boxing glove on a spring"...
Searching for "chef-skull-in-the-box"...
Searching for "chef skull"...
Searching for "chef's hat"...
Searching for "clockwork chef head"...
Searching for "clockwork sphere"...
Searching for "clockwork bartender head"...
Searching for "clockwork bartender-head-in-the-box"...
Searching for "clockwork bartender-in-the-box"...
Searching for "clockwork detective skull"...
Searching for "gnoll lips"...
Searching for "detective skull"...
Searching for "disembodied smile"...
Searching for "spooky powder"...
Searching for "spooky nuggets"...
Searching for "spooky wad"...
Searching for "chef-in-the-box"...
Searching for "cocoa egg"...
Searching for "lucky surprise egg"...
Searching for "ten-leaf clover"...
Searching for "gnoll teeth"...
Searching for "beach glass bead"...
Searching for "clay peace-sign bead"...
Searching for "phat turquoise bead"...
Searching for "clockwork maid head"...
Searching for "clockwork maid"...
Searching for "clockwork pirate skull"...
Searching for "enchanted eyepatch"...
Searching for "eyepatch"...
Searching for "pirate skull"...
Searching for "spooky pirate skeleton"...
Searching for "pirate pelvis"...
Searching for "skeleton bone"...
Searching for "bone rattle"...
Searching for "lihc eye"...
Searching for "pie crust"...
Searching for "boris's key lime pie"...
Searching for "boris's key lime"...
Searching for "crimbo pie"...
Searching for "plum"...
Searching for "jarlsberg's key lime pie"...
Searching for "jarlsberg's key lime"...
Searching for "sneaky pete's key lime pie"...
Searching for "sneaky pete's key lime"...
Searching for "banana cream pie"...
Searching for "banana"...
Searching for "banana daiquiri"...
Searching for "bottle of rum"...
Searching for "grog"...
Searching for "grogtini"...
Searching for "skewered lime"...
Searching for "bodyslam"...
Searching for "tequila with training wheels"...
Searching for "lime"...
Searching for "digital key lime"...
Searching for "digital key lime pie"...
Searching for "sabre-toothed lime cub"...
Searching for "sabre teeth"...
Searching for "tiny plastic sword"...
Searching for "skewered cherry"...
Searching for "cherry bomb"...
Searching for "old-fashioned"...
Searching for "sangria del diablo"...
Searching for "sangria"...
Searching for "cherry"...
Searching for "cherry pie"...
Searching for "bottle of whiskey"...
Searching for "boilermaker"...
Searching for "mcmillicancuddy's special lager"...
Searching for "beer basted brat"...
Searching for "frat brats"...
Searching for "super ka-bob"...
Searching for "knob ka-bobs"...
Searching for "lumbering jack"...
Searching for "blatantly canadian"...
Searching for "whiskey and cola"...
Searching for "whiskey and soda"...
Searching for "whiskey sour"...
Searching for "lemon"...
Searching for "boxed wine"...
Searching for "strawberry"...
Searching for "wine spritzer"...
Searching for "skewered jumbo olive"...
Searching for "dirty martini"...
Searching for "dry martini"...
Searching for "vesper"...
Searching for "dry vodka martini"...
Searching for "jumbo olive"...
Searching for "bottle of gin"...
Searching for "martini"...
Searching for "papaya sling"...
Searching for "papaya"...
Searching for "taco shell"...
Searching for "salty dog"...
Searching for "especially salty dog"...
Searching for "brine"...
Searching for "briny vinegar"...
Searching for "ghostly pickling solution"...
Searching for "spectral pickle"...
Searching for "ghost pickle on a stick"...
Searching for "skewer"...
Searching for "ghost cucumber"...
Searching for "dill"...
Searching for "vinegar"...
Searching for "rabbit punch"...
Searching for "typical tavern swill"...
Searching for "margarita"...
Searching for "zmobie"...
Searching for "strawberry daiquiri"...
Searching for "parisian cathouse"...
Searching for "vodka martini"...
Searching for "tequila sunset"...
Searching for "grapefruit"...
Searching for "bottle of vodka"...
Searching for "white hyborian"...
Searching for "glass of baboon milk"...
Searching for "banana milkshake"...
Searching for "bloody mary"...
Searching for "extra-spicy bloody mary"...
Searching for "spices"...
Searching for "bat haggis"...
Searching for "menudo"...
Searching for "catgut"...
Searching for "rat scrapple"...
Searching for "secret blend of herbs and spices"...
Searching for "knob stir-fry"...
Searching for "bat wing stir-fry"...
Searching for "bat wing"...
Searching for "one-winged stab bat"...
Searching for "rewinged stab bat"...
Searching for "knob mushroom"...
Searching for "knob mushroom wine"...
Searching for "mushroom fermenting solution"...
Searching for "cool mushroom wine"...
Searching for "cool mushroom"...
Searching for "cool mushroom casserole"...
Searching for "gnollish casserole dish"...
Searching for "flaming mushroom wine"...
Searching for "flaming mushroom"...
Searching for "flat mushroom wine"...
Searching for "warm mushroom"...
Searching for "spicy mushroom quesadilla"...
Searching for "flat dough"...
Searching for "wad of dough"...
Searching for "gloomy mushroom wine"...
Searching for "oily mushroom wine"...
Searching for "sleazy fairy gravy"...
Searching for "small leather glove"...
Searching for "icy mushroom wine"...
Searching for "frozen mushroom"...
Searching for "knoll mushroom wine"...
Searching for "knoll mushroom"...
Searching for "knoll stir-fry"...
Searching for "knob sausage stir-fry"...
Searching for "sausage pizza"...
Searching for "plain pizza"...
Searching for "goat cheese pizza"...
Searching for "goat cheese"...
Searching for "goat"...
Searching for "anticheese"...
Searching for "cottage"...
Searching for "goat cheese taco"...
Searching for "stuffed spooky mushroom"...
Searching for "spooky mushroom"...
Searching for "spooky mushroom wine"...
Searching for "spooky stir-fry"...
Searching for "rat appendix stir-fry"...
Searching for "rat appendix"...
Searching for "mushroom pizza"...
Searching for "pointy mushroom wine"...
Searching for "pointy mushroom"...
Searching for "cream of pointy mushroom soup"...
Searching for "glass of goat's milk"...
Searching for "cream pie"...
Searching for "rocky road ice cream"...
Searching for "floaty gravel"...
Searching for "floaty rock"...
Searching for "rock lobster"...
Searching for "wok lobster"...
Searching for "white canadian"...
Searching for "stinky mushroom wine"...
Searching for "stinky mushroom"...
Searching for "pregnant mushroom"...
Searching for "fairy gravy boat"...
Searching for "meat face"...
Searching for "dried face"...
Searching for "lifeless meat doll"...
Searching for "wooden figurine"...
Searching for "meat golem"...
Searching for "magicalness-in-a-can"...
Searching for "pr0n legs"...
Searching for "pr0n cocktail"...
Searching for "pr0n stir-fry"...
Searching for "olive stir-fry"...
Searching for "asparagus stir-fry"...
Searching for "tofu stir-fry"...
Searching for "wad of tofu"...
Searching for "tofu casserole"...
Searching for "tofu taco"...
Searching for "stalk of asparagus"...
Searching for "spiced rum"...
Searching for "eggnog"...
Searching for "ghuol egg"...
Searching for "fertilized ghuol egg"...
Searching for "spooky-gro fertilizer"...
Searching for "spicy bean burrito"...
Searching for "insanely spicy bean burrito"...
Searching for "jabañero pepper"...
Searching for "insanely spicy enchanted bean burrito"...
Searching for "spicy enchanted bean burrito"...
Searching for "insanely spicy jumping bean burrito"...
Searching for "spicy jumping bean burrito"...
Searching for "enchanted bean burrito"...
Searching for "jumping bean burrito"...
Searching for "tomato"...
Searching for "screwdriver"...
Searching for "orange"...
Searching for "star key lime"...
Searching for "star key lime pie"...
Searching for "tequila sunrise"...
Searching for "monkey wrench"...
Searching for "banana spritzer"...
Searching for "flower petal pie"...
Searching for "pretty flower"...
Searching for "pretty bouquet"...
Searching for "shot of flower schnapps"...
Searching for "fermenting powder"...
Searching for "peach pie"...
Searching for "peach"...
Searching for "pear tart"...
Searching for "pear"...
Searching for "pirate zombie head"...
Searching for "zombie pineal gland"...
Searching for "pirate zombie robot head"...
Searching for "effluvious emerald"...
Searching for "hot nuggets"...
Searching for "hot wad"...
Searching for "steamy ruby"...
Searching for "stench nuggets"...
Searching for "stench wad"...
Searching for "ninja pirate zombie robot head"...
Searching for "scary death orb"...
Searching for "grouchy restless spirit"...
Searching for "clockwork chef-head-in-the-box"...
Searching for "clockwork chef-in-the-box"...
Searching for "e-z cook oven™"...
Meat maid body:
Returned: void
 

icon315

Member
here is one i did

Code:
> pa disco ball

disco ball:
acquire 1 stone banjo; make 1 Disco Banjo; mallsell 1 Disco Banjo: 3600.0 meat
mallsell 1 disco ball: 220.0 meat
autosell 1 disco ball: 1.0 meat
smash 1 disco ball; useless powder can't or doesn't sell: 0.0 meat

Returned: void

> pa stone banjo

stone banjo:
acquire 1 disco ball; make 1 Disco Banjo; mallsell 1 Disco Banjo: 8280.0 meat
mallsell 1 stone banjo: 4900.0 meat
autosell 1 stone banjo: 30.0 meat
smash 1 stone banjo; autosell 1 twinkly powder: 30.0 meat
 

icon315

Member
ok here is results

Code:
> alias pa => ashq import <PriceAdvisor.ash> print(price_advisor($items[%%], true))

String successfully aliased.
pa => ashq import <PriceAdvisor.ash> print(price_advisor($items[%%], true))

> pa disco ball

disco ball:
acquire 1 stone banjo; make 1 Disco Banjo; mallsell 1 Disco Banjo: 3600.0 meat
mallsell 1 disco ball: 220.0 meat
autosell 1 disco ball: 1.0 meat
smash 1 disco ball; useless powder can't or doesn't sell: 0.0 meat


> pa stone banjo

stone banjo:
acquire 1 disco ball; make 1 Disco Banjo; mallsell 1 Disco Banjo: 8280.0 meat
mallsell 1 stone banjo: 4900.0 meat
autosell 1 stone banjo: 30.0 meat
smash 1 stone banjo; autosell 1 twinkly powder: 30.0 meat
 

slyz

Developer
Ok I just downloaded and gave this a try, but everything I put into it comes up as Returned: Void

The Returned: Void has nothing to do with the issue here. To avoid having Mafia display it each time you run an alias that starts with ash, change the alias to use ashq.

To come back to the real problem though, I'm guessing that your zlib setting for verbosity is 0. Try changing to 1, to see the advices, or 4 to also see more of them (those who have a negative "profit"). To change the setting, simply type this in the gCLI:
Code:
zlib verbosity = 4
 

coolbartek

New member
I found another one

pa yeti fur

Searching for "yeti fur"...
yeti fur:
autosell 1 yeti fur: 92.0 meat
and

> pa penguin skin

Searching for "penguin skin"...
Searching for "penguin whip"...
Searching for "twinkly powder"...
Searching for "twinkly nuggets"...
Searching for "twinkly wad"...
Searching for "whip kit"...
penguin skin:
autosell 1 penguin skin: 97.0 meat
acquire 1 whip kit; make 1 penguin whip; autosell 1 penguin whip: -456.0 meat

i think you should associate changing yeti t openguin for max profit
 
Top