+1 here.
Guys, hold on as Anet is working on the issue.
@ Samuirai, the data you gathered there is very impressive, indeed! I was planning on doing something like it once I managed gold enough BUT my sells on TP have been slow, so I’m not getting that money.
You presented the data terrifically, congratulations for that too! May I ask your current profession, if you have one?
I would like to ask you how you managed to amass that huge amount of gold, if you be so kind to give some tips.
Also I would like to ask your in game nick so I could send you a nice present for your effort and contribution to the community. If you do not want to post it here, feel free to message me in game, my nick is in my signature (which happens to be the same of my forum name).
Once again, I salute you for your achievement and hope you best luck on your next projects. Keep that way and you’re going far, my friend!
I spent some time working with http://msdn.microsoft.com/en-us/library/windows/desktop/aa385473%28v=vs.85%29.aspx and http://www.cplusplus.com/doc/tutorial/files/ so now I understand a little bit better how things are working, although the 1 byte read/write still confusing I shall leave like that since they’re small images and I’m not really concerned about performance at this point.
Thank you for the directions and the references, they will be valuable sources of knowledge. Casablanca looks nice to work with, but I plan using it to remake the program once I finish it, so I can clearly see the differences between them.
This is the final version of the program downloading one image and saving it in my computer for further use.
// Created by Wolf Fivousix – 2013.
// Special thanks to sorenrye.7238 and Heimdall.4510.
// This proram will go to GW2render and get the image saving it in my computer.
// Don`t forget to put -lwininet in the Parameter > Linker for the Windows library.
#include<iostream>
#include<wininet.h>
#include<fstream>
using namespace std;
int Request(char IMAGE_WEBSITE[]);
int main (void)
{
// Link of the image to be downloaded.
char render_image_link4096=“https://render.guildwars2.com/file/02EFB1C5E11B2FF4B4AC25A84E2302D244C82AA3/66958.png”;
Request(render_image_link);
// Open the downloaded file.
system(“Image.png”);
}
int Request(char IMAGE_WEBSITE[])
{
// Initializes an application’s use of the WinINet functions. (Creates the handleE for the function to work.)
HINTERNET link_open = InternetOpen(IMAGE_WEBSITE,INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0);
// Checks if InternetOpen() got a correct handle.
if(!link_open)
{
cout<<“InternetOpen() problem.”;
}
// Opens a resource specified by a complete FTP or HTTP URL.
HINTERNET open_url = InternetOpenUrl(link_open,IMAGE_WEBSITE, NULL, 0, INTERNET_FLAG_SECURE, 0);
// Checks for errors of InternetOpenUrl().
if(!open_url)
{
DWORD ErrorNum = GetLastError();
cout<<"Failed to open URL \nError No: “<<ErrorNum;
InternetCloseHandle(link_open);
}
// Open the file for output through binary.
ofstream IMAGE (”Image.png", ios::out|ios::binary);
char Data_Received;
DWORD NumberOfBytesRead;
// Write on the file.
while(InternetReadFile(open_url, &Data_Received, 1, &NumberOfBytesRead))
{
if (NumberOfBytesRead != 1)
break;
IMAGE.write((char*)&Data_Received, sizeof(char));
}
// Closes the file.
IMAGE.close();
// Closes the handle.
InternetCloseHandle(open_url);
InternetCloseHandle(link_open);
}
Now I’ll play around a little bit and learn how to display images using Borland Graphic Interface before coming back to make the API interact with the Black Lion Trading Company. I saw an extensive post about making API work with the BLTC and I’ve got a lot of reading and testing to go through before asking another question.
I would like to thank you once more for the invaluable help offered.
See you all in a couple of weeks (hopefully with a screen shot of something more visual).
(edited by Wolf Fivousix.4319)
Thank you Sorenrye and Heimdall, I managed to make both codes work, but I still can’t see how I’d got into this stuff even playing around with the functions. I’m sure that’s a lot I still need to learn to dig through this codes and really understand them.
About the inline functions, I don’t see where I use them, but I suppose they’re inside the WinInet code, which is something I don’t fully understand but I’m going through until I have more knowledge to fix them.
C++ REST SDK (codename “Casablanca”) seems really nice, but for the sake of continuity I’ll keep using WinINet for this API, thank you for the tip though, I’ll study it further in the road, once I understand more about all of this.
I’ll be using the Heimdall code as a base since I can understand it more than the exemple in stackoverflow. I want to play around a little bit with this code before going further, hopefully I’ll manage to learn more once I break and fix it.
As soon as I get something concrete I’ll come back to let you know.
Thank you very much.
What about not hitting those HUGE bosses because the hit box is wrong AT THEIR FEET and then having that little extra dmg over =S.
I do use RtL to run other than engage, because 50% of the times it fails to hit and goes full 40s cd ….
Heimdall, I have been struggling to make the download of the image. By my researches I can use the WinInet function InternetReadFile to download the file. Do you have any direction that I could use?
Heimdall, I tried to figure out your JSON parser, but that’s too advanced for me, can’t find a way to integrate that in my program =( . As I learn more about C++ and programming I will go back to it.
I solved the problem in my program, so I could dump the 49.102 current item list in a txt file so I can start playing around with different kind of itens.
Any idea of what I could do next? I saw a topic about the Trading Post but I want play a round a little more before going to that, since I know I’ll need a session key and that will probably get complicated.
I was thinking about creating a non MS-DOS window to show information (maybe I can play with some events info). I know some BGI graphics and will be trying to use it to display images taken from the server. Anyone know how I can make my program download a png or jpg in the item ID link, like this one: https://render.guildwars2.com/file/02EFB1C5E11B2FF4B4AC25A84E2302D244C82AA3/66958.png ?
Thank you.
No long dungeons, for that we already have Arah and others. I like the length of the Halloween. Been able to complete it yourself is a great thing (as sometimes it’s not easy to find people willing to do a living story if there’s no big reward for it).
I miss that cinematic that we had in Dragon Bash involving Marjory Delaqua, could we have more of that?
I’m crowded with skins for PvE, can you guys give us a skin holder like the PvP one?
Bring the Random Arena back, I know I can just wonder around and kill players in a “Capture and Hold” type of game, but it’s not the same thing as 2 teams fighting to death (like sudden death). That was just plain fun (and now that there’s no healer, it would be like the good old times!)
Alliance Battles were great too, even though that would be a larger version of the current PvP, I’m sure it would be fun.
Also something new involving what we already have in the game, like the Gladiators Arena (which would kind of be RA, but 1×1) or inter racial wars, like Human Vs Charr (oh, that would be plain fun) – maybe a “Super Historical War Box” ?
Thank you Anen, I’ll be looking at JSON parser to see what I find, any recommendation of one I could use with C++ ?
I added 1s delay to the multiple request code but it still closing at the same spot, any clue about what it could be?
Have been playing with it a while and my program that requests and filters the answer for giving me a name of a specific item is working beautifully. Attached if anyone want’s to see how it ended up.
// Created by Wolf Fivousix – 2013.
// Special thanks to Heimdal.4510, Killer Rhino.6794 and smiley.1438
// Don`t forget to put -lwininet in the Parameter > Linker for the Windows library.
#include<iostream>
#include<wininet.h>
using namespace std;
int Request();
char Website4096=“https://api.guildwars2.com/v1/item_details.json?item_id=”;
int main (void)
{
cout<<“20523 for a Dye item.\n”;
cout<< "Item ID: ";
char itemid6;
gets (itemid);
cout<<endl;
strncat (Website, itemid, 6);
Request();
cout<< endl << “———————————————————————————————————————-\n”;
system(“PAUSE”);
}
int Request()
{
HINTERNET connect = InternetOpen(“MyBrowser”,INTERNET_OPEN_TYPE_PRECONFIG,NULL, NULL, 0);
if(!connect){
cout<<“Connection Failed or Syntax error”;
return 0;
}
HINTERNET OpenAddress = InternetOpenUrl(connect,Website, NULL, 0, INTERNET_FLAG_PRAGMA_NOCACHE|INTERNET_FLAG_KEEP_CONNECTION, 0);
if ( !OpenAddress )
{
DWORD ErrorNum = GetLastError();
cout<<"Failed to open URL \nError No: "<<ErrorNum;
InternetCloseHandle(connect);
return 0;
}
char DataReceived4096;
DWORD NumberOfBytesRead = 0;
while(InternetReadFile(OpenAddress, DataReceived, 4096, &NumberOfBytesRead) && NumberOfBytesRead )
{
int i;
for (i=0; i <4096; i++)
{
if (DataReceived[i] == ‘n’)
{
if (DataReceived[i+1] == ‘a’)
{
if (DataReceived[i+2] == ‘m’)
{
if (DataReceived[i+3] == ‘e’)
{
cout << "Name of the Item: “;
i = i+7; // Skipping to the name of the item.
break;
}
}
}
}
}
while (DataReceived[i] != ’”’ )
{
cout << DataReceived[i];
i++;
}
}
InternetCloseHandle(OpenAddress);
InternetCloseHandle(connect);
}
Now I moved a little bit further and tried to show the names of all item going from 1 to 99999, so I could “mine” the server for the names and their ID’s, BUT my program keeps closing after some requests (arond 66). So I assume the server would be dropping my connection for too many requests?
Does anyone know if there’s a limit for the number of requests that can be done for the server?
Going to the next step I would like to retrieve the image of an item. I know how to construct the link for it and with some modifications on my code I can get it to request that image, but how can I display a .PNG image in my program? I assume I can’t do that using the command prompt window, so what should I do?
(edited by Wolf Fivousix.4319)
Ok, I got both WinINet working and Winsock kind of working. I’ll be following with the one that woks while studying more about winsock.
Now I can make requests to the server and I get the text answer. I’ll play a little bit with what I have and try to filter an item name or something.
I’ll be back as soon as I get something more elaborated.
Thank you very much Killer, I’m still working on the WinINet but I’ll definitely check your link, seems amazing!
Thank you guys, I’ll be studying that and as soon as I get something working with it I’ll come back!
Yes, Heimdall, I’m conding in a windows machine, using Dev C++ by Bloodshed.
Thank you for your fast and thoroughly response. I spent a lot of time in the API wiki page and thanks to your explanation I realized how to use the render service to provide me the image for a specific item using the item and item_details JSON files, like: https://render.guildwars2.com/file/6F596AB3743DC27A1C7329BF4450A37654914607/339955.png
I believe I could try to do something as simple as that to start with, a program that shows me the picture of an item, or just it’s name.
My problem now is how to make my own program talk with GW2API servers. I had been looking into Heimdall’s code and that’s way beyond me so I got lost, but I don’t think I need to get that far for just getting a picture or an ID from the server. I know some Python but I rather use C++ to get things done, so I can improve my skills in the way.
Thank you.
Hello everyone, after reading about the API’s and seeing what they’re able to do I would like to make something of my own. Unfortunately I don’t have a clue how to start it and would like some directions.
I’m a beginner programmer in C++, but I’m sure I can work my way to whatever I need to learn.
How can I start something very simple, like seeing the value of an item in the trading post, or looking if an event is up, or anything as simple as that – if there is.
Any help is welcome, thank you.
Yea, having a weapon swap for out of combat situations would make everything so much better!
THEN you could use some staff skills to properly buff your party before combat or something without having to hunt for your own weapons in the inventory screen or something.
OR you could run out of combat and then swap quickly to turn the battle in your favor (like having a S/F or D/D in the swap)…. It would definitely open new game situations not explored yet. Just to not be unfair they could do it with all classes, like a “second swap set”
What I could use is some Traits/Armor setup’s!! That’s something even better! So annoying to change all your trait slots just for cooping with your team. In fact, we could use some Templates like we had in Guild Wars 1 PvP, that would be great! Just a couple of clicks and BUM! Armor, weapons and everything set, ready to go, instead of getting ready to have fun…
Thank you guys, they definitely fixed that, not to the point of loosing the stacks when you change weapon, but the new weapon (with other kind of stack sigil) doesn’t stack up.
Seems like a stealth path though, because I wasn’t able to find any mention to it in the path notes or even in wiki.
I suppose that you could stack up a sigil and then change for something that doesnt stack, like a crit hit activation sigil, but too much trouble for me to try it out.
Once again, thank you guys! Good game.
Hey guys, does anyone know when (and if) they removed that thing of after building up a sigil (like sigil of bloodlust) you could change for another one and built it too?
Thank you.
Hey guys, Twilight Assault is amazing, have some great mechanics and is very pretty, BUT please, don’t make it in such a way it can take up to 4 hours to complete it (and that ONLY if no one rage quits and breaks the party)…. I don’t think it’s difficult, but small things like making the oozes green (so you could heal them) would make it a little bit better (and provide an alternative way to complete it if the party is having trouble in fully running it).
I play GW2 since lunch and still trying to find courage to face Arah’s long paths…. I’m no high school student that can spend 6~8 hours playing all day long. Please, take that into consideration for following content (Queen Gauntlet was near perfect, challenging and fast).
Hi everyone, I’m a game programmer student currently studying in San Francisco and I dream to work at ArenaNet, this ground breaking company that built such an amazing and enjoyable game. For that I would like to ask for your help. My questions are meant for ArenaNet employees and experienced programmers in the field, but feel free to participate and/or add any questions that you might find relevant.
Looking at the hiring positions for ArenaNet I see you guys ask for “Demonstrable experience with C++”. What, in your opinion, would reflect that? How can I know I have ‘that experience’ to demonstrate?
I suppose this test could be usefull, but I can’t make the link work – http://istest.co/ArenaNet – let me know if you can run it.
Also, the ArenaNet Programming Internship have some bonuses, like:
Writing memory-efficient algorithms
Working with networking APIs
Writing file streaming system
Porting code
Would anyone happen to have something that I could start with in this subjects? Maybe a book or a website link?
If you’re interested in knowing more about what I’m talking about, take a look at this website – http://www.arena.net/ – and scroll all the way down for “Careers”.
Thank you all for your time and help.
See you all in game!
(edited by Wolf Fivousix.4319)
Hmmmmm hey, guys, why removing Boss Week so fast?
Please bring it back for 2 more weeks! Some of us take the whole month to go through all the stuff in the living =(((
I think it was a mistake indeed, it has been patched =( … And I thought it come to stay =((((
But well, I suppose that could bring some consequences to leveling up characters really easly….
Wrong guess my friend.
Go to any crafting other then Weaponsmith, Huntsman, and Artificer and craft an exotic item, which would give you experience if you could increase your level. Then you’ll see your experience bar rising from the craft as if you could upgrade your crafting profession.
Hey guys, I realized that after this update crafting stuff even when your crafting Lv is 400 started giving you experience. Was this intended? Because I liked the change! Thank you ^^.
I get that rarely too….. has been like a month or so since the last time.
@Zoidy, yes, you can logout and comeback to the game even being the leader/creator of the instance, you should just be carefull to not login with another character, since that’s what make the instance reset.
I’m very found of the Token system for the regular dungeons. A shame they didn’t used the same system for this great rewards!
Something like the SAB would be nice too: Token for acc bounded item, rare drop for selling. Those with the cash would be happy to by them, those with the time would be willing to make the dungeon knowing that they’ll get their reward even if they don’t drop it.
Personaly I would love the Jetpack for my Charr, but I don’t have the time (or even the guts) to farm the dungeon endlessly or the resourses to buy it, as I’m a casual player.
So I shall stick with my regular back and, maybe one day, the price will come down and I will be able to buy it.
… I like Southson and this would give the island a real boost.
I like Southsun Cove verymuch too, those special and hard Karka are realy a challenge for people like me that likes to mob (maybe too much Ragnarök in my early days of MMO), but I do feel that SC lacks events and stuff like other maps, If they realy go for it, it would be great!
…They could easily wall of a section of the island that would be protected against the Karka.
Or maybe it would not!! Which would be great too =D
I’m from a small guild (overal 10 members online in peak hours) of casual players (which means that most have a regular degree of skill inside the game) and I’ve gotta say for all of us: We’re struggling realy hard to make those Guild Bounties! We certanily do not want to join a big guild just to make them, we want to make them on our own, but even with 10 players (and usualy 2~3 players around) those Guild Bounties are hard to be done! I KNOW they’re supposed to be a challenge and stuff (indeed it was to make those 30k IP), but don’t you guys think it’s kind of out of scale? I see BIG guilds doing them with no problem, but I don’t see small ones doing it (like ours). After 3 attepts, long runs searching for the mob in the map (which is kind of cool in one hand, but kind of annoying in other hand) and lot’s of repairs made, guys are starting to get demoralized by it.
Bottom line: Please, take a look at the scaling of those events.
I do agree. And there’re even those infusion upgrades that can me made with TWO HUNDRED AND FIFTY OF THEM…. I don’t have even 1, how are we supposed to get 250 without …… well, you got the idea.
Maybe… I have 1 hint missing and 80/83 in the achievement o.O … never even bothered going after it because of that.
Incinerator
Have everything except the Precursor (Spark) and the T6 materials (1/3 so far).
I’ve asked my friends and they have the same problem. Why holding Ctrl and pressing Q to walk doesnt work, but ctrl + W/E/A/S/D works just fine?
I looked at the key bidings, nothing assigned to Ctrl+Q
@Slim, you forgot the quickness bubble ^^
Now it has been splashed in two skills. First a 2s imobilze (AND a combo projectile finisher), and then you can press Earth 3 again to make the regular leap and get your leap finisher.
I liked it pretty much! I’ve been able to freeze an enemy inside AoE’s and then leap at him. Just wondering why there was no mention to it in the update notes….
Something that I’m REALY looking foward is for a boss (maybe in FotM it’s more viable) like the Sorrow’s Furnace…. I mean Sorrow’s Embrace Story Mode final boss! BIG foe, no regular skills could hurt him, amazing flame beans and stuff! That was one of the most memorable fights I’ve had, even he not being dificult, just fun!
If it was 1% I think I would be happy….
@Ascii, how often would you say that you can get a lodestone?
@Daphoenix. You dam sure it’s preety easy to dodge, but they keep falling at it! It’s so funny HAHAHAHAHHA
Talking about dungeon fails, what about a dude CCing the boss 0,0001s before your Deep Freeze hit the boss…. And then another dude takes your Ice Bow from the ground just to drop it because it was not loot (even that you have placed it away from the heat zone) >.< …..
Great discussion we’re having here! Keep going guys.
Here’s a nice tip for WvW killing: Use Earth 2 to distract your enemy > Earth 5 to lock him > Air 5 to make him go crazy > drop fire skills. This is also usefull when he missteped inside one of your Meteor Shower recently droped =P.
PS: Anet NEVER said that they were going to nerf AoE, they said that they were looking at it.
@paleeshi. Take a look at the discussion I made one or two pages before this one. There are even a Mesmer guide link where you can find a lot about it. Personaly after reading through all that stuff and playing a mesmer myself I realy got better at killing them. I would dare to say that the key to defeat them easly is to just know what they’re going to do, and in that case you HAVE to at least see some of them playing. Once you get it, you can properly break their chain by Dodging/Dazing (Air 3)/Cantriping (easiest way, but still cost you a cantrip).
(edited by Wolf Fivousix.4319)
Very nice man!! Hahha Allons-y !!
Minion, did you used the 1 mystic clover recipe?
190 tries, very good! I certainly would apreciate those 45 spare ectos and mystic coins! hehehe. And 1 Destroyer Lodestone isn’t that much anyway, like 3~5 ectos depending of the market.
But Gz for you too ^^. Now I have to get my precursor =P.
That’s a big price Malediktus, did you have any record of the things you threw in the Mystic Forge? Or just random stuff?
Maybe, but I don’t have a spare motherboard to test it =S.
Unfortunately it didn’t worked =S. But definitely improved the ratio in which the game crashes. Sometimes I’ve got to play 1h straight without it happening ^^.
Any other idea that I could use?
Congratulations mate! Just one question: How did you get your precussor?