This Rimworld mod adds the ability to Auto Sell items from the trade window using a set of editable rules. These rules can be created and edited via the Autosell Tab.
This Rimworld mod adds the ability to Auto Sell items from the trade window using a set of editable rules. These rules can be created and edited via the Autosell Tab.
So, You've been hoarding a ton of weapons and apparel you've been hoping to sell, or you're frequently harvesting and selling something, but you're getting sick of adjusting sliders for all your hundreds of items. This is mod will make your life easier. After you setup your rules for selling on the overview tab, selling will be only one button press away.
You can create rules for damage equipment, sell only of a certain quality, or even items made from a certain material. Do you have a surplus of stock but don't want to sell everything, you can do that aswell.
If you plan to use AutoSeller with caravans, you'll need to build a Trade Reports Printer and create a shopping list, and be sure to take the Shopping List with you. A Shopping List will connect your caravan with the original colony the list was created on (as long as that colony still has a trade printer) use when sending your caravan to trade with other faction bases.
If AI Selling is enabled it will, by default give a job to the best negotiator avaibable, some social skill is also gained during the job.
Buying Rules can be set buy creating a rule as normal, and setting the Reorder Point and Restock Levels. when your stock goes below the Reorder Point, you will buy stock up to the Restock Level. By setting Sell Point and Reorder Points, you can avoid getting too low levels of stock or storing too much of an item.
Users of the old AutoSeller might scream AHHH! at the new rule creating interface, however the new modular design allows for more complex rule creation while still allowing you to create a rule in under 20 seconds if you want (yes I've tried it).
Another advantage of the new modular design is that there aren't different Rule Types for trading different things (gone are the days of Items/Livestock/Building rules).
You get to choose which filters to add, if you want to sell all of something regardless of health, you don't have to use the health filter.
AutoSeller is an Extendable Framework, and can use Filters outside of the main mod, aswell as extensions to create rules that can be used outside of Trading.
Rules now consist of Groups and Filters. Rule options/settings are at the top of the interface, be sure to set the Rule Description, since unlike AutoSeller 1, Rules are not named for you (this is because rules can become very complex)
Groups don't do anything by themselves but they can hold Filters and other Groups. You can completely ignore using Groups if you want and only use the Root Group to store your Filters.
The right side of the screen contains Properties Tabs for viewing the properties of Groups or Filters
With a Group selected, and from the Group Properties tab on the right side of the interface, double click on Add Filter, this will bring up available filters, click on your chosen filter to add it. Each Filter has different Properties you can manipulate, once added you can double click on it to access these properties.
Click accept to save your rule.
Unzip the contents and place them in your RimWorld/Mods folder.
Activate the mod in the mod menu in the game.
You can test your rule to see what items match it on the Test tab during rule creation, please note that this matches against what is in your colony (note that quantity is deliberately not shown since this can vary greatly when trading) so if your colony doesn't have an item matching, it wont show.
The most used filter is the Category Filter and I suggest using this filter for your first rule. For the Category Filter, browse through the categories and select which item types or categories to add from the list right of the category list (you can hold shift and ctrl to manipulate this list). Added items/categories will be shown on the list below, to remove items from this list, browse back to it to it from categories and deselect.
You can change how a group processes filters by toggling whether a group uses an OR or an AND operator using right click. These are displayed on the group as a Venn diagram, which is two overlapping circles, OR has both cirles filled where AND has only the intersection between cirles filled. The default group behavoir is AND.
When creating complex rules with multiple branches of Groups, it is highly recommended to name your group (top right of the interface)
You can invert the results of a group by right clicking and selecting Negate, this can be used for creating exceptions which I will get into later as it is an advanced topic.
If you want do prevent a rule from firing but not delete it, you can click the S next to the Rule on the AutoSeller Overview. while on the topic of deactivating rules, you can deactivate part of a rule by editing the rule and right clicking the Group you wish to deactivate.
There are multiple ways to Manipulate Groups, you can cut and paste a Group onto another Group, or you can simply drag the Group over to where you want.
Did you know that you can copy/paste a group from one rule to different rule, you can even do this with different extension Rules.
1.0.0.2
Added Confirm Button on Rule Configuration Dialog
Added Up/Down buttons on overview for reordering rules
Modified Rule Label (Overview tab) to use translatable strings (this might need checking, google translate will only take me so far)
Some Minor Improvements
1.0.1.1
Added Coloured Rule Comparison
Added Trade Behaviour Dialog
+Improved Stack selling (e.g. stacks with different health or market value) and sort method to use
+Added option for leaving the Trade window open or closed on Autosell
Fixed Rules not showing health settings in overview window on load
Fixed Rule Config Thing Scrollbar
Fixed Misaligned Rule Config title
Workaround for Minified Art Buildings not selling
Changed Autosell.config location (old config file will be moved for you)
1.0.1.1 Hotfix
Stack Behaviour Fix
1.0.2.3
Added AI Selling
Added Rules Import Dialog
Fixed bug with Trade Dialog when buying without enough silver
1.0.2.4
rewritten for Alpha 12
some tweaks to AI
1.0.2.4b
Added select all buttons for materials on Config Dialog
Adjusted Close/Confirm button positions on Config Dialog
1.1.0.0
Split Main Tab into livestock and items
New Livestock Rule Dialog
Significant internal changes
Added plugin rule library (more about this later)
1.1.0.1
Small fix to livestock label refresh
Enabled Any/All livestock rule matching
Rule Class can now be affected by Livestock kind (animals don't have traits for example)
Rule for Missing bodyparts added (experimental)
1.1.0.2
Rules can now be made to buy as well as sell
tweaks to translations
1.1.0.2a
Hotfix for 0 sell levels
1.1.0.2b
Hotfix for buying stack check
1.1.0.2c
Hotfix items that don't have health values
1.1.0.3
Advanced Rules
various tweaks
1.1.0.3a
Item and Material Lists now sorted
Small changes to the Advanced Rule Dialog
1.1.0.4
Advanced Dialog improvements
+Highlighting on changed fields
+Parent Rule Editing
Main Tab no long shows Advanced button for Art
Art Sculptures should be sellable again
1.1.0.5
Rule for Biological Age
Command Console AI changes
1.1.0.6
Updated for Alpha 13
Caravan AutoSell AI
Caravan will show AutoSell button
Recursion for sweet spot disabled
ASRules combined with main dll
1.1.0.6a
Caravan AI tweaked for better performance
Some Reflection disabled to hopefully play better with mods
Main Tab tweaked
1.1.0.7
Updated for Alpha 14
Parser changes
GUI Tweaks
Forced Incident Defs Option (adds compatibility with XML mods using the same incidents)
1.1.0.8
Fixed an error with the 'Any' Pawn Rule Class
Trade Dialog now opens with tradables set
1.1.0.9
Changes to Caravan Autosell AI (should trigger AI job quicker now)
Trade Dialog changes
+Removed button from Trade Dialog
+Add graphics so you can still tell if AutoSeller is active
1.1.1.0
New Building Rule type (buy/sell packed furniture)
Trading Dialog Changes (Quick Create)
Quick Create Dialog (shows list of related rules for a tradeable)
Import Dialog will now show colony name (for any rulesets saved from now on)
Blank Config line fix
1.1.1.0a
Updated for Alpha 15
1.1.1.1
Existing Trade ships now converted on startup
Pawn rule label fixes
1.1.1.2
Forced Defs now always on
Partial Trades no longer skipped
1.1.1.3
Rules can include/excude sub categories now
Advanced rules will show things in subcategories if subcategories included
Rule materials will show materials from subcategory items if subcategories included
fixed advanced rules not loading when no exclusions were present
1.1.1.4
Fixed an item that is made from no materials not sold when materials selected in the rule
Fixed Building Rules 'Any' not selling items
1.1.1.5
Fix for advanced rules not loading if in a subcategory of its parent
Added Maximum unit value check
Rule Config Dialog Gui Changes
1.1.1.6
Various Gui glitches (Maintab, Rule Config)
Support for Sell Value in Advanced Rules
Translation Strings updated
Fix for Map Reroll 1.4.0 Conflict
1.1.1.7
AI Trade reports
AI tweaks and improvements
Fix for multi stacks not tracking
Fix for items that have multiple categories
1.1.1.7b
Fix for Building type rules causing errors in reports
1.1.1.8
Relaxed config loading events
Added 'Communication Hub' Room Def
1.1.2.0
RuleSets are now bound to certain objects
Trade Printer added
Shopping List added
Autosell tab changes for multiple colonies
Behaviour Dialog settings are separate for each colony
Modified CaravanMeeting Incident
Modified Caravan object
Added Compatibility for Set-Up Camp Mod (check load order)
1.1.2.0a
small fix to the overview windows to show the scroll bar properly
1.1.2.0c
tiny update to caravan reflection
1.1.2.2
Dead Mans Apparel option for Thing Rules
Import Dialog Re-enabled and repurposed (experimental)
1.1.2.3
Updated for A17
Fixed Rules Overview label not updating when edited
Gui listbox multi select functionality Added
Fixed AI not loading correctly
Advanced button now highlighted if Thing Rule has Advanced rules attached
Added German Translation (Thanks to Lauri7x3)
1.1.2.3b
Fix for patch performance
Fixed editing of Minified rules not updating under certain conditions
Fixed Issue with 'Any' Type Minified rules being invalid during load
1.1.2.4
Updated for B18
Removed the need for a named colony
Added Trades Reports Log
Added ability to Merge Shopping lists
updated translations
1.1.2.5
Compatibility patch to allow trading with MiningCo Spaceship
1.1.2.5b
Minor AI tweaks
2.0.0.0
New Modular design
2.0.0.1
Japanese Translation added
2.0.0.2
Updated for RW Build 1974
2.0.1.0
Added Importer
Included Repetition setting
2.0.1.1
fixed 0 silver bug
2.0.1.2
Updated for B19
2.0.1.3
A few Library Additions
Fix for unnamed Rules not displayed in Importer
2.0.1.4
Lib update
Fix for UI Rows
2.0.1.5
Added Work Capable Filter
Corrected Sick filter translation error
Added support for incident maps
2.0.1.6
Added Pawn Skill Filter
Multiple Negotiators
2.0.1.7
Added Animal Filter
Added Statistic Filter
Lib Additions
2.0.1.8
Fixed Drag Reordering
Fixed Filter Select Cancel
2.0.1.9
Added Some Tooltips
Changes to Separate Defs Flag
2.0.2.0
Support for RimPrime
Quick Create
2.0.3.4
Chain Rules
Fix to Apparel Filter
Translation Updates
Update to Low Stack Filter
Undo System
Wiki System
Colour Theme Choice
Fix for Chains interfering with Include Unavailable Setting
2.0.3.5
Some UI fixes
Listbox (and its variations) updated
Filter tweaks
2.0.3.6
ability to include equipped weapons and apparel
ability to include inventory items
slight improvement to Colour Widget
extra option on low stack filter
2.0.3.7
Added XOR operator
Fixed scroll issue on main tab
Fixed bug on low stock filter when searched item wasn't selected
2.0.3.8
Cat filter now using changelist
Slight update to split list
2.0.4.0
Merge Controller
Time Until Rot Filter
2.0.4.1
Import Improvements
+Spaceship Mod Compatiblity Fix
+Current Choice
Alternate Shopping List Behaviour Option
Carrying Capacity Filter
Apparel Filter Fix
Trade UI Icon Fix
2.0.4.2
Serum Filter
Sorting System
Clone Button
Minor UI fixes
2.0.4.3
Harmony Mod Dependancy
Trait Filter fix for pawns without traits
Post Check Fractions option added (untested)
Notify of AI Zero Trades option added
Favor Traders should be ignored by AI now
2.0.4.4
Fixed for rimworld build 2579
2.0.4.5d
Maintab Icon
AI Fluff
AI Delay between ships
AI Trade Permits check
ASWidget improvements
2.0.4.5e
Hotfix for saving while AI job is active
2.0.4.5f
updated for 1.2
Fix for Zero Trade Flag