• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTCv8 outfit

Gubailovo

Well-Known Member
Joined
Dec 19, 2013
Messages
407
Solutions
2
Reaction score
62
outfits and mounts are not displayed in the clientСкриншот 21-03-2023 183213.jpg
error in the console
C++:
ERROR: /modules/game_outfit/outfit.lua:627: attempt to index field 'outfit' (a nil value)
ERROR: /modules/game_outfit/outfit.lua:593: attempt to index field 'outfit' (a nil value)

579-600
Lua:
  local focused = nil
  for _, outfitData in ipairs(ServerData.outfits) do
    local button = g_ui.createWidget("SelectionButton", window.selectionList)
    button:setId(outfitData[1])

    local outfit = table.copy(previewCreature:getOutfit())
    outfit.type = outfitData[1]
    outfit.addons = outfitData[3]
    outfit.mount = 0
    outfit.aura = 0
    outfit.wings = 0
    outfit.shader = "outfit_default"
    outfit.healthBar = 0
    outfit.manaBar = 0
    button.outfit:setOutfit(outfit)                    -----593
    button.outfit:setCenter(true)
    button.name:setText(outfitData[2])
    if tempOutfit.type == outfitData[1] then
      focused = outfitData[1]
      configureAddons(outfitData[3])
    end
  end
614-652
Code:
function showMounts()
  window.presetsList:hide()
  window.presetsScroll:hide()
  window.presetButtons:hide()

  window.selectionList.onChildFocusChange = nil
  window.selectionList:destroyChildren()

  local focused = nil
  for _, mountData in ipairs(ServerData.mounts) do
    local button = g_ui.createWidget("SelectionButton", window.selectionList)
    button:setId(mountData[1])

    button.outfit:setOutfit({type = mountData[1]})               ----627
    button.outfit:setCenter(true)
    button.name:setText(mountData[2])
    if tempOutfit.mount == mountData[1] then
      focused = mountData[1]
    end
  end

  if #ServerData.mounts == 1 then
    window.selectionList:focusChild(nil)
  end

  window.configure.mount.check:setEnabled(focused)
  window.configure.mount.check:setChecked(g_game.getLocalPlayer():isMounted() and focused)

  if focused ~= nil then
    local w = window.selectionList[focused]
    w:focus()
    window.selectionList:ensureChildVisible(w, {x = 0, y = 196})
  end

  window.selectionList.onChildFocusChange = onMountSelect
  window.selectionList:show()
  window.selectionScroll:show()
  window.listSearch:show()
end
please tell me what is the problem? and how to fix it?
 

Attachments

Have you tried the AI Chat? Post the error and the codes there and it will probably respond to you directly with a solution that you can copy n paste.
 
 
Back
Top