Filepatching или работа с модами на лету без перепаковки

Тема закреплена бессрочно.
Это незавершенная инструкция. Но если вкратце, то нужно запускать не обычную игру, а DayZDiag_x64.exe и тогда Script Editor подключается к игре и можно выполнять команды в консоли и менять распакованные моды на лету.
Так же можно поднять и сервер. Ниже конфиг и батник, который стартует и клиент и сервер.
serverDZ.cfg:
hostname = "DZR test";  // Server name
password = "";              // Password to connect to the server
passwordAdmin = "";         // Password to become a server admin

enableWhitelist = 0;        // Enable/disable whitelist (value 0-1)
 
maxPlayers = 60;            // Maximum amount of players
 
      // Verifies .pbos against .bisign files. (only 2 is supported)
forceSameBuild = 1;         // When enabled, the server will allow the connection only to clients with same the .exe revision as the server (value 0-1)
 
disableVoN = 0;             // Enable/disable voice over network (value 0-1)
vonCodecQuality = 20;       // Voice over network codec quality, the higher the better (values 0-30)

//filepatching
verifySignatures = 0; 
BattlEye=0;
allowFilePatching = 1;
//filepatching

disable3rdPerson=1;         // Toggles the 3rd person view for players (value 0-1)
disableCrosshair=1;         // Toggles the cross-hair (value 0-1)

disablePersonalLight = 0;   // Disables personal light for all clients connected to server
lightingConfig = 1;         // 0 for brighter night setup, 1 for darker night setup
 
serverTime="SystemTime";    // Initial in-game time of the server. "SystemTime" means the local time of the machine. Another possibility is to set the time to some value in "YYYY/MM/DD/HH/MM" format, f.e. "2015/4/8/17/23" .
serverTimeAcceleration=6;  // Accelerated Time (value 0-24)// This is a time multiplier for in-game time. In this case, the time would move 24 times faster than normal, so an entire day would pass in one hour.
serverNightTimeAcceleration=2;  // Accelerated Nigh Time - The numerical value being a multiplier (0.1-64) and also multiplied by serverTimeAcceleration value. Thus, in case it is set to 4 and serverTimeAcceleration is set to 2, night time would move 8 times faster than normal. An entire night would pass in 3 hours.
serverTimePersistent=1;     // Persistent Time (value 0-1)// The actual server time is saved to storage, so when active, the next server start will use the saved time value.
 
guaranteedUpdates=1;        // Communication protocol used with game server (use only number 1)
 
loginQueueConcurrentPlayers=5;  // The number of players concurrently processed during the login process. Should prevent massive performance drop during connection when a lot of people are connecting at the same time.
loginQueueMaxPlayers=500;       // The maximum number of players that can wait in login queue
 
instanceId = 1;             // DayZ server instance id, to identify the number of instances per box and their storage folders with persistence files

storeHouseStateDisabled = false;// Disable houses/doors persistence (value true/false), usable in case of problems with persistence
storageAutoFix = 1;         // Checks if the persistence files are corrupted and replaces corrupted ones with empty ones (value 0-1)
 
class Missions
{
    class DayZ
    {
        template="dayzOffline.chernarusplus"; // Mission to load on server startup. <MissionName>.<TerrainName>
                          // Vanilla mission: dayzOffline.chernarusplus
                          // DLC mission: dayzOffline.enoch
    };
};

start_server_client.bat:
@echo off 
taskkill /f /im "DayZDiag_x64.exe"
pause
start "" "DayZDiag_x64.exe" -config=serverDZ.cfg -server -port=2302 "-profiles=D:\Program Files (x86)\Steam\steamapps\common\DayZ\server_profile" -dologs -adminlog -noPause -filePatching -freezecheck "-mod=!Workshop/@CF;!Workshop/@Community-Online-Tools;@DZR_IDz"

start "" "DayZDiag_x64.exe" "-profiles=D:\Program Files (x86)\Steam\steamapps\common\DayZ\client_profile" -dologs -adminlog -noPause -filePatching -name=-=PA=-Mikhail "-mod=!Workshop/@CF;!Workshop/@Community-Online-Tools;@DZR_IDz"

Скопировать mpmissions из сервера в клиент.
Чтобы мод стал редактируемым, нужно подключить его запакованную версию и рядом положить папку без @ незапакованную.

Возможно, потребуется дополнительная активация через DayZ Utilities, но это неточно. Пока проверить не получается. Как проверю, отпишусь.
 
Последнее редактирование:
Сверху