Valheim
You are viewing a potentially older version of this package. View Latest Version
Install

Details

Date Uploaded
19 hours ago
Downloads
23
Size
298KB
Dependency string
Pedro159_team-TimePlayerControl-1.0.0
ADDatHost Valheim hosting
€1

TimePlayerControl

Limita el tiempo de juego por jugador en servidores de Valheim (BepInEx). Incluye HUD en cliente, ranking top 5 y desconexión limpia al menú cuando se acaba el tiempo.

Características

  • Tiempo diario (o por bloque) por SteamID, configurable en JSON
  • HUD compacto / detalle (tecla F1 por defecto, configurable)
  • Top 5 de mayor tiempo jugado acumulado
  • Auto-ocultado del HUD con inventario, mapa y menú
  • Mensaje «Te has quedado sin tiempo» y vuelta al menú de inicio
  • Jugadores VIP/admin exentos (IsExempt)

Instalación

Con gestor (r2modman / Thunderstore Mod Manager)

  1. Instala el pack en el perfil del cliente y en el del servidor dedicado
  2. Asegúrate de que ambos usen la misma versión del mod

Manual

Copia el contenido de plugins/ a:

BepInEx/plugins/

Archivos incluidos:

  • TimePlayerControl.dll
  • Newtonsoft.Json.dll

Reinicia cliente y servidor.

Importante: cliente + servidor

El mod debe estar en ambos. El servidor gestiona tiempos y kicks; el cliente muestra el HUD y recibe el sync.

Configuración

Al iniciar se crea:

BepInEx/config/TimePlayerControl.json

  • Servidor: tiempos, resets, jugadores, TotalPlayedSeconds
  • Cliente: layout del HUD (HudAnchor, HudToggleKey, opacidad, etc.)

HUD (cliente)

Campo Descripción
HudAnchor TopLeft, TopRight, BottomLeft, BottomRight
HudToggleKey Tecla para expandir/compactar (ej. F1, F6)
HudAutoHideOverlays Oculta el HUD con UI del juego
HudStartCompact Empieza en modo compacto
HudOpacity Transparencia (0–1)

Jugadores (servidor)

  • RemainingSeconds / AssignedSeconds — bloque actual
  • TotalPlayedSeconds — acumulado (no se resetea cada día)
  • IsExempt — sin límite
  • NextResetTime — próxima renovación

Uso en juego

  • F1 (o tu HudToggleKey): compacto ↔ detalle
  • Panel detalle: restante, asignado, usado, total jugado, renovación y top 5
  • Chat: /tiempo, /tiempos, /hud

Código fuente

https://github.com/Pedrox1591/TimePlayerControl-Valheim

Notas

  • Probado con BepInEx 5 (pack Valheim)
  • Tras actualizar el mod, actualiza cliente y servidor
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro