READTHESCROLL 203 Report post Posted September 13, 2015 Is there a way to do this? I remember reading something about this a while back.. Thanks. Share this post Link to post Share on other sites
BossMannAU 27 Report post Posted September 13, 2015 in init.sqf in the MPMissions file:if (isServer) then {call compile preProcessFileLineNumbers "\pboname\filename.sqf";}; in addons make a folder "pboname" and place inside the file that calls for objects or anything you want server side "filename.sqf" then pack it into a pbo.done. Share this post Link to post Share on other sites
SpiRe 149 Report post Posted September 13, 2015 in init.sqf in the MPMissions file:if (isServer) then {call compile preProcessFileLineNumbers "\pboname\filename.sqf";}; in addons make a folder "pboname" and place inside the file that calls for objects or anything you want server side "filename.sqf" then pack it into a pbo.done.You dont even have to call it from mission file if you setup your addon right with init class. Some example: config.cpp - in serverside addon Community.pboclass CfgPatches { class Community { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {}; }; }; class CfgFunctions { class Enigma { class main { file = "\x\addons\Community\init"; class init { postInit = 1; }; }; }; };fn_init.sqf - serverside addon Community.pbodiag_log format ['Starting Community MOD']; call compile preprocessFileLineNumbers "\x\addons\Community\serverside\spawncrates.sqf";$PREFIX$ - pbo prefix file in Community.pbox\addons\Community 1 Share this post Link to post Share on other sites
BossMannAU 27 Report post Posted September 13, 2015 TIL, thank you. Share this post Link to post Share on other sites
READTHESCROLL 203 Report post Posted September 13, 2015 Thanks guys! Share this post Link to post Share on other sites
TMHackSaW 63 Report post Posted September 13, 2015 Thanks guys!+1 Share this post Link to post Share on other sites
READTHESCROLL 203 Report post Posted September 22, 2015 How do I differentiate between scripts that need to be in the mission file and ones that can be placed in a pbo? Share this post Link to post Share on other sites
BossMannAU 27 Report post Posted September 22, 2015 Using SpiRe's method they can all be placed in the PBO. Share this post Link to post Share on other sites
happydayz 490 Report post Posted September 22, 2015 NAWW IM FAMOUS!!!!!!!!!!!!!!!!!! class Enigma { 1 Share this post Link to post Share on other sites
BossMannAU 27 Report post Posted September 22, 2015 NAWW IM FAMOUS!!!!!!!!!!!!!!!!!! class Enigma { Wrong thread... Share this post Link to post Share on other sites