Jump to content

Scarecrow skins offline


waw
  • Fixed

If you want to support this, as seen in "scripts\screens\redux\scarecrowpopupgridloadout.lua" (lines 42->50)

local offline = not TheInventory:HasSupportForOfflineSkins() and not TheNet:IsOnlineMode()

local buttons = {}
if offline then
	table.insert(buttons, {text = STRINGS.UI.POPUPDIALOG.OK, cb = function() self:Close() end})
else
	table.insert(buttons, {text = STRINGS.UI.WARDROBE_POPUP.CANCEL, cb=function() self:Cancel() end })
	table.insert(buttons, {text = STRINGS.UI.WARDROBE_POPUP.SET, cb=function() self:Close(true) end })
end

You might change these lines (lines 149->152)

local data = {}
if TheNet:IsOnlineMode() then
	data = skins
end

With

local data = {}
if not (not TheInventory:HasSupportForOfflineSkins() and not TheNet:IsOnlineMode()) then
	data = skins
end

 


Steps to Reproduce

1. Try to skin scarecrow while offline

2. Fail

  • Like 1



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

The logic can be simplified as used in the beefalo and wardrobe panels to TheInventory:HasSupportForOfflineSkins() or TheNet:IsOnlineMode().

Changed Status to Fixed

  • Like 1
  • Thanks 1

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...