PMC Tactical Farming Simulator Terrain LUA Scripts

Lua Scripts

GE scripts paint_terrain_by_spline2.lua fs-uk.com/forum topic. This one works with mapDE files:

--[[ gray looking asphalt (not very dark tar colored) --]]
	local mLayerId = 80
	local mLayerIdL = 80
	local mLayerIdR = 80
	local mSideCount = 4
--[[ dirt gravel brown --]]
	local mLayerId = 00
	local mLayerIdL = 00
	local mLayerIdR = 00
	local mSideCount = 3

Numbers are: 4 grass, 28 cobblestone kinda, 34 gravel, 56 kinda asfalt very light color, 80 asfalt. note that if your main spline start point is rotated like -90 then the LUA will make oddly very narrow texture paint line, so dont rotate the main spline start.

This one works with mapUS files:

--[[ asphalt --]]
	local mLayerId = 44
	local mLayerIdL = 45
	local mLayerIdR = 46
	local mSideCount = 4
--[[ dirt / gravel --]]
	local mLayerId = 08
	local mLayerIdL = 08
	local mLayerIdR = 08
	local mSideCount = 3