Forum Jump :

Author Message


Posts: 5
Rank:


Level: Member

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

 
#1 Posted at 2017-06-15 13:48        
     
I have a script that have a texture. I need to save this texture in my computer, like other languages:

file f = new file("example.jpg");
f.write(_texture);

But i dont know how to do in .sqf????

I saved my texture in my script in this way:

_textures = getObjectTextures _object;
_texture = _textures select 0;

Added 40 minutes later:

I only need to save a texture object into a file "".jpg or "".paa

Added 36 minutes later:

I need to export a object texture ingame.

This post was edited by ferolegu (2017-06-15 15:04, 800 days ago)


Author Message


Posts: 272
Rank:


Level: Member

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

 
#2 Posted at 2017-06-16 00:25        
     
To do this you need the arma tools.

Convert to .paa , with TexView 2


Advertisement


Author Message


Posts: 5
Rank:


Level: Member

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

 
#3 Posted at 2017-06-16 01:18        
     
I need to save texture ingame by script in my pc


Author Message


Posts: 272
Rank:


Level: Member

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

 
#4 Posted at 2017-06-16 20:19        
     
I don't really understand what exacly you want to do ..
Try if you want to be more specific , so for everyone to understand and help if possible.!


Author Message


Posts: 122
Rank:


Level: Member

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

 
#5 Posted at 2017-06-17 09:27        
     
What you are asking for seems to be not only impossible but also pointless. I mean, why would you like to save a texture from IG context to your computer ? The game itself is not able to generate any texture (at least, yes it can, but you don't seems to use it), so all of the textures you can see are loaded from various game files. If you need one of theses textures, just extract it from the corresponding file (don't forget to check if you have the right to do what you want).

SQF is a scripting language, designed to interact with game objects and entities. It's not exactly a programming language like C/C++, C#, Java, etc, and so doesn't have any usable way of interacting with the computer itself. It's a very high level language, top stack. No interaction with files, network, memory, things like that.


Author Message


Posts: 272
Rank:


Level: Member

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

 
#6 Posted at 2017-06-19 10:17        
     
If you want just a certain texture , you can just google it , you might find exacly what you need.
Else you can unpbo (unpack) the .pbo of the arma files to find maybe in , the texture you want in a .paa format , and convert with the tools to .jpg .

( you can upack the pbo with the PBO manager
http://www.armaholic.com/page.php?id=16369 )

If this is what you want.!


Author Message


Posts: 5
Rank:


Level: Member

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

 
#7 Posted at 2017-06-20 19:49        
     
# Cheitan : What you are asking for seems to be not only impossible but also pointless. I mean, why would you like to save a texture from IG context to your computer ? The game itself is not able to generate any texture (at least, yes it can, but you don't seems to use it), so all of the textures you can see are loaded from various game files. If you need one of theses textures, just extract it from the corresponding file (don't forget to check if you have the right to do what you want).

SQF is a scripting language, designed to interact with game objects and entities. It's not exactly a programming language like C/C++, C#, Java, etc, and so doesn't have any usable way of interacting with the computer itself. It's a very high level language, top stack. No interaction with files, network, memory, things like that.


Ok, I have 5 soldiers without simulation that i use like cameras, with a script i can see in 4 monitors that this soldiers are watching(soldier=camera) I take the vision of the soldier and put,like texture, in monitors, i want to save this texture each 1 second and put in a file in my pc. I want to stream the vision od the soldiers "cameras" in a webpage


Author Message


Posts: 122
Rank:


Level: Member

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

 
#8 Posted at 2017-06-24 10:57        
     
Oh OK so you are using procedural textures, the only way (AFAIK) to generate textures directly in game. But as I said in my second paragraph, SQF is not capable of interacting with files. It can only read a few types of files in specific format (SQF, SQS, ext, JPG, PAA...) if it knows exactly where is the file, what is it's name, and only if it's located in the game folder. Giving SQF the ability to communicate with the entire file system of a computer, just like traditionnal programming languages can do, would be a huge security threat.


Author Message


Posts: 5
Rank:


Level: Member

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

 
#9 Posted at 2017-06-25 01:21        
     
Ok, thank you so much for information. Exist any way to send this textures by DB o other thing?


Author Message


Posts: 122
Rank:


Level: Member

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

 
#10 Posted at 2017-06-25 09:46        
     
Mh I know some DB engines exists for ArmA 3, designed to allow persistency on various types of missions, and also for "Life" servers. But I've never used it, and I don't know how it's working. But it's clearly designed to exchange data with the game, thus I don't think it's possible to access such database from another app than the game itself.


Author Message


Posts: 5
Rank:


Level: Member

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

 
#11 Posted at 2017-06-25 18:18        
     
Ok! thank you so much for your help!!!






Tags: File, Jpg, Script, Write