CommunityBadges
Добавляет пользовательские значки из идей и произведений искусства, предоставляемых пользователями на сервере Peak Modding Discord.

от Snosz
Помогает моддерам добавлять пользовательские значки к своим модам и возможность сделать свою собственную косметику разблокируемой через значки.
MoreBadges — мод для PEAK (Пик) от автора Snosz. Помогает моддерам добавлять пользовательские значки к своим модам и возможность сделать свою собственную косметику разблокируемой через значки.
Его скачали 78,8 тыс. раз: это 145-е место среди модов PEAK в нашем каталоге, редкость — «редкий» (топ-50% по скачиваниям). Мод обновлялся в течение года, актуальная версия — 0.3.5.
Для работы ему нужны: BepInExPack PEAK.
3 шт · нажмите, чтобы открыть
Текст автора на языке оригинала
Helps modders add custom badges to their mods and the ability to make their custom cosmetics unlockable through badges
As this mod is in its early stages, I would appreciate if any modders who have issues with the mod or have suggestions for improvements, to please reach out to me. The best way to reach me is through the More Badges thread on the Peak modding discord server.
This guide will be improved in future updates as the mod matures.
To add a custom badge, you will first need to download this mod and place the dll file as a reference in your mod project. For now, the easiest way to ensure that your mod loads after More Badges is to add a dependancy at the top of your plugin file.
[BepInDependency("com.snosz.morebadges", BepInDependency.DependencyFlags.HardDependency)]
This mod currently relies on the badge name being unique and consistent. To ensure this we add some constants so that we can easily use them later and only need to define the badge names once. The recommended format for badge names are below, dont worry the display name can be whatever you like.
public static class BadgeNames
{
// The ideal format for your badge names would be something like Badge_ModName_BadgeName
public const string BonkBadge = "Badge_BonkBadge_Bonk";
public const string ExtraBonksBadge = "Badge_BonkBadge_ExtraBonks";
}
There are two types of badges, persistent badges which track progress across all runs such as for example a 3 consecutive expedition victories badge, and a run based badge, which requires the player to meet the conditions in a single run otherwise the progress will reset. Unlocking either type of badge is permanent and will save to a badges.json file in the mod folder, and when the player loads the game back up the unlocked badges will be there.
With the mod added as a reference, you can add new badges either Programmatically, or load it via AssetBundle.
(To find out more about the AssetBundle method go down to Further Info)
AssetBundle:
byte[] bundleBytes = Resource1.custombadges;
badgesBundle = AssetBundle.LoadFromMemory(bundleBytes);
MoreBadgesPlugin.RegisterBadgeAssetBundle(badgesBundle);
// If using MoreCustomizations, do this instead
// MoreBadgesPlugin.RegisterBadgeAssetBundle(badgesBundle, Assembly.GetExecutingAssembly().Location);
Programmatically:
// This adds a badge that will trigger as soon as the condition has been met.
MoreBadgesPlugin.CustomBadge bonkBadge = new MoreBadgesPlugin.CustomBadge(
name: BadgeNames.BonkBadge, // Using the BadgeNames const to avoid typos!
displayName: "BONK BADGE", // All uppercase to match in game badge name display
description: "Bonk yourself with a coconut.",
icon: bonkBadgeIcon //128x128 Texture2D
);
// This adds a badge that will trigger only if the conditions are met during a single expedition.
MoreBadgesPlugin.CustomBadge extraBonkBadge = new MoreBadgesPlugin.CustomBadge(
name: BadgeNames.ExtraBonksBadge,
displayName: "EXTRA BONKS BADGE",
description: "Bonk yourself 2 times with a coconut in a single expedition.",
icon: extraBonkBadgeIcon, //256x256 Texture2D
progressRequired: 2, // How many times the condition needs to be met to unlock the badge. Defaults to 1
runBasedProgress: true // This determines if the badge progress is reset every expedition. Defaults to false,
//nameLocalizations: nameLocalizations // If you want to support more than just english, you can pass a list containing translated strings in the appropriate order
//descriptionLocalizations: descriptionLocalizations
);
By default, if no localization lists are passed through, it will automatically create one with the default language being english. To create a localization, you must create a list and add the translated strings to the appropriate index as shown below: English = 0, French = 1, Italian = 2, German = 3, SpanishSpain = 4, SpanishLatam = 5, BRPortuguese = 6, Russian = 7, Ukrainian = 8, SimplifiedChinese = 9, TraditionalChinese = 10, Japanese = 11, Korean = 12
Once you have created your CustomBadge you can add it as shown below. Register badge takes a CustomBadge and an optional cosmetic name. If a cosmetic name is added, the cosmetic will be locked until the badge associated with it has been unlocked.
The cosmetic name must be the exact same name as the CustomizationOption you created. This is to ensure that the badge is applied to the correct cosmetic. This is not ideal but as there are multiple different mods providing custom cosmetic options, this is the simplest way for now. In my case I am using More Customizations which sets the cosmetic name to be the same as the ScriptableObject it requires you to create. It is important that you name your cosmetic to something unique, such as with the badge names above.
With a recent update, if you are using MoreCustomizations to add your cosmetics, you will need to pass your Assembly.GetExecutingAssembly().Location so that MoreBadges can get the unique hash that MoreCustomizations creates. If not using MoreCustomizations, you will not need to pass the assembly location.
MoreBadgesPlugin.RegisterBadge(bonkBadge, "Hat_MyModName_HatName", Assembly.GetExecutingAssembly().Location);
MoreBadgesPlugin.RegisterBadge(extraBonkBadge);
Lastly, to make the badge unlockable you need to figure out what condition is required and where progression should be added, and then just call:
// badgeName and progressAmount
MoreBadgesPlugin.AddProgress(BadgeNames.BonkBadge, 1);
In the CommunityBadges mod, the Nap Time Badge logic is as simple as detecting when the player was hit by a dart, and then checking if the item was the Blowgun, if it was we can do AddProgress for that badge. The cod
Описание длинное — здесь его начало. Читать целиком на странице автора
В r2modman ставится автоматически
2 в каталоге
Добавляет пользовательские значки из идей и произведений искусства, предоставляемых пользователями на сервере Peak Modding Discord.
Добавляет пользовательский значок с MoreBadges и кокосовой шляпой, которую можно разблокировать, разблокировав значок.
Файл скачивается с официального сервера Thunderstore, без перезаливов и сторонних установщиков
Подробная инструкция для PEAKВставьте значок в описание на Thunderstore, в README или в Discord — русскоязычные игроки сразу попадут на страницу с переводом и инструкцией.
[](https://modka.app/peak/snosz-morebadges/)<a href="https://modka.app/peak/snosz-morebadges/"><img src="https://modka.app/badge.png" alt="Описание на русском — Модка" height="44"></a>[url=https://modka.app/peak/snosz-morebadges/]Описание на русском — Модка[/url]Скачайте менеджер модов r2modman (или Gale) и выберите в нём игру PEAK. Создайте профиль — так моды не смешаются с чистой версией игры. Найдите «MoreBadges» во вкладке Online и нажмите Download — BepInEx и все зависимости подтянутся сами. Нажмите «Start modded» — игра запустится с модами. Для мультиплеера всем игрокам нужен одинаковый набор модов: в r2modman профиль можно экспортировать кодом и отправить друзьям.
Файл скачивается с официального сервера Thunderstore, куда его загрузил Snosz. Мы не перезаливаем и не изменяем моды.
Автор не указал, клиентский это мод или серверный. Безопаснее, чтобы одинаковый набор модов был у всех игроков в лобби: проще всего поделиться профилем r2modman.
Установите вместе с ним: BepInExPack PEAK. В менеджере модов зависимости подтягиваются автоматически.
31 марта 2026, актуальная версия — 0.3.5. Дата берётся с официальной страницы мода при каждом обновлении каталога.
Добавляет пользовательские значки из идей и произведений искусства, предоставляемых пользователями на сервере Peak Modding Discord.
Могила Месы должна быть открыта на каждом семени вместо 25%. Отлично подходит для получения 24-каратного значка без измельчения или прямых читов.
Добавляет пользовательский значок с MoreBadges и кокосовой шляпой, которую можно разблокировать, разблокировав значок.
PEAK-MX - утилита, пранк и меню администратора для PEAK с инструментами движения, ESP, редактирование инвентаря, разблокировки, мировые инструменты и элементы управления большим лобби.
Снимает ограничение на число игроков, чтобы можно было играть с более чем четырьмя друзьями. Готов к обновлению с кроссплеем.
Позволяет носить напарников на себе, даже когда они в сознании.