// Management · RimWorld Mod
[GTG]Vanilla Trade Optimization & Defense Activator
Place this mod near the bottom of your load order (below other faction/trader mods).
Place this mod near the bottom of your load order (below other faction/trader mods).
This mod acts as a global activator designed to inject the core capabilities of GTG Trader Core game-wide.
While GTG Trader Core completely rewrites the vanilla restocking mechanics, its default scope is strictly sandboxed to GTG-series mods. This activator extends those rewritten mechanisms globally. Once enabled, it significantly boosts UI and settlement fluidity for all vanilla-based caravans while proactively intercepting red errors, UI deadlocks, or blank trading windows caused by item data conflicts.
Why a standalone activator instead of baked-in integration?
For runtime safety and player transparency.
GTGTC utilizes high-performance optimization algorithms and defensive insurance mechanisms. To prevent cross-mod friction, its default scope is highly conservative, never altering vanilla or third-party caravan data out of the box. Think of this activator as an opt-in switch. Enabling it hooks vanilla and compatible modded caravans into GTGTC’s optimization and defensive framework. If you prefer vanilla behavior or encounter a specific mod conflict, simply toggle this activator off in your mod list—zero impact on the core GTG mod or other content. Additionally, GTGTC tweaks a few vanilla behaviors. Keeping this separate ensures you always know exactly which mod is modifying what, slashing conflict troubleshooting time. This modularity guarantees save-state stability and gives you absolute clarity over runtime changes.Under the Hood & Scope of Impact
In vanilla RimWorld, all caravans and orbital traders rely on the underlying StockGenerator logic to instantiate items and determine inventory composition.Supported Scope:
Any caravan (vanilla or modded) that utilizes the native StockGenerator pipeline. Upon loading, this mod intercepts and seamlessly upgrades them to the fully optimized, crash-proof GTGTC version.Out of Scope:
Mods featuring entirely custom restock pipelines. This activator automatically detects and yields to custom logic to preserve absolute compatibility. Consequently, these unique caravans won't benefit from GTGTC's optimizations. Note: Because this patches at game-load, any mod using vanilla logic that loads after this activator may bypass the patch.Edge Cases & Boundaries:
GTGTC intercepts exceptions strictly during the item generation phase. If an item instantiates successfully but triggers a crash after hitting the caravan inventory (due to broken Pawn or Item logic), GTGTC cannot retroactively intervene.For Bio-Assets (Animals/Humanlikes):
GTGTC provides a built-in insurance policy. If assets are lost due to unforeseen underlying conflicts (unexplained death, vanishing, involuntary faction shifts), GTGTC compensates you with 3x the purchase value in Silver, delivered directly via drop pod.For Item Assets:
Due to their volatile nature, post-sale intervention isn't feasible. Instead, use GTGTC's active blacklist panel to proactively ban problematic items, preventing them from spawning in caravans entirely.Mid-save Toggles:
Both this activator and the GTGTC core are completely safe to add mid-game. This activator can also be safely removed mid-save. However, to remove the GTGTC core, ensure no GTG caravans or mercenaries currently exist in your world state.Core Features
Anti-Overflow Rate Limiting:
When faulty inventory settings or mod conflicts attempt to spawn excessive amounts of non-stackable items (e.g., genepacks, persona weapons), GTGTC intelligently throttles the entity count based on item type. This prevents sudden memory spikes, stutters, or hard locks during instantiation.UI Blanking Prevention:
GTGTC screens items during generation, instantly purging and blacklisting assets capable of breaking the caravan. It seamlessly backfills the inventory deficit with safe alternatives to preserve trade integrity. (In vanilla, a single generation error nukes the entire trade UI, turning it completely blank).Performance Overhaul:
Refactors vanilla’s unoptimized, high-frequency scan loops within the trading pipeline, drastically mitigating UI stutter when opening panels or finalizing deals. The more complex your modlist and the higher your map entity count, the more pronounced this optimization becomes compared to vanilla.Passive Item Blacklist:
Errant assets (Animals/Humanlikes/Items) that threaten to crash generation are automatically blacklisted and saved locally. This cross-save persistent memory ensures they never roll on trader shelves again unless you manually clear the log in settings.
Active Item Blacklist:
Features an in-game GUI filter. You can navigate a tree menu to manually blacklist specific items ahead of time—either to preemptively dodge buggy assets or filter out unwanted junk. Settings apply globally and in real-time across the GTGTC suite (does not retroactively affect already spawned caravans).
Bio-Asset Warranty:
Every biological unit (Animals/Humanlikes) sold via GTGTC is instantly insured. If a purchased unit vanishes, instantly defuses, switches factions, or dies due to low-level mod conflicts during the warranty window, GTG's premium insurance triggers a 3x silver payout.
Slave Name Highlights:
Humanlike assets generated by GTGTC have their names colored in distinct green for immediate visual recognition.