Jump to content

RedPanda33

Member
  • Content Count

    5
  • Joined

  • Last visited

About RedPanda33

  • Rank
    Freshly Bitten

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. ^ title. Wanna make a more minimalistic / fancy mod out of it. I assume (as far as I got searching through the files), that its packed inside those "ui*.pack" files. If so, how to encrypt and decompress those?
  2. Adding recipes in, well, recipe.txt isn't an issue, but the recipe I want to edit is located in the building system ( LogWall - ISBuildungMenu.lua ) and if I change the code like local numRippedSheets = ISBuildMenu.countMaterial(player, "Base.RippedSheets") + ISBuildMenu.countMaterial(player, "Base.RippedSheetsDirty") local numTwine = ISBuildMenu.countMaterial(player, "Base.Twine") local numRope = ISBuildMenu.countMaterial(player, "Base.Rope") if numRippedSheets >= 2 then tooltip.description = tooltip.description .. " <RGB:1,1,1>" .. getItemNameFromFullType("Base.RippedSheets") .. " 2 "; elseif numTwine >= 0.1 then tooltip.description = tooltip.description .. " <RGB:1,1,1>" .. getItemNameFromFullType("Base.Twine") .. " 0.7 "; elseif numRope >= 0.5 then tooltip.description = tooltip.description .. " <RGB:1,1,1>" .. getItemNameFromFullType("Base.Rope") .. " 0.5 "; else tooltip.description = tooltip.description .. " <RGB:1,0,0>" .. getItemNameFromFullType("Base.RippedSheets") .. " " .. numRippedSheets .. "/2 <LINE> " .. getText("ContextMenu_or") .. " " .. getItemNameFromFullType("Base.Twine") .. " " .. numTwine .. "/0.7 <LINE> " .. getText("ContextMenu_or") .. " " .. getItemNameFromFullType("Base.Rope") .. " " .. numRope .. "/0.5 "; if not ISBuildMenu.cheat then logOption.onSelect = nil; logOption.notAvailable = true; end end [... further below ...] ISBuildMenu.canBuildLogWall = function(player) local logs = ISBuildMenu.countMaterial(player, "Base.Log") local sheets = ISBuildMenu.countMaterial(player, "Base.RippedSheets") + ISBuildMenu.countMaterial(player, "Base.RippedSheetsDirty") local twine = ISBuildMenu.countMaterial(player, "Base.Twine") local rope = ISBuildMenu.countMaterial(player, "Base.Rope") return logs >= 5 and (sheets >= 2 or twine >= 0.7 or rope >= 0.5) end ISBuildMenu.onLogWall = function(worldobjects, player) local wall = ISWoodenWall:new("carpentry_02_80", "carpentry_02_81", nil); wall.modData["need:Base.Log"] = "5"; local sheets = ISBuildMenu.countMaterial(player, "Base.RippedSheets"); local sheetsDirty = ISBuildMenu.countMaterial(player, "Base.RippedSheetsDirty"); if sheets > 2 then sheets = 2; sheetsDirty = 0 end if sheetsDirty > 2 then sheetsDirty = 2; sheets = 0 end if sheets < 2 and sheetsDirty > 0 then sheetsDirty = 2 - sheets; end if sheets + sheetsDirty >= 2 then if sheets > 0 then wall.modData["need:Base.RippedSheets"] = tostring(sheets); end if sheetsDirty > 0 then wall.modData["need:Base.RippedSheetsDirty"] = tostring(sheetsDirty); end elseif ISBuildMenu.countMaterial(player, "Base.Twine") >= 0.7 then wall.modData["need:Base.Twine"] = "0.7"; elseif ISBuildMenu.countMaterial(player, "Base.Rope") >= 0.5 then wall.modData["need:Base.Rope"] = "0.5"; end wall.modData["xp:Woodwork"] = 5; wall.player = player; wall.noNeedHammer = true wall.canBarricade = false wall.name = "Log Wall" getCell():setDrag(wall, player); end it will rather use up the entire item, be it 0.5 / 0.7 delta (respective to their items) 0.1 or even full delta capacity.
  3. Yea, I did add that the to list. I tried to match the Twine properties in this case, which btw is also not draining as wanted on the Log-Wall recipe.
  4. I am trying to balance the game to a more reasonable usage and weight system (like a pencil's weight being 10g (weight = 0.01) instead of vanilla 100g ... o-รด). Currently adjusting delta values for each item. In this example Rope. Having declared a delta for it but want to make it decreasable instead of simple using it up entirely. My current issue is the following: Log walls using up an entire Rope-Stack (same for Twine), but I want to get that reduced until it reaches 0.0 delta. Has anyone an idea how to logically program this in ISBuildungMenu.lua:821 to 843? Or am I on the wrong side of "consumable" directories and files regarding UseDelta values? I would "copy" some other logics and try to lern from those, like soap, propane torch and so on, but I cannot find any regarding file for that matter. Thanks in advance!
×
×
  • Create New...