Arma 3
Sidewinder Apr 4, 2019 @ 3:57pm
Jpg/paa can't be found for custom laptop picture.
So I have been working on a small mission for a four day's now, and for the past two day's I could not get a custom image to work. I have been using "["init", [this, "image.paa", "Text message"]] call BIS_fnc_initLeaflet" but when I put the file name it does not work, I have the Paa file from imagetopaa and textview2 but it say's "Picture (Image) not found" this is aggravating as it has taken longer then the actual mission itself. I wanted to put this image on a laptop/leaflet, I think maybe it's in the wrong file location, and maybe someone can tell me if it need a specific location?
Last edited by Sidewinder; Apr 4, 2019 @ 4:01pm
Originally posted by Desperado:
Originally posted by IronicSquirrel:
It still can not find the file.
Is it in the main folder of the mission?
What is the name of the mission?
What is the name of the picture?
< >
Showing 1-6 of 6 comments
Desperado Apr 5, 2019 @ 1:07am 
First off the code isn't right, if you have a look under: Object specific - object: Laptop (Open)...
Put the picture name and the format behind that so incase of a jpg: Loading.jpg
https://pasteboard.co/I8HkQvk.png
Or Loading.paa if it is in paa format, png etc etc...

Supported formats

- JPG - TGA (24 bit / 32 bit with alpha channel ) - PNG (with or without alpha channel) - PAA - PAC Important note: All input textures must have resolution 2^x / 2^y (e.g. 16 / 16, 32 / 32, 64 / 64, 256 /256). The largest texture size commonly supported by graphics cards and RV engine is 4096x4096, in future, larger could be possible and it is already supported in Pal2PacE. However, some textures which don't respect these rules might be converted via TexView 2 (right click, open with TexView).

If you did everything right but it still doesn't show ingame the resolution is wrong eke 2^x / 2^y+.

this setObjectTexture [0, "Loading.jpg"];

Is the right code, ^ but you don't need it unless the object has no extra box.
With changing 0 into 1 / 2 / 3 you change what gets the picture / colour.
(So if you picture is called, Loading put it inside you main mission folder.
If you have a subfolder it will be something like pictures\Loading.jpg)
Last edited by Desperado; Apr 5, 2019 @ 1:19am
Sidewinder Apr 9, 2019 @ 7:48pm 
Originally posted by Desperado:
First off the code isn't right, if you have a look under: Object specific - object: Laptop (Open)...
Put the picture name and the format behind that so incase of a jpg: Loading.jpg
https://pasteboard.co/I8HkQvk.png
Or Loading.paa if it is in paa format, png etc etc...

Supported formats

- JPG - TGA (24 bit / 32 bit with alpha channel ) - PNG (with or without alpha channel) - PAA - PAC Important note: All input textures must have resolution 2^x / 2^y (e.g. 16 / 16, 32 / 32, 64 / 64, 256 /256). The largest texture size commonly supported by graphics cards and RV engine is 4096x4096, in future, larger could be possible and it is already supported in Pal2PacE. However, some textures which don't respect these rules might be converted via TexView 2 (right click, open with TexView).

If you did everything right but it still doesn't show ingame the resolution is wrong eke 2^x / 2^y+.

this setObjectTexture [0, "Loading.jpg"];

Is the right code, ^ but you don't need it unless the object has no extra box.
With changing 0 into 1 / 2 / 3 you change what gets the picture / colour.
(So if you picture is called, Loading put it inside you main mission folder.
If you have a subfolder it will be something like pictures\Loading.jpg)

It still can not find the file.
Last edited by Sidewinder; Apr 9, 2019 @ 8:22pm
The author of this thread has indicated that this post answers the original topic.
Desperado Apr 10, 2019 @ 3:06am 
Originally posted by IronicSquirrel:
It still can not find the file.
Is it in the main folder of the mission?
What is the name of the mission?
What is the name of the picture?
Last edited by Desperado; Apr 10, 2019 @ 3:14am
Sidewinder Apr 10, 2019 @ 7:00pm 
Originally posted by Desperado:
Originally posted by IronicSquirrel:
It still can not find the file.
Is it in the main folder of the mission?
What is the name of the mission?
What is the name of the picture?

This finally got it to work, the file location need to be under the mission folder? But any how it is now working and the picture shows, thank you!
Desperado Apr 11, 2019 @ 3:02am 
Ye, no worries
< >
Showing 1-6 of 6 comments
Per page: 1530 50

Date Posted: Apr 4, 2019 @ 3:57pm
Posts: 6