Created a json file for Mystic Forge recipes

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

I have an answer: just try it! How can you say it’s so much extra work if you haven’t even tried it? Once configured, it’s just one more mouseclick (along entering a commit message) in your workflow. Nothing to even think about!
Just compare the current workflow for me now: i have to download & copy the json manually, check if it’s different to the one i already had, maybe squash dupes again… I doubt that this way is any simpler than just an automated `git -pull`.
I mentioned already above that with a good editor it’s effortless to manage GitHub. If you want an IDE instead of just an advanced text editor, go and try Jetbrains’ WebStorm or PHPStorm, both of which have full git support (like any Jetbrains IDE) and make it a pleasure to work with!

Just give it a shot!

I think I’m confused what it does.
how I pictured putting all this on GitHub to go:
copy http://gw2profits.com/json/v2/forge into text edit, find/replace to make it look pretty, copy into initial GitHub document
after I add a forge recipe, go to http://gw2profits.com/json/v2/forge?output_ids=(new recipes), copy the new ones into text edit, find/replace to make it look pretty, copy into addendumed GitHub document. I would literally use the page I linked above to get the json output.
“git -pull”? it sounds like it can be set up to just go to that json file and pull any changes that were made.
and I’m not sure how the editor would help. It’s not like a start by writing a json file, then upload it to my own database. I start by calling the function insert_forge(“Goblet of Kings”,1,“Eldritch Scroll,1,Mystic Coin,30,Bag of Jewels,1,Gold Ingot,250”,‘Mystic Forge’); then it finds the item ids of those items and inserts everything into the recipes database.
I write in Dreamweaver CS5, does that count as an IDE?

And I quickly made this repo. Basically, it auto-updates from your data to show diffs when stuff changes. Maybe this is a compromise? You could still update via your database and we would have diffs. If it’s a dumb idea I can delete it again no problem, only took a few minutes.

hehe, I like it! but I believe the initial purpose was the allow anyone the ability to add to it, how well would it work if someone else adds a recipe not on my list? and how well would it work if I then added it to my list?

Also – sorry for being annoying – what do you think about adding “salvage” items as well?

An example would be salvaging the new precursors into their crafting items. With that it would be easy generating recipe trees for the precursor crafting

OHHHHH, I see what you mean, “Salvage this weapon to receive its spirit, needed to craft the next tier of this legendary precursor.” I’m not very familiar with precursor crafting, so didn’t know the chain it went through :P
so, like: output: Spirit of The Device x 1, ingredients: The Device x 1 ?
besides precursor crafting, does it happen anywhere else? is this needed in any other part of precursor crafting besides “prepreprecursor -> spirit of prepreprecursor”?
and do you actually use a basic salvage kit on that prepreprecursor?

(edited by Mystic.5934)

Created a json file for Mystic Forge recipes

in API Development

Posted by: queicherius.2563

queicherius.2563

hehe, I like it! but I believe the initial purpose was the allow anyone the ability to add to it, how well would it work if someone else adds a recipe not on my list? and how well would it work if I then added it to my list?

Yep, that would not work like that (i’d get overwritten). It’s just version tracking. If people wanted to contribute, i’d be the other workflow you described above (with basically copy/pasting the changes you make, but having to merge other people’s changes).

OHHHHH, I see what you mean, “Salvage this weapon to receive its spirit, needed to craft the next tier of this legendary precursor.” I’m not very familiar with precursor crafting, so didn’t know the chain it went through :P
so, like: output: Spirit of The Device x 1, ingredients: The Device x 1 ?
besides precursor crafting, does it happen anywhere else? is this needed in any other part of precursor crafting besides “prepreprecursor -> spirit of prepreprecursor”?
and do you actually use a basic salvage kit on that prepreprecursor?

Yep, that’s exactly what I mean. I used a mystic kit on mine, but it didnt really matter. I’d just do it as a new discipline “Salvaging” with the exact output you wrote there.

Not sure if that happens anywhere else… maybe the “Salvage”-Items, like Torn Pelt or something?

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

ohhhh, I hate random outputs. “The Mystic Forge has a chance to produce an Endless Toymaker’s Tonic, an Endless Gift Dolyak Tonic or the fifth tonic you didn’t use as a material in the process.”
I’m going to make the recipes to make all 3 outputs (5 of each) and give them all a 0.33 output count.

oooo, you can promote snowflakes. ex: 50 glittering + 1 unique + 5 luminous dust + 3 philo stones = 7-40 unique
anyone know the average amount you get for each tier?

ohhhh, this is a problem. Spirit of The Bard Experiment isn’t in the api yet (and a few others). I’m guessing because no one has made it.

(edited by Mystic.5934)

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

alright, added stuff:
http://gw2profits.com/json/v2/forge/?output_ids=50051,50053,50055,50054,50056,50052,38121,38121,38121,38121,38121,38115,38115,38115,38115,38115,38118,38117,38119,38120,38116,38291,38135,38134,38133,38132,38131,68437,68436,68435,68434,64277,64276,64271,64270,64265,64279,64275,64264,64281,64278,64274,64273,64272,64269,64266,64280,64267,64282,64268,75534,71203,71723,70763,73891,73841,-1,75246,72126,77026,74662,73524,74032,71671,73615,72778,75535,76354,75237,71720,74158,72458,76116,71915,75064,76735,73396,75336,76269,-2,74907,75991,73569,71392,73193,75207,76249,71998,76891,74809,76376,74804,74492,76083,73266,-4,72713,-8,73239,74927,72964,-10,-5

