Advertisement

04.10.2008 at 06:46AM PDT, ID: 23311647
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

Concept viability and potential code for displaying hierarchical DataBase Dat on a web page

Asked by Sudonim in WebApplications, Game Programming, Web Images

Tags: , , ,

My little web game has a large list of buildings that you can build, the completion of which allows you to start building new buildings...

the data base of buildings attributes holds amongst other things a record showing building A allows building B...

e.g. Building a textile mill allows you to build the shipyard or the water wheel...

the data is not linear though...for example, the waterwheel requires textile mill and engineering school..

attached is a jpg "build tree" which was done by one of the players, and i have subsequently updated.. however i have been talking to some colleagues and one mentioned it would be really cool to have the game draw the "build tree" showing different colours for which buildings you have completed, which are available to you to build.

I have been wrestling with tthe ide for a few months on and off, and i cannot think of a good way to display the data, nor a good way to iterate through the 141 records which denote the links between buildings....

here is a simplified sample set:
                  
Building      Effect      value      filter
Yard      buildallow      Quarry      1
 Yard      buildallow      School      1
Quarry      buildallow      Mine      2
School      buildallow      Barracks      2
Mine      buildallow      Blacksmith      3
Blacksmith      buildallow      Armoury      4
Armoury      buildallow      Armourer's Guild      5
Barracks      buildallow      Fighter's Guild      5
Armourer's Guild      buildallow      Archery Range      6
Fighter's Guild      buildallow      Ranger Guild      6
Archery Range      buildallow      Ranger Guild      7

so linearly - yard -> quarry -> mine -> blacksmith -> Armoury -> Armourer's Guild - Archery Range -> Rangers Guild
but rangers guild also required fighters guild:
Yard -> school -> barracks -.Figher's Guild -> Rangers Guild....

i'd like function where an on mouseover "ranger's guild" would show it requires "archery range " and "fighters guild", which i can do, as it is currently done on the text page about the building.. but to make a graphical map of all the buildings, showing how they link together, is beyond me..

has anyone got any idea's which will help me?
Start Free Trial
Attachments:
 
a picture of the "buildings tree"
a picture of the "buildings tree"
 
 
Keywords: Concept viability and potential code for …
 
Loading Advertisement...
 
[+][-]04.10.2008 at 06:56AM PDT, ID: 21324769

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.10.2008 at 08:51AM PDT, ID: 21326135

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: WebApplications, Game Programming, Web Images
Tags: HTML, HTML, Firefox / Opera / IE, http://www.chaoticage.co.uk/images/AoCbuildtree2.jpg
Sign Up Now!
Solution Provided By: RaulDias
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.11.2008 at 12:39AM PDT, ID: 21331976

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628