migration
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
migration [2019/09/26 16:52] – maxime | migration [2020/05/22 14:10] – maxime | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Migration Notes ====== | ====== Migration Notes ====== | ||
+ | |||
+ | ===== Foundation Preview 1.6.0.0522 ===== | ||
+ | |||
+ | ==== BUILDING and MONUMENT asset types ==== | ||
+ | |||
+ | Monuments have been reworked, and the '' | ||
+ | |||
+ | === Buildings === | ||
+ | |||
+ | A building' | ||
+ | |||
+ | <file lua> | ||
+ | local myBuilding = | ||
+ | { | ||
+ | DataType = " | ||
+ | ... | ||
+ | } | ||
+ | |||
+ | if (foundation.getGameVersion == nil or version.cmp(foundation.getGameVersion(), | ||
+ | myBuilding.BuildingPartSetList = { | ||
+ | { | ||
+ | Name = " | ||
+ | BuildingPartList = { " | ||
+ | } | ||
+ | } | ||
+ | else | ||
+ | myBuilding.AssetCoreBuildingPart = " | ||
+ | end | ||
+ | |||
+ | mod: | ||
+ | </ | ||
+ | |||
+ | === Monuments === | ||
+ | |||
+ | Monuments are now created around a single building part, placed before all the others. This part is the one selected just after selecting the monument in the building selection menu. This part has to be specified in the property '' | ||
+ | |||
+ | The core building part, if removed, will remove the whole monument. Like for the market, the core building part can be used for preview only, and be invisible once built by setting '' | ||
+ | |||
+ | <file lua> | ||
+ | local myMonument = { | ||
+ | ... | ||
+ | } | ||
+ | |||
+ | if (foundation.getGameVersion == nil or version.cmp(foundation.getGameVersion(), | ||
+ | myMonument.DataType = " | ||
+ | myMonument.BuildingPartSetList = { | ||
+ | { | ||
+ | Name = " | ||
+ | BuildingPartList = { " | ||
+ | } | ||
+ | else | ||
+ | myMonument.DataType = " | ||
+ | myMonument.AssetCoreBuildingPart = " | ||
+ | myMonument.BuildingPartSetList = { | ||
+ | { | ||
+ | Name = " | ||
+ | BuildingPartList = { " | ||
+ | } | ||
+ | end | ||
+ | |||
+ | mod: | ||
+ | </ | ||
+ | |||
+ | ==== Bridge mover ==== | ||
+ | |||
+ | The way bridges are placed has been modified, and requires a small mover change. A bridge mover ('' | ||
+ | |||
+ | Now, to have a functional bridge, you need instead to place a bridge mover on the start part and end part, and remove the mover of the core part. | ||
+ | |||
+ | Before: | ||
+ | * CorePart - '' | ||
+ | * StartPart - '' | ||
+ | * EndPart - '' | ||
+ | |||
+ | Now: | ||
+ | * CorePart - '' | ||
+ | * StartPart - '' | ||
+ | * EndPart - '' | ||
+ | |||
+ | ==== Slope constructor ==== | ||
+ | |||
+ | Improvements have been made to the bridge, and you now have to setup bridge end parts ('' | ||
+ | |||
+ | ==== Building zone and basement ==== | ||
+ | |||
+ | To improve the number of basement spawned, scalable building parts (with constructor '' | ||
+ | |||
+ | ===== Foundation 1.4.5.1009 ===== | ||
+ | |||
+ | ==== Building Part Function ==== | ||
+ | |||
+ | For assets from type '' | ||
+ | |||
+ | Migration example for the //Example 02// mod: | ||
+ | <file lua building_parts.lua> | ||
+ | mod: | ||
+ | DataType = " | ||
+ | ... | ||
+ | |||
+ | -- OLD | ||
+ | -- BuildingFunction = { | ||
+ | -- DataType = " | ||
+ | -- WorkerCapacity = 4, | ||
+ | -- RelatedJob = { Job = " | ||
+ | -- ResourceProduced = { | ||
+ | -- { Resource = " | ||
+ | -- } | ||
+ | -- }, | ||
+ | |||
+ | -- NEW | ||
+ | BuildingFunction = " | ||
+ | |||
+ | ... | ||
+ | }) | ||
+ | |||
+ | -- ALSO NEW | ||
+ | mod: | ||
+ | DataType = " | ||
+ | Id = " | ||
+ | WorkerCapacity = 4, | ||
+ | RelatedJob = { Job = " | ||
+ | ResourceProduced = { | ||
+ | { Resource = " | ||
+ | } | ||
+ | }) | ||
+ | </ | ||
+ | |||
+ | ==== Resource Type List ==== | ||
+ | The enumeration '' | ||
+ | |||
+ | Another change is that resource, markets, granaries and warehouses can now have multiple resource types. This, combined with new customizable resource types, will be useful to customize where resources can be stocked and sold. This means that the property '' | ||
+ | |||
+ | For example, before this change, the wine was a resource of type '' | ||
+ | |||
+ | The complete list of core resource types can be found: [[api: | ||
+ | |||
+ | Migration example: | ||
+ | <file lua> | ||
+ | mod: | ||
+ | DataType = " | ||
+ | ... | ||
+ | |||
+ | -- OLD | ||
+ | -- ResourceType = " | ||
+ | |||
+ | -- NEW | ||
+ | ResourceTypeList = { | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | |||
+ | ... | ||
+ | }) | ||
+ | </ | ||
===== Foundation 1.3.1.0802 ===== | ===== Foundation 1.3.1.0802 ===== |
migration.txt · Last modified: 2023/09/05 11:21 by mathieu