added:
colored tempered spinal blades
endless gift dolyak tonic
endless toymaker’s tonic
endless toy tonics
giant wintersday gift
snowflake promotion (still need correct average returns)
superior/major rune/sigil of snowfall/mischief
mistforged hero’s promotion
salvage prepreprecursor into spirit of prepreprecursor (discipline: [‘Salvage’])
salvage preprecursor into spirit of preprecursor (discipline: [‘Salvage’])
new legendaries
new gift of legendaries

a couple issues: some items aren’t in the api yet, so I made them negative numbers until we know the correct ones. here is the substitutions:
temp data_id name
-1 Spirit of The Bard Experiment
-2 Spirit of the Perfected Focus
-3 Perfected Focus
-4 Astralaria
-5 Gift of Astralaria
-6 Gift of Cosmos
-7 The Mechanism
-8 Gift of Nevermore
-9 Gift of the Raven Spirit
-10 Nevermore

queicherius, now that the GitHub thing is up, maybe we should make it so it’s just added to manually?

Created a json file for Mystic Forge recipes

in API Development

Posted by: queicherius.2563

queicherius.2563

Thank you so much! This is awesome.

I changed to be manual, if you tell me your github handle I can change it to you as the owner of the repo (or at least as collaborator, if you dont want the ownership).

Created a json file for Mystic Forge recipes

in API Development

Posted by: Sariel V.7024

Sariel V.7024

Gift of the Cosmos: 72083 (check spelling, either I or wiki is wrong, and an article needs removed )
Gift of the Raven Spirit: 71173

(edited by Sariel V.7024)

Created a json file for Mystic Forge recipes

in API Development

Posted by: Sariel V.7024

Sariel V.7024

Astralaria: 76158

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

oo, 119 new items and 80 new recipes in the api
Gift of the Raven Spirit: 71173 now corrected in forge recipes
72083 and 76158… https://api.guildwars2.com/v2/items?ids=72083,76158 “all ids provided are invalid” I wonder how the wiki finds them…
wiki ids I’ll use for now: (these have also been updated)
Astralaria: 76158
Gift of the Raven Spirit: 71173
Nevermore: 71383

I just found out about attuned rings… I think it might be time to add all those “infused” and “attuned” recipes of every single ring and back. should be fun! let you guys know when I’m done

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

added:
Mawdrey (Infused)
Mystic Tribute
Gift of Condensed Magic
Gift of Condensed Might
infusing ascended rings (there are 2 Book of Secrets (Infused), 37018 and 49370, I went with the higher of the two for all of these, I think the lower was the old version of these, before +1 Agony Infusions)
attuning ascended rings
infusing attuned rings
attuning infused rings
infusing ascended back (some were already there, not all, mostly just the original ones)

http://gw2profits.com/json/v2/forge?output_ids=67002,71820,76530,70867,49370,49363,49369,49362,49371,49365,49367,49366,49364,49368,49399,71154,76823,76823,49407,74631,75315,75315,49422,73154,75355,75355,49418,76948,74343,74343,49423,77227,75438,75438,49402,74440,76024,76024,49414,75273,73756,73756,49416,74898,76557,76557,67909,75065,76504,76504,49415,71854,72932,72932,49401,75471,70554,70554,49395,74610,72423,72423,49420,74685,76936,76936,49412,70507,76809,76809,49408,72106,71065,71065,49417,74848,72591,72591,49400,71592,73281,73281,49419,74188,75943,75943,67903,74483,70695,70695,49421,75997,75029,75029,49405,73888,75175,75175,49403,75187,75669,75669,49394,76953,71346,71346,49398,70487,75156,75156,67907,75417,75312,75312,49409,76947,74744,74744,49411,49413,74081,73813,73813,49404,76058,75277,75277,67904,76847,71726,71726,49406,75090,73560,73560,49410

I made a GitHub account: MysticColby
I think I edited and added to it correctly… (changed -4 to 76158, -6 to 72083, -9 to 71173, -10 to 71383, added these 136 new recipes)
dont you hate it when your first choice username is taken? I almost feel bad for the 1-10 year-olds of today, they’re going to have to go with queicherius156, never to know the joys of short usernames

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

to help facilitate updating that GitHub, I added an option:
http://gw2profits.com/json/v2/forge?pretty_print=yes
outputs as JSON_PRETTY_PRINT

and I added Content-Type: application/json

(edited by Mystic.5934)

Created a json file for Mystic Forge recipes

in API Development

Posted by: queicherius.2563

queicherius.2563

I added the latest stuff in the Github repo.

Here’s a question for you: How about Precursor crafting collection items? Example:

- Expertise in Staff Crafting: Weighted Staff Head, Balanced Staff Shaft, …
- Essence of Rainbows: Jar of Yellow Paint, Jar of Red Paint, …

Would you want that included or not (seems it’s collections, not recipes, but kinda similar)?

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

I added the latest stuff in the Github repo.

Here’s a question for you: How about Precursor crafting collection items? Example:

- Expertise in Staff Crafting: Weighted Staff Head, Balanced Staff Shaft, …
- Essence of Rainbows: Jar of Yellow Paint, Jar of Red Paint, …

Would you want that included or not (seems it’s collections, not recipes, but kinda similar)?

ok, so I’ll add items you get from achievements. some of them will have like 20 ingredients, but I see no reason we can’t do that. I’ll add the discipline ‘Achievement’ for these.

I’ll also add items you buy from merchants. some examples: Molten Alliance Fractal Field Research Paper you buy for 28 Fractal Research Page, Gift of Glory you buy for 250 Shard of Glory, Bottle of Elonian Wine you buy for 2504 Copper (25s04c), Gift of Gliding you buy for 300 Airship Part + 300 Lump of Aurillium + 300 Ley Line Crystal.
the challenge/problem is that some of those items are only in the wallet and not an actual item, so we’d have to create those items and decide ids (Copper, karma, laurel, gem, ley line crystal, provisioner token seem to be the only ones without an item). I’ll add these as the discipline ‘Buy’

I’ll also add the ability to search my api for disciplines. maybe you only want the forge recipes, or all except Buy, w/e.

let you know when it’s in progress/done!

(edited by Mystic.5934)

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

ok, I added initial ‘Buy’ and ‘Achievement’ items supplied by queicherius
http://gw2profits.com/json/v2/forge/?output_ids=76442,70528,71173,74300,77086,71008,74547,74332,76885,70642,75066,70775,75197,70900,76013,76088,75280,72440,74736,76997,72661,72737,71177,72692,72394,75842,71196,71281,75018,75887,76623,73929,75439,75871,73755,77266,76172,74654,74227,72685,72982,73648,71809,70784,74849,71144,74356,75838,70807,71595,73285,76294,74231,70831,73714,75120,76987,71628,74044,71109,74558,73506,75917,76811,71808,74999,74535,75792,72877,71647,75523,75774,74286,72142,76379,72331,76806,72934,75228,70658,74544,75769,74378,70435,73201,75469,73037,69817,75482,69932,69893,69984,74858,74918,71277,74822,72995,76682,75982,73955,73473,76460,77089,77139,73804,70798
they are mostly items that go into crafting precursors.
still a lot to add, I’ll contine to add more soon

some of the items called for don’t exist in the normal database. I haven’t finalized the item id list of these, but so far the only ones that are in there are:
1 = Coin (in copper)
20 = Ley Line Crystal

I also added the disciplines argument.
so if you want to only see forge recipes: http://gw2profits.com/json/v2/forge?disicplines=Mystic Forge
if you want to only see Buy recipes: http://gw2profits.com/json/v2/forge?disicplines=Buy
if you want to see Charge and Achievement recipes: http://gw2profits.com/json/v2/forge/?disciplines=Charge,Achievement
also, I renamed ‘SS Node’ to ‘Charge’ (charged quartz crystal used to be the only one that had it)
current possible disciplines: Mystic Forge, Buy, Double Click, Salvage, Charge, Achievement

as usually, let me know if you find any bugs so I can fix them

(edited by Mystic.5934)

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

you know, it’ll be cleaner if we use negative ids for the currencies.
temporary trouble: some of those precursor ingredients I used negative numbers with. good news is that most of them are now in the database:
Spirit of the Bard Experiment: -1 => 73117
Astralaria: -4 => 76158
Gift of Astralaria: -5 => 71972
Gift of the Cosmos: -6 => 72083
The Mechanism: -7 => 71426
Gift of Nevermore: -8 => 74300
Gift of the Raven Spirit: -9 => 71173
Nevermore: -10 => 71383

bad news is not all of them are. So I decided to change their ids (subtracted 100). These are the ones that still have negative ids:
Spirit of the Perfected Focus -2 => -102
Perfected Focus -3 => -103
Ad Infinitum -11 => -111
Gift of the Fractals -12 => -112

and now we’re free to add these item ids:
Coin: -1
Karma: -2
Laurel: -3
Gem: -4
Ascalonian Tear: -5
Shard of Zhaitan: -6
Fractal Relic: -7
Seal of Beetletun: -9
Manifesto of the Moletariate: -10
Deadly Bloom: -11
Symbol of Koda: -12
Flame Legion Charr Carving: -13
Knowledge Crystal: -14
Badge of Honor: -15
Guild Commendation: -16
Transmutation Charge: -18
Airship Part: -19
Ley Line Crystal: -20
Lump of Aurillium: -22
Spirit Shard: -23
Pristine Fractal Relic: -24
Geode: -25
WvW Tournament Claim Ticket: -26
Bandit Crest: -27
Magnetite Shard: -28
Provisioner Token: -29
PvP League Ticket: -30

I’ve already updated all previous recipes that used these ids.

(edited by Mystic.5934)

Created a json file for Mystic Forge recipes

in API Development

Posted by: queicherius.2563

queicherius.2563

I am not sure if giving some recipes the negative currency ids and some the item id is a good idea. From an implementation standpoint I would vote to just use the (negative?) currency ids for all recipes that use them.

Edit: Also, something is going wrong. Did you hard-cap the ingredients to 4? Because e.g. “Expertise in Nightsword Crafting” only has the first 4 ingredients, but on your page it has all of them propperly.

(edited by queicherius.2563)

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

I am not sure if giving some recipes the negative currency ids and some the item id is a good idea. From an implementation standpoint I would vote to just use the (negative?) currency ids for all recipes that use them.

ugh. I don’t like adding a 2nd item for each of those. but there’s is no good solution here. ideally, they’d all be legit items imo. I guess it’s better to keep currencies categorized together. I’ll edit the last post

Also, something is going wrong. Did you hard-cap the ingredients to 4? Because e.g. “Expertise in Nightsword Crafting” only has the first 4 ingredients, but on your page it has all of them propperly.

fixed! (yes, json output was only ingredient number 0-3 before)

I’m currently trying to go through the achievement api and convert into achievement recipes… but it seems the reward for completing the achievements isn’t in that api. do I have to do that part by hand?

(edited by Mystic.5934)

Created a json file for Mystic Forge recipes

in API Development

Posted by: queicherius.2563

queicherius.2563

I’m currently trying to go through the achievement api and convert into achievement recipes… but it seems the reward for completing the achievements isn’t in that api. do I have to do that part by hand?

I think so, at least I didnt find any achievement rewards.

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

it also looks like only the precursor crafting part I is present (except for the new legendaries, which have all 3 parts)

and does anyone know the reward for Uzulon’s Mechanical Orchestra?

Created a json file for Mystic Forge recipes

in API Development

Posted by: Lawton Campbell

Lawton Campbell

Web Programmer

Next

I’m currently trying to go through the achievement api and convert into achievement recipes… but it seems the reward for completing the achievements isn’t in that api. do I have to do that part by hand?

I think so, at least I didnt find any achievement rewards.

I made a pull request. There’s backend support for it, it just isn’t currently exposed. Presuming that looks fine I can probably have the endpoint amended by the end of the week.

Created a json file for Mystic Forge recipes

in API Development

Posted by: Sariel V.7024

Sariel V.7024

I wonder how the wiki finds them…
wiki ids I’ll use for now: (these have also been updated)

Ve haf vays of making API holes talk. Not all, but many.

(the numbers are correct so long as my lysdexia doesn’t kick in O.o )

(edited by Sariel V.7024)

Created a json file for Mystic Forge recipes

in API Development

Posted by: Sariel V.7024

Sariel V.7024

it also looks like only the precursor crafting part I is present (except for the new legendaries, which have all 3 parts)

and does anyone know the reward for Uzulon’s Mechanical Orchestra?

The reward, I think, was a recipe for making UMO as a guild decoration. Someone made it and posted it to reddit last week.

72735 Recipe: Uzolan’s Mechanical Orchestra Consumable 0 Exotic

(edited by Sariel V.7024)

Created a json file for Mystic Forge recipes

in API Development

Posted by: Sariel V.7024

Sariel V.7024

and now we’re free to add these item ids:

Ascalonian Tear: 16982
Shard of Zhaitan: 17272
Fractal Relic: 38022
Seal of Beetletun: 17274
Manifesto of the Moletariate: 17270
Deadly Bloom: 17273
Symbol of Koda: 17277
Flame Legion Charr Carving: 17275
Knowledge Crystal: 17276
Badge of Honor: 35510
Guild Commendation: 39695
Transmutation Charge: 64736, 64737
Airship Part: 74494
Lump of Aurillium: 75012
Spirit Shard: 69910
Pristine Fractal Relic: 69862
Geode: 69812
WvW Tournament Claim Ticket: 66352
Bandit Crest: 69985
Magnetite Shard: 77378

(edited by Sariel V.7024)

Created a json file for Mystic Forge recipes

in API Development

Posted by: Lawton Campbell

Previous

Lawton Campbell

Web Programmer

Next

Pristine Fractal Relic: -24

Wouldn’t that be one of these: one, two? Or is there a third one that’s the real one?

EDIT: Looks like the former got converted to the latter, which is an “Immediate” type which means it gets consumed when you load into a map to grant you currency.

Created a json file for Mystic Forge recipes

in API Development

Posted by: Sariel V.7024

Sariel V.7024

I had copy/pasted Mystic’s list and replaced the ones I could find. Went a little too fast. Didn’t see the second ID either.

Edit: with all those immediate versions, I now have to correct most of those XD

(edited by Sariel V.7024)

Created a json file for Mystic Forge recipes

in API Development

Posted by: Lawton Campbell

Previous

Lawton Campbell

Web Programmer

I had copy/pasted Mystic’s list and replaced the ones I could find. Went a little too fast. Didn’t see the second ID either.

Edit: with all those immediate versions, I now have to correct most of those XD

I actually wasn’t following the conversation closely enough, it’s probably better to ignore that there are currency “items” and just use the currency ids.

>_________>

Gonna get back to work.

Created a json file for Mystic Forge recipes

in API Development

Posted by: queicherius.2563

queicherius.2563

Presuming that looks fine I can probably have the endpoint amended by the end of the week.

Yes, please!

Also… more stuff to add!

Created a json file for Mystic Forge recipes

in API Development

Posted by: Sariel V.7024

Sariel V.7024

I actually wasn’t following the conversation closely enough, it’s probably better to ignore that there are currency “items” and just use the currency ids.

>_________>

Despite my OCD screaming, I’d tend to agree XD

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

I made a pull request. There’s backend support for it, it just isn’t currently exposed. Presuming that looks fine I can probably have the endpoint amended by the end of the week.

awesome, thanks
at the rate this is going, I might not even be done by the time that’s ready :P
most of the time this takes is deciding which id to use for ‘Gold Fractal Weapon Crate’ (for example), so if the api could just give “reward”: 77263, that would be awesome
I suppose other people would want the other rewards too, such as titles. so probably an array of rewards.

72735 Recipe: Uzolan’s Mechanical Orchestra Consumable 0 Exotic

thanks

Ascalonian Tear: 16982
Shard of Zhaitan: 17272
Fractal Relic: 38022
Seal of Beetletun: 17274
Manifesto of the Moletariate: 17270
Deadly Bloom: 17273
Symbol of Koda: 17277
Flame Legion Charr Carving: 17275
Knowledge Crystal: 17276
Badge of Honor: 35510
Guild Commendation: 39695
Transmutation Charge: 64736, 64737
Airship Part: 74494
Lump of Aurillium: 75012
Spirit Shard: 69910
Pristine Fractal Relic: 69862
Geode: 69812
WvW Tournament Claim Ticket: 66352
Bandit Crest: 69985
Magnetite Shard: 77378

yeah, I know those are there. initially posted them, too :P then queicherius suggested that we keep all ‘currencies’ the same (ie, use it as a currency instead of a item). so the negative id notates that it’s a currency instead of an item (and correlates to it’s currency id).
also, the items for most of those aren’t used in-game anymore (from back when dungeon tokens took up bank space).

