PMC Farming Simulator Terrain LUA Scripts

PMC websites shut down September 13th 2025 unless yearly web hosting fees are paid. Please Support PMC to help keep these websites online.

Lua Scripts

GE scripts paint_terrain_by_spline2.lua 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

Enjoyed or found this pages content useful, please Support PMC to help me keep this web page online beyond september 13th 2025 when yearly web hosting fees are due.