Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 10:35

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Editing navmesh file (.nvm)

Discussion on Editing navmesh file (.nvm) within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,657
Editing navmesh file (.nvm)

Lately i've been messing with the navmesh files to add some impassable objects to the map or make impasssable objects passable.
In short i am trying to change the collision of the objects located on the map.

I am using the navmesh structure released by @ at github:


for example i want to make bagh_barricade01.bsr passable:


despite the documentation I noticed that impassable objects have Collision -1 and passable objects have Collision 0.

However changing these collisions are somehow not enough. nothing happens. If i make other changes, they work (if I increase the X pos of the barricade by 100, the impassable terrain is moved 100 units or so)

Any hint would be much appreciated
sarkoplata is offline  
Old 11/23/2016, 03:01   #2
 
elite*gold: 0
Join Date: Jan 2009
Posts: 314
Received Thanks: 679
Quote:
Originally Posted by sarkoplata View Post
despite the documentation I noticed that impassable objects have Collision -1 and passable objects have Collision 0.
The "collision" seems to be an indicator only.
It really comes down to [Compound(*.cpd)]->CollisionResource (*.bsr)->CollisionMesh(*.bms)->Collision(pointer.Collision).

You could replace the object (navmesh\object.ifo) with
Code:
res\bldg\europe\constantinople\euro_constan_bl_04.bsr
to make it walkable.
DaxterSoul is offline  
Thanks
1 User
Old 11/23/2016, 06:39   #3


 
​Exo's Avatar
 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,649
^ps; each and every object you replace will be walkable if you do it from object.ifo so before doing that check if there's only 1 object entry of that kind. You don't want a bugged map xd
​Exo is offline  
Thanks
1 User
Old 11/23/2016, 07:54   #4
 
elite*gold: 0
Join Date: Jan 2009
Posts: 314
Received Thanks: 679
Therefore add your own entry to object.ifo and change desired objectID in the navmesh to your newly created entry.
DaxterSoul is offline  
Thanks
1 User
Old 11/23/2016, 16:23   #5

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,657
Thanks for the help.
I've tried to give hardness to objects before this and failed as well. Lets say I added something hard to the .o2 file and it's visually shown in the game. However, when I add an entry to the navmesh file with the hard bsr, it's still passable. Im using the same uniqueIDs as well. What could cause it then?
sarkoplata is offline  
Old 11/23/2016, 23:45   #6


 
​Exo's Avatar
 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,649
Quote:
Originally Posted by sarkoplata View Post
Thanks for the help.
I've tried to give hardness to objects before this and failed as well. Lets say I added something hard to the .o2 file and it's visually shown in the game. However, when I add an entry to the navmesh file with the hard bsr, it's still passable. Im using the same uniqueIDs as well. What could cause it then?
Lemme give you another hint that would make your life harder xd Adding the entry is not enough. You have to also link that new entry to the zones, right below the object entry list there's a linking block. You gotta find your way through adding it there. I'd really give you exact info but sadly I am not on my pc and I won't be for a few months. But I am sure that's what you're missing.
​Exo is offline  
Thanks
1 User
Old 11/24/2016, 18:22   #7

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,657
That really made my life harder xd

There are 3 zone blocks after the entry list. Im still trying to relate them
sarkoplata is offline  
Old 11/24/2016, 20:08   #8
 
elite*gold: 0
Join Date: Nov 2007
Posts: 959
Received Thanks: 602
Quote:
Originally Posted by sarkoplata View Post
That really made my life harder xd

There are 3 zone blocks after the entry list. Im still trying to relate them
Well,basically you only need the first zone block,because those are the zones that contain the entities,as far as I remember third zone block is terrain collision,and don't remember what the second zone block was for ^_^
vorosmihaly is offline  
Thanks
1 User
Old 11/28/2016, 07:53   #9

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,657
It took me some time to add collision to map objects (mostly due to my retardiness) but I finally achieved my goal! Thanks everyone, especially Daxter
sarkoplata is offline  
Old 03/03/2018, 15:26   #10
 
elite*gold: 0
Join Date: Mar 2016
Posts: 116
Received Thanks: 21
any one got the tool and can upload it? pleas
WarTuneSro is offline  
Old 02/04/2019, 11:33   #11

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,657
Some people were asking me for this tool, even though I told them it was pure garbage. Maybe it has a use for you though. I just stumbled upon the source when I was checking some old hard drives.

Screen:


Source code attached. (vs2017)
Attached Files
File Type: rar Navmesh Editor.rar (306.0 KB, 399 views)
sarkoplata is offline  
Thanks
2 Users
Old 02/05/2019, 17:32   #12
 
spinal2's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 241
Received Thanks: 16
Quote:
Originally Posted by sarkoplata View Post
Some people were asking me for this tool, even though I told them it was pure garbage. Maybe it has a use for you though. I just stumbled upon the source when I was checking some old hard drives.

Screen:


Source code attached. (vs2017)

Old version? error when modifield or Save Data.
spinal2 is offline  
Old 02/05/2019, 21:54   #13
 
#HB's Avatar
 
elite*gold: 100
Join Date: Sep 2017
Posts: 1,102
Received Thanks: 892
Quote:
Originally Posted by spinal2 View Post
Old version? error when modifield or Save Data.
Well, he shared it for people that wanna learn, not to use.

Also, if you knew how the tool reads the navmesh files, then ofc you should know how to edit them.
#HB is offline  
Old 02/06/2019, 17:09   #14

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,657
I don't remember what it did lately, could be an experimental thing i lately made that causing the error, cuz it was working fine. Check the source code.
sarkoplata is offline  
Reply


Similar Threads Similar Threads
anyone post here the file of editing file.. the .edf file
07/13/2013 - RF Online - 3 Replies
please post here... so that i can download again.. i guess the old one thread was gone.. i've been search for an hour in this section.. but i can't see it... thanks..
Navmesh file structure
03/15/2012 - SRO Coding Corner - 4 Replies
I was searching about navmesh files, i did find lots of info but then i got confused, so i will write what i understood and hopefully someone will correct/explain where did i got it wrong: from my understanding, a .nvm file consist of entity, zone1, zone2, zone3 each entity contain an id of a bsr file, the path of the bsr is defined in object.ifo the bsr contains a hitbox in the first bms entry, the rest of entries isn't useful then the hitbox contain entries for the object orientation on...
how to editing the file season 3
06/17/2010 - Grand Chase - 3 Replies
how to editing the archive kom of season 3 ? someone send me the new extractor plz :DD:rtfm:
.dds file editing
05/24/2006 - Conquer Online 2 - 11 Replies
I like to edit games , ect conquer, counter strike and more, but i cant figure what program to use to edit .dds files, i like photoshop so plz give me details if its possible to do there.. Ty :eek:



All times are GMT +2. The time now is 10:35.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.