BL Coding Lifecycle Events

正在查看此主题的用户

phakscion

Recruit
I'm trying to restore formation settings that my mod is saving for basic troops and Companions, but the changes don't stick to Companions on game load. I'm verifying that the changes are being applied, but there seems to be another process that overwrites them. I'm doing the restoration during the SubModule's "DoLoading".

Are there any other lifecycle events that happen after "DoLoading"? I'd love to know what fires off last before the meta campaign map is displayed. Any information would be appreciated.

Thank you.
 
Hello,

You need to explicitly mark the elements you want to have saved in savegames.
This post explains the Bannerlord saving system, it may interest you.
Do you think that using the save system will fix the issue I'm having with Companions? I'm serializing the data to xml, and restoring it with no issues for basic troops, and Companions are restored until the actual map loads.
 
点赞 0
后退
顶部 底部