Giter Club home page Giter Club logo

sourcepawn-navmesh's Introduction

SourcePawn NavMesh

This is basically a SourceMod plugin that can parse .NAV files and make data out of it that SourceMod plugins can read from. This plugin by itself doesn't do anything other than read data from the .NAV file. Other plugins have to utilize this plugin's features in order for this to have any purpose.

Special thanks goes to Anthony Iacano (pimpinjuice) for the parser code, which can be found here: https://github.com/AnthonyIacono/War3SourceV2/tree/master/Nav

Requirements

  • SourceMod 1.10+

Game Compatibility

Name Supported?
Team Fortress 2 ✔️
Counter-Strike: Global Offensive ✔️
Counter-Strike: Source ✔️
Left 4 Dead 2 ✔️

If your game isn't listed here, there's a slight chance it may still work, just that it's never been tested. You really have to pray to God that the game doesn't append any custom data to the NavMesh and/or its areas (which, realistically, is hardly ever the case). It'll get pretty obvious that it doesn't work if you see the script loading in an infinite amount of areas, or you get a memory overflow, or the script execution just times out... whatever comes first, really.

If your game doesn't natively support .NAV files, can you still use this plugin? Yes.

Want to reverse a .NAV format for a game? Read here.

Current Dev. Goals

  • Move away from using ArrayStack. Transition functions to push to a given ArrayList rather than allocate an ArrayStack.
  • Replace NavMeshArea_* natives with CNavArea methodmap natives.

sourcepawn-navmesh's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sourcepawn-navmesh's Issues

Compiling error

When i try to compile the navmesh.sp I get these errors.

//// navmesh.sp
//
// D:\server\csgo\addons\sourcemod\scripting\include\navmesh.inc(637) : error 017: undefined symbol "TF_NAV_SNIPER_SPOT"
// D:\server\csgo\addons\sourcemod\scripting\include\navmesh.inc(638) : error 021: symbol already defined: "TF_NAV_BLUE_SETUP_GATE"
// D:\server\csgo\addons\sourcemod\scripting\navmesh.sp(380) : warning 203: symbol is never used: "hndl"
// D:\server\csgo\addons\sourcemod\scripting\navmesh.sp(2155) : warning 203: symbol is never used: "iNavSubVersion"
// D:\server\csgo\addons\sourcemod\scripting\navmesh.sp(2217) : warning 203: symbol is never used: "iNavVersion"
// D:\server\csgo\addons\sourcemod\scripting\navmesh.sp(2256) : warning 203: symbol is never used: "iNavVersion"
// D:\server\csgo\addons\sourcemod\scripting\navmesh.sp(2517) : warning 203: symbol is never used: "iNavSubVersion"
// D:\server\csgo\addons\sourcemod\scripting\navmesh.sp(2517) : warning 203: symbol is never used: "iNavVersion"
// D:\server\csgo\addons\sourcemod\scripting\navmesh.sp(2701) : warning 203: symbol is never used: "iTeam"
// D:\server\csgo\addons\sourcemod\scripting\navmesh.sp(2701) : warning 203: symbol is never used: "bAnyZ"
//
// 2 Errors.

Game compatibility

Would it be possible to adapt this plugin for L4D2? I am willing to do the work myself if the .nav encoding was explained to me.

Warm regards
breezy

Error at running the plugin

The navmesh always crashes when loading on me. (CSGO) I have uncommented the line where it prints connection count, and i get the following error:
http://i.imgur.com/oq1WE9X.png
I think it shouldn't be that many connection counts.

It seems like the issue is only in CSGO navs, but not in CSS.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.