User Tools

Site Tools


Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
appendix:pts2csv [2015-05-18 22:09]
127.0.0.1 external edit
appendix:pts2csv [2017-05-08 11:32]
Carsten deleted obsolete page (the use case no longer exists)
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)