Jump to content

Recommended Posts

Hello,
I'm trying to understand if it is possible to replace the textures in Arma's houses.

I'm building a terrain with typically very colored houses, and that's all I want to do: create a mod with houses based on vanilla Arma, just with different textures.

 

Is this doable?

 

This is what allows me to see a new building type in 2DEN:

 

class CfgPatches
{
	class Colored_Houses
	{
		// author
		name = "Colored Houses";
		author = "_SCAR";
		// settings
		units[] = {};
		weapons[] = {};
		requiredVersion = 0.5;
		requiredAddons[] = {"A3_Structures_F"};
	};
};

// main object classes
class CfgVehicleClasses
{
	class Colored_Houses_Class
	{
		displayName = "Colored Houses";
	};
};

class CfgVehicles
{
	class Land_i_House_Big_01_V1_F;
	
	class Colored_Houses_House_Large_Red: Land_i_House_Big_01_V1_F
	{
		scope = 2;
		vehicleClass = "Colored_Houses_Class";
		editorCategory="EdCat_Structures";
	};
};

But it is unclear to me if there's a way to set the new texture.

Share this post


Link to post
Share on other sites

I've tried:

 

class CfgVehicles
{
	class House;
	class House_F: House {};
	
	class Land_i_House_Big_01_V1_F: House_F
	{
		class EventHandlers;
	};
	
	class Colored_Houses_House_Large_Red: Land_i_House_Big_01_V1_F
	{
		scope = 2;
		vehicleClass = "Colored_Houses_Class";
		editorCategory="EdCat_Structures";
		displayName="House (Large, Red)";	
		hiddenSelections[]= {"house_red"};
		hiddenSelectionsTextures[]= {"\Colored_Houses\data\colored_houses_house_large_red_mlod_co.paa"};
		
		class EventHandlers: EventHandlers
		{
			init = "(_this select 0) setObjectTexture [0, ""\Colored_Houses\data\colored_houses_house_large_red_mlod_co.paa""]";
		};	
	};
};

To no avail.

Share this post


Link to post
Share on other sites

For the curious: 

hint format ["%1", getObjectTextures house];

*does* return the additional texture.

Share this post


Link to post
Share on other sites

For each color -> new .p3d (with the new/different texture)

Share this post


Link to post
Share on other sites
4 minutes ago, dscha said:

For each color -> new .p3d (with the new/different texture)

 

Right, but the .p3d is a binarized file, so I can't modify it.

Share this post


Link to post
Share on other sites

Thank you for the suggestion, but I'm OK with Vanilla Arma houses, I'd just like to change some of their colors.

Share this post


Link to post
Share on other sites

These are the Vanilla Arma houses, they just have different colors, that's exactly what you want, isn't it?

You cannot give them different colors on yourself, as you already mentioned, because they are binarized.

 

Share this post


Link to post
Share on other sites

it partially is, yes, because there are some buildings (even though I could only see an azure one as new).

Though, I'd like to see more diversity.

Share this post


Link to post
Share on other sites

and whats whit setting textures for vanilla buildings ?

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

×