Conan Exiles

Conan Exiles

Amunets Server Transfer - v1.1.29
 This topic has been pinned, so it's probably important
LilMissHentai  [developer] May 3, 2021 @ 10:32am
Using the ServerTransfer-API
Amunets Server Transfer only transfers data, that can be found in the basic data structures of a character.
This works for most stuff, but some mods have additional data (like roleplay stats) that are not accessible.

Such additinal data needs to be handles by the mod that adds them, hence this API exists.

This API uses one single interface file.
The current version of the Mod API can be found here: http://files.arianchen.de/conan/AST-ModAPI-v2.zip
To add the API to your devkit put the contents to the Content folder of your DevKit.




Step 1 is to add the interface AST_I_Transfer_API to some ActorComponent attached to the character (server side). (yellow box)
This will add 4 new Functions to the ActorComponent. (orange box)

https://cdn.discordapp.com/attachments/819071132824895509/819072553309831178/ast_api_howto_addinterface.png




Step 2 is to implement the functions.
  • GetComponentName must return a unique identifier. I recommend the modname or the modid.
  • OnTransferReset is called after exporting and before importing. This is used to to clean character data and prevent duping.
  • OnTransferExport is called while exporting. This is used to serialize all data into JSON.
  • OnTransferImport is called while importing. This is used to read all data back from JSON.



I've added some simple examples below.
https://cdn.discordapp.com/attachments/819071132824895509/819075773486596106/ast_api_howto_componentname.png
https://cdn.discordapp.com/attachments/819071132824895509/819075792431742996/ast_api_howto_onreset.png
https://cdn.discordapp.com/attachments/819071132824895509/819075834933018624/ast_api_howto_onexport.png
https://cdn.discordapp.com/attachments/819071132824895509/819075848870821888/ast_api_howto_onimport.png
Last edited by LilMissHentai; Sep 17, 2022 @ 9:25pm