this will get added with this batch I’m working on, ty.

(edited by Mystic.5934)

Created a json file for Mystic Forge recipes

in API Development

Posted by: Sariel V.7024

Sariel V.7024

also, the items for most of those aren’t used in-game anymore (from back when dungeon tokens took up bank space).

True, but they show up in the listing all the same. I keep track of them in case some application comes up where knowing such-and-such an id is assigned proves valuable.

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

I keep track of them in case some application comes up where knowing such-and-such an id is assigned proves valuable.

I think we all go the extra mile in our chosen expertises just in case it will be REALLY useful someday

“rewards”:[{"type":“Item”,“id” :67773,“count” :1},{"type":“Mastery”,“region”:"Tyria"}]
thank you

(edited by Mystic.5934)

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

gerrrr they removed the snowflake => gift forge recipe

Created a json file for Mystic Forge recipes

in API Development

Posted by: Sariel V.7024

Sariel V.7024

I keep track of them in case some application comes up where knowing such-and-such an id is assigned proves valuable.

I think we all go the extra mile in our chosen expertises just in case it will be REALLY useful someday

“rewards”:[{"type":“Item”,“id” :67773,“count” :1},{"type":“Mastery”,“region”:"Tyria"}]
thank you

I regret that I can only give this a +1

Created a json file for Mystic Forge recipes

in API Development

Posted by: queicherius.2563

queicherius.2563

Two little reports:

- Expertise in Axe Crafting is missing
- Expertise in Sword Crafting is currently requiring a Weighted Nightsword Blade, but it’s actually a Weighted Sword Blade

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

k, added all of the achievement rewards that are currently available. some are a bit silly to have here (5 black lion claim ticket for winter weapons), but it was all done via achievement api, so I wanted completeness.
also added some winter recipes (foostivoo, essence of mischief, essence of snowfall, magnanimous obsidian crystal) and snowflake promotion (double click)

url for new stuff:
http://gw2profits.com/json/v2/forge?output_ids=42877,67234,49275,67220,67217,67176,31630,42877,8469,67226,11927,67219,67229,43992,67213,11083,12102,67233,67230,67384,67798,67774,67799,67773,67794,67795,68368,68365,68392,67796,67797,74731,49208,72988,69974,76848,10543,71355,75102,10578,37059,74623,72116,10508,70438,64736,10634,73467,70448,72558,73865,75599,63536,74322,73527,76613,72416,72735,10613,76601,74591,72067,73791,77645,73452,38047,77650,77659,77584,38131,38132,38133,38134,38135,71835,76570,70969,73597,73912,71499,71016,74838,75457,71338,72776,73762,74236,77392

some ingredients were changed:
Horologicus (74858)
Fix-r-Upper (69932)
The North Wind (73037)
Wild Abandon (74918)
Ydalir (69817)
Dark Harvest (69893)
Glint’s Bastion (75482)
Bo (69984)
mostly things like Scrapper’s Auric Sharpening Stone -> Herald’s Auric Sharpening Stone

expertise in axe crafting… I think you get this by speaking to a bunch of people. no items. https://wiki.guildwars2.com/wiki/Frostfang_II:_The_Perfected_Axe . would look silly to have “output: EiAC, ingredients: []”
fixed expertise in sword crafting

there were a bunch I was confused by. for example, it came up with a recipe for Princess from these item id’s: 69917, 69851, 70062, 70038, 69944, 70002, 69913, 69846, 69905, 69994, 69959, 69824, 69885, 69973, 69952, 69916, 69877, 70022, 69832, 69949, 69914, 70007, 69820, 69941, 70021, 69957, 70037, 69918, 69938, 69940, 69904, 69899, 69859, 69818, 69998, 69868, 69894, 69815, 70016, 69865, 70049, 70015, 70054, 69956, 69833, 69963, 70024, 70050, 69947, 69860
not one of those are actual items, so I assume there are invisible items the game uses to check if you’ve killed a certain karka, for example.
lots of precursor crafting recipes have similar things to this. I’m just cutting out the ones that aren’t real, which is why this took so long.

(edited by Mystic.5934)

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

I added a lot of ‘Buy’ recipes.
basically went through the wiki and copy/pasted from every merchant I could think of. 1,062 of them.
these all use the currency ids I outlined above:
Coin: -1
Karma: -2
Laurel: -3
Gem: -4
Ascalonian Tear: -5
Shard of Zhaitan: -6
Fractal Relic: -7
Seal of Beetletun: -9
Manifesto of the Moletariate: -10
Deadly Bloom: -11
Symbol of Koda: -12
Flame Legion Charr Carving: -13
Knowledge Crystal: -14
Badge of Honor: -15
Guild Commendation: -16
Transmutation Charge: -18
Airship Part: -19
Ley Line Crystal: -20
Lump of Aurillium: -22
Spirit Shard: -23
Pristine Fractal Relic: -24
Geode: -25
WvW Tournament Claim Ticket: -26
Bandit Crest: -27
Magnetite Shard: -28
Provisioner Token: -29
PvP League Ticket: -30

a lot might be unneeded (there’s like 20 for buying obsidian shards, half are in higher denominations than 1), but I went for completeness instead of what I could possibly think someone might do with it.
I decided to ignore temporary things such as what Charity Corps Seraph is selling. for geode merchants, I went with only tier 6. I also tried to avoid conditional things such as the starter kits and achievement rewards from laurel merchants.
also on this list were some Double Click recipes for turning bulk produce into 25 produce (‘use’ “Tomatoes in Bulk” to recieve 25 “Tomatoes”)
there were a few items that weren’t in the api (near as I could tell), such as ‘Recipe: Embellished Intricate Spinel Jewel’. I looked at nearby items to guess their id (in this case, between the topaz and peridot ones). the names are attached to the recipes, so people shouldn’t have too hard a time figuring out what the output id corresponds to.

