AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Navigation System (Pathfinding,waypoint) (https://forums.alliedmods.net/showthread.php?t=336158)

Leech_v2 02-01-2022 13:22

Re: Navigation System (Pathfinding,waypoint)
 
Quote:

Originally Posted by By Hazard (Post 2770195)
I'm trying from Rehlds, do I have to write my own ip address here?

I don't know anything about rehlds...
Is that a server?
The menu function of this plugin is only allowed to be used by the host client

By Hazard 02-01-2022 14:16

Re: Navigation System (Pathfinding,waypoint)
 
Quote:

Originally Posted by Leech_v2 (Post 2770196)
I don't know anything about rehlds...
Is that a server?
The menu function of this plugin is only allowed to be used by the host client

REHLDS is a test server and I use it from my own computer, I am the main client, should I change the "loopback" to use the menu?

Leech_v2 02-01-2022 14:29

Re: Navigation System (Pathfinding,waypoint)
 
Quote:

Originally Posted by By Hazard (Post 2770207)
REHLDS is a test server and I use it from my own computer, I am the main client, should I change the "loopback" to use the menu?

This is my blind spot of knowledge
You give it a try and may help you! ::oops:

By Hazard 02-01-2022 19:41

Re: Navigation System (Pathfinding,waypoint)
 
Quote:

Originally Posted by Leech_v2 (Post 2770210)
This is my blind spot of knowledge
You give it a try and may help you! ::oops:

How can I try an npc with this plugin?

Leech_v2 02-01-2022 22:41

Re: Navigation System (Pathfinding,waypoint)
 
Quote:

Originally Posted by By Hazard (Post 2770251)
How can I try an npc with this plugin?

Inc file provides functions for pathfinding

You need to make your own NPC plug-in and reference NavigationSystem.Inc file to calls pathfinding function
[My plugin is responsible for providing coordinate information.You need to make the NPC run towards the coordinates]

Celena Luna 03-23-2022 22:21

Re: Navigation System (Pathfinding,waypoint)
 
This is really interesting. I will definately give this a try later on this weekend.

It is possible to generate from a brand new map?

I was making Zombie Shelter mode but got stuck at AI controling so if this work, it would be a big help

Leech_v2 04-09-2022 05:13

Re: Navigation System (Pathfinding,waypoint)
 
Quote:

Originally Posted by Celena Luna (Post 2775033)
This is really interesting. I will definately give this a try later on this weekend.

It is possible to generate from a brand new map?

I was making Zombie Shelter mode but got stuck at AI controling so if this work, it would be a big help

Any map can be loaded and generated automatically

But I don't have the ability to automatically identify the ladder. It's difficult for me to predict what shape the map author will make the ladder

Natsheh 04-09-2022 07:55

Re: Navigation System (Pathfinding,waypoint)
 
Seems really nice, is the nav system consumes alot of CPU usage ?

Also you need to make a decent descriptive thread explaining how the Nav system really works.

Leech_v2 04-09-2022 09:29

Re: Navigation System (Pathfinding,waypoint)
 
Quote:

Originally Posted by Natsheh (Post 2776207)
Seems really nice, is the nav system consumes alot of CPU usage ?

Also you need to make a decent descriptive thread explaining how the Nav system really works.

Because I'm not good at English, let me describe the way I work may mislead you.

In fact, if you are willing to save all navigation results locally, you can quickly find the shortest path through index access. Otherwise, you can only conduct simple pathfinding once in each frame and wait for the pathfinding work to be completed

Celena Luna 04-17-2022 21:34

Re: Navigation System (Pathfinding,waypoint)
 
1 Attachment(s)
After some testing, I noticed a few things:
  • It have to load on Listen Server (the server you load when you start ingame) first. Delicated Server (HLDS, ReHLDS,...) can't generate the nav file. But still load if you copy the nav file generated from Listen Server.
  • I tried the biggest map I could find to test the generation: Big City
    It took about 45 minutes to 1 hour to load and it showned as if it stuck at loading screen so some might think it doesn't work. But the Nav actually generated which actually a good thing.
  • The generating time is faster (or equal) the Z-Bot NAV generating.

I will do some extra testing with some Zombie NPC to see if it affect the PC performence
Update: Generated Nav file attached


All times are GMT -4. The time now is 06:24.

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