Sys_Set_AI_Storage_Long Problems |
Soumis par unnamed le Dim, 2008-01-06 23:08
SE:V MODs
Hey Everyone,
Wrote some code for my AI trying to save treaty status for use in future turns.
Used Sys_Set_AI_Storage_Long to save the value and Sys_Get_AI_Storage_Long to retrieve the value. Its not working properly and I'm wondering if there are any known problems with these functions.
I've looked at the debug logs and it clearly shows saving the data one turn, but the next turn it pulls a value of zero.
-Unnamed
» Vous devez vous identifier ou créer un compte pour écrire des commentaires




Re: Sys_Set_AI_Storage_Long Problems
Are you certain you're returning the same memory element as you saved to?
Saving a value has 4 parameters:
Player ID - Element Index - List Index - Value to store at that list index
Calling a value has 3 parameters:
Player ID - Element Index - List Index
You might be recalling the wrong list index?
Space Empires Depot | SE:V Balance Mod