DayZ
Not enough ratings
DevCA_Anti_Dup
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
File Size
Posted
Updated
2.392 MB
4 Jun @ 7:36pm
6 Jul @ 7:50pm
42 Change Notes ( view )

Subscribe to download
DevCA_Anti_Dup

Description
⚠️ **VERSÃO ESTÁVEL v2.0 / STABLE VERSION v2.0** ⚠️

🇺🇸 **STABLE VERSION v2.0 RELEASED!**
This mod has been thoroughly tested and is now production-ready.
Advanced anti-duplication system with enhanced features and Discord integration.
If you experience any issues, please report them and I will address them promptly. Thank you for your support!

🇧🇷 **VERSÃO ESTÁVEL v2.0 LANÇADA!**
Este mod foi amplamente testado e está pronto para produção.
Sistema anti-duplicação avançado com recursos aprimorados e integração Discord.
Se você tiver qualquer problema, por favor reporte e vou resolver rapidamente. Obrigado pelo apoio!

---

🚫 DevCANoDUP v2.0 - Anti-Duplication System by DevCarlos
🔥 **NEW: Enhanced Detection System**

---

## 🇺🇸 ENGLISH

### WHAT IS THIS MOD?
**DevCANoDUP v2.0** is a professional server-side anti-duplication system for DayZ that automatically detects and prevents item duplication exploits in real-time using advanced dual-detection technology.

**NEW IN v2.0:**
- 🔧 **Dual Detection System**: Network ID + Persistent ID tracking
- 🎯 **Advanced Algorithm**: "There Can Be Only One" principle
- ⚡ **Performance Optimized**: Lightweight with minimal server impact
- 🔄 **Smart Delay System**: Configurable timing to prevent false positives
- 📊 **Advanced Logging**: 3-level logging system (Normal/Extended/Debug)
- 🧪 **Dry Run Mode**: Test configuration without deleting items
- 🛡️ **Anti-Spam Protection**: Webhook rate limiting and caching

### KEY FEATURES
- **100% Server-side** - No client downloads required
- **Zero false positives** - Only removes actual duplicates with identical IDs
- **Discord Integration** - Real-time webhook alerts with admin notifications
- **Flexible Configuration** - JSON-based settings with auto-generation
- **Multi-level Logging** - Detailed logs for analysis and debugging
- **Production Ready** - Thoroughly tested and optimized for performance

### How the Enhanced System Works
1. **Entity Tracking**: All items get unique DevCANoDUP_Data when created
2. **Dual ID Verification**: Checks both Network ID (temporary) and Persistent ID (permanent)
3. **Smart Detection**: Uses "There Can Be Only One" logic - if duplicate IDs exist, keeps original
4. **Instant Removal**: Duplicates are deleted immediately with logging
5. **Discord Alerts**: Admins receive immediate notification with details

### Configuration Options
{
"Enable": 1, // 0=Disabled, 1=Enabled
"WebhookURL": "", // Discord webhook URL
"LoggingLevel": 1, // 0=No logs, 1=Enable logs
"DebugMode": 0, // 0=Normal, 1=Extended, 2=Debug
"DelayMs": 5000, // Detection delay (1-60 seconds)
"EnableWebhookAlerts": 1, // 0=No Discord, 1=Send alerts
"WebhookTimeout": 15000, // Webhook timeout in ms
"TrackNetworkID": 1, // 0=Persistent only, 1=Dual tracking
"DryRun": 0 // 0=Normal, 1=Test mode (no deletion)
}

### Example Detection Log
[2025-07-06 23:15:42] Deleting duplicate entity (same persistent ID) M4A1<12345> persistentID=AbC123XyZ keeping original M4A1<67890> persistentID=AbC123XyZ in hands on SurvivorMale<98765> PlayerName (uid=76561199522416556) pos=<1234.5, 67.8, 9012.3>
[2025-07-06 23:15:42] DUPLICATION ALERT: M4A1 76561199522416556

### Discord Webhook Alert Format
DUPLICACAO: 76561199522416556 M4A1 2025-07-06 23:15:42

### Installation & Setup
1. **Extract** mod to server's @DevCANoDUP folder
2. **Add Parameter**: -servermod=@DevCANoDUP to startup command
3. **Restart Server** - Config auto-generated at: profiles/DEVCarlos/DevCANoDUP/DevCANoDUP.json
4. **Configure Discord**: Edit JSON file and add your webhook URL to "WebhookURL": ""
5. **Optional**: Adjust settings like DelayMs, DebugMode, etc.

### Recommended Settings
**Production Server:**
{
"Enable": 1,
"DelayMs": 5000,
"DebugMode": 0,
"DryRun": 0
}

**Testing/Debug:**
{
"DryRun": 1,
"DebugMode": 2,
"DelayMs": 3000
}

---

## 🇧🇷 PORTUGUÊS

### O QUE É ESTE MOD?
**DevCANoDUP v2.0** é um sistema anti-duplicação profissional server-side para DayZ que detecta e previne exploits de duplicação de itens em tempo real usando tecnologia avançada de detecção dupla.

**NOVIDADES DA v2.0:**
- 🔧 **Sistema de Detecção Dupla**: Rastreamento por Network ID + Persistent ID
- 🎯 **Algoritmo Avançado**: Princípio "Só Pode Haver Um"
- ⚡ **Performance Otimizada**: Leve com impacto mínimo no servidor
- 🔄 **Sistema de Delay Inteligente**: Timing configurável para evitar falsos positivos
- 📊 **Logging Avançado**: Sistema de 3 níveis (Normal/Estendido/Debug)
- 🧪 **Modo Dry Run**: Teste configurações sem deletar itens
- 🛡️ **Proteção Anti-Spam**: Rate limiting e cache para webhooks

### RECURSOS PRINCIPAIS
- **100% Server-side** - Jogadores não precisam baixar nada
- **Zero falsos positivos** - Remove apenas duplicatas reais com IDs idênticos
- **Integração Discord** - Alertas webhook em tempo real para administradores
- **Configuração Flexível** - Configurações JSON com geração automática
- **Logging Multi-nível** - Logs detalhados para análise e debug
- **Pronto para Produção** - Amplamente testado e otimizado

### Como o Sistema Avançado Funciona
1. **Rastreamento de Entidades**: Todos os itens recebem DevCANoDUP_Data único ao serem criados
2. **Verificação de ID Duplo**: Verifica Network ID (temporário) e Persistent ID (permanente)
3. **Detecção Inteligente**: Usa lógica "Só Pode Haver Um" - se IDs duplicados existem, mantém o original
4. **Remoção Instantânea**: Duplicatas são deletadas imediatamente com logging
5. **Alertas Discord**: Admins recebem notificação imediata com detalhes

### Opções de Configuração
{
"Enable": 1, // 0=Desabilitado, 1=Habilitado
"WebhookURL": "", // URL do webhook Discord
"LoggingLevel": 1, // 0=Sem logs, 1=Habilitar logs
"DebugMode": 0, // 0=Normal, 1=Estendido, 2=Debug
"DelayMs": 5000, // Delay de detecção (1-60 segundos)
"EnableWebhookAlerts": 1, // 0=Sem Discord, 1=Enviar alertas
"WebhookTimeout": 15000, // Timeout do webhook em ms
"TrackNetworkID": 1, // 0=Só persistent, 1=Rastreamento duplo
"DryRun": 0 // 0=Normal, 1=Modo teste (sem deletar)
}

### Exemplo de Log de Detecção
[2025-07-06 23:15:42] Deleting duplicate entity (same persistent ID) M4A1<12345> persistentID=AbC123XyZ keeping original M4A1<67890> persistentID=AbC123XyZ in hands on SurvivorMale<98765> NomePlayer (uid=76561199522416556) pos=<1234.5, 67.8, 9012.3>
[2025-07-06 23:15:42] DUPLICATION ALERT: M4A1 76561199522416556

### Formato do Alerta Discord
DUPLICACAO: 76561199522416556 M4A1 2025-07-06 23:15:42

### Instalação e Configuração
1. **Extrair** mod para pasta @DevCANoDUP do servidor
2. **Adicionar Parâmetro**: -servermod=@DevCANoDUP no comando de inicialização
3. **Reiniciar Servidor** - Config gerado automaticamente em: profiles/DEVCarlos/DevCANoDUP/DevCANoDUP.json
4. **Configurar Discord**: Editar arquivo JSON e adicionar URL do webhook em "WebhookURL": ""
5. **Opcional**: Ajustar configurações como DelayMs, DebugMode, etc.

### Configurações Recomendadas
**Servidor de Produção:**
{
"Enable": 1,
"DelayMs": 5000,
"DebugMode": 0,
"DryRun": 0
}

**Teste/Debug:**
{
"DryRun": 1,
"DebugMode": 2,
"DelayMs": 3000
}

---

## 📁 **FILE STRUCTURE / ESTRUTURA DE ARQUIVOS**
profiles/DEVCarlos/DevCANoDUP/
├── DevCANoDUP.json (Main config / Config principal)
└── Logs/
└── DevCANoDUP_YYYY-MM-DD.log (Daily logs / Logs diários)

---

#
6 Comments
Stanley Winston 16 Jul @ 7:56am 
[DEV] Carlos,
Steam blocked your message, I can't read it
[DEV] Carlos  [author] 12 Jul @ 3:16am 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).
Stanley Winston 7 Jul @ 4:39am 
[DEV] Carlos,
Thanks for the update and fixes :) Radios are no longer being deleted. But it seems you forgot to add Discord webhook support. The variables aren't used anywhere except in the config declaration. But no worries, I finished implementing the webhook sending myself since you made the scripts readable
[DEV] Carlos  [author] 6 Jul @ 8:15pm 
@KaKa @Stanley Winston Fixed. Try it now and it will work. If there is any problem, please let me know.
KaKa 23 Jun @ 9:04pm 
Hi discord hooks not working i try to loot cycle to test it but it's only send it to crash logs
Stanley Winston 22 Jun @ 4:11am 
It is constantly triggered on the personal radio. For some reason, webhooks don't come to discord.