This is at least the 8th time I try to update from the old version 3.2.5.1 we had in Unity 4.2.2 to the new version.
This time, i tried with Unity 4.5.1 and 3.4.0.6, and this time too, it fails.
I’m using the free version of your lib, but I also bought the pro version.
Here’s what I do:
- open project in Unity 4.2.2 and delete all pathfinding files
- save and exit
- commit and push
- open project in Unity 4.5.1 (or 4.3.4 during my earlier attempts)
- import new pathfinding package
- move the AStarPathfindingProject folder from top level to /Pathfinding/
- rescan graph, clear cache, etc.
- save and exit
- commit and push
Then, if a friend of mine tries to pull what I did, he gets error.
So I tried doing this.
10) delete everything
11) pull
12) open project in Unity 4.5.1 (or 4.5.4)
And then I get a load of errors too. Here they are
Here’s the text of 2 errors that are too long to be completely displayed in the image
Assets/Pathfinding/AstarPathfindingProject/Core/Serialization/JsonConverters.cs(3,33): error CS0234: The type or namespace name JsonFx' does not exist in the namespace
Pathfinding.Serialization’. Are you missing an assembly reference?
Assets/Pathfinding/AstarPathfindingProject/Core/Serialization/JsonConverters.cs(97,38): error CS0246: The type or namespace name `JsonConverter’ could not be found. Are you missing a using directive or an assembly reference?
And I still get them when I close and open a second time
Here’s my gitignore file, in case that could be the problem
===============
Unity generated
===============
SheepDefender/Temp/
SheepDefender/Obj/
SheepDefender/UnityGenerated/
SheepDefender/Library/
=====================================
Visual Studio / MonoDevelop generated
=====================================
ExportedObj/
*.booproj
*.csproj
*.pidb
*.suo
*.sln
*.unityproj
*.user
*.userprefs
============
OS generated
============
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db
EDIT: here’s the warning I get when doing step 5) import new pathfinding package
Trying to load data from an older version of the A* Pathfinding Project
Current version: 3.4.0.6 Data version: 3.2.5.1
This is usually fine, it just means you have upgraded to a new version.
However node data (not settings) can get corrupted between versions, so it is recommendedto recalculate any caches (those for faster startup) and resave any files. Even if it seems to load fine, it might cause subtle bugs.
UnityEngine.Debug:LogWarning(Object)
Pathfinding.Serialization.AstarSerializer:OpenDeserialize(Byte[]) (at Assets/Pathfinding/AstarPathfindingProject/Core/Serialization/JsonSerializer.cs:449)
c__AnonStorey2:<>m__2(Boolean) (at Assets/Pathfinding/AstarPathfindingProject/Editor/AstarPathEditor.cs:2277)
AstarPath:ProcessWorkItems(Boolean) (at Assets/Pathfinding/AstarPathfindingProject/Core/AstarPath.cs:796)
AstarPath:PerformBlockingActions(Boolean, Boolean) (at Assets/Pathfinding/AstarPathfindingProject/Core/AstarPath.cs:702)
AstarPath:FlushWorkItems() (at Assets/Pathfinding/AstarPathfindingProject/Core/AstarPath.cs:936)
AstarPath:AddWorkItem(AstarWorkItem) (at Assets/Pathfinding/AstarPathfindingProject/Core/AstarPath.cs:759)
AstarPathEditor:DeserializeGraphs(Byte[]) (at Assets/Pathfinding/AstarPathfindingProject/Editor/AstarPathEditor.cs:2275)
AstarPathEditor:DeserializeGraphs() (at Assets/Pathfinding/AstarPathfindingProject/Editor/AstarPathEditor.cs:2270)
AstarPathEditor:LoadGraphs() (at Assets/Pathfinding/AstarPathfindingProject/Editor/AstarPathEditor.cs:2221)
AstarPathEditor:OnEnable() (at Assets/Pathfinding/AstarPathfindingProject/Editor/AstarPathEditor.cs:223)