If you can think of any I missed, let me know.

It wouldn’t fit on 1 url :P
http://gw2profits.com/json/v2/forge?output_ids=24840,24841,24842,8896,10254,24807,24808,24809,44537,19664,8881,24843,24844,24845,8897,10255,24676,24677,24678,44539,19665,8882,8899,24846,24847,24848,10257,24679,24680,24681,44541,19667,8892,24849,24850,24851,8898,10256,24682,24683,24684,44540,19666,8879,8900,24852,24853,24854,10258,24673,24674,24675,44543,19668,8883,24855,24856,24857,8902,10260,24669,24668,24667,44542,19670,8887,24783,24784,24785,8903,10261,24670,24671,24672,44544,19671,8893,8901,24858,24859,24860,10259,24640,24641,24642,44538,19669,70580,75816,74878,70064,67007,49218,39324,39325,37090,37079,37085,37074,37075,37086,37087,37077,37080,37092,37082,37091,37078,37088,39596,39597,39600,39601,39604,39605,39608,39609,39612,39613,76329,76417,70980,75284,73481,37059,37070,38011,38012,38013,37138,70852,38015,19925,70676,73070,74185,74426,71659,75427,76150,70596,73381,12245,12235,12328,12802,12801,12804,12780,12764,12798,12768,12774,12776,12765,12788,12766,12773,12777,12790,12767,12781,12782,12793,12770,12794,12783,12778,12795,12769,12772,12796,12771,12785,12786,12787,12159,12137,12152,12145,12325,12141,12328,12245,12235,12337,12165,12340,12251,12237,12240,12338,12515,12350,12256,12502,12232,12518,12239,12252,12339,12543,12249,12503,12514,12516,12517,21161,21156,21157,21158,21160,21159,42834,41291,67348,19678,49927,49926,74329,77262,72626,70585,70535,73484,76095,74839,75005,76749,76832,72912,72872,73781,76248,75348,73577,76165,19925,19925,76128,75604,71234,75909,72802,73469,76758,75305,71867,75452,73799,76308,73069,75849,71913,72903,73513,74250,74461,74141,74336,71902,74758,72110,74027,76684,75958,76097,73864,72290,75479,76835,77235,70429,75814,71568,74872,70892,70892,71454,70510,70951,73872,73775,76813,70825,73781,76248,74055,77101,70617,73557,71997,70576,19925,19925,76767,71937,71532,77147,72949,74608,73650,76596,73026,73690,75947,73786,75151,71270,76050,73138,71871,74732,72514,75571,75497,73642,73141,73838,75002,76330,71617,72990,72398,73075,76681,72049,71502,75468,76531,70492,76668,70622,73344,71416,71416,74170,74256,70764,73038,72056,74018,73459,73534,76533,71746,73721,75287,76091,74267,73712,74290,77137,74019,71635,74123,75162,75612,73781,76248,73653,71130,74444,76174,19925,19925,72929,73557,72693,72066,76636,75712,75892,72694,70981,70550,76373,74175,72042,70674
http://gw2profits.com/json/v2/forge?output_ids=77195,74853,73574,74891,71460,75352,71253,76382,76673,73972,73727,74774,73570,72210,72210,71031,72161,76012,74439,74235,73592,75557,71119,70758,72390,75430,75501,72384,73018,74114,73805,73532,70600,71258,74186,73981,71174,77053,76544,74157,73570,71706,76709,20797,20852,20799,20796,20798,20798,46752,69953,71311,19663,9616,9615,9617,9618,9621,9622,9623,9624,9625,9626,9627,9628,9629,9630,9631,9632,9633,9634,9635,9636,75645,75337,76121,70646,73366,73389,74882,75071,50066,50067,50068,43766,77344,77320,77288,77459,77427,77454,77331,77358,77370,77403,77457,77334,77444,77341,77453,77438,77346,77312,77466,77273,77274,77303,77310,77316,77366,77394,77296,77396,77280,77281,77363,77464,77342,77286,77429,77345,77385,77311,64180,64177,64186,64172,64169,64175,64181,64166,64187,64173,64168,64174,64182,64184,64167,64170,64165,64178,64183,64185,64179,64171,64164,64176,77423,77428,77455,77442,77328,77388,77400,77446,77465,77432,77441,77381,77276,77285,77289,77287,77456,77329,77332,74615,39696,39711,39712,39713,39714,39107,39109,39110,39113,39115,39116,39117,39118,39715,42003,42004,39717,39703,39706,39707,39708,39709,39710,39698,39699,39700,39701,39702,41560,41556,42398,42401,39484,39485,39486,39224,39225,39228,39229,39230,39231,39232,39233,39234,39235,39236,39237,39238,39239,39242,39243,39546,39547,39550,39551,39554,39555,39558,39559,39562,39563,42011,42012,42013,42014,42015,42016,42017,42024,42019,42020,42021,42022,42023,42018,42025,42026,42027,42028,42029,68523,67971,67801,67800,68059,68520,68058,67784,68498,67778,67898,67896,67894,67905,67906,67900,67775,67818,68060,67976,68511,67977,68609,68608,67777,67777,67261,66399,74263,67534,67527,67526,67598,67595,19925,19925,9293,66624,66624,66624,66456,66455,66457,66501,66484,66399,66439,66440,66446,66447,66448,66443,66444,66441,66445,66442,66720,66718,66719,66704,66714,66716,66715,66713,66712,66711,66710,66709,66708,66707,66706,66705,66906,66907,66905,66978,66997,66902,23038,23040,23041,23042,23043,23029,23030,23031,22992,22994,22995,23004,23002,23003,23005,23006,23007,23008,23009,23010,22997,23000,23001,9817,9818,9819,9820,9821,9822,9823,9824,9825,9826,9827,9828,9829,9830,9831,9832,9833,9834,9835,9836,9837,9838,9839,9840,9841,9842,9843,9844,9845,9846,9847,9848,9849,9850,9851,71715,74396,49482,49483,49484,49485
http://gw2profits.com/json/v2/forge?output_ids=49486,49487,49488,49489,49490,49491,49492,49493,49494,49495,49496,49497,49498,49499,49500,9852,9853,9854,9855,9856,9857,9858,9859,9860,9861,9862,9863,9864,9865,9866,9868,9869,9870,9871,9872,9867,9873,9874,9875,9876,9877,9878,9879,9880,9881,9882,9883,9884,9885,9886,75543,71358,45198,45201,45209,45213,45216,45212,45205,45207,45208,45211,45215,45217,45199,45200,45202,45203,45204,45206,45210,45214,9887,9888,9889,9890,9891,9892,9893,9894,9895,9896,9897,9898,9899,9900,9901,9902,9903,9904,9905,9906,9907,9908,9909,9910,9911,9912,9913,9914,9915,9916,9917,9918,9919,9920,9921,19704,19750,19924,19792,19789,19794,19793,19791,19790,46747,13010,13006,13007,13008,13009,12156,12157,12151,12158,12153,12155,12324,12136,12271,76839,76839,39101,39103,39104,39125,39107,39109,39110,39113,39115,39116,39117,39118,20323,19925,39108,39112,39114,70250,70237,39111,39119,39120,39121,39122,39123,39124,19517,69647,75284,77598,39264,39265,39304,39268,39269,39306,39270,39271,39307,39272,39273,39308,39274,39275,39309,39276,39277,39310,39278,39279,39311,39282,39283,39313,39566,39567,39586,39570,39571,39587,39574,39575,39588,39578,39579,39589,39582,39583,39590,39331,39333,39330,39332,39340,39617,39338,39619,39620,39335,39324,39325,37090,37079,37085,37074,37075,37086,37087,37077,37080,37092,37082,37091,37078,37088,39596,39597,39600,39601,39604,39605,39608,39609,39612,39613,39224,39225,39228,39229,39230,39231,39232,39233,39234,39235,39236,39237,39238,39239,39242,39243,39546,39547,39550,39551,39554,39555,39558,39559,39562,39563,21160,21158,21157,21161,21156,19431,19432,19433,19434,69878,70023,69841,69841,69841,43320,43418,43358,43359,43360,43361,43362,43363,43346,47909,48740,48715,48807,48806,48805

any ideas what I should work on next?

btw, I made a brief readme on what options are available: http://gw2profits.com/json/

(edited by Mystic.5934)

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

added some more that queicherius compiled:
http://gw2profits.com/json/v2/forge?output_ids=24,73753,75818,77541,77552,71924,71979,72083,72961,73671,76405,77018,72622,68361,75095,77519,73111,77535,74457,73375,77479,77482,77488,77492,77510,76051,73037,75838,75871,71809,75482,77139,69932,73285,68063,73714,74227,74231,76294,71595,74356,71109,74849,74558,76623,71144,74654,74918,69893,70831,72685,74858,70784,70807,38047,73929,76987,75120,74492,73117,71628,73648,72982,74044,69984

an idea occurred. I gave ids to all of these as I made them (negative ids, so they dont conflict with gw2 api recipes). would that be something good to include in the output? would also be searchable. might help for when people only need new ones, for example. yes/no?

(edited by Mystic.5934)

Created a json file for Mystic Forge recipes

in API Development

Posted by: Sariel V.7024

Sariel V.7024

there were a bunch I was confused by. for example, it came up with a recipe for Princess from these item id’s: 69917, 69851, 70062, 70038, 69944, 70002, 69913, 69846, 69905, 69994, 69959, 69824, 69885, 69973, 69952, 69916, 69877, 70022, 69832, 69949, 69914, 70007, 69820, 69941, 70021, 69957, 70037, 69918, 69938, 69940, 69904, 69899, 69859, 69818, 69998, 69868, 69894, 69815, 70016, 69865, 70049, 70015, 70054, 69956, 69833, 69963, 70024, 70050, 69947, 69860
not one of those are actual items, so I assume there are invisible items the game uses to check if you’ve killed a certain karka, for example.

It appears several collection unlocks are assigned to Trophies. Some of these are either consumed immediately or don’t actually enter your inventory, but the behind-the-scenes mechanics has them as an account-bound item, briefly placed in your possession just long enough to process the unlock. The Precursor collections have a ton of these; I’ve been posting them on the wiki for the last couple of months to help get those collections docced.

Edit: Seems you figured that all out already

(edited by Sariel V.7024)

Created a json file for Mystic Forge recipes

in API Development

Posted by: bostrees.5306

bostrees.5306

I’m having issues with getting information from your JSON. Going directly to the links gives me the information I’m looking for, but when I try to access it in JavaScript I get an error with it. I’m using a fetch() to get the information, using the same structure as the fetch()‘s I’m using to get info from the GW2API, but it returns a “Failed to fetch” error. I’m not really sure if that’s due to my usage of fetch() or the way your code is hosted, but I was wondering if you could help me try to troubleshoot things? I’ll post relevant code as needed.

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

:(
the first thing that comes to mind is headers. originally it JUST outputted the text (not even <html><body>…) because whenever I tried to load the page directly into json_decode it returned an error (because it was reading in that html as well). Then, I think it was queicherius, that told me to use ‘Content-Type: application/json’, and that made it work fantastically, so it has that header now.
I can’t help but wonder about that (because you say it works if you view it, but not if you have code try to get it, which is what I was observing).
I’ll try to help, but I’m not exactly a javascript master :P what part is it failing at? connecting? downloading the text? decoding the json? what’s an example url that isn’t working?

Created a json file for Mystic Forge recipes

in API Development

Posted by: bostrees.5306

bostrees.5306

As far as I know, it’s an issue with either connecting or receiving — Chrome tells me “Failed to fetch” as an error.

As an example of one of the calls I’m making that works with the GW2 API:

fetch("https://api.guildwars2.com/v2/items/" + loadLeg.giftofleg).then(function(response) {
		if(response.ok) {
			response.json().then(function(golJSON) {
				document.getElementById("tier2Title").innerHTML = "&lt;h2&gt;" + golJSON.name + "&lt;/h2&gt;";
				
			});
		} else { // response not okay code in here }
	}).catch(function(error) { // error output for debugging });

The “document.getElementById…” line is where I’m actually using a value from the JSON I get from the API. However, if I try using your URLs and try to view the information, I get the “Failed to fetch” error from my debugging code. (I know you don’t control the error message, but I wish it were a little more informational :P)

[EDIT]: Just did some more research on how fetch works, there’s an option to set headers with it so maybe that’s what I’ll need to do
[EDIT]: Also just tested in Firefox, the error it gives me is “NetworkError when attempting to fetch resource.” Still not too descriptive but it’s better than Chrome’s output.

(edited by bostrees.5306)

Created a json file for Mystic Forge recipes

in API Development

Posted by: darthmaim.6017

darthmaim.6017

The response is missing CORS headers (Access-Control-Allow-Origin: *). Otherwise you are not allowed to access the response with javascript from a different domain.

Created a json file for Mystic Forge recipes

in API Development

Posted by: bostrees.5306

bostrees.5306

The response is missing CORS headers (Access-Control-Allow-Origin: *). Otherwise you are not allowed to access the response with javascript from a different domain.

I’ll have to take a look and see how to use this in my code. I’m still relatively new to the current world of JS (the stuff I learned about 16 years ago really only goes so far :P) and it seems like “fetch()” itself is still experimental so there could be issues lurking just with that. Thanks for the input

Created a json file for Mystic Forge recipes

in API Development

Posted by: darthmaim.6017

darthmaim.6017

That’s nothing you can change in your code, the server has to add the Access-Control-Allow-Origin: * header to the response.

Created a json file for Mystic Forge recipes

in API Development

Posted by: bostrees.5306

bostrees.5306

That’s nothing you can change in your code, the server has to add the Access-Control-Allow-Origin: * header to the response.

Ahhh, I misunderstood. Thanks for the clarification

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

I added ‘Header set Access-Control-Allow-Origin “*”’ to the .htaccess
does that help?

Created a json file for Mystic Forge recipes

in API Development

Posted by: bostrees.5306

bostrees.5306

Nope, I’m still having issues with accessing it in this way. Same errors as before. I wonder if there’s some way to send a specific token to you when I’m pulling information that would enable whatever the correct header response is (similar to how you can use a token to pass a player’s API key in the official API)?

Created a json file for Mystic Forge recipes

in API Development

Posted by: darthmaim.6017

darthmaim.6017

I guess you have to post your code, this simple example works:

fetch(‘http://gw2profits.com/json/v2/forge/’)
.then(r => r.json())
.then(j => console.log(j));

Created a json file for Mystic Forge recipes

in API Development

Posted by: bostrees.5306

bostrees.5306

I guess you have to post your code, this simple example works:

fetch(‘http://gw2profits.com/json/v2/forge/’)
.then(r => r.json())
.then(j => console.log(j));

Yeah, if I test just the /forge/ it works as well, but not for any of the specific output_ids. In other words, this works:

fetch("http://gw2profits.com/json/v2/forge/").then(function(response) {
	if (response.ok) {
		response.json().then(function(forge) {
			alert(JSON.stringify(forge));
		});
	} else { alert("response not ok"); }
}).catch(function(error) { alert("error"); });

But this doesn’t:

fetch("http://gw2profits.com/json/v2/forge?output_ids=24").then(function(response) {
	if (response.ok) {
		response.json().then(function(forge) {
			alert(JSON.stringify(forge));
		});
	} else { alert("response not oK"); }
}).catch(function(error) { alert("error"); });

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

But this doesn’t:

fetch("http://gw2profits.com/json/v2/forge?output_ids=24").then(function(response) {
	if (response.ok) {
		response.json().then(function(forge) {
			alert(JSON.stringify(forge));
		});
	} else { alert("response not oK"); }
}).catch(function(error) { alert("error"); });

not sure if it’ll help, but here’s hoping. try this:

fetch("http://gw2profits.com/json/v2/forge/index.php?output_ids=24").then(function(response) {

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

(edited by Mystic.5934)

Created a json file for Mystic Forge recipes

in API Development

Posted by: Mystic.5934

Mystic.5934

I might be evil… I might not be… it makes more sense in the long run: I changed the discipline ‘Buy’ to ‘Merchant’. at least for me, it makes it more clear if buying from merchant vs. TP