DayZ
32 ratings
Virtual Storage Module
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod Type: Mechanics
File Size
Posted
Updated
276.808 KB
11 Apr @ 4:47pm
21 Jul @ 5:07pm
11 Change Notes ( view )

Subscribe to download
Virtual Storage Module

Description
-- PTBR --
VERSÃO ESTÁVEL 1.0.3

Virtualização
Com este mod é possível criar virtualização de diversos tipos de itens do jogo, desde
a classe ItemBase.
Utiliza um mecanismo de salvamento separado, porém, paralelo ao original, reaproveitando
métodos como OnStoreSave e OnStoreLoad, dando suporte máximo à maioria das entidades.

Precauções:
Não use este mod sem executar os devidos teste (TESTE É VIDA!)
Sempre faça um backup do storage_1 do seu servidor
Não utilize este mod com qualquer outro tipo de mod de virtualização (EXCETO ADDONS PARA O PROPRIO VSM), você vai perder itens (apenas desative os outros rermovendo-os ou pelas suas respectivas configs)
Sempre que achar um bug ME CONTATE [discord.gg]

Como Usar?
Este mod é voltado para administradores e desenvolvedores que queiram virtualizar seus packs de storages
ou armazenamentos, se você for um verifique meus projetos de exemplo:
Barril vanilla [github.com]
Caixotes vanilla [github.com]

Experimente mods já prontos:
Vanilla Virtual Storage
RaG Virtual Storage

⚙️ Configuração no Profiles:
1 - Abra seu Settings.json em Profiles/iTzMods/VSM

2 - Escolha uma ou mais opções para usar:
{ "m_AutoCloseEnable": 1, "m_AutoCloseIgnorePlayerNearby": 1, "m_AutoClosePlayerDistance": 8.0, "m_AutoCloseInterval": 10, "m_BatchSize": 2, "m_BatchInterval": 1, "m_IncludeDecayItems": 0, "m_IgnoredItems": [], "m_UseCfgIgnoreList": 0, "m_LogLevel": 6, "m_ForceSpawnOnError": 0, "m_IsRemovingModule": 0 }

Explicações rápidas:
m_AutoCloseEnable: Habilita/desabilita o fechamento automático de armazenamentos.
m_AutoCloseIgnorePlayerNearby: Ignora jogadores próximos ao tentar fechar.
m_AutoClosePlayerDistance: Distância mínima para considerar um player como "próximo".
m_AutoCloseInterval: Intervalo (em segundos) entre as tentativas de fechamento automático.
m_BatchSize: Quantidade de itens processados por lote (quanto maior, mais rápido, mas consome mais desempenho).
m_BatchInterval: Tempo entre cada lote (em segundos).
m_IncludeDecayItems: Incluir ou não itens que se degradam (ex: alimentos).
m_IgnoredItems: Lista de itens que serão ignorados durante a virtualização.
m_LogLevel: Define o nível de detalhamento dos logs gerados (0 a 6).
m_ForceSpawnOnError: Força o spawn do item no chão caso haja algum erro ao rerstaura-lo para o local original (isso pode duplicarr itens, use com cautela).

Para contatos [discord.gg]
Agradecimento especial à Cowboy

PARA REEMBALAR CONTATE-ME

-- EN --
STABLE VERSION 1.0

Virtualization
With this mod, it is possible to create virtualization for various types of items in the game, starting from the ItemBase class. It uses a separate saving mechanism, parallel to the original, reusing methods like OnStoreSave and OnStoreLoad, providing maximum support for most entities.

Precautions:
Do not use this mod without performing proper testing (TESTING IS LIFE!)
Always make a backup of your server's storage_1.
Do not use this mod with any other virtualization mod (EXCEPT FOR ADDONS MADE FOR VSM ITSELF), you will lose items (just disable the others by removing them or through their respective configs).
Whenever you find a bug, CONTACT ME[discord.gg]

ONCE THE MOD IS STABLE, I WILL RELEASE IT FOR REPACKAGING! DO NOT BE PREMATURE

How to Use?
This mod is aimed at administrators and developers who want to virtualize their storage packs, if you are one, check out my example projects:
Vanilla Barrel [github.com]
Vanilla Crates [github.com]

Try pre-made mods:
Vanilla Virtual Storage
RaG Virtual Storage

⚙️ Configuration in CfgGameplay.json:
1 - Open your Settings.json in Profiles/iTzMods/VSM

2 - Choose one or more options to use:
{ "m_AutoCloseEnable": 1, "m_AutoCloseIgnorePlayerNearby": 1, "m_AutoClosePlayerDistance": 8.0, "m_AutoCloseInterval": 10, "m_BatchSize": 2, "m_BatchInterval": 1, "m_IncludeDecayItems": 0, "m_IgnoredItems": [], "m_UseCfgIgnoreList": 0, "m_LogLevel": 6, "m_ForceSpawnOnError": 0, "m_IsRemovingModule": 0 }

Quick explanations:
m_AutoCloseEnable: Enables/disables automatic closing of storage.
m_AutoCloseIgnorePlayerNearby: Ignores nearby players when trying to close.
m_AutoClosePlayerDistance: Minimum distance to consider a player as "nearby".
m_AutoCloseInterval: Interval (in seconds) between automatic closing attempts.
m_BatchSize: Number of items processed per batch (the higher, the faster, but more performance-intensive).
m_BatchInterval: Time between each batch (in seconds).
m_IncludeDecayItems: Whether or not to include decaying items (e.g., food).
m_IgnoredItems: List of items that will be ignored during virtualization.
m_LogLevel: Defines the detail level of generated logs (0 to 6).
m_ForceSpawnOnError: Forces the item to spawn on the ground if there is an error restoring it to the original location (this may duplicate items, use with caution).

For contacts [discord.gg]
Special thanks to Cowboy

TO REPACK, CONTACT ME
21 Comments
iTzChronuZ  [author] 2 Aug @ 7:30am 
@KaizerR, obrigado meu amigo, tmj
✡ KaizerR 2 Aug @ 4:50am 
Cara tive que vir dar o feedback, que mod incrivel!!!! Meu parabens !!
Vaquero_76 13 Jul @ 2:50am 
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).
iTzChronuZ  [author] 11 Jul @ 5:20pm 
@LohAn Ola amigo, não tem problema por em um servidor em andamento, mas você deve fazer todos os testes antes em um servidor controlado baseado no seu oficial.
Conflitos no momento tem em mods que usam algo vanilla, exemplo: Terje Radiation usa a tenda de extende a vanilla, isto está sendo resolvido e será corrigido na proxima atualização
LohAn 11 Jul @ 5:16pm 
@iTzChronuZ tudo bem man?
Colocar em um servidor que ja esta em andamento pode dar muitos problemas?
Tem algum mod que esta conflitante previamente identificado?
iTzChronuZ  [author] 7 Jul @ 11:15am 
DIVSIDE 7 Jul @ 9:25am 
i wanna repack and make it to work without CF. Have deobfuscate version?
DIVSIDE 7 Jul @ 9:12am 
Is it possible to use it somehow WITHOUT CF?
iTzChronuZ  [author] 4 Jul @ 10:14am 
@Dizzle, Hello, my friend. Yes, any type of storage would be possible, but at the moment our team is small and the demand for addon creation is quite high.
Dizzle 3 Jul @ 1:36am 
Hello, Thanks for this great mod it realy iproves my server performance. I am using https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3451142706 is there a way to add the to the mod? Thank you for this