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 [2020/05/22 12:13] – maxime | migration [2021/07/15 15:09] – [Texture loading] polymorphgames | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Migration Notes ====== | ====== Migration Notes ====== | ||
+ | |||
+ | ===== Foundation 1.7.1 ===== | ||
+ | |||
+ | * [[changelog: | ||
+ | |||
+ | ==== Texture loading ==== | ||
+ | |||
+ | Some '' | ||
+ | |||
+ | Therefore, we added a way to explicitly choose the type of an asset to load, when calling '' | ||
+ | |||
+ | This third parameter is currently only used for image assets. | ||
+ | |||
+ | <file lua> | ||
+ | mod: | ||
+ | mod: | ||
+ | mod: | ||
+ | </ | ||
+ | |||
+ | **Technical Info: | ||
===== Foundation 1.6.0.0522 ===== | ===== Foundation 1.6.0.0522 ===== | ||
Line 5: | Line 25: | ||
==== BUILDING and MONUMENT asset types ==== | ==== BUILDING and MONUMENT asset types ==== | ||
- | Monuments have been reworked, and the '' | + | Monuments have been reworked, and the '' |
=== Buildings === | === Buildings === | ||
- | A building' | + | A building' |
<file lua> | <file lua> | ||
Line 34: | Line 54: | ||
=== Monuments === | === 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 '' | + | 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 '' | + | 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> | <file lua> | ||
Line 44: | Line 64: | ||
if (foundation.getGameVersion == nil or version.cmp(foundation.getGameVersion(), | if (foundation.getGameVersion == nil or version.cmp(foundation.getGameVersion(), | ||
- | myMonument.DataType = " | + | myMonument.DataType = " |
myMonument.BuildingPartSetList = { | myMonument.BuildingPartSetList = { | ||
{ | { | ||
Line 51: | Line 71: | ||
} | } | ||
else | else | ||
- | myMonument.DataType = " | + | myMonument.DataType = " |
- | myMonument.AssetCoreBuildingPart = " | + | myMonument.AssetCoreBuildingPart = " |
myMonument.BuildingPartSetList = { | myMonument.BuildingPartSetList = { | ||
{ | { | ||
Line 70: | Line 90: | ||
Before: | Before: | ||
- | * CorePart - '' | + | * CorePart - '' |
- | * StartPart - '' | + | * StartPart - '' |
- | * EndPart - '' | + | * EndPart - '' |
Now: | Now: | ||
- | * CorePart - '' | + | * CorePart - '' |
- | * StartPart - '' | + | * StartPart - '' |
- | * EndPart - '' | + | * EndPart - '' |
==== Slope constructor ==== | ==== Slope constructor ==== | ||
- | Improvements have been made to the bridge, and you now have to setup bridge end parts ('' | + | Improvements have been made to the bridge, and you now have to setup bridge end parts ('' |
==== Building zone and basement ==== | ==== Building zone and basement ==== | ||
- | To improve the number of basement spawned, scalable building parts (with constructor '' | + | To improve the number of basement spawned, scalable building parts (with constructor '' |
+ | |||
+ | The [[api: | ||
===== Foundation 1.4.5.1009 ===== | ===== Foundation 1.4.5.1009 ===== |
migration.txt · Last modified: 2023/09/05 11:21 by mathieu