This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[Code] Parsing NAV Files


Post New Thread Reply   
 
Thread Tools Display Modes
pcmaster
AlliedModders Donor
Join Date: Sep 2009
Old 04-16-2013 , 15:55   Re: [Code] Parsing NAV Files
Reply With Quote #21

Seems like C++ doesn't like me or something, if I paste this:

INavMeshParser: INavMeshLoader *p = new NavMeshParser(&error);
p->Load();

I get an Error saying that it can't find "NavMeshParser", whereas I already included "INavMeshLoader.h" and also the non-interface one ("NavMeshLoader.h"), still saying it doesn't exist.
What can I do?
__________________
Stopped hosting servers as of November 2018, no longer active around here.
pcmaster is offline
API
Veteran Member
Join Date: May 2006
Old 04-17-2013 , 00:18   Re: [Code] Parsing NAV Files
Reply With Quote #22

Whoops, I noticed my mistake like half way through my post. The class is NavMeshLoader, not NavMeshParser; I've corrected my post but make sure you are also adding the CPP files to your project or you will have unresolved external symbols.
__________________
API is offline
Send a message via AIM to API
SkydiveX
Member
Join Date: Jul 2012
Location: England
Old 05-19-2013 , 15:47   Re: [Code] Parsing NAV Files
Reply With Quote #23

Pretty amazing! Awaiting a release.
__________________

_____________________________________________ _______________
Pastafarian and proud!
SkydiveX is offline
LeGone
Senior Member
Join Date: Dec 2006
Location: Germany
Old 08-11-2013 , 09:59   Re: [Code] Parsing NAV Files
Reply With Quote #24

Awesome! Thanks ^^
The NPCs of my entcontrol-plugin are now spawning at the hiding-spots <3
__________________
Want to control Entities? Spawn NPCs? Create Portals?
EntControl

Last edited by LeGone; 08-11-2013 at 10:11.
LeGone is offline
API
Veteran Member
Join Date: May 2006
Old 08-13-2013 , 12:17   Re: [Code] Parsing NAV Files
Reply With Quote #25

Quote:
Originally Posted by LeGone View Post
Awesome! Thanks ^^
The NPCs of my entcontrol-plugin are now spawning at the hiding-spots <3
Can you please send me an IP? This is awesome dude I wanna check it out. Please let me know if the file format changes to a new version and you need an update man.
__________________
API is offline
Send a message via AIM to API
LeGone
Senior Member
Join Date: Dec 2006
Location: Germany
Old 08-13-2013 , 15:20   Re: [Code] Parsing NAV Files
Reply With Quote #26

Really nice work you did there, this is perfect for entcontrolīs NPCs and deathmatch-servers.
Iīm currently using the hidingspots, they are nearly perfect.

Server will go online in the next few hours. Then we should start killing a few NPCs ^^
Iīve also did a small "player-spawn-random" script using the natives.
__________________
Want to control Entities? Spawn NPCs? Create Portals?
EntControl

Last edited by LeGone; 08-13-2013 at 15:54.
LeGone is offline
API
Veteran Member
Join Date: May 2006
Old 08-14-2013 , 12:36   Re: [Code] Parsing NAV Files
Reply With Quote #27

That's really awesome man! The first thing that came to mind when writing this parser was actually semi-automatic generation of DM-map spawn points!
__________________
API is offline
Send a message via AIM to API
LeGone
Senior Member
Join Date: Dec 2006
Location: Germany
Old 08-14-2013 , 15:23   Re: [Code] Parsing NAV Files
Reply With Quote #28

Hopefully someone is using it

Code:
// Navigation(.nav needed) - Can be used to spawn players/npcs 
// Thanks to AnthonyIacono - https://github.com/AnthonyIacono for his navigation-parsing-code 
native bool:EC_Nav_Load(); 
native bool:EC_Nav_CachePositions(); 
native bool:EC_Nav_GetNextHidingSpot(Float:position[3]);
__________________
Want to control Entities? Spawn NPCs? Create Portals?
EntControl

Last edited by LeGone; 08-15-2013 at 04:18.
LeGone is offline
hamilton5
Veteran Member
Join Date: Oct 2012
Location: USA
Old 01-18-2014 , 06:49   Re: [Code] Parsing NAV Files
Reply With Quote #29

I'm looking for sprites or something in game showing where the encounter spots are. I'm sure this could help but the C files mean nothing to me.
hamilton5 is offline
LeGone
Senior Member
Join Date: Dec 2006
Location: Germany
Old 01-18-2014 , 06:51   Re: [Code] Parsing NAV Files
Reply With Quote #30

Take a look here:
https://forums.alliedmods.net/showthread.php?t=228063

This way you donīt have to write C++-Code.
__________________
Want to control Entities? Spawn NPCs? Create Portals?
EntControl
LeGone is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode