GE Lua Documentation

Press F to search!

newCSV

Definition


-- @/lua/common/csvlib.lua:38

local function newCSV(...)
  return newXSV(",", ...)
end

Callers

@/lua/common/guihooks.lua
    end
    csvfile = require('csvlib').newCSV(unpack(keys))
    csvfilename = filename or string.format("graphcsv.%s.csv", os.date("%Y-%d-%mT%H_%M_%S"))
@/lua/vehicle/ai.lua
    print('Started Logging Data')
    dataLogger.csvFile = require('csvlib').newCSV("time", "posX", "posY", "posZ", "speed", "targetSpeed", "ax", "ay", "az", "vx", "vy", "vz", "throttle", "brake", "steering", "staticFrictionCoef")
    dataLogger.time = 0
@/lua/vehicle/controller/tech/vehicleSystemsCoupling.lua
local function createCSV(sendKeys, receiveKeys)
  csvSendData = csvWriter.newCSV('time', unpack(sendKeys))
  csvReceiveData = csvWriter.newCSV('time', unpack(receiveKeys))
  csvSendData = csvWriter.newCSV('time', unpack(sendKeys))
  csvReceiveData = csvWriter.newCSV('time', unpack(receiveKeys))
  csvPhysicsSteps = csvWriter.newCSV('time')
  csvReceiveData = csvWriter.newCSV('time', unpack(receiveKeys))
  csvPhysicsSteps = csvWriter.newCSV('time')
end
@/lua/ge/extensions/editor/cosimulationSignalEditor.lua
      local h = dat.headers
      local csv = csvlib.newCSV(h[1], h[2], h[3], h[4], h[5], h[6], h[7], h[8])
@/lua/vehicle/controller/tech/cosimulationCoupling.lua
  -- Create CSV files with updated headers
  csvSendData = csvlib.newCSV(unpack(sendHeaders))
  csvReceiveData = csvlib.newCSV(unpack(receiveHeaders))
  csvSendData = csvlib.newCSV(unpack(sendHeaders))
  csvReceiveData = csvlib.newCSV(unpack(receiveHeaders))
@/lua/common/csvlib.lua
--
-- local csvfile = require('csvlib').newCSV("c1", "c2", "c3")  -- or .newTSV("c1", "c2", "c3") for Tab Separated Values
-- csvfile:add(1,2,3)
@/lua/ge/extensions/editor/missionEditor.lua
local function exportBranchInfo()
  local csvdata = require('csvlib').newCSV("Branch ID", "Branch Name", "Branch Domain", "Branch Parent ID", "Branch Parent Domain")
end
  end
  local csvdata = require('csvlib').newCSV("Mission ID", "Mission Name", "Mission Type", "Branch", "Leagues", "Tier", "Star Id", "Star Label", "Star Type", "money", "vouchers",unpack(branchNames))
local function exportMissionsSimple()
  local csvdata = require('csvlib').newCSV("Mission ID", "Mission Name", "Mission Type", "Level", "Gamemode")
  local levelNameById = {}
local function exportContentOverview()
  local csvdata = require('csvlib').newCSV("Folder", "Name","Date","Origin","Map","Type 1","Type 2", "Type 3")
@/lua/ge/extensions/career/modules/milestones/general.lua
M.printDebug = function()
  local csvdata = require('csvlib').newCSV("id","step","maxStep","name","description","target","money","xp")
  for _, c in ipairs(milestoneConfigs) do
@/lua/ge/map.lua
  if s.logData then
    dataToCSV = require('csvlib').newCSV("Iteration (i)", "energy (1/m^2)")
  end
  if s.logTrajectory then
    trajectoryToCSV2 = require('csvlib').newCSV("posX", "posY", "posZ", "radius")
  end
@/lua/vehicle/extensions/test/csvMetrics.lua

  csvData = csvWriter.newCSV(unpack(header))
  enabled = true
@/lua/vehicle/extensions/tech/platooning.lua
local function createCSV()
  csvData = csvWriter.newCSV("time", "speed", "targetSpeed", "throttle")
  timer = 0
@/lua/vehicle/scriptai.lua
    -- Write scriptai follow settings to csv
    csvLog = require('csvlib').newCSV("fileName", "externalForce", "speedDiffSmootherOutRate")
    csvLog:add(fileName, externalForce, speedDiffSmoother[true])
    if logDataToCSV then
      csvLog = require('csvlib').newCSV("time", "posX", "posY", "posZ", "timeDiff", "speedDiffSmootherOutRate")
    end
@/lua/vehicle/extensions/tech/ACC.lua
local function createCSV()
    csvData = csvWriter.newCSV("time", "speed", "targetSpeed", "throttle")
    timer = 0
@/lua/vehicle/controller/loggerTemplate.lua
local function reset()
  csvData = csvWriter.newCSV("time", "throttle", "brake", "batteryCapacity", "motorPower")
  timer = 0
local function init()
  csvData = csvWriter.newCSV("time", "throttle", "brake", "batteryCapacity", "motorPower")
  timer = 0