measuring distance from a road

Post » Sat Oct 23, 2010 12:05 am

what's the best way to measure how far an actor or object is from the road?
can we detect the difference between roads (e.g. those between cities) and paths (e.g. not as well used, through overgrown forest, leading to a cave)?

initially, i thought GetFirstRef 56 would do it.
(56 = Road in this page: http://cs.elderscrolls.com/constwiki/index.php/GetFirstRef)
but it didn't seem to work.

and while i'm at it, does anyone know the difference between Road (56) and PathGrid (52)?
it looks like these two would address the problem i have.
but because GetFirstRef 56 failed, i thought to ask here.

thanks, all.
User avatar
Dean Brown
 
Posts: 3472
Joined: Fri Aug 31, 2007 10:17 pm

Post » Sat Oct 23, 2010 4:30 am

I always thought roads were just textures painted onto the landscape. But I have seen ROAD records in plugins.
User avatar
W E I R D
 
Posts: 3496
Joined: Tue Mar 20, 2007 10:08 am

Post » Sat Oct 23, 2010 12:32 pm

I always thought roads were just textures painted onto the landscape. But I have seen ROAD records in plugins.

i'm curious what sort of reference is suppose to be returned by GetFirstRef...GetNextRef when looking for roads 56 (which is labelled road).
nothing was returned in my tests before my original post.

i'll try looking for path grids (52), later.
User avatar
Danii Brown
 
Posts: 3337
Joined: Tue Aug 22, 2006 7:13 am

Post » Sat Oct 23, 2010 7:00 am

I always thought roads were just textures painted onto the landscape. But I have seen ROAD records in plugins.

Indeed, the textures have no significance. My guess would be that it is looking for those objects which are created when the roads for a worldspace are generated from the blue nodes... However, since it is likely pathnodes we are talking about, if memory serves, these are not recorded in the normal way that refs are, so looking for your standard 8 digit reference number probably won't work.
User avatar
Cool Man Sam
 
Posts: 3392
Joined: Thu May 10, 2007 1:19 pm

Post » Sat Oct 23, 2010 12:21 pm

In any case, I http://www.gamesas.com/bgsforums/index.php?s=&showtopic=1006522&view=findpost&p=14582652 to scruggsy.
User avatar
Eliza Potter
 
Posts: 3481
Joined: Mon Mar 05, 2007 3:20 am

Post » Sat Oct 23, 2010 11:26 am

Indeed, the textures have no significance. My guess would be that it is looking for those objects which are created when the roads for a worldspace are generated from the blue nodes... However, since it is likely pathnodes we are talking about, if memory serves, these are not recorded in the normal way that refs are, so looking for your standard 8 digit reference number probably won't work.
ahhh...thanks vagrant0...probably why getFirstRef...getNextRef wasn't returning them.

In any case, I http://www.gamesas.com/bgsforums/index.php?s=&showtopic=1006522&view=findpost&p=14582652 to scruggsy.
thanks, shadeMe.
User avatar
glot
 
Posts: 3297
Joined: Mon Jul 17, 2006 1:41 pm

Post » Sat Oct 23, 2010 12:02 pm

Bump just before the bitter end - I'd like to know the answer to this one :)
User avatar
Rhi Edwards
 
Posts: 3453
Joined: Fri Jul 28, 2006 1:42 am

Post » Sat Oct 23, 2010 1:40 pm

Bump just before the bitter end - I'd like to know the answer to this one :)
Nothing can be done at the moment. If I recall correctly, more decoding's required.
User avatar
Jonathan Braz
 
Posts: 3459
Joined: Wed Aug 22, 2007 10:29 pm

Post » Sat Oct 23, 2010 7:26 am

Thanks shadeMe :)
User avatar
Luis Longoria
 
Posts: 3323
Joined: Fri Sep 07, 2007 1:21 am


Return to IV - Oblivion