Posts by turbodestroyer
-
-
turbodestroyer added a new version:
Quote- minor fixes in loadouts
-
turbodestroyer added a new version:
FileCroupier (random loadouts + flea quicksell) 1.2.1minor update
- fixes for some presets
new mods support:
- Ratnik Spring Gear Pack
- Kel-Tec KSG-12
(3.10)QuoteDisplay More -
turbodestroyer added a new version:
FileCroupier (random loadouts + flea quicksell) 1.2.0Code changes and fixes:
- Added a config option to enable FiR trading only after level 15 (It's too OP to have a trader who buys stuff for flea market prices before you actually have access to the flea market). Obviously, if you have FiR trading disabled it won't work anyway
- Made ammo counts a bit more random
- Added more variety to mail messages instead of just having one
- Slightly increased prices for the low tier (sometimes you could sell stuff for more money than you paid)
- Reworked…QuoteCode changes and fixes:
- Added a config option to enable FiR trading only after level 15 (It's too OP to have a trader who buys stuff for flea market prices before you actually have access to the flea market). Obviously, if you have FiR trading disabled it won't work anyway
- Made ammo counts a bit more random
- Added more variety to mail messages instead of just having one
- Slightly increased prices for the low tier (sometimes you could sell stuff for more money than you paid)
- Reworked ineffective FiR selling algorithm. Thanks to jj2022 for bringing this to my attention!
- Tried to fix a weird bug I saw once but couldn’t reproduce again. Thanks to DaProk for the report!
- People report it's possible to get the "loadout" box either from a crate (because of other mods or in vanilla - need to investigate), or from the mentioned bug above. So, now you can sell those boxes back to Croupier, with some losses, of course. Thanks to Beat2er for this suggestion!
Added support for:
- Cz-75
- Some new items from Tactical Gear Component
Loadout generation fixes:
- If the weapon has only 2x2 type mags (machine guns basically) and the selected chestrig doesn’t have a 2×2 slot, the mag now goes in the backpack
- Fixed M249 presets that were using muzzle devices for 7.62×51 barrels
- Low-tier tactical modules were too good — now you’ll mostly see a blue laser or a simple flashlight
---
(3.10)
If you encounter critical bugs with this version please report them and switch back to 1.1.2 for some time.
Thanks to the SPT community for all the warm comments!
-
turbodestroyer added a new version:
FileCroupier (random loadouts + flea quicksell) 1.1.2Loadout generation
🎉 Loadout generation is now independent of confirmTrading. Now other mods with custom implementation of TradeController should not break this (core) functionality.
FiR selling (Blackmarket)
- FiR selling still depends on a custom TradeController implementation. As a result, mods that modify standard trading either break FiR selling or the other way around.
- Because of that, and because not all people need this FiR selling feature, this option is now *disabled by default*. If you…QuoteLoadout generation
🎉 Loadout generation is now independent of confirmTrading. Now other mods with custom implementation of TradeController should not break this (core) functionality.
FiR selling (Blackmarket)
- FiR selling still depends on a custom TradeController implementation. As a result, mods that modify standard trading either break FiR selling or the other way around.
- Because of that, and because not all people need this FiR selling feature, this option is now *disabled by default*. If you think you don't have other mods intercepting standart TradeController feel free to enable this option ('enable_custom_FIR_selling' in config.json)
Added support for:
- WTT M249
- (Partial) Tactical Gear component
Bug fixes:
- Fixes for gun presets- 2 code hotfixes for 1.1.0
(3.10) -
Some mods (for example, my mod or this one) need such functionality:
1) The user (player) buys something from a trader
2) Instead of delivering the item the trader messages the player, or increases player's EXP, or puts a quest item into his quest stash, etc
To achieve this all such mods have a class extending the spt TradeController, with a method that usually looks like this:CodeconfirmTrading(pmcData, body, sessionID) { if (body.tid == TRADER_ID) { // do stuff we want, return what we want } // IMPORTANT: if body.tid (trader's id) is not our trader, return standart confirmTrading return super.confirmTrading(pmcData, body, sessionID); }
and register it like this:
Codecontainer.register("CustomTradeController", CustomTradeController_1.CustomTradeController); container.register("TradeController", { useToken: "CustomTradeController" });
--
So essentially it replaces the entire TradeController implementation in the container. So if another mod tries the same thing, only one can win. Whichever mod is loaded last will be the only one that actually overrides TradeController.
Another option could be intercepting /client/game/profile/items/moving via staticRouterModService.registerStaticRouter, but it's when the trade happened and items were already added/removed - which doesn't work for my case.
Is there any other option to intercept standart trading, and either run my custom logic or pass it forward, without damaging other mods functionality? -
turbodestroyer added a new file:
QuoteThis trader does 2 things:
1) 🔫 Sells random loadouts - a weapon, loaded mags, gear, meds, etc, so you can literally jump right back into a raid in 20–30 seconds after dying.
▶️ Video demonstration2) 💸 (*Disabled by default) Buys FiR items and pays an average flea market price for them, minus a 15% tax.
Read "FiR selling compatibility" part if you want to enable it.
This functionality is basically updated and simplified 101p's "Blackmarket" mod------------
Notes:
- There are 3 tiers of loadouts: low, mid and top. You can choose to buy a loadout with or without a gun.
- Generally, you’ll get what you pay for. However, there’s a chance you might get a TOZ-106 in the top tier or a Slick armor with level 6 plates in the low tier for example.
- Gun presets are randomized, but mods for each gun and tier are carefully handpicked, - which means presets rarely recur and they don't need much adjustments at the same time.
- If your PMC is naked, just use Alt+click on item to wear it.
- The "Blackmarket" (FiR quicksell) feature is ported with its main problem: you can't see how much money you're gonna get before selling. Can't do anything about it, nor really care.- The "Blackmarket" (FiR quicksell) feature is now disabled by default - not all people seem to need it and it also has a compatibility problem (see below).
- Also, there is an option that doesn't allow you to sell FiR items for fleamarket price before you reach level 15.
------------* FiR selling compatibility:
This feature is conflicting with any mod that intercepts the standart trading (sends you items in messages, sells XP points/skills, non-inventory quest items, etc) - for example, Skulltag's Personal Trainer and Bluehead's AIO Trader.
You can still enable it in config.json.
------------
Custom guns/mods/gear support:
- WTT M249
- WTT AEK-971
- WTT AN-94
- WTT Cz-75
- Choccy Milk's Walter WA 2000
- Choccy Milk's Armsel Striker-12
- Choccy Milk's Kel-Tec KSG-12 Shotgun
- Kopat1ch'es Ratnik Spring Gear Pack
- Kopat1ch'es A-TACS FG Pack
- MoxoPixel's Tactical Gear component (Partial, work in progress)More in future updates
------------
The mods I used/looked into (thanks):
- 101p’s Blackmarket (updated with minimal edits)
- Bluehead’s AIO Trader (custom trader controller)
- Dsnyder's Unknown Survivor (used as a template for the trader)