Forum Jump :

Author Message


Posts: 11
Rank:


Level: Member

Country: nz
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2011-10-06 07:16        
     
Ok, something that I have wondered for a while now, is would it be possible for a script to run a sequence or code of an online source or inside the ArmA 2 install directory?

I know referring to scripts in folders inside the PBO is easy, but is it possible to tell the script to run an outside file?

Such as:

Script wants to run file TEST.sqf

Test.sqf is not in the .pbo , but is inside the ArmA 2 directory or on an online filespace.


Author Message

Dead3yez  

I am evil


Posts: 3113
Rank:


Level: Member

Country: en
Location: North Yorkshire
Occupation: dead3yez
Age: 28
In-game name: dead3yez

 
#2 Posted at 2011-10-06 07:42        
     
You can do that as long as there isn't any spaces in your script path. I don't think you can run from an online source though.

_nul = [] execVM "C:\scripts\test.sqf";

Replacing spaces with %20 may work.. Don't think so though.


Advertisement


Author Message


Posts: 11
Rank:


Level: Member

Country: nz
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2011-10-06 07:46        
     
Thanks a bunch!

Ill try this right away.

-Coffeee

Added 21 minutes later:

Haven't had much luck so far, is there a specific way I should be executing the script?

This post was edited by Coffeee_Table (2011-10-06 08:08, ago)


Author Message

Dead3yez  

I am evil


Posts: 3113
Rank:


Level: Member

Country: en
Location: North Yorkshire
Occupation: dead3yez
Age: 28
In-game name: dead3yez

 
#4 Posted at 2011-10-06 11:51        
     
Okay. I tried and it seems you can't run scritps for missions outside the directory. Could possibly be to do with anti-"hacking". I've ran scripts for addons outside the mission folder. I think this just could be for missions.


Author Message


Posts: 11
Rank:


Level: Member

Country: nz
Location:
Occupation:
Age:
In-game name:

 
#5 Posted at 2011-10-08 06:08        
     
Even though it didn't work +10 for the quick help and the effort you put in!

I really appreciate the community on here.


Author Message


Posts: 11
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#6 Posted at 2012-02-21 00:22        
     
# Coffeee_Table : Even though it didn't work...

I believe some servers are doing this, so it should be possible. A lot of the RPG Life servers I believe are using a method like this.

Any other ideas on how to get this to work?


Author Message

palyarmerc  

I live inside the editor


Posts: 753
Rank:


Level: Member

Country: uk
Location:
Occupation: *Retired from ArmA*
Age:
In-game name: Paly

 
#7 Posted at 2012-02-21 00:28        
     
http://forums.bistudio.com/showthread.php?109304-Call-a-file-on-a-server-outside-PBO
not tested it though...

....that's all folks....!





Tags: Online, Refer, Script, To