Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by Obsdark · Mar 01, 2016 at 08:43 AM · c#monodeveloplibraryqueuepriority

MonoDevelop doesn't recognize Priority_Queue library

I'm following a tutorial of a guy who is using all from scratch, i mean, monodevelop from unity and unity3d just downloaded, no plugins, no nothing else and in the free version.

The Tutorial use the up-to-date version (28-02-2016) of unity and as a consecuence of that of the MonoDevelop included in unity, is in fact taking new episodes as we speak.

The thing is, by some odd reason, my MonoDevelop doesn't recognize Priority_Queue library, and it seems to happend just to me, none of the other guys out there have this problem aparently.

I try re-downloadeing Unity3d, and reinstalling it, doesn't work.

So, the question would be, could somebody tell me how to fix that problem?

Any request for clarification, comment, or constructive question than or answer the question or improve the same, would be much apreciated.

Here is some code added just to know what could possibe be wrong,

 using UnityEngine;
 using System.Collections.Generic;
 using Priority_Queue;
 
 public class Path_AStar {
 
     Queue<Tile> path;
 
     //Tile nextTile;
 
     World world = WorldController.Instance.world;
 
     public Path_AStar(World world, Tile tileStart, Tile tileEnd){
 
         // Check to see if we have valid tile graph.
         if (world.tileGraph == null) {
             world.tileGraph = new Path_TileGraph ();
         }
 
         // A Dictionary of all valid, walkable nodes.
         Dictionary<Tile, Path_Node<Tile>> nodes = world.tileGraph.nodes;
 
         Path_Node<Tile> start = nodes [tileStart];
         Path_Node<Tile> goal = nodes [tileEnd];
 
         // Make sure our start/end tiles are in the list of nodes!
         if (nodes.ContainsKey (tileStart) == false) {
             Debug.LogError ("Path_AStar: the starting tile isn't in the list of nodes");
             return;
         }
         if (nodes.ContainsKey (tileEnd) == false) {
             Debug.LogError ("Path_AStar: the closing tile isn't in the list of nodes");
             return;
         }
 
         // Mostly following this pseudocode:
         // http://en.wikipedia.org/wiki/A* _search_algorithm
 
         List<Path_Node<Tile>> ClosedSet = new List<Path_Node<Tile>> ();
 
     //    List<Path_Node<Tile>> OpenSet = new List<Path_Node<Tile>> ();
     //    OpenSet.Add (start);
 
         SimplePriorityQueue<Path_Node<Tile>> OpenSet = new SimplePriorityQueue<Path_Node<Tile>> ();
         OpenSet.Enqueue ( start, 0);
 
         Dictionary<Path_Node<Tile>, Path_Node<Tile>> Came_From = new Dictionary<Path_Node<Tile>, Path_Node<Tile>> ();


The code continue after that, but it doesn't seem to matter, if is not recognizing the code i can just do very little

Thanks in advance.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

UnityEngine.UI is not working. 2 Answers

Cinemachine (or the unity compiler) broken due to some unknown reason 1 Answer

How do I fix the cs0234 error for probuilder api 1 Answer

How to fix CS0246 error 1 Answer

How to recreate a puzzle like this. 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges