Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
MoreAds
Get enough dystopian hellscape in real life? Hate ads? Too bad!
| Date uploaded | a year ago |
| Version | 1.1.0 |
| Download link | PoikSpirit-MoreAds-1.1.0.zip |
| Downloads | 860 |
| Dependency string | PoikSpirit-MoreAds-1.1.0 |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2304README
I'm guessing you play Lethal Company to get ads, so this will increase the nmber of ads introduced in v70.
There are a number of settings. You can set the max number of ads per day, whether to play an ad as soon as possible on landing, the delay between ads, play ad or reroll timing on deaths, play ad or reroll timing on damage, the earliest time an ad can play, and the latest time an ad can play.
Any time a reroll happens, the ad will happen sooner (or the same time), never later.
Also, ads now play if you're the last one left as well, which means they'll appear in solo play as well.
New: Customize the ad slogans! Format is [slogan]:[value], and comma separated, where value is the maximum value that can be rolled to see that slogan. The roll picks a random int from 0-100, and the check goes from left to right, so keep the list ordered by value low to high. (Debating switching to a weight system.)
Miscellanious fixes
- By default the game gets the ad sale value wrong on clients. This mod fixes that.
- If a suit ad tries to play, something null reference exceptions and then no ad can ever play again. A custom ad selection is forced every time to prevent this, with configurable blacklist.
Support
This isn't guaranteed to work, but it was running well for us for a while. If you run into any issues, please let me know on the github or discord.
Recommendations
Pairs very well with TomatoBird's AdRevenue, though you likely want to decrease the per ad payout since there's so many of them. Capping the number of ads per day and dropping the ad on landing isn't a bad idea either.
CHANGELOG
2.1.0
- Fixing an enum check for clients that changed in v73.
- Fixing config values used when rolling for reset. Was using the first landing chance by accident.
- Adding a bunch of debug messages that should default to off.
2.0.2
- Pulling sale value directly from terminal, as I always should have been.
- Enables compatibility with ButteryFixes with no compat checks needed.
- Mentioning suits fix in ButteryFixes and how to let it work with this mod added as well.
2.0.1
- Fixing Player #[N] showing up when no one is in a slot.
- Adding : to the slogan parsing.
- Added a quick sanitization to the slogans where a missing or invalid weight is replaced with the previous weight in the list plus 1, allowing for quick strictly monotomically more common setting of slogans.
- Until I know how to do mod data loading, quota ad count will always be set to zero on save file loads.
2.0.0
- Adding probabilities to all the ad triggers.
- Last day until quota probabilities are also available separately.
- Resetting the ad wait interval on landing.
- Adding a Max Ads Per Quota setting.
- Adding slogan variables and modifiers:
- {me} for the current player
- {player} for a random player
- {here} for the current planet
- {planet} for a random planet
- {product} for the advertised product
- , to show a comma
- and / to split the slogan between the bottom and top text with the first part overriding the product name that's usually displayed
1.2.0
- Using ads slogans that are furniture only in vanilla to tools with no sale or low sale values.
- Slogan values switched from cumulative distribution to weight function, like the ones used to select interiors on moons, monster spawns, and scrap spawns.
1.1.0
- Add item and furniture (combined) blacklist to prevent errors (suits break ads permanently in vanilla (v72))
- Add customizable ad slogans, defaults to vanilla.
1.0.1
- Fix dll version stuff
1.0.0
- Adding a server side config. LethalConfig is helpful but not required.
- Ads now randomly select after the first time which attempts to play a vanilla ad.
- Can play or speed up ads on player hurt or player death.
0.1.0
- Turns out there's more than one thing that needs to be reset each ad.
- Runs ads every 30 seconds.
0.0.1
- Tell the game it hasn't run an ad yet.