User Tools

Site Tools


migration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
migration [2020/05/22 14:10] maximemigration [2020/07/07 15:41] maxime
Line 44: Line 44:
  
 if (foundation.getGameVersion == nil or version.cmp(foundation.getGameVersion(), "1.6") < 0) then if (foundation.getGameVersion == nil or version.cmp(foundation.getGameVersion(), "1.6") < 0) then
-    myMonument.DataType = "BUILDING",+    myMonument.DataType = "BUILDING"
     myMonument.BuildingPartSetList = {     myMonument.BuildingPartSetList = {
     {     {
Line 51: Line 51:
     }     }
 else else
-    myMonument.DataType = "BUILDING", +    myMonument.DataType = "BUILDING" 
-    myMonument.AssetCoreBuildingPart = "CORE_BUILDING_PART",+    myMonument.AssetCoreBuildingPart = "CORE_BUILDING_PART"
     myMonument.BuildingPartSetList = {     myMonument.BuildingPartSetList = {
     {     {
Line 86: Line 86:
  
 To improve the number of basement spawned, scalable building parts (with constructor ''[[preview:api:building_constructor_scaler|BUILDING_CONSTRUCTOR_SCALER]]'' or ''[[preview:api:building_constructor_basement|BUILDING_CONSTRUCTOR_BASEMENT]]'') now need a non-empty building zone that fits the size of your basement filler. If no building zone is set, basements will not be placed. To improve the number of basement spawned, scalable building parts (with constructor ''[[preview:api:building_constructor_scaler|BUILDING_CONSTRUCTOR_SCALER]]'' or ''[[preview:api:building_constructor_basement|BUILDING_CONSTRUCTOR_BASEMENT]]'') now need a non-empty building zone that fits the size of your basement filler. If no building zone is set, basements will not be placed.
 +
 +The [[preview:api:building_zone|BUILDING_ZONE]] type has also been reworked to allow zone polygons per building part.
  
 ===== Foundation 1.4.5.1009 ===== ===== Foundation 1.4.5.1009 =====
migration.txt · Last modified: 2023/09/05 11:21 by mathieu

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki