Jump to content

Recommended Posts

I am making a new mod and I wish to load images from the PBO file, and call them with the config.cpp.

 

This is my CfgPatches.

 

class CfgPatches 
{
	class armastuff
	{
		units[] = {};
		weapons[] = {""};
		requiredAddons[] = {"A3_Characters_F","A3_Data_F", "A3_Anims_F", "A3_UI_F","A3_Map_Altis","A3_Weapons_F"};
		version = "2017-02-15";
		fileName = "Arma 3 Changes.";
		author = "Corporal Kerry";
		mail = "johncartwright302@dodo.com.au";
	};
};

I am confused about what path I should use to call the images. Is it \armastuff\ui\logo.paa or something else? I can never get this to work. Even though the mod icons work, with the mod.cpp. Doing something like adding new graphics to the game never works for me. Any help would be appreciated. This is the only thing I am having problems with.

 

Thanks.

Share this post


Link to post
Share on other sites

To use stuff from your own .pbo it's goes like this (providing your config.cpp / mod.cpp is in the same .pbo)

 

"pbo_name/Data/your_image.paa"

 

You don't have to call the folder data, you can use whatever folder name you want, so long as that folder is in the .pbo. So for your example; 

 

"pbo_name/armastuff/ui/logo.paa"

 

Hope this helps.

Share this post


Link to post
Share on other sites

I finally got it working, now I have a custom Arma 3 logo on startup.

 

class RscStandardDisplay;
class RscControlsGroup;
class RscPicture;
class RscPictureKeepAspect;
class RscDisplayStart: RscStandardDisplay
{
	class controls
	{
		class LoadingStart: RscControlsGroup
		{
			class controls {
				class Logo: RscPictureKeepAspect
				{
                    access = 1;
					text = "va\ui\arma3_beta_splash_va.paa";
					onLoad = "";
				};
			};
		};
	};
};

My path turned out to be different from yours, but it works nonetheless. Thanks for your help.

  • Like 1

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

×