Jump to content
Yurichenk

Call file and List in server?

Recommended Posts

How can I call a list of (UIDs, variable names, class names) Defined by a class and that list is in another file? For example, a file on a dedicated server.

something like:

 

Script.sqf

Thislist [server / List_Blufor.sqf] Swicthmove [""].

--\*or */--

Thislist [List_BLU] Swicthmove [""].

-----------------------------------------------------------------------

List_Blufor.sqf

List_BLU = ["456UID", "586UID"];

Share this post


Link to post
Share on other sites

Let's see, at least you could tell me if this would work even on a dedicated server if I put the files marked in red on the server and change the address in the green zone?

 

init.sqf
[] execVM "Slots_Master.sqf";

 

Slots_Master.sqf

BLU_UID = call compile preprocessFileLineNumbers "client/BLU_UID.txt";
OPF_UID = call compile preprocessFileLineNumbers "client/OPF_UID.txt";

["BLU_UID", s1] call Rerserved_slot;
["OPF_UID", s2] call Rerserved_slot;

 

**My Script**

 

BLU_UID.txt
["76566179256348507",""];

 

OPF_UID.txt
["52366712986322541",""];

Share this post


Link to post
Share on other sites

Guys dont laugh . . . but i don't have the a key in my keybord to be able to mention Larrow !

 

If you see this Larrow or someone , please help if you can , it's based on your post :

 

 

Thanks !

 

Just to know  @Yurichenkthis is actually a double post :

 

@Yurichenk

  • Haha 1

Share this post


Link to post
Share on other sites

Hello there Yurichenk !

 

I was checking about how to run externally the .txt file and i noticed the A3Wasteland_settings folder

- this folder  goes on the server -

 

A3Wasteland_settings\init.sqf

//	@file Version: 1.0
//	@file Name: init.sqf
//	@file Author: AgentRev
//	@file Created: 29/06/2013 12:09

// Add custom scripts you wish to be executed on server start here
// config.sqf, admins.sqf, and serverRules.sqf are already loaded automatically

execVM (externalConfigFolder + "\bannedNames.sqf");

Have you manage to make it work differently ?

Did you tested Larrow's Example ?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×