User Tools

Site Tools


formats:way

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
formats:way [2009-10-23 23:43] edheldilformats:way [2011-07-23 00:30] (current) edheldil
Line 1: Line 1:
 ==== WAY File ==== ==== WAY File ====
 +These files contain searchmaps, information on how to walk between two points on a map.. 
  
-My guess is that these files contain searchmaps or something like thatThey consist of two list of structures, sometimes pretty long. It seems to be binary dump of CWAY_bin object, with CWAY1_bin and CWAY2_bin listsThe former seems to hold indices to the latter.+.WAY files are binary dump of [[cobjects:CWAY_bin]] object, which mainly contains two lists, sometimes pretty long:  nodes [[cobjects:CWAY1_bin]] and links [[cobjects::CWAY2_bin]]While nodes define spot on a map, links define connection between two nodes. 
 + 
 +.WAY files are located under $DATA/Cache/Levels, there's one .WAY file for each map. 
 + 
 +For example, this picture shows nodes in Scar Ravine, with minimap in the backgroundNote that minimap might be slightly different from the actual map. Also note that although the nodes are mostly placed on a grid, there are some irregularities - perhaps they might be caused by terrain height or by distorting the grid to accurately cover the passable areas. 
 + 
 +{{:formats:scarravine-way.png|}} 
 + 
 +Other searchmaps are markedly different, though.  
 + 
 +{{:formats:oupost_way.png|}} 
 + 
 +Part of Layered Character Testmap searchmap: 
 + 
 +{{:formats:layered_way.png|}}
  
  
formats/way.1256341392.txt.gz · Last modified: 2009-10-23 23:43 by edheldil