Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Dvorak Telemnar
Griffin Capsuleers Ad-Astra
3
|
Posted - 2013.03.24 22:21:00 -
[1] - Quote
Hi
I am trying to teach myself PHP & XML as I go and have beating myself against a problem for a few days. I would like to build a basic Skill tree page, similar to the eveMon BB code output option, and am really struggling.
My php skills are rudimentary and most of what I have cobbled together is based on forum posts, wiki.eve-id.net and reading.
My logic is to build an array of all the skill groups (I could hard code but I prefer to have it automatically handle changes) and an array of all the skills with their group so I can use these arrays to populate the /char/CharacterSheet.xml.aspx skill tree for output.
I have figured out displaying the raw skill tree but building the 2 arrays is turning into a head ache. I can build the groupname array but the entries are duplicated for each skill in the /eve/SkillTree.xml.aspx XML (IE result->rowset->row groupName & groupID but I want it to ignore the rest of the particular entry)
The second array is a similar problem. I want the unique Skillname with its attributes ( typeName, groupID & typeID from result->rowset->row->rowset->row and ignore the skill dependencies data). It will depend on the group name array to change the groupID to human readable groupName.
I have not yet figured out how to reference/merge the array data when I build the character skills nor how to sort the out of the arrays into groups and then alphabetically. I would appreciate some guidance here too as this is my next step.
This is what I have managed thus far and would appreciate any assistance, tips, tricks or guidance:
API SkillTree PHP
PS: Any reliable public API proxies available (or code to run my own)? |
Tonto Auri
Vhero' Multipurpose Corp
35
|
Posted - 2013.03.24 23:01:00 -
[2] - Quote
Regarding API proxies, you can save the relevant file to disk and pull it into your program, instead of pestering API call. The code.... is mostly fine. Though, I recommend to begin using templates sooner, rather than later. |
Dvorak Telemnar
Griffin Capsuleers Ad-Astra
3
|
Posted - 2013.03.25 07:21:00 -
[3] - Quote
Tonto Auri wrote:Regarding API proxies, you can save the relevant file to disk and pull it into your program, instead of pestering API call. The code.... is mostly fine. Though, I recommend to begin using templates sooner, rather than later. Thank you. I was thinking of using a weekly crontab to create my own local XML file based on the two arrays; on my todo list but lots to learn first.
How do I go about ensuring that the array content is unique? Instead of having a groupName and groupID pair for each skill just a have a group array with each group pair entry once and then the same for the master skilltree array?
|
Tonto Auri
Vhero' Multipurpose Corp
36
|
Posted - 2013.03.25 09:38:00 -
[4] - Quote
I would really-realy recommend starting to use SDE. You'll need it anyway, if you continue to work in the API area. Then PHEAL coming to mind. |
Dvorak Telemnar
Griffin Capsuleers Ad-Astra
3
|
Posted - 2013.03.25 09:53:00 -
[5] - Quote
Tonto Auri wrote:I would really-realy recommend starting to use SDE. You'll need it anyway, if you continue to work in the API area. Then PHEAL coming to mind. I have downloaded Pheal and will start reading the "Phealing back Pheal" article this evening when I get home and am intending to go that way when my little project gets to a point where I understand what I am doing.
What I am wanting to do with going for it by hand is to learn how the arrays and API interact so I can build a more robust final solution and also improve my PhP skills. I am just stubborn that way - I like to know how a thing works. It also helps with trouble shooting and architecture of my code. I am a Principle Unix Engineer and do alot of shell scripting etc as part of my work (which I love) so am used to doing things the hard way :)
If I can figure out what I am doing wrong I can move forward. |
Tonto Auri
Vhero' Multipurpose Corp
36
|
Posted - 2013.03.25 10:17:00 -
[6] - Quote
1. PHP if a reverse acronym (Hypertext Pre-Processor) 2. Arrays are... arrays. If you have any experience with arrays in other languages, you know them all. 3. Get yourself a CHM version of PHP help (the one with users' comments preferred) It degraded in the past years, unfortunately, still somewhat useful. and good to provide a quick reference on your fingertips. Assuming your coding environment supports context help. |
ItsmeHcK1
Kicked. Shadow Cartel
66
|
Posted - 2013.03.26 16:48:00 -
[7] - Quote
The SkillTree API is horrible. I tried working with it, but really, it's just horrible. Easiest solution to a human-readable tree I found was to just steal the files from EVEMon. (Sorry Desmont!) If you go to (EVEMon folder)/Resources, you'll find a gzipped version of their skilltree XML. It's awesome. Using that file will eliminate most of your problems. |
Dimitrie
Free-Space-Ranger Nulli Secunda
2
|
Posted - 2013.03.28 02:44:00 -
[8] - Quote
skilltree php edit
hope it help a little |
Dvorak Telemnar
Griffin Capsuleers Ad-Astra
3
|
Posted - 2013.03.28 11:20:00 -
[9] - Quote
Excellent! Thank you. |
Peter Powers
Terrorists of Dimensions Free 2 Play
133
|
Posted - 2013.03.28 11:27:00 -
[10] - Quote
Dvorak Telemnar wrote: I have downloaded Pheal and will start reading the "Phealing back Pheal" article this evening when I get home and am intending to go that way when my little project gets to a point where I understand what I am doing.
Hi, could you link that article please?
also, if you go for Pheal, i'd recommend to use PhealNG for future projects.
regards, PP
3rdPartyEve.net - your catalogue for 3rd party applications |
|
Dvorak Telemnar
Griffin Capsuleers Ad-Astra
3
|
Posted - 2013.03.31 09:12:00 -
[11] - Quote
Peter Powers wrote:Hi, could you link that article please?
also, if you go for Pheal, i'd recommend to use PhealNG for future projects.
regards, PP
Peeling Yapeal
|
Peter Powers
Terrorists of Dimensions Free 2 Play
133
|
Posted - 2013.04.02 08:03:00 -
[12] - Quote
i'm confused, i see an blog which hasn't been updated in ages there, that is about yapeal, but no article by the name you mentioned.. 3rdPartyEve.net - your catalogue for 3rd party applications |
Dvorak Telemnar
Griffin Capsuleers Ad-Astra
3
|
Posted - 2013.04.02 15:12:00 -
[13] - Quote
That is unfortunately all I have for now.
I am still coding this beast by hand in VI in order to teach myself the internal workings of PhP, XML and data manipulation and once I am happy I understand enough I will start looking at interfaces like yapeal. My biggest concern is that these type of things go dormant from time to time resulting in me having to start from scratch each time I change the interface so coding by hand is harder and more cumbersome but may be a better solution for me long term but only time will tell there.
I have been making progress slowly and will hopefully have a semi-working alpha version tool sometime in the next lifetime :) |
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |