User Tools

Site Tools


Differences

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

Link to this comparison view

Next revision
Previous revision
appendix:pts2csv [2010-05-10 19:45]
Carsten created
appendix:pts2csv [2017-05-08 11:32]
Carsten deleted obsolete page (the use case no longer exists)
Line 1: Line 1:
 ====== Converting "​pts"​ point files to Calc or Excel ====== ====== Converting "​pts"​ point files to Calc or Excel ======
  
-When CaBSP [[mapping:​cawe:​leaks|finds a leak]] or when you [[http://www.cafu.de/forum/​viewtopic.php?​f=14&​t=714|record the player path]] in Cafu, a ''​pts''​ point file is written that describes the path through the level.+When CaBSP [[mapping:​cawe:​leaks|finds a leak]] or when you [[http://forum.cafu.de/​viewtopic.php?​f=14&​t=714|record the player path]] in Cafu, a ''​pts''​ point file is written that describes the path through the level.
  
 All resulting ''​pts''​ file can be [[mapping:​cawe:​leaks#​locating_leaks_in_the_map|loaded into CaWE]] in order to visualize the path graphically,​ but some users may wish to load the point files into a spreadsheet application as well. All resulting ''​pts''​ file can be [[mapping:​cawe:​leaks#​locating_leaks_in_the_map|loaded into CaWE]] in order to visualize the path graphically,​ but some users may wish to load the point files into a spreadsheet application as well.
Line 12: Line 12:
 The ''​pts''​ point files that are generated by CaBSP and Cafu are in fact small but complete Lua programs. As the Cafu [[usermanual:​running#​the_command_console|in-game console]] happens to be a full-fledged Lua interpreter,​ it is self-suggesting that we use a console function in order to convert ''​pts''​ files to ''​csv''​. The ''​pts''​ point files that are generated by CaBSP and Cafu are in fact small but complete Lua programs. As the Cafu [[usermanual:​running#​the_command_console|in-game console]] happens to be a full-fledged Lua interpreter,​ it is self-suggesting that we use a console function in order to convert ''​pts''​ files to ''​csv''​.
  
-Starting with [[http://​trac.cafu.de/​changeset/​72|r72]],​ the required function ​''​pts2csv()'' ​is already available ​in file ''​config.lua'' ​and is thus ready for use, but you may customize it if you wish:+Function ​''​pts2csv()''​ in file ''​config.lua''​ is ready for use, but you may customize it if you wish:
 <code lua> <code lua>
 function pts2csv(fileName) function pts2csv(fileName)
Line 93: Line 93:
  
   * [[mapping:​cawe:​leaks]] -- Describes how CaBSP writes point files and how they are viewed in CaWE.   * [[mapping:​cawe:​leaks]] -- Describes how CaBSP writes point files and how they are viewed in CaWE.
-  * [[http://www.cafu.de/forum/​viewtopic.php?​f=14&​t=714|Recording player paths]] in a Cafu game.+  * [[http://forum.cafu.de/​viewtopic.php?​f=14&​t=714|Recording player paths]] in a Cafu game.