1. This forum is obsolete and read-only. Feel free to contact us at support.keenswh.com

build error in vs2017 for using RecastDetour

Discussion in 'Source Code' started by marsxu, Aug 2, 2018.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. marsxu

    marsxu Trainee Engineer

    Messages:
    5
    Error CS0246 The type or namespace name 'RecastDetour' could not be found (are you missing a using directive or an assembly reference?) Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyExternalPathfinding.cs 21 Active
    Error CS0246 The type or namespace name 'RecastDetour' could not be found (are you missing a using directive or an assembly reference?) Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyNavmeshManager.cs 1 Active
    Error CS0246 The type or namespace name 'RecastDetour' could not be found (are you missing a using directive or an assembly reference?) Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyNavmeshManager.cs 1 Active
    Error CS0246 The type or namespace name 'RecastDetour' could not be found (are you missing a using directive or an assembly reference?) Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyRDPathfinding.cs 1 Active
    Error CS0246 The type or namespace name 'MyRecastOptions' could not be found (are you missing a using directive or an assembly reference?) Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyExternalPathfinding.cs 50 Active
    Error CS0246 The type or namespace name 'MyRecastOptions' could not be found (are you missing a using directive or an assembly reference?) Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyNavmeshManager.cs 74 Active
    Error CS0246 The type or namespace name 'MyRecastOptions' could not be found (are you missing a using directive or an assembly reference?) Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyNavmeshManager.cs 119 Active
    Error CS0246 The type or namespace name 'MyRecastOptions' could not be found (are you missing a using directive or an assembly reference?) Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyRDPathfinding.cs 426 Active
    Error CS0246 The type or namespace name 'MyRecastOptions' could not be found (are you missing a using directive or an assembly reference?) Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyExternalPathfinding.cs 432 Active
    Error CS0246 The type or namespace name 'MyRecastOptions' could not be found (are you missing a using directive or an assembly reference?) Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyRDPathfinding.cs 430 Active
    Error CS0246 The type or namespace name 'MyRecastDetourPolygon' could not be found (are you missing a using directive or an assembly reference?) Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyExternalPathfinding.cs 51 Active
    Error CS0246 The type or namespace name 'MyRecastDetourPolygon' could not be found (are you missing a using directive or an assembly reference?) Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyNavmeshManager.cs 91 Active
    Error CS0246 The type or namespace name 'MyRecastDetourPolygon' could not be found (are you missing a using directive or an assembly reference?) Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyNavmeshManager.cs 745 Active
    Error CS0246 The type or namespace name 'MyRecastDetourPolygon' could not be found (are you missing a using directive or an assembly reference?) Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyExternalPathfinding.cs 51 Active
    Error CS0246 The type or namespace name 'MyRecastDetourPolygon' could not be found (are you missing a using directive or an assembly reference?) Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyNavmeshManager.cs 91 Active
    Error CS0246 The type or namespace name 'MyRDWrapper' could not be found (are you missing a using directive or an assembly reference?) Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyExternalPathfinding.cs 60 Active
    Error CS0246 The type or namespace name 'MyRDWrapper' could not be found (are you missing a using directive or an assembly reference?) Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyNavmeshManager.cs 81 Active
    Error CS0246 The type or namespace name 'MyRDWrapper' could not be found (are you missing a using directive or an assembly reference?) Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyExternalPathfinding.cs 456 Active
    Error CS0246 The type or namespace name 'MyRDWrapper' could not be found (are you missing a using directive or an assembly reference?) Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyNavmeshManager.cs 138 Active
    Error CS0246 The type or namespace name 'MyPolyMeshDetail' could not be found (are you missing a using directive or an assembly reference?) Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyExternalPathfinding.cs 52 Active
    Error CS0103 The name 'MyRDWrapper' does not exist in the current context Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyExternalPathfinding.cs 640 Active
    Error CS0103 The name 'MyRDWrapper' does not exist in the current context Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyExternalPathfinding.cs 647 Active
    Error CS0103 The name 'MyRDWrapper' does not exist in the current context Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyNavmeshManager.cs 845 Active
    Error CS0103 The name 'MyRDWrapper' does not exist in the current context Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyNavmeshManager.cs 853 Active
    Error The command ""D:\projects\SpaceEngineers\Sources\SpaceEngineers.ObjectBuilders\..\..\Build\Tools\SGenAutoResolve\SGenAutoResolve_x86.exe" /a:"D:\projects\SpaceEngineers\Sources\SpaceEngineers.ObjectBuilders\bin\x86\Debug\SpaceEngineers.ObjectBuilders.dll" /d:"D:\projects\SpaceEngineers\Sources\SpaceEngineers.ObjectBuilders\bin\x86\Debug\VRage.Game.dll" /b /v" exited with code -532462766. SpaceEngineers.ObjectBuilders
    Error CS0019 Operator '>' cannot be applied to operands of type 'method group' and 'int' Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyNavmeshManager.cs 282 Active
    Error CS0019 Operator '==' cannot be applied to operands of type 'method group' and 'int' Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyExternalPathfinding.cs 817 Active
    Error CS0006 Metadata file 'D:\projects\SpaceEngineers\Sources\VRage.Dedicated\bin\x86\Debug\VRage.Dedicated.dll' could not be found SpaceEngineers.Dedicated D:\projects\SpaceEngineers\Sources\SpaceEngineers.Dedicated\CSC 1 Active
    Error CS0006 Metadata file 'D:\projects\SpaceEngineers\Sources\SpaceEngineers.Game\bin\x86\Debug\SpaceEngineers.Game.dll' could not be found SpaceEngineers D:\projects\SpaceEngineers\Sources\SpaceEngineers\CSC 1 Active
    Error CS0006 Metadata file 'D:\projects\SpaceEngineers\Sources\SpaceEngineers.Game\bin\x86\Debug\SpaceEngineers.Game.dll' could not be found SpaceEngineers.Dedicated D:\projects\SpaceEngineers\Sources\SpaceEngineers.Dedicated\CSC 1 Active
    Error CS0006 Metadata file 'D:\projects\SpaceEngineers\Sources\Sandbox.Game\bin\x86\Debug\Sandbox.Game.dll' could not be found SpaceEngineers.Game D:\projects\SpaceEngineers\Sources\SpaceEngineers.Game\CSC 1 Active
    Error CS0006 Metadata file 'D:\projects\SpaceEngineers\Sources\Sandbox.Game\bin\x86\Debug\Sandbox.Game.dll' could not be found VRage.Dedicated D:\projects\SpaceEngineers\Sources\VRage.Dedicated\CSC 1 Active
    Error CS0006 Metadata file 'D:\projects\SpaceEngineers\Sources\Sandbox.Game\bin\x86\Debug\Sandbox.Game.dll' could not be found SpaceEngineers D:\projects\SpaceEngineers\Sources\SpaceEngineers\CSC 1 Active
    Error CS0006 Metadata file 'D:\projects\SpaceEngineers\Sources\Sandbox.Game\bin\x86\Debug\Sandbox.Game.dll' could not be found SpaceEngineers.Dedicated D:\projects\SpaceEngineers\Sources\SpaceEngineers.Dedicated\CSC 1 Active
    Error CS1579 foreach statement cannot operate on variables of type '?' because '?' does not contain a public instance definition for 'GetEnumerator' Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyExternalPathfinding.cs 825 Active
    Error CS1579 foreach statement cannot operate on variables of type '?' because '?' does not contain a public instance definition for 'GetEnumerator' Sandbox.Game D:\projects\SpaceEngineers\Sources\Sandbox.Game\Game\AI\Pathfinding\MyNavmeshManager.cs 284 Active

    it says missing RecastDetour lib for navmeh navigation, I had used this lib before.
    Do I need to compile dll form https://github.com/recastnavigation/recastnavigation by myself?
     
  2. Geneticus

    Geneticus Senior Engineer

    Messages:
    1,618
    That’s what happens when you build against content that is different from the content corresponding to the source build.. The github source is no longer supported or maintained. There is a post in Marek’s dev blog regarding the end of github and the opening of their internal SVN Repo. It should have a post date of about a year ago.
     
  3. marsxu

    marsxu Trainee Engineer

    Messages:
    5
    hi Geneticus, is there any way to run/test those code in github?
     
  4. marsxu

    marsxu Trainee Engineer

    Messages:
    5
    I cpoy RecastDetourWrapper.dll from last version of Space Engineers, compile error all fixed, I saw SpaceEngineers.exe(size 48kb) compiled in Build dir and run with Release/x86, it says
    System.BadImageFormatException
    HResult=0x8007000B
    Message=“Sandbox.Game, Version=0.1.6788.27153, Culture=neutral, PublicKeyToken=null”
    Source=<Cannot evaluate the exception source>
    StackTrace:
    <Cannot evaluate the exception stack trace>
    May be cause by, RecastDetourWrapper.dll is x64, and source code run by x86 ?
     
  5. marsxu

    marsxu Trainee Engineer

    Messages:
    5
    another reason maybe, I used last version of art/data resources, not fit source code 1 year eaily?
     
  6. marsxu

    marsxu Trainee Engineer

    Messages:
    5
    After some duty work, the game hello start ui show,
    but after that exception with
    System.IO.FileNotFoundException: 'Could not load file or assembly 'SpaceEngineers.ObjectBuilders.XmlSerializers' or one of its dependencies.'

    SGenAutoResolve_x86 still not work...
    Severity Code Description Project File Line Suppression State
    Error The command ""D:\projects\SpaceEngineers\Sources\SpaceEngineers.ObjectBuilders\..\..\Build\Tools\SGenAutoResolve\SGenAutoResolve_x86.exe" /a:"D:\projects\SpaceEngineers\Sources\SpaceEngineers.ObjectBuilders\bin\x86\Release\SpaceEngineers.ObjectBuilders.dll" /d:"D:\projects\SpaceEngineers\Sources\SpaceEngineers.ObjectBuilders\bin\x86\Release\VRage.Game.dll" /b /v" exited with code -532462766. SpaceEngineers.ObjectBuilders
     
  7. Geneticus

    Geneticus Senior Engineer

    Messages:
    1,618
    Yes. First you need to use the assets from the release version of the game from this exact patch, meaning a version with hot fixes won't work. you need the specific content from the specific version.
     
Thread Status:
This last post in this thread was made more than 31 days old.