Stardew Valley
0 of 0

File information

Last updated

Original upload

Created by

Jower

Uploaded by

Jower

Virus scan

Safe to use

209 comments

  1. dbwolfy
    dbwolfy
    • premium
    • 9 kudos
    Jower, I have a question. How can I have the single highest level weapon locked on the first slot? Under ItemLock I have "1": "Weapon" but let's say I place all three galaxy weapons on my inventory, it somehow defaults to the galaxy dagger, the lowest level. I thought of switching to "-Weapon" but that changed nothing. 

    Here's my config file if anyone wants a base to work with.
    Spoiler:  
    Show

    {
      "Sorting": [
        "Pickaxe",
        "Hoe",
        "Axe",
        "Scythe",
        "Can",
        "CategoryNum=-7",
        "CategoryNum=-99",
        "-CategoryNum",
        "-Type",
        "GrowthSeason",
        "MultiSeason",
        "Regrows",
        "GrowthTime",
        "Edibility",
        "-Name=.* Ore",
        "BaseValue",
        "-Name",
        "-Quality",
        "ItemID"
      ],
      "RightClickSorting": [
        "Scythe",
        "Hoe",
        "Pickaxe",
        "Axe",
        "Can",
        "CategoryNum=-7",
        "Name=Pine Cone",
        "Name=Acorn",
        "Name=Maple Seed",
        "Name=Mahogany Seed",
        "CategoryNum=-74",
        "CategoryNum=-21",
        "CategoryNum=-22",
        "CategoryNum=-99",
        "CategoryNum",
        "-Type",
        "Regrows",
        "GrowthTime",
        "Edibility",
        "-Name=.* Ore",
        "BaseValue",
        "-Name",
        "-Quality",
        "ItemID"
      ],
      "MiddleClickSorting": [],
      "AutoStack": true,
      "ItemLock": {
        "1": "Weapon",
        "11": "Name=.*Bomb",
        "12": "Slingshot"
      },
      "RightClickItemLock": {},
      "MiddleClickItemLock": {},
      "Controls": {
        "LeftShortcut": "X",
        "LeftShortcut2": "None",
        "RightShortcut": "None",
        "RightShortcut2": "None",
        "MiddleShortcut": "None",
        "MiddleShortcut2": "None"
      }
    }
    1. Jower
      Jower
      • member
      • 4 kudos
      It will always grab the last weapon in your inventory. So if weapons are sorted by -WeaponLevel at some point it should grab the highest level one.
    2. dbwolfy
      dbwolfy
      • premium
      • 9 kudos
      That worked, thank you!!
  2. Psybabbler
    Psybabbler
    • member
    • 0 kudos
    Hi!
    I have a request towards anyone with the willingness to help me out. My request is that i want specific sorting attached to my left click.

    I'm looking for...
    slot 1, Weapon, based off Highest level.
    slot 2, Pickax
    slot 3, Axe
    slot 4, Scythe
    slot 5, Rod
    slot 6, Hoe
    Slot 7, Can
    Slot 8, Food, That fills in from a given list.
    Slot 9, Bombs, That fills from a given list.
        All items above are listed in their importance with 1 being most. This is in thought that when one item is removed, the items below are elevated to more important slots in order.

    Slot 36,  Returning Scepter
        The returning scepter is always placed it the vary last bag position.

    Is this possible? If so, how do I do this?
    Also, how do I disable middle, or right mouse sort options if I wanted?

    My attempt at using this mod. What I have in mind is the tool-belt and backpack to be affected as little possible. With keeping my tools in one spot, as best as possible. While using the mod as intend for chest storage around the farm.
    Spoiler:  
    Show
    {
      "Sorting": [
        "-CategoryNum",
        "Type",
        "-Name",
        "-Quality",
        "-Stack",
        "ItemID"
      ],
      "RightClickSorting": [
        "CategoryNum=-99",
        "StackValue",
        "-Name"
      ],
      "MiddleClickSorting": [],
      "AutoStack": true,
      "ItemLock": {
        "1": "-Name=.*Hammer",
        "2": "Name=.*Pickaxe",
        "3": "Name=.*Axe",
        "4": "-Name=.*Scythe",
        "5": "-Name=.*Rod",
        "6": "Name=.*Hoe",
        "7": "Name=.*Can",
        "8": "-Edibility",
        "11": "-Name=.*Bomb",
        "12": "-Name=.*Slingshot",
        "13": "Ignore",
        "14": "Ignore",
        "15": "Ignore",
        "16": "Ignore",
        "17": "Ignore",
        "18": "Ignore",
        "19": "Ignore",
        "20": "Ignore",
        "21": "Ignore",
        "22": "Ignore",
        "23": "Ignore",
        "24": "Ignore",
        "25": "Ignore",
        "26": "Ignore",
        "27": "Ignore",
        "28": "Ignore",
        "29": "Ignore",
        "30": "Ignore",
        "31": "Ignore",
        "32": "Ignore",
        "33": "Ignore",
        "34": "Ignore",
        "35": "Ignore",
        "36": "Name=.*Scepter"
      },
      "RightClickItemLock": {
        "1": "-Name=.*Hammer",
        "2": "Name=.*Pickaxe",
        "3": "Name=.*Axe",
        "4": "-Name=.*Scythe",
        "5": "-Name=.*Rod",
        "6": "Name=.*Hoe",
        "7": "Name=.*Can",
        "8": "-Edibility",
        "11": "-Name=.*Bomb",
        "12": "-Name=.*Slingshot",
        "13": "Ignore",
        "14": "Ignore",
        "15": "Ignore",
        "16": "Ignore",
        "17": "Ignore",
        "18": "Ignore",
        "19": "Ignore",
        "20": "Ignore",
        "21": "Ignore",
        "22": "Ignore",
        "23": "Ignore",
        "24": "Ignore",
        "25": "Ignore",
        "26": "Ignore",
        "27": "Ignore",
        "28": "Ignore",
        "29": "Ignore",
        "30": "Ignore",
        "31": "Ignore",
        "32": "Ignore",
        "33": "Ignore",
        "34": "Ignore",
        "35": "Ignore",
        "36": "Name=.*Scepter"
      },
      "MiddleClickItemLock": {
        "1": "-Name=.*Hammer",
        "2": "Name=.*Pickaxe",
        "3": "Name=.*Axe",
        "4": "-Name=.*Scythe",
        "5": "-Name=.*Rod",
        "6": "Name=.*Hoe",
        "7": "Name=.*Can",
        "8": "-Edibility",
        "11": "-Name=.*Bomb",
        "12": "-Name=.*Slingshot",
        "13": "Ignore",
        "14": "Ignore",
        "15": "Ignore",
        "16": "Ignore",
        "17": "Ignore",
        "18": "Ignore",
        "19": "Ignore",
        "20": "Ignore",
        "21": "Ignore",
        "22": "Ignore",
        "23": "Ignore",
        "24": "Ignore",
        "25": "Ignore",
        "26": "Ignore",
        "27": "Ignore",
        "28": "Ignore",
        "29": "Ignore",
        "30": "Ignore",
        "31": "Ignore",
        "32": "Ignore",
        "33": "Ignore",
        "34": "Ignore",
        "35": "Ignore",
        "36": "Name=.*Scepter"
      },
      "ShortcutButtons": []
    }


       This works, but in the most broken way! If my backpack is scrambled with the items listed in my Spoiler. LMB, and RMB sorting does nothing. Even after I move items around. Now if I press Middle Mouse sort option. It will randomly sort all to the top first row. Then! If I click LMB or RMB sorting, it works near to correct. Where only the food and the bombs move about as deemed by the global sorting settings of each option. MMB sorting still randomly sorts everything to my understanding.
       Besides that, I have noticed both the new Fishing Rod, and Scythe seem to be NOT accounted for. Also sorting for the Greater Version of the Sling Shot, Fishing Rod, or the Scythe seems to be not possible or broken. My last observation is that the "Ignore" seems to not work as intended, mostly with the Middle Mouse sorting options.
       I have spent far to many hours dickering with this mod. To the point I wished my first option with Vertical Toolbar was updated! The mod author is lazy when it comes to explaining what this mod can, and can't do. I shouldn't have to learn a new language as posted by another in the forum to a Wiki as reference. Not to mention while I messed with this...mod. Knowing I read the author doesn't actively play SDV only Frustrated me more on the assumption they will likely not give this mod further updates, or pass the code along.... Rant Over!

    Edit: I turned to another mod called, Vertical Toolbar For Stardew Valley. I think this will serve my needs to keep my tools at hand and in one place. Allowing Better Sort to do what its does best.
    1. dbwolfy
      dbwolfy
      • premium
      • 9 kudos
      Because you placed IGNORE on pretty much all slots, you are telling the mod to not sort them, hence why your inventory is a mess now. Look at Noisyfox and NemoJr config options in the previous replies and you should get a better idea how to use the config file.
    2. nugurado999
      nugurado999
      • member
      • 0 kudos
      수정해서 쓰세요

      {
        "Sorting": [
          "-CategoryNum",
          "Type",
          "Name",
          "-Quality",
          "-Stack",
          "ItemID"
        ],
        "RightClickSorting": [
          "CategoryNum=-99",
          "StackValue",
          "-Name"
        ],
        "MiddleClickSorting": [
          "-CategoryNum",
          "Type",
          "Name",
          "-Quality",
          "-Stack",
          "ItemID"
        ],
        "AutoStack": true,
        "ItemLock": {
        
               "1": "Hoe",//호미
               "2": "Pickaxe",//곡갱이
               "3": "Axe",//도끼
      "4": "Name=Return Scepter",//귀환의 지팡이
      "10": "Name=Coffee",  //커피
      "11": "Name=Triple Shot Espresso",  //트리플 샷 에스프레소
             "12": "Name=Crab Cakes",  //게살 케이크
      "13": "Name=Infinity Blade",       //인피니티 블레이드
      "14": "Scythe",//낫
      "15": "Name=Horse Flute",  //말피리
      "16": "Name=Salad"//샐러드
        },
        
        "RightClickItemLock": {
        
                "1": "Hoe",//호미
      "25": "Name=Return Scepter",   //귀환의 지팡이
      "26": "Name=Horse Flute",//말피리
      "27": "Name=Infinity Blade",     //인피니티 블레이드

              "28": "Pickaxe",   //곡갱이
              "29": "Axe",    //도끼
      "30": "Scythe",//낫
      "31": "Name=Salad",//샐러드
      "32": "Name=Coffee",   //커피
      "33": "Name=Triple Shot Espresso",   //트리플 샷 에스프레소
              "34": "Name=Crab Cakes"//게살 케이크

        },
        "MiddleClickItemLock": {
      "1": "Name=Infinity Blade",//인피니티 블레이드
             "2": "Pickaxe",//곡갱이
      "3": "Name=Salad",//샐러드
      "4": "Name=Staircase",//계단
      "5": "Name=Mega Bomb",//거대 폭탄

      "11": "Name=Triple Shot Espresso",//트리플 샷 에스프레소
             "12": "Name=Crab Cakes",//게살 케이크
      "25": "Name=Return Scepter",//귀환의 지팡이
      "26": "Name=Horse Flute",//말피리
              "27": "Hoe",//호미
              "28": "Axe",//도끼
      "29": "Scythe",//낫
      "30": "Name=Coffee"//커피

        },
        "Controls": {
          "LeftShortcut": "None",
          "LeftShortcut2": "None",
          "RightShortcut": "None",
          "RightShortcut2": "None",
          "MiddleShortcut": "None",
          "MiddleShortcut2": "None"
        }
      }

      /*
              "": "Weapon",//무기
      "": "Hoe",//호미
      "": "Pickaxe",//곡갱이
      "": "Axe",//도끼
      "": "Scythe",  //낫
      "": "Can",//물뿌리개
      "": "Rod",//낚싯대
      "": "Name=Chub",//피라미
      "": "Name=Kale", //케일
      "": "Name=Hops",//홉
      "": "Name=Eggplant", //가지
      "": "Name=Salad",//샐러드
      "": "Name=Pepper Poppers",//페퍼 파퍼
      "": "Name=Crab Cakes",//게살 케이크
      "": "Name=Coffee",//커피
      "": "Name=Spicy Eel",//매콤한 장어
      "": "Name=Green Bean",//완두콩
      "": "Name=Corn",//옥수수
      "": "Name=Tortilla",   //또띠아
      "": "Name=Sashimi",//회
      "": "Name=Joja Cola",//조자 콜라

      "": "Name=Horse Flute",//말피리
      "": "Name=Return Scepter",//귀환의 지팡이
      "": "Name=Mega Bomb",//거대 폭탄
      "": "Name=Staircase",  //계단
      "": "Name=Radioactive Ore",//방사능 광석
      "": "Name=Iridium Ore",//이리듐광석
      "": "Name=Gold Ore",  //금광석
      "": "Name=Iron Ore",   //철광석
      "": "Name=Copper Ore",//구리광석
      "": "Name=Quartz",//석영
      "": "Name=Coal",//석탄
      "": "Name=Radioactive Bar",//방사능 주괴
      "": "Name=Iridium Bar",//이리듐주괴
      "": "Name=Gold Bar",//금주괴
      "": "Name=Iron Bar",//철주괴
      "": "Name=Copper Bar",//구리주괴
      "": "Name=Refined Quartz",//정제된 석영
      "": "Name=Galaxy Sword",//갤럭시 소드
      "": "Name=Galaxy Dagger",//갤럭시 대거
      "": "Name=Galaxy Hammer",//갤럭시 해머
      "": "Name=Infinity Blade",    //인피니티 블레이드
      "": "Name=Infinity Dagger",  //인피니티 대거
      "": "Name=Infinity Gavel",    //인피니티 의사봉
      "": "Name=Triple Shot Espresso",//트리플 샷 에스프레소
      "": "Name=Slime Charmer Ring",//슬라임부리미 반지
      */
    3. Psybabbler
      Psybabbler
      • member
      • 0 kudos
      How would you Correct my mistakes?? The point of what i want to do is keep my tools in one spot, all ways. If you can do better, show me how.
    4. Jower
      Jower
      • member
      • 4 kudos
      Just remove all the rows with "ignore" on them. If you don't want to lock a slot you just leave that number out. Ignore is for if you want it to keep whatever is in that slot there.
  3. NephiDragon
    NephiDragon
    • member
    • 0 kudos
    Hey I can't get Middle or Right Click sorting to work, idk if I'm doing something wrong or if it's conflicting with another mod (totally possible)
    It works for normal sorting, when I assign a hotkey to it, but I wanted to be able to do middle click to customize the order and still use the default game sorting via the "sort" button in chests 
  4. Arkanzier
    Arkanzier
    • member
    • 0 kudos
    Is there a way (or would it be possible to add something to allow this) to specify that a particular item lock slot gets something that will heal me when I eat it?

    Basically, I'm looking to set up something like this, and then presumably let the regular sorting stuff figure out which edible item to put in that slot:
    "ItemLock": {
       "1": "Weapon",
       "2": "Edibility>0"
    }
    1. Jower
      Jower
      • member
      • 4 kudos
      In 1.5.0 you can now lock "Edibility" to catch any item with an edibility above 0. Or even "Edibility=30" to catch a specific edibility for whatever reason. Still no support for < or > though
    2. Arkanzier
      Arkanzier
      • member
      • 0 kudos
      That does exactly what I was looking for, thank you.
  5. mileserrans2
    mileserrans2
    • member
    • 0 kudos
    Can some kind smarter soul help me?
    I need to find the Syntax to item lock the life elixir and staircases on positions 1 and 14 so I can sort thing in the mines without losing my setup.
    I figured the other itens I use, but those two are killing me.
    1. Jower
      Jower
      • member
      • 4 kudos
      "1": "Name=Life Elixir",
      "14": "Name=Staircase"
      Under "ItemLock" would be the most straight forward way to do that.
      You might mean position 12 though?
    2. mileserrans2
      mileserrans2
      • member
      • 0 kudos
      Thanks!

      No, I really mean 14.
      As I can access it with one button from my weapon.
      1 life elixir, 2 weapon, 3 bomb
      14 is right where my weapon would be when I change the current bar.
  6. mileserrans2
    mileserrans2
    • member
    • 0 kudos
    So, I was Tweaking my categories and now half the time I sort some of my tools desapear.
    The following day they apear in the lost itens box on Mayor house.
    Smapi is trowing some errors, but reinstalling the mod or reverting config to previous working configs doesn't solve the problem.

     https://smapi.io/log/564842d89de14a5daea3a0e129bc3e6a
    1. Jower
      Jower
      • member
      • 4 kudos
      That's concerning. Seems you are having items with no name in your inventory? I don't know how that could happen. I suppose I'll try to make it keep working even if that happens.
    2. mileserrans2
      mileserrans2
      • member
      • 0 kudos
      It may or may not be Omni Tools.
      The tools that desapeared where axe, pickaxe, pan and can. Three of them where in the same slot, but the can weren't, so I don't know.
      I'm not versed in moding 
    3. Jower
      Jower
      • member
      • 4 kudos
      It doesn't seem to be Omni Tools. At least not from some quick testing.
    4. mileserrans2
      mileserrans2
      • member
      • 0 kudos
      So, after the last update my problem seem to not be happening anymore.
      I still don't know why it was happening and have no idea what the update changed for it to not bug.
      But I'm happy to have your mod back.
    5. Jower
      Jower
      • member
      • 4 kudos
      I added some checks to prevent that bug. I still don't know what caused it though
  7. mileserrans2
    mileserrans2
    • member
    • 0 kudos
    This Mod help me so much with "menuing". I live it.
    But I have a question. It may be dumb, but can't help.
    There is some way to change "right click" and "left click" for different keys? I play with controller, so would be nice.
    The "default" sort works fine.
    1. Jower
      Jower
      • member
      • 4 kudos
      The new version should have what you want.
  8. bronze34
    bronze34
    • member
    • 0 kudos
    can it also stack items that don't normally stack like fishing bobbers/tackles?
    1. Jower
      Jower
      • member
      • 4 kudos
      This mod doesn't change the "rules" of the game at all
  9. NephiDragon
    NephiDragon
    • member
    • 0 kudos
    Hey, when I try using this mod (version 1.3x or 1.4x) it doesn't seem to work? It doesn't create any config file.
    1. sambamc
      sambamc
      • premium
      • 0 kudos
      Same. I'm not sure what's breaking it but it's definitely broken for me. 
  10. NemoJr
    NemoJr
    • member
    • 5 kudos
    I made a custom config and wanted to share (it's at the bottom, inside the spoiler tag). You can copy/paste the entire thing into config.json (make sure it's empty first) or you can use it as a starting point to make your own. Works best when you're not carrying a lot of irrelevant junk (like farming tools while mining, or tree seeds when planting crops)

    Here's a summary of what it does, in hooman-readable format:


    General sorting rules:

    - Tools at the top.
    - Sort the rest by category, energy/health gain, value; in that order.
    - Sort seeds among themselves by regrowable/non-regrowable, growth time, value; in that order.


    Specific rules:

    Left Click: Combat / Mining / Fishing in dangerous environments
    Right Click: Farming / Foresting / Fishing in safe environments
    Middle Click: Exclude first row - Does a general sort without touching your hotbar.

    You can examine the code for details.


    Notes:

    - "Locked" slots, when their assigned item isn't in inventory, act like any other empty slot.
    - "CategoryNum=-99" is tools. -7 is food, -74 is seeds, -21 & -22 are baits & tackles.

    (I used this as the resource; posted by Jower)
    (Also see this for how to use "regular expressions" in your search rules.)


    Have fun!

    Spoiler:  
    Show
    {
    "Sorting": [
    "CategoryNum=-7",
    "Rod",
    "Pan",
    "Axe",
    "CategoryNum=-99",
    "CategoryNum",
    "-Type",
    "Regrows",
    "GrowthTime",
    "Edibility",
    "BaseValue",
    "-Name",
    "-Quality",
    "Stack",
    "ItemID"
    ],
    "RightClickSorting": [
    "Rod",
    "Pan",
    "CategoryNum=-7",
    "Weapon",
    "Axe",
    "Name=Pine Cone",
    "Name=Acorn",
    "Name=Maple Seed",
    "Name=Mahogany Seed",
    "CategoryNum=-74",
    "CategoryNum=-21",
    "CategoryNum=-22",
    "CategoryNum=-99",
    "CategoryNum",
    "-Type",
    "Regrows",
    "GrowthTime",
    "Edibility",
    "BaseValue",
    "-Name",
    "-Quality",
    "Stack",
    "ItemID"
    ],
    "MiddleClickSorting": [
    "CategoryNum=-99",
    "CategoryNum",
    "-Type",
    "Regrows",
    "GrowthTime",
    "Edibility",
    "BaseValue",
    "-Name",
    "-Quality",
    "Stack",
    "ItemID"
    ],
    "AutoStack": true,
    "ItemLock": {
    "1": "Weapon",
    "2": "Pickaxe",
    "3": "Hoe",
    "11": "Name=.*Bomb",
    "12": "Slingshot"
    },
    "RightClickItemLock": {
    "1": "Scythe",
    "2": "Pickaxe",
    "3": "Hoe",
    "4": "Can",
    "5": "Pail",
    "6": "Shears"
    },
    "MiddleClickItemLock": {
    "1": "Ignore",
    "2": "Ignore",
    "3": "Ignore",
    "4": "Ignore",
    "5": "Ignore",
    "6": "Ignore",
    "7": "Ignore",
    "8": "Ignore",
    "9": "Ignore",
    "10": "Ignore",
    "11": "Ignore",
    "12": "Ignore"
    },
    "ShortcutButtons": []
    }
    1. tohmmo
      tohmmo
      • member
      • 0 kudos
      Thank you!