Please disclose if your mod was created primarily using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
VBNetTweaks
VBNetTweaks is a comprehensive optimization mod for Valheim's multiplayer experience. Designed to improve performance on both servers and clients, reduce lag and stuttering, optimize network traffic, and enhance player synchronization.
| Date uploaded | 2 days ago |
| Version | 0.2.0 |
| Download link | VitByr-VBNetTweaks-0.2.0.zip |
| Downloads | 360 |
| Dependency string | VitByr-VBNetTweaks-0.2.0 |
This mod requires the following mods to function
denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.
Preferred version: 5.4.2202README
Русский
VBNetTweaks
Мод для оптимизации сети и повышения производительности в многопользовательской игре Valheim
Обратная связь
VBNetTweaks значительно улучшает производительность мультиплеера за счет интеллектуальной оптимизации сети, снижения использования трафика и улучшенных систем синхронизации. Идеально подходит для крупных серверов и игроков, страдающих от лагов и подтормаживаний.
Сетевые оптимизации
Вы можете связаться со мной "VitByr", отправив мне сообщение на таких серверах discord: Valheim Modding, Odin Plus, Valheim (официальный сайт IronGate).
Сетевые оптимизации
- Адаптивное регулирование - Автоматически настраивает частоту отправки данных на основе пинга и потери пакетов
- Умная приоритизация ZDO - Игроки, корабли, мобы и важные объекты получают более высокий приоритет обновления
- Управление владельцами зон - Автоматически передает владение зонами игрокам с лучшим пингом
- Сжатие трафика - Сжатие Deflate или Zstd для всего сетевого трафика (снижает использование трафика на 40-60%)
- Оптимизация Steam - Увеличение лимитов скорости отправки и размера буфера
Улучшения синхронизации
- Плавное движение игроков - Интерполяция и предсказание движения для удаленных игроков (устраняет рывки)
- Синхронизация кораблей - Плавное движение кораблей даже при нестабильном соединении
- Система поддержки (структуры) - Кэширование и оптимизация расчетов поддержки для построек
Оптимизация AI и спавна
- LOD для AI - Снижение частоты обновления AI для существ вдалеке от игроков
- Умный спавн - Спавн мобов учитывает всех игроков, а не только локального
- Мульти-ивенты - Несколько случайных событий могут происходить одновременно
Мониторинг и отладка
- Встроенный профайлер - Отслеживание производительности ключевых операций
- Детальное логирование - Опциональный отладочный вывод для диагностики
- Пул объектов - Переработка списков и пакетов для снижения нагрузки на GC
Для кого этот мод
- Владельцы серверов - Значительно снижает нагрузку на сервер и требования к каналу
- Игроки с высоким пингом - Более плавный геймплей благодаря предсказанию и интерполяции
- Любители PvP - Более точная синхронизация позиций игроков
- Строители - Оптимизация расчетов поддержки для сложных конструкций
Конфигурация
Мод имеет гибкую систему настроек, синхронизируемых с сервером. Основные параметры:
- SendInterval - Интервал отправки данных (по умолчанию 0.05с)
- EnableZDOThrottling - Снижение частоты обновления для дальних объектов
- SteamSendRateMaxKB - Максимальная скорость отправки (до 50 МБ/с)
- EnableClientInterpolation - Сглаживание движения других игроков
- EnableAILOD - Оптимизация AI для дальних существ
Синхронизируемая конфигурация находится по адресу: BepInEx\config\VitByr\VBNetTweaks\ServerConfig.cfg
Технические детали
- Заменяет стандартный
SendZDOToPeers2на оптимизированную версию - Добавляет систему пакетной обработки RPC вызовов (
RpcBatcher) - Внедряет кэширование списков игроков и ZDO объектов
- Поддерживает горячую замену владельцев зон без перезагрузки
Совместимость
- Требуется BepInEx
- Несовместим с другими сетевыми модами (BetterNetworking, LeanNet, NetworkTweaks)
- Работает как на выделенных серверах, так и в режиме "клиент-сервер"
English
VBNetTweaks
A mod for optimizing the network and improving performance in the Valheim multiplayer game
Feedback
VBNetTweaks significantly improves multiplayer performance through intelligent network optimization, reduced traffic usage, and improved synchronization systems. Ideal for large servers and players suffering from lags and slowdowns.
Network optimizations
You can contact me at VitByr by sending me a message on the following discord servers: Valheim Modding, Odin Plus, Valheim (official IronGate website).
Network optimizations
- Adaptive control - Automatically adjusts the frequency of sending data based on ping and packet loss
- Smart Prioritization of ZDO - Players, ships, mobs, and important objects receive higher upgrade priority
- Zone Owner Management - Automatically transfers ownership of zones to players with the best ping
- Traffic compression - Deflate or Zstd compression for all network traffic (reduces traffic usage by 40-60%)
- Steam optimization - Increased limits on sending speed and buffer size
Synchronization improvements
- Smooth movement of players - Interpolation and motion prediction for remote players (eliminates jerks)
- Ship synchronization - Smooth ship movement even with unstable connection
- Support system (structures) - Caching and optimization of support calculations for buildings
AI and spawn optimization
- LOD for AI - Reduced AI refresh rate for creatures away from players
- Smart spawn - Spawn mobs takes into account all players, not just the local one
- Multi-events - Multiple random events can occur simultaneously
Monitoring and debugging
- Built-in profiler - Performance tracking of key operations
- Detailed logging - Optional debugging output for diagnostics
- Object Pool - Recycling lists and packages to reduce GC load
Who is this mod for
- Server Owners - Significantly reduces server load and channel requirements
- High ping players - Smoother gameplay thanks to prediction and interpolation
- PvP Lovers - More accurate synchronization of player positions
- Builders - Optimization of support calculations for complex structures
Configuration
The mod has a flexible system of settings synchronized with the server. Basic parameters:
- SendInterval - Data sending interval (default 0.05s)
- EnableZDOThrottling - Lower refresh rate for distant objects
- SteamSendRateMaxKB - Maximum sending speed (up to 50 MB/s)
- EnableClientInterpolation - Smoothing the movement of other players
- EnableAILOD - AI optimization for ranged creatures
The synchronized configuration is located at: BepInEx\config\VitByr\VBNetTweaks\ServerConfig.cfg
Technical Details
- Replaces the standard
SendZDOToPeers2with an optimized version - Adds an RPC call batch processing system ('RpcBatcher')
- Implements caching of player lists and ZDO objects
- Supports hot swapping of zone owners without rebooting
Compatibility
- BepInEx is required
- Incompatible with other network mods (BetterNetworking, LeanNet, NetworkTweaks)
- Works both on dedicated servers and in client-server mode
CHANGELOG
0.2.0
- Split the compression switch. Now the server does compression by default, but the client does not do it by default, because it found that there is a problem with compression on the client (visual effects from status effects remain in the empty place where the mob was. For example, drops of water)
- Added configuration synchronization. The main configuration is client-side. The synced config is located at "BepInEx\config\VitByr\VBNetTweaks"
- The problem for Ubuntu servers should be fixed (from the previous version)
0.1.95
- Adjusting configurations
- Added the ability to disable modules - up to the entire mod. I need to restart the server and client, because I haven't done any synchronization yet.
- A small fix for Spawn and AILod
0.1.9
- cleaned the code from unnecessary comments and put it in order.
- made the compression configuration more convenient for the ConfigurationManager (now you don't need to write in text - there will be a list)
- added several additional checks for more stable operation
0.1.8
- A small patch fix
- Added Owner switching. If the Owner of an area with a bad ping and there is a player with a better ping in that area, then Ownership passes to that player. (Experimental)
- The raid system has been changed. Now several raids are possible at the same time and they are not paused. (Experimental)
- Added a config for setting the compression level
0.1.7
- Add Incompatibility LeanNet
- Add Incompatibility Scenic
- Add Incompatibility NetworkTweaks
- Add Incompatibility OpenSesame
- Add Incompatibility Network
- Add Incompatibility BetterNetworking
- Add new config CompressionLevel
- Add WearNTear Support Patch (Support checks are performed a little less frequently.)
0.1.5.1
- Edit Readme
0.1.5
- Relise