Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Vistilantus
Caldari You're Doing It Wrong
|
Posted - 2008.11.26 15:55:00 -
[1]
hey all.
Currently developing a c# API tool in an effort to learn c# (and i thought EvE had a steep learning curve back in '04 )
Anyways. all is going well so far but i was just wanting to ask some advice on what the best way to convert things like skillID's to the actual skills. I downloaded the /eve/SkillTree.xml.aspx (converted to xml) file and have a nice XML file listing everything and i have a "skill in training" sheet that lists all the data gained from "/char/SkillInTraining.xml.aspx" so my question is, how do i get the part which says "<trainingTypeID>3350</trainingTypeID>" to display "Siege Warfare" ?
I know there are libraries and other tools out there that does everything for you, but i would like to develop this project using my own code as much as possible so i can learn as i go.
Any help is much appreciated,
Thank you. ___________________________________________________ ~Vistilantus |
Dragonaire
Caldari Corax.
|
Posted - 2008.11.26 16:13:00 -
[2]
To do the numbers to names conversion you need to use the static data dump which you can find links to the original from CCP and several conversions for other databases at Eve-Dev
Personally one of the best ways I've found to learn any new language is to look at and try to modify or add to some else's code that already knows the language and has figured out how to make something work but re-inventing the wheel seems to be the most popular thing for people to do with the API so don't let me slow you down -- Finds camping stations from the inside much easier. Been known to write some PHP code for API from time to time too. |
Vistilantus
Caldari You're Doing It Wrong
|
Posted - 2008.11.26 16:32:00 -
[3]
I`m not planning on having mysql or mssql installed as part of my project so as long as i can use the dumps without them, fair enough. There must be a way to do it using the XML files aswell though?
If you can learn a language by taking existing code, adding to it and modifying it, fair play. I prefer to do it one way, analyse how i can make it better, modify it, break it, fix it and, eventually, maybe get it right. I tend to find that copy-paste-modify coding is one of the hardest ways, personally, to learn.
Thank's for the input though. ___________________________________________________ ~Vistilantus |
Dragonaire
Caldari Corax.
|
Posted - 2008.11.26 17:05:00 -
[4]
Only place you can get the data for the conversion is from the static data that's why they make it available so you'll either have to have your own way of mapping in an array or something which is basically what you are doing with DB query or you get to learn that typeID 34 is Velspar etc. and you become the database I would have tried the same thing a few years ago before I came to understand how useful a DB can be when you're working with the raw output from several another DBs which is really what we're doing in all this API stuff.
Fair enough on the learning part everyone has to learn in the way that seems to work best for them. I've just always found starting with a blank page much harder than changing and adding to something that's already there. It's something like writer's block I think from hearing them talk about it. That first page is always the hardest to write for books, etc. and it's the same for me with code. -- Finds camping stations from the inside much easier. Been known to write some PHP code for API from time to time too. |
Vessper
Indicium Technologies
|
Posted - 2008.11.26 19:14:00 -
[5]
Edited by: Vessper on 26/11/2008 19:16:02 If you've downloaded the eve/SkillTree.xml.aspx then you should have everything you need to convert the skill IDs into names. Just parse the SkillTree XML file and keep a list of which ID goes with which name, then when you need to convert the ID, just use your list.
Edit: You may want to consider using the System.XML.XMLDocument class
- - -
EveHQ Character App | Item Database |
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |