Guidance paths for AI-soldiers in your locations

Work continues on improving the Enlisted mod editor. In a recent update we released a long list of fixes and improvements to the editor, one of which we’ll talk about in detail.

NavMesh

This is a navigation mesh used on maps, thanks to which the AI-soldiers can orient themselves on the ground and find the best directions to head in. Without NavMesh the behavior of the guided AI-soldiers would be rather linear, and they may also get stuck.

When you’re redoing the landscape and objects in an existing location, you need an updated NavMesh, and now the mod editor has the option to generate these patches.

Generating a NavMesh patch

Let’s look at an example where you are changing an existing location and need to update the NavMesh.

  1. Make sure that NavMesh already exists for the map. Enable the NavMesh button in the Toolbox. If it does not exist, you should set the battle area (the area where the mission takes place), as NavMesh is only loaded and generated for locations within the battle area.
  2. In the Toolbox, open the Build commands tab and click Rebuild NavMesh, then wait until the operation is 100% complete.
  3. The generated NavMesh patch is immediately available in the game; however, you will need to save the scene (Save) so that the recording in the entity level of the NavMesh patch is saved. Note that you should also Restart to make sure that the patch is applied correctly when the scene loads.
  4. After making sure that the NavMesh is updated with the patch you created (by enabling Toolbox/NavMesh), and that the AI-soldiers now move correctly, you can build a batch file (vromfs.bin) that will include not only the scene (scene.blk), but also the NavMesh patch (patchnavmesh.bin).
  5. To do this in the Toolbox/Build commands press the second button Build Mod VROM, which will open an external mod packer program (modsPacker.bat) in a separate window, the result (status) on completion should be 0 (as standard without errors).
    You can also run this packer manually from the command line, specifying at the start: modsPacker.bat modname (here modname is the name of the folder the mod itself is located in userGameMods/).

As a result of packaging in userGameMods/ a batch file modname.vromfs.bin with modname name and vromfs.bin extension will be created, which can be uploaded to the mod portal (sandbox.enlisted.net) in the same way as scene.blk.

The current version of the generated NavMesh blocks does not yet generate information about shelters (cover) and places where you can climb or jump (jump links), keep this in mind when creating your mission.

13 Likes

many thanks!

this is very usefull.

1 Like

Thanks to devs!

About patchNavMesh.bin
It should be with only lowercase (patchnavmesh.bin).
Because of this it DOESNT WORK in custom room with multiplayer/local game.
If remove uppercase words then it will works.

2 Likes

i was wondering why it wasn’t working :joy:

like, the site refused to upload the file

EDIT. no nvm. it’s not working for me.

Only .blk and .vromfs.bin files allowed

Well… Uppercase version works only in editor.
But it sill can be added to modname.vromfs.bin file.

Yeah it still will not works in game, only in editor.
Why?

  • Uppercase words cant be Read in vromfs files. Links to file can be only with lowercase.
  • editor dont check vromfs file. It checks all modname folder.
1 Like

sorry, i’m not following :thinking:

its good

Sorry. I updated message.

Sound like you try upload .bin?
Are you tries made VROM and then upload. .vromfs.bin file?

is it just me… or the mod says:

image

and despite that, it gives me this file:

image

which if i try to upload on the site, it tells me:

Only .blk and .vromfs.bin files allowed

am i doing something wrong?

quite possible as i don’t get how i get:

yeah, its the only thing i got.

It generate .vromfs.bin outside from modname folder.
In userGameMods.

ughhhhhhhhh

it… doesn’t?

1 Like

Damn :frowning:
No .vromfs.bin file.
So -1 means that packer failed.

Idk. Why…
Are you sure that you have enough space?

of course my luck…

just what i needed :joy:

how heavy is that thing supposed to be?

cuz, i havt at least…
image

yeah not looking good, but i should have enough… right?

Looks enough :slight_smile:
Weird that packer cant…

I suggest backup almost all files and then remove them in userGameMods (dont touch all folders, remove only blk files).
After all that try rebuild pathfinder and then make VROM.

P.S. I need to go afk for 30-45 mins.
So maybe answer will be a bit late.

no problem, thanks for trying to help ^^

aaaaanddd…

image

i swear my luck…

no files as well…

1 Like

Still here.
Are you did this in editor (New menu/buttons in Toolbox)?
Or in cmd.exe/launch modsPacker.bin?

first, i

yes, i loaded the new navmesh, saved, restarted, and then pressed the second function inside the toolboxes ( the new one )

which then opens the Cmd.exe

Well… Now Idk how to help.
Weird problem…
WAIT!!!
Oh I got it. Its because of folder name!