Created a json file for Mystic Forge recipes

Created a json file for Mystic Forge recipes

in API Development

Posted by: queicherius.2563

queicherius.2563

I’m not sure how other sites do those arguments so seamlessly, but this is my ghetto implementation :P

It’s the power of .htaccess

<IfModule mod_rewrite.c>

RewriteEngine On

  1. If the requested thing is not a existing directory or file
    # rewrite the request to index.php, where the request can get
    # parsed out of $SERVER[’REQUESTURI’]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

Or, if you are on nginx, you can configure the redirect in your config.

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

I added a bunch of new recipes provided by queicherius, mostly related to precursor crafting

also, these have now been discovered:
Spirit of the Perfected Focus -102 => 72035
Perfected Focus -103 => 70417
Ad Infinitum -111 => 74155
strangely, Gift of the Fractals is not yet in the api :P (how is ad infinitum present without it?) so it’ll remain temporary id -112 for now.
I updated any relevant recipes to match this change

also added forge recipe for oni blade and monkey lanterns

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

I added some more precursor crafting recipes provided by queicherius
also added Oni Blade, Monkey Lanterns
also added all 1,330 different combinations for making Amalgamated Gemstone. I decided to only include recipes with different ingredients, so excluded recipes where 2 or 3 of the crests/orbs were the same. main reasoning is that one of the 21 triplet (all 3 ingredients are the same) would ALWAYS be the cheapest. so instead of only have those 21 recipes, I decided to produce recipes that would give you the 3 cheapest ingredients.

I also made that .htaccess Rewrite work. So bostrees shouldn’t have any more problems (assuming that was the problem). also, this means it’s less janky
At the same time, I am now on v3, the main difference being searchability. So you can now do something like http://gw2profits.com/json/v3?output_id=68063ANDingredient=24514 (recipes that make amalgamated gemstone using Crest of the Shaman) or http://gw2profits.com/json/v3?name=SunriseORtype=Sword (recipes that make Sunrise or any sword)
v3 also outputs the recipe id. good for identifying corrections, or knowing which are newly added. all of these forge recipes are negative, so they won’t conflict with normal recipes. this recipe id is also searchable: http://gw2profits.com/json/v3?id=-4205
all the info for using it is located at:
http://gw2profits.com/json

april 21 update:
added merchant recipes for all the basic guild decorations
fixed the recipe for Proof: Finite Result (outputted prototype fractal capacitor instead of had it as an ingredient)
deleted old recipes for amalgamated gemstone. some were duplicates, and there were more than there should of been. I’d rather not look through all 1330 of them to find which were the weird ones, so I just deleted them and remade the 1140 that should be there.
added 1140 new 10x Amalgamated Gemstone recipes
added ‘nameslike’ as an argument. similar to ‘names’ except it searches for text included in the item’s name and not just exact matches (you can search for ‘log’ and get all the ‘Green Wood Log’, ‘Soft Wood Log’, etc.)

april 24 update:
added a bunch of achievement recipes
updated a couple old recipes (Gift of the Catalyst, Gift of the Cosmos, Gift of the Raven Spirit, Machined Rifle, a few more)
replaced ingredient id -112 with 37070 (Gift of the Fractals → Gift of Ascension)
added ingredient id -113 = Tiger
added ingredient id -114 = Gift of the Family
added recipes to craft Chuka and Champawat. There are a lot of achievement recipes for this, and not a lot of items currently exist for them. Just a warning that the recipes are there but no items.

(edited by Mystic.5934)

Created a json file for Mystic Forge recipes

in API Development

Posted by: That ol noob.7083

That ol noob.7083

How about adding crystalline dust via salvaging ecto as a “recipe”? https://github.com/gw2efficiency/issues/issues/165

Want a guild in which you actually have a vote?
Contact me and see if you are eligible for Council of Dusk [Dusk]

Created a json file for Mystic Forge recipes

in API Development

Posted by: Sariel V.7024

Sariel V.7024

That’s not a recipe, though.

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

There are other salvage recipes. a bunch for precursor crafting, and flawless snowflake -> 32 tiny snowflake.
in general, I’ve tried to keep recipes for more guaranteed returns. 1 flawless salvages into 32 tiny, 100% of the time. however, there are random ones (such as amalgamated gemstone forge recipes, which gives 10-25, average 11.5).
I’ve thought of adding dye salvaging as well. I think those have the same argument as salvaging ecto into dust.
this wouldn’t result in “but where would it end? salvage material? blue weapons?”, because dye and ecto salvages into exactly 1 thing, while others salvage into multiple choices.
what do you think? should I add recipes for salvaged these?

(edited by Mystic.5934)

Created a json file for Mystic Forge recipes

in API Development

Posted by: Chieftain Alex.2851

Chieftain Alex.2851

Hi Mystic,

I’m going through your JSON file and comparing it with whats on the wiki at the moment.

