Don't Starve Together

Don't Starve Together

Airana Stormrider
Linux / Dedicated Server Compatibility Fix
The current version of your mod crashes on Linux and Linux based dedicated server hosts.

The fix:
Every reference to Stormriderwhip.xml or Stormriderwhip.tex must be changed to lowercase because Linux uses case sensitive filesystems.

There are 5 references to fix:

4 references in /modmain.lua
lines 64, 65,
2 at line 74

1 reference in /scripts/prefabs/stormriderwhip.lua at line 151


Git diff saying the same thing if you want it. The + and - at the start of lines indicate what's changed

diff --git a/modmain.lua b/modmain.lua index b4b1268..88b5b46 100755 --- a/modmain.lua +++ b/modmain.lua @@ -61,8 +61,8 @@ TUNING.GAMEMODE_STARTING_ITEMS.DEFAULT.AIRANA= { } TUNING.STARTING_ITEM_IMAGE_OVERRIDE["stormriderwhip"] = { - atlas = "images/inventoryimages/Stormriderwhip.xml", - image = "Stormriderwhip.tex", + atlas = "images/inventoryimages/stormriderwhip.xml", + image = "stormriderwhip.tex", } -- Weapon description STRINGS.NAMES.STORMRIDERWHIP = "Stormrider's Whip" @@ -71,7 +71,7 @@ STRINGS.CHARACTERS.GENERIC.DESCRIBE.STORMRIDERWHIP = "A weapon owned by a Stormr -- Weapon ingredients local RecipeCost = GetModConfigData("RecipeCost") or "stormriderwhiprecipe" if RecipeCost=="stormriderwhiprecipe" then - Recipe("Stormriderwhip", { Ingredient("ice", 10), Ingredient("mosquitosack", 4), Ingredient("boards", 1)}, RECIPETABS.WAR, TECH.SCIENCE_TWO, nil, nil, true, 1, "weaponcraftairanaonly", "images/inventoryimages/Stormriderwhip.xml", "Stormriderwhip.tex") + Recipe("Stormriderwhip", { Ingredient("ice", 10), Ingredient("mosquitosack", 4), Ingredient("boards", 1)}, RECIPETABS.WAR, TECH.SCIENCE_TWO, nil, nil, true, 1, "weaponcraftairanaonly", "images/inventoryimages/stormriderwhip.xml", "stormriderwhip.tex") end -- Custom speech strings diff --git a/scripts/prefabs/stormriderwhip.lua b/scripts/prefabs/stormriderwhip.lua index 132c471..b062974 100755 --- a/scripts/prefabs/stormriderwhip.lua +++ b/scripts/prefabs/stormriderwhip.lua @@ -148,7 +148,7 @@ local function fn() inst:AddComponent("inspectable") inst:AddComponent("inventoryitem") - inst.components.inventoryitem.atlasname = "images/inventoryimages/Stormriderwhip.xml" + inst.components.inventoryitem.atlasname = "images/inventoryimages/stormriderwhip.xml" inst:AddComponent("equippable") inst.components.equippable:SetOnEquip(onequip) inst.components.equippable:SetOnUnequip(onunequip)