Namindu Posted November 22, 2014 Report Share Posted November 22, 2014 Hello, Dose anyone know how to load an SQF outside of a pbo. in the root directory for example. I looked around and tried everything. If anyone know how to do this it would help a lot. Best Regards, Namindu Link to comment Share on other sites More sharing options...
0 Namindu Posted November 22, 2014 Author Report Share Posted November 22, 2014 lets say mine was, "C:/Epoch/Arma2/" [] execVM "gun.sqf"; The file would be in "C:/Epoch/Arma2/gun.sqf"? [] execVM "Scripts/gun.sqf"; The file would be in "C:/Epoch/Arma2/scripts/gun.sqf"? Link to comment Share on other sites More sharing options...
0 Namindu Posted November 22, 2014 Author Report Share Posted November 22, 2014 To run an SQF that is in your root ARMA 2 OA directory you need to have a backslash in front of the file name. There is already a keybind in infiSTAR to do this. It is ALT+F11. I personally use this... if ((_key == 0x3B) && (_alt)) then {[] execVM '\buddyrole.sqf';}; Rather than this... if ((_key == 0x57) && (_alt)) then {call compile preprocessFileLineNumbers 'admin_start.sqf';}; Because ALT+F1 is easier to hit, and using execVM is better because it allows you to use loops and sleep/uisleep in the code. OHHHH ok thanks i will try this out and let you guys know Link to comment Share on other sites More sharing options...
0 ElDubya Posted November 23, 2014 Report Share Posted November 23, 2014 So, being the nub that I am, could I put (for argument sake) a custom area with buildings, etc, call this script using alt+f11 in infiSTAR and the custom area would appear in game and everybody could see it? Link to comment Share on other sites More sharing options...
0 ElDubya Posted November 24, 2014 Report Share Posted November 24, 2014 Is there a way to hit alt+f11 in infiSTAR and have a list of stuff (eg : raceday.sqf, huntadmin.sqf, banditcastle.sqf) appear and scroll to select which one? If so, how? Told you I am a nub :) Link to comment Share on other sites More sharing options...
0 ElDubya Posted November 25, 2014 Report Share Posted November 25, 2014 Yeah, that's way over my head. Cheers anyway. Link to comment Share on other sites More sharing options...
0 Namindu Posted November 27, 2014 Author Report Share Posted November 27, 2014 remember... you can only use this for files called serverside... as your clients wont have this file just put the file in your root folder and call it for example with this way the file can be located in the root folder of arma3 OR the root folder of your pbo if you want to put it in subdirectories for better organization or something just change the path in your call remember to NOT put a leading \ on the path... have fun trying it out... Ok this method worked. Now is it possible for the game to load once. And then allow edits to be made and saved to that file? For example. Let say, admin tool. Server up and running. Now i gave "uid:123123" Level 1 admin. How is it possible for me too add the uid to a array and re-save it? While the server is on. Then next restart it reloads the new uid array? Link to comment Share on other sites More sharing options...
0 CordIAsis Posted November 27, 2014 Report Share Posted November 27, 2014 Ok this method worked. Now is it possible for the game to load once. And then allow edits to be made and saved to that file? For example. Let say, admin tool. Server up and running. Now i gave "uid:123123" Level 1 admin. How is it possible for me too add the uid to a array and re-save it? While the server is on. Then next restart it reloads the new uid array? There's no way to do that without creating a .DLL to perform the task or by uploading new files containing the new array to your server before restart time. Link to comment Share on other sites More sharing options...
0 Namindu Posted November 27, 2014 Author Report Share Posted November 27, 2014 There's no way to do that without creating a .DLL to perform the task or by uploading new files containing the new array to your server before restart time. Thanks you. I was exception this, and just wondered maybe their was a way. Link to comment Share on other sites More sharing options...
Question
Namindu
Hello,
Dose anyone know how to load an SQF outside of a pbo. in the root directory for example. I looked around and tried everything. If anyone know how to do this it would help a lot.
Best Regards,
Namindu
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now