[0.8.9][NK] Porting from 0.8.6
NKGetInstance and .objectNKGetInstance is deprecated and scheduled for removal.
It used to retrieve the lua script instance associated with this GameObject, now this is done automatically.
Using this function will print console warnings (with stacktrace) to aid the removal.
Getting the native object is also deprecated, this used to be done using .object called on an instance of an object and was required when calling engine functions that required a game object (world queries, NKAddChildObject, ...)
Both NKGetInstance and .object and now automated by the engine and the lua versions return self to avoid crashes while porting.
Crafting recipesEach recipe needs to define a craftingActionName and craftingDisplayName.
craftingActionName combined with craftingDisplayName is used the display the message on the progress bar.
craftingDisplayName is used as a name for the Crafting Journal.
RecipeRegistering new crafting recipe file now requires a 2nd parameter (category name):
craftingActionName = "Crafting... "
craftingDisplayName = "Recipe"
Eternus.CraftingSystem:ParseRecipeFile( "path/to/file.txt", "CategoryName" )Crafting Recipes tutorial
ArchetypesThe archetype system has changed in 0.8.7.
The new system is using txt files stored in Data/Archetypes/* to define groups of archetypes.
ArchetypesThe deprecated system used to work by assigning craftingArchetype to an object in it's txt file.
Cobblestone Gray Clump
Cobblestone Blue Clump
Cobblestone Green Clump
This system is no longer in use.
World queriesWorld queries can now use a bitmask instead of just a layer ID.
Other notesInvalid texture files parsed from txt files will now show an error during loading.
Texture atlas is no longer limited to 1024 icons.
VoxelsModifiedCallback will now get the userdata1, even when no player is specified.