Sanaj 1337 0 Posted July 10 I'm trying to make a simple SQF mod, but arma can't find init.sqf for some reason after packing PBO. I tried everything and it still doesn't work. I don't know, maybe i doing something wrong, but i've been followed guide about creating simple mod and it still not working The mod root folder has: $PBOPREFIX$ M1337OPS_craters config.cpp class CfgPatches { class M1337OPS_craters { units[] = {}; weapons[] = {}; requiredVersion = 1.0; requiredAddons[] = {"Extended_EventHandlers"}; }; }; class Extended_PostInit_EventHandlers { TAG_myAddon_Post_Init = "M1337OPS_craters_Post_Init_Var = [] execVM ""\M1337OPS_craters\init.sqf"""; }; init.sqf systemChat str ["Hello world!"] Share this post Link to post Share on other sites
pierremgi 4904 Posted July 16 init.sqf is an event script made for mission. So, place it at the root of the mission folder, wher the mission.sqm is. There is an initialization order and probably, you can't see the systemChat occurring too soon at start. init.sqf is scheduled, so you can start by a : waitUntil {!isNull player}; before your test. A mod doesn't need an init.sqf in its files. If you want to start a code: - you can preInit or postInit a function (so the sqf) for an automatic launch; - you can also run your function from init.sqf (or initPlayerLocal.sqf) if your mod doesn't need to run automatically, but according to your scenario. Share this post Link to post Share on other sites