GE Lua Documentation

Press F to search!

logWarn

Definition


-- @/lua/ge/extensions/editor/main.lua:62

local function editorLogWarn(msg)
  log("W", "editor", msg)
end

Callers

@/lua/ge/extensions/editor/api/camera.lua
  else
    editor.logWarn("No camera is set, cannot get camera params")
  end
  else
    editor.logWarn("No camera is set, cannot set camera params")
  end
@/lua/ge/extensions/editor/terrainEditor.lua
  -- log('W', 'terrainEditor', '[DEBUG] Not able to find paint material with the given name "'.. matName ..'". Defaulting to index 1 with name "' .. fallbackName .. '"')
  -- editor.logWarn("Not able to find paint material with the given name '".. matName .."'. Defaulting to '".. fallbackName .. "'")
  return 1, fallbackName
  end
  -- editor.logWarn("Not able to find paint material with the given name '".. matName .."'. Defaulting to '".. paintMaterialProxies[1].internalName .. "'")
  return paintMaterialProxies[1]
  end
  -- editor.logWarn("Not able to find paint material with the given name '".. matName .."'. Defaulting to '".. paintMaterialProxies[1].internalName .. "'")
  return 1, paintMaterialProxies[1].internalName
    setMaterialsDirty()
    editor.logWarn("Terrain Material Format Upgrade: filled groundmodelName field for: '" .. name .. "'")
    if mtlObject:getFileName() and mtlObject:getFileName() ~= "" then
  if hasConversionsToGroundmodel == true then
    editor.logWarn("Converted terrain material(s) to use groundmodelName, please save level")
    editor_terrainEditor.setMaterialsDirty()
  if paintMaterialCount ~= count then
    editor.logWarn("Material count mismatch! paintMaterialCount = " .. tostring(paintMaterialCount) .. " count = " .. tostring(count))
  end
  if #terrBlockName == 0 then
    editor.logWarn("TerrainBlock name has not been set!")
    return
  if #heightMapTexturePath == 0 then
    editor.logWarn("HeightMap Texture has not been set!")
    return
    elseif FS:fileExists(var.levelPath .. "/art/terrains/materials.json") then
      editor.logWarn("Deperecated Terrain Material file.")
      errors["deprecated_material_file"] = true
@/lua/ge/extensions/editor/dynamicDecals/fonts.lua
    table.insert(fontGenNotifications, {msg=string.format("Not able to create font atlas for '%s'", path), time = 5, color = editor.color.error.Value})
    editor.logWarn(string.format("%s - Not able to create font atlas for '%s'", logTag, path))
    notification.add("Fonts", "Font Atlas creation failed", "Font Atlas creation failed. Check logs for more info.", notification.levels.error)
@/lua/ge/extensions/editor/assetManagementTool.lua
        if FS:fileExists(asset.targetPath) then
          editor.logWarn("Asset file already exists, skipping: " .. asset.targetPath)
        else
          else
            editor.logWarn("\tLinks already present for '" .. asset.targetPath .. "', skipping...")
          end
      else
        editor.logWarn("\tUnnamed target asset, skipping: " .. asset.targetPath)
      end
@/lua/ge/extensions/editor/fileDialog.lua
          if #dirName <= 0 then
            editor.logWarn("Directory name must not be empty.")
            return
          if FS:directoryExists(currentPath .. dirName) then
            editor.logWarn("Directory does exist already.")
            return
          if ffi.string(textinputNewFolder) == "" then
            editor.logWarn("Input a valid name for the new folder in the File Dialog")
          else
@/lua/ge/extensions/editor/api/preferencesRegistry.lua
  if foundCat and cat.label ~= categLabel then
    editor.logWarn("Preferences Registry: category label is different from other function calls, replaced: '" .. cat.label .. "' with: '" .. categLabel .. "'")
    cat.label = categLabel
  if foundSubCat and subCateg.label ~= subCategLabel then
    editor.logWarn("Preferences Registry: category label is different from other function calls, replaced: '" .. subCateg.label .. "' with: '" .. subCategLabel .. "'")
    subCateg.label = subCategLabel
    if type(cat) ~= "table" then
      editor.logWarn("Preferences category " .. catName .. " is invalid, not a table, ignoring, using defaults")
      cat = {} -- just make an empty one
        if type(subcat) ~= "table" then
          editor.logWarn("Preferences subcategory " .. catName .. "." .. subcatName .. " is invalid, not a table, ignoring, using defaults")
          self.preferences[catName][subcatName] = {} -- just make an empty one
              if deleteDeprecatedItems or ret == true then
                editor.logWarn("Preferences Registry: deprecated preferences item found: " .. itemPath .. ", migrated and deleted old item...")
                self.preferences[catName][subcatName][itemName] = nil
    -- different version, ignore, use defaults
    editor.logWarn("Deprecated preferences file format, using default values.")
    self.preferences = {}
          else
            editor.logWarn("Preferences: Could not set default value for: `" .. path .. "`")
            dump(val)
        else
          editor.logWarn("Preferences: Could not set actual default value (it's nil) for: `" .. path .. "`")
          dump(val)
    -- different version, ignore, use defaults
    editor.logWarn("Deprecated category preferences file format, not loading.")
    return
@/lua/ge/extensions/editor/dynamicDecals/vehicleColorPalette.lua
    if #colors < 3 then
      editor.logWarn(logTag .. ": There's not enough preset colors to populate all color palettes.")
      return
      if #colors == 0 then
        editor.logWarn(logTag .. ": There's not enough preset colors to pick from.")
        return
      if #colors == 0 then
        editor.logWarn(logTag .. ": There's not enough preset colors to pick from.")
        return
      if #colors == 0 then
        editor.logWarn(logTag .. ": There's not enough preset colors to pick from.")
        return
      else
        editor.logWarn(string.format("%s: Can't restore vehicle color palette", logTag))
        -- restoreColors.timer = 1
@/lua/ge/extensions/editor/dynamicDecals/docs.lua
  if type(data.section) ~= 'table' then
    editor.logWarn(logTag .. " - register(): section must be of type 'table'")
    return
@/lua/ge/extensions/editor/api/gui.lua
  if not windowsState[windowName] then
    editor.logWarn("No registered window named: " .. windowName)
    return false

    editor.logWarn("Editor windows state file '" .. tostring(finalFilename) .. "' format version mismatch. Expected: " .. WindowsStateFileFormatVersion .. " File: " .. tostring(wstate.version) .. ", will upgrade.")
    wstate = jsonReadFile(defaultWindowsStateFileName)
@/lua/ge/extensions/editor/dynamicDecalsTool.lua
      else
        editor.logWarn(string.format("The dynamicDecal tool module '%s' doesn't provide a setup function which is necessary for the module to work. Module has not been added."))
        deps[file] = nil
    else
      editor.logWarn("core_vehicle_partmgmt is nil")
    end
@/lua/ge/extensions/editor/main.lua
            allowLoad = false
            editor.logWarn("Skipping disabled extension: " .. extName)
          end
  if state.version ~= CurrentStateFileFormatVersion and not tableIsEmpty(state) then
    editor.logWarn("Editor state file format version mismatch. Expected: " .. CurrentStateFileFormatVersion .. " File: " .. tostring(state.version) .. ", will upgrade.")
    --TODO: upgrade code for older versions of the file
@/lua/ge/extensions/editor/forestEditor.lua
    else
      editor.logWarn("Missing forest brush element ID: " .. tostring(id))
    end
  if not forest then
    editor.logWarn("No Forest object present, please create one by pressing the Create Forest button in the forest editor toolbar")
  end
@/lua/ge/extensions/editor/biomeTool.lua
    else
      editor.logWarn("Missing forest brush element ID: " .. tostring(id))
    end
@/lua/ge/extensions/editor/api/valueInspector.lua
          if not destIsString and isPasteDisabled then
            editor.logWarn("Cannot paste, different field types.")
          elseif tbl and tbl.copiedValue and pasteCallback then
          local msg = "'" .. val .. "' already exists in the scene, please choose another name"
          editor.logWarn(msg)
          editor.showNotification(msg)
@/lua/ge/extensions/editor/materialEditor.lua
  else
    -- editor.logWarn(logTag .. "No materials to select from.")
  end
@/lua/ge/extensions/editor/terrainMaterialsEditor.lua
  else
    editor.logWarn("Cannot set the terrain material name " .. newName .. ", already taken.")
    terrainMtlCopyProxy.nameInput = im.ArrayChar(32, terrainMtlCopyProxy.internalName)
          if tableSize(editor_terrainEditor.getPaintMaterialProxies()) == 1 then
            editor.logWarn("Cannot delete terrain material, there must be at least one in the library and terrain block")
            canDelete = false
@/lua/ge/extensions/editor/api/genericInspector.lua
    if i == maxFieldCount then
      editor.logWarn("You have more than " .. maxFieldCount .. " fields in the generic inspector " .. self.valueInspector.inspectorName)
    end
@/lua/ge/extensions/editor/assetBrowser.lua
  else
    editor.logWarn(logTag .. "No suitable color for type '" .. asset.type .. "'. Using default color.")
    return im.GetColorU322(im.ImVec4(1,1,1,1))
  else
    editor.logWarn(logTag .. "No suitable icon for type '" .. file.type .. "'. Using default icon.")
    editor.uiIconImage(editor.icons.favorite, size, col)
    if v.label == label then
      editor.logWarn(logTag .. "Filter with the given identifier '" .. label .. "' already exists.")
      return false
    if v.label == label then
      editor.logWarn(logTag .. "Filter with the given identifier '" .. label .. "' already exists.")
      return false
    end
    editor.logWarn(logTag .. "No asset found with the given name '" .. filename .. "'")
  end
  if not root then
    -- editor.logWarn(logTag .. path .. " cannot be found.")
    return
@/lua/ge/extensions/editor/dynamicDecals/brushes.lua
  if not prop then
    editor.logWarn(string.format("%s : No property found for '%s'", logTag, propertyName))
    return value
@/lua/ge/extensions/editor/sceneTree.lua
    local msg = "'" .. name .. "' already exists in the scene, please choose another name"
    editor.logWarn(msg)
    editor.showNotification(msg)
@/lua/ge/extensions/editor/api/object.lua
  if 0 == #found then
    editor.logWarn("No valid objects selected.")
    return
@/lua/ge/extensions/editor/dynamicDecals/selection.lua
local function selectLayer(uid, addToSelection)
  if not uid then editor.logWarn(string.format("%s.selectLayer(): 'uid' argument must not be empty.", logTag)) return end
  if not addToSelection then
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/linkedSet.lua
            if layer.properties[property.id] then
              editor.logWarn(string.format("%s: %s", logTag, "Can't add the same property twice"))
              return