I’ve come across these IDs: 66449, 66450, 66451, 66452, 66453 (which are “Recipe: Feast of Black Pepper Cactus Salad”, “Recipe: Feast of Cactus Fruit Salad”, “Recipe: Feast of Nopalitos Saute”, “Recipe: Feast of Roasted Cactus”, “Recipe: Pot of Sweet and Spicy Beans” respectively).

I just went ingame and tried to create the “Recipe: Feast of Black Pepper Cactus Salad”, and strangely the “Bowl of Cactus Fruit Salad” doesn’t appear in the mystic forge UI at all (i.e. it isn’t used in any recipes) – I assume the same is true for the other 4 recipes. Based on this i think these 5x recipes are incorrect.

What’s the source on the information for those recipes?

-Guild Wars 2 Wiki.

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

TLDR: wrote a program that educatedly guessed
for all the “Recipe: Feast/Pot/Giant/Box/Satchel” recipes, I wrote a script that first retrieved all the recipe sheets, then analyzed the end of it’s name and searched for items it thought they might be made from (“Recipe: Feast of Truffle Steak Dinner” is made with “Plate of Truffle Steak Dinner”). It then printed the entire association, I read through it to see if it made sense, found the ones with no found items, found them manually. Then I did some tests with a few and found that each level has it’s own amount of wine, crystal, and coin. Re-ran the list, this time adding in how much of the other mats were needed, and created the forge recipes that make those recipes. I then tested and confirmed a lot of them (I wanted to know all of them, so I buy-ordered any available and made the rest. while making them, I confirmed that those were correct, and none weren’t. But to make ALL of them would of required something like 9,000 spirit points and I only had like 1100, so I hired guildies to help with the rest, but I couldn’t expect them to also confirm the recipes, so I just gave them the starting items, coin, and wine and said to forge all. They didn’t give any items back, so I assumed all went well.)

looks like those are only from random drops, so I’ll just remove the recipes. sorry for the wrong info.

Created a json file for Mystic Forge recipes

in API Development

Posted by: Chieftain Alex.2851

Chieftain Alex.2851

No worries, it’s a nice resource to have. I thought I’d do a bit of checking before I updated the wiki with the missing recipes.

Unfortunately I’ve found several recipes with incorrect combinations: I’ve created a list of the recipes that need to be updated. With all fairness to your program it’s taken me all morning to match them properly and check the recipe pages on the wiki are pointing at the right recipe pages – mystic recipes are a complete pain in the butt. (Basically I went ingame and checked that a level 35 item going into the recipe produces a box recipe for a level 35 set). I’ve crawled through the data and matched up the boxes with the level of the input items.

Link to data: (sorry but I just pasted it out of excel..)
http://pastebin.com/raw/Cwn2NRk9

edit2: Also there are some more Dry Top items (seriously Buried Locked Chests + Dry Top in general are the bane of all recipes) in the armor list: [43801,43802,43803,49738,49739,49740,66433,66436,66470] – i haven’t crafted any of the chestpieces to confirm this yet but i believe these will be from the buried treasure only.

-Guild Wars 2 Wiki.

(edited by Chieftain Alex.2851)

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

I’ve always found that comparing crafting rating is easier than item level, but maybe that’s why the levels are off :P
an example of how annoying these box recipes get: there are 3 “Recipe: Box of Berserker’s Barbaric Armor” (fine, master, and rare). but there are only 2 “Berserker’s Barbaric Coat” (fine and master). so I found a rare Berserker’s Gladiator Chestplate that wasn’t part of the “Recipe: Box of Berserker’s Gladiator Armor” to use instead.
then there’s this little bundle of joy

I’ll go through that data and make corrections, thanks. So that pastebin is a list of recipes that are wrong? might take a while… have tennis plans today

Created a json file for Mystic Forge recipes

in API Development

Posted by: Chieftain Alex.2851

Chieftain Alex.2851

Yep sadly those are ones that need updating since they are highly likely* (I crafted 3 different sheets, and burnt all my mystic coins, so didn’t verify the other 45) incorrect.

Barbaric ends up making Gladiators doesn’kitten Also lol the pot of recipes, I did a doubletake when I saw that yesterday. Submitted a bug report ingame for good measure too.

-Guild Wars 2 Wiki.

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

oh god this is horrible! I untangled some of it… let me example:
39448 Recipe: Box of Giver’s Gladiator Armor (275) exotic
gives 39412 Box of Giver’s Gladiator Armor (275) 65 exotic
requires 38190 Giver’s Gladiator Chestplate (275) 65 rare

39447 Recipe: Box of Giver’s Splint Armor (200) rare
gives 39411 Box of Giver’s Splint Armor (200) 50 rare
requires 38191 Giver’s Splint Coat (200) 50 masterwork

the motherkitten rarities don’t match! at least the required materials do, but can’t compare item id’s in-game
well, that solves the first 2 out of 47 recipes :P
I’ll work on the rest now

edit: looks like the rest are just swapped and not a series of items
edit: k, done. I also deleted the celestial and nomad box recipes you mentioned. next, I’ll try to error-check all of them by comparing the materials used to make the coat vs. the box. There was one on your list that was accurate as it was: -940.

(edited by Mystic.5934)