Smaller Mission File Tip 14.5kb

Torndeco

Valued Member!
Disclaimer:- Minimal Testing + Only a quick basic overview on how i done the changes...
Also i recommend u use a good file editor like Notepad++

Basicly u will have SARGE stripped down version in the mission pbo for clients
And a seperate SARGE complete version in the server pbo

-------------
SARGE stripped down client version
Files needed
followme.sqf
MON_Surrended.sqf
SAR_aihit.sqf
SAR_trace_entities.sqf
SAR_trace_from_vehicles.sqf
SAR_define.hpp
SAR_interact.sqf (need to alter SAR_setup_AI_patrol.sqf in server pbo to point to this)

SAR_AI_init.sqf
Init_UPSMON.sqf

The last 2 files u can edit down in file size look for
Code:
if (!isServer) exitWith {};
U can remove it & everything else below it.

Now u will need to edit all the files above + change the path in the files to point to the new location.
-------------

SARGE server version
Just use a complete seperate SARGE here,
U will just need to check + edit all the files and change the paths to point to new location.

-----------

Rest is just like normal SARGE install really

edit init.sqf

Code:
if (isServer) then {

add something like
Code:
    // SHK
    diag_log "SAR_AI - starting SHK_pos";
    call compile preprocessfile "\z\addons\dayz_server\addons\SHK_pos\shk_pos_init.sqf";
    // UPSMON
    call compile preprocessFileLineNumbers "\z\addons\dayz_server\addons\UPSMON\scripts\Init_UPSMON.sqf";
    // run SAR_AI
    [] execVM "\z\addons\dayz_server\addons\SARGE\SAR_AI_init.sqf";

under
Code:
if (!isDedicated) then {

add something like

Code:
    // run Clientside SAR_AI
    [] execVM "extras\SARGE\SAR_AI_init.sqf";
    // run Clientside UPSMON
    call compile preprocessFileLineNumbers "extras\SARGE\Init_UPSMON.sqf";

Don't forget to edit your description.ext like normal and add something like the following @ the bottom.
#include "extras\SARGE\SAR_define.hpp"


---------
Yes the instructions are abit rough but its the basic idea.
I have sarge in mission pbo down to roughly 14.5kb


edit:-
Added SAR_interact.sqf to client files list
 
I seen to have broken this or i miss something along the way...
Works ok except AI ignores zombies...

Just gonna leave it in client mission + remove the extra map_configs
U need to edit SAR_AI_init.sqf & remove the maps u deleted.
 
Back
Top