CAT 3.5: Tech Tree Pipe Agriculture -- Pottery doesn't connect [FIX INCLUDED]

lockstep

Prince
Joined
Jan 15, 2004
Messages
399
Location
Vienna, Austria
The Tech Tree Pipe from Agriculture to Pottery doesn't connect. This can be fixed by replacing the following lines (217--232) in the modified TechTree.lua

Code:
			if tech.GridY - prereq.GridY == 4 or tech.GridY - prereq.GridY == -4 then
				local vConnection = g_PipeManager:GetInstance();
				vConnection.TechPipeIcon:SetOffsetVal((tech.GridX-1)*blockSpacingX + blockSizeX + 96, ((tech.GridY-5)*blockSpacingY) - (((tech.GridY-prereq.GridY) * blockSpacingY) / 2) + extraYOffset);
				vConnection.TechPipeIcon:SetTexture(vTexture);
				local size = { x = 32; y = blockSpacingY * 3 + 8; };
				vConnection.TechPipeIcon:SetSize(size);
			end
			
			--cep
			if tech.GridY - prereq.GridY == 5 or tech.GridY - prereq.GridY == -5 then
				local vConnection = g_PipeManager:GetInstance();
				vConnection.TechPipeIcon:SetOffsetVal((tech.GridX-1)*blockSpacingX + blockSizeX + 96, ((tech.GridY-5)*blockSpacingY) - (((tech.GridY-prereq.GridY) * blockSpacingY) / 2) + extraYOffset);
				vConnection.TechPipeIcon:SetTexture(vTexture);
				local size = { x = 32; y = blockSpacingY * 4 + 8; };
				vConnection.TechPipeIcon:SetSize(size);
			end

with

Code:
			if tech.GridY - prereq.GridY == 4 or tech.GridY - prereq.GridY == -4 then
				local vConnection = g_PipeManager:GetInstance();
				vConnection.TechPipeIcon:SetOffsetVal((tech.GridX-1)*blockSpacingX + blockSizeX + 96, ((tech.GridY-5)*blockSpacingY) - (((tech.GridY-prereq.GridY) * blockSpacingY) / 2) + extraYOffset);
				vConnection.TechPipeIcon:SetTexture(vTexture);
				local size = { x = 32; y = blockSpacingY * 3 + 20; };
				vConnection.TechPipeIcon:SetSize(size);
			end
			
			--cep
			if tech.GridY - prereq.GridY == 5 or tech.GridY - prereq.GridY == -5 then
				local vConnection = g_PipeManager:GetInstance();
				vConnection.TechPipeIcon:SetOffsetVal((tech.GridX-1)*blockSpacingX + blockSizeX + 96, ((tech.GridY-5)*blockSpacingY) - (((tech.GridY-prereq.GridY) * blockSpacingY) / 2) + extraYOffset);
				vConnection.TechPipeIcon:SetTexture(vTexture);
				local size = { x = 32; y = blockSpacingY * 4 + 20; };
				vConnection.TechPipeIcon:SetSize(size);
			end

("8" is replaced with "20" two times.)
 
Back
Top Bottom