Page MenuHomeFeedback Tracker

fn_garage.sqf fails to compare textures in the certain condition
New, NormalPublic

Description

private _fnc_compareTextures = 
{
	params ["_vehtex", "_cfgtex"];
	if (_cfgtex isEqualTo "") exitWith { true }; // empty/absent config texture == any texture
	if (_vehtex find "\" != 0) then {_vehtex = "\" + _vehtex};
	if (_cfgtex find "\" != 0) then {_cfgtex = "\" + _cfgtex};
	_vehtex == _cfgtex
};

This part of fn_garage.sqf fails to compare properly if the texture config path has no extension. This could cause the error that can't apply livery properly in Eden Editor.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Visual-Vehicles
Steps To Reproduce
  1. Make a vehicle with config like this:
class CfgVehicles
{
	class vehicle
	{
		class TextureSources
		{
			class livery01
			{
				displayName = "livery";
				author = "it's me";
				textures[] = {"pboprefix\texture"}; //without extension!
				factions[] = {"BLU_F"};
			};
		};
	};
};
  1. Test in Garage or Edit Vehicle Appearance in Eden Editor

Event Timeline

POLPOX created this task.May 28 2020, 5:59 PM