Garry's Mod

Garry's Mod

Sanic Hegehog
 此主题已被置顶,因此可能具有重要性
Xyxen  [开发者] 2013 年 8 月 31 日 下午 8:06
Sanic isn't moving! What can I do?
First off: are you near spawn? Sanic has spawn protection on by default. They won't chase you if you're within 200 units of a spawnpoint (but they can still attack you).


You're not near spawn and Sanic still won't move? Alright. Let's get into some details.

Sanic is based on the new NextBot AI in Garry's Mod. Because of this, they might not be able to move on maps where other NPCs can. To solve this problem, simply run nav_generate to create a navigation mesh for Sanic's pathfinding and awareness. However, please note that this could take a long time, and it WILL restart your map. Hang on, though. There are a few other potential issues you may encounter.

When you run the above command, it'll search for walkable areas beginning from a spawn point. If there are areas on the map you would like Sanic to walk on that are not directly accessable from spawn by doing nothing but walking, you'll need to look at them and run nav_mark_walkable (with sv_cheats set to 1!) to let the generator know people can walk in that area. For instance, the grassy area on gm_flatgrass requires you to jump down to reach it. Therefore, you'll need to run nav_mark_walkable while looking somewhere on the grass.

If there is already a navigation mesh file for the map, and it's not working, you're going to need to delete it manually. First, exit Garry's Mod--it'll probably be hanging onto the file and won't let you remove it. Next, navigate to your Garry's Mod directory, and locate maps/<mapname>.nav, where mapname is the name of the map you're trying to generate a navigation mesh for. Delete or rename this file, relaunch Garry's Mod, and try again.
最后由 Xyxen 编辑于; 2014 年 8 月 16 日 下午 10:16
< >
正在显示第 1 - 15 条,共 25 条留言
Gnome 2013 年 9 月 2 日 下午 5:07 
Still isn't moving. Running it on gm_flatgrass.
Xyxen  [开发者] 2013 年 9 月 3 日 上午 1:26 
Well, there's another technical issue here. nav_generate searches for walkable areas starting at a spawnpoint. It won't go anywhere you can't get to by just walking. Beginning at the flatgrass spawn, you would have to drop down to the field--so it won't generate navigation information for that area. You'll have to tell it explicitly by looking at anywhere on the grassy area and using nav_mark_walkable before using nav_generate.
最后由 Xyxen 编辑于; 2013 年 9 月 4 日 下午 6:10
Simple Lemon 2013 年 9 月 4 日 下午 2:22 
I tried this, and it is not working on that map gm_flatgrass
mcd1992 2013 年 9 月 4 日 下午 6:40 
Same here, he wont move on flatgrass :c
sleeeeeenky 2013 年 9 月 14 日 上午 3:45 
I did what you said, and my game turned into Left 4 Dead 1, no jokes.
Green Lawny 2013 年 11 月 24 日 上午 9:36 
For flatgrass, Type nav_edit 1 into the console, then look at the grass and type nav_mark_walkable. then type nav_generate and when it loads back in type nav_edit 0. it should work then.
Nomyhoe 2013 年 12 月 2 日 下午 7:26 
listen making a mod that needs 4 commands like...thats not how people should put up with for just one mod ♥♥♥♥♥♥♥ stupidity!
Xyxen  [开发者] 2013 年 12 月 3 日 上午 1:05 
引用自 U.S RANGER 2020
listen making a mod that needs 4 commands like...thats not how people should put up with for just one mod ♥♥♥♥♥♥♥ stupidity!

I appreciate that it's a lot to go through, but it's literally not in my control at all. The people making the maps are supposed to be doing this for you! It's not something fancy I've created for this mod in particular. It's something built into the Source engine, and it's a huge leap in AI pathfinding. As far as I know, the old AI systems the default NPCs use aren't exposed to Lua anymore--so I can't use them. This is what we have, and I'm sorry that it's a hassle.
Bobson Dugnutt 2014 年 1 月 4 日 上午 6:11 
I did the Nav_generate command, it disconnected me from single player. what the flub just happened
bubrito bubstice 2014 年 1 月 5 日 下午 4:10 
Hey guys, if you do the 'nav_mark_walkable' thing and you spawn Sanic and he still doesn't chase you, that's because you're too CLOSE to him, meaning, the Spawn Protection code is working and won't allow Sanic to chase you. A simple fix for this is to simply use Noclip and fly a bit away... He'll then start his pursuit.
Chris 2014 年 1 月 28 日 下午 4:46 
Sanic crashes my game, is there anything i need specific to make this work?
sleeeeeenky 2014 年 1 月 28 日 下午 7:10 
nope
PathologicalFrolic 2014 年 4 月 22 日 上午 3:42 
he only moves on gm_construct every nextbot should only work on gm_construct
The Mann Himself 2014 年 12 月 12 日 上午 12:52 
I want Sanic to move in gm_bigcity, but it takes him WAY too long to learn it, what can I do?
sleeeeeenky 2014 年 12 月 12 日 上午 1:13 
Try commenting on a live thread, 'cos this one's dead as a doornail.
< >
正在显示第 1 - 15 条,共 25 条留言
每页显示数: 1530 50