Jump to content

Terrain Height and Terrain Paint script error !


Recommended Posts

Hi.

When i want to use Terrain Height or Terrain Paint  with a selected spline, here is my error in th GE console:

 

Error: C:/Users/sebba/AppData/Local/GIANTS Editor 64bit 8.2.2/scripts//Updated Spline Scripts_18.12.2022/terrainHeight.lua:28: attempt to call global 'getNumUserAttribute' (a nil value)

 

Can anyone help me ?

thanks

Link to comment
Share on other sites

  • Wrinkley

You are using out of date scripts latest ones available here (FS22 only)

https://farmerboysmodding.com/index.php?/topic/2439-new-spline-paint-height-csv-field-creationdimension-panel-scripts/

Just noticed you are using an old version of GE which is for FS19 is that correct.

 line 28 in the scripts Updated Spline Scripts_18.12.2022 folder terrainHeight.lua  (and also terrainPaint.lua) is

    28  local monitor= getNumUserAttribute(mSplineID)
    29     for i= 1, monitor do
    30      local testName = getUserAttributeByIndex(mSplineID,i)

Which probably means you have not used the TerrainHeightSetUp script before using the terrainHeight script.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now