grumblerbear
Chieftain
- Joined
- Sep 7, 2013
- Messages
- 17
Hi, all, I have trouble and this causes severe pain. Sorry for my bad English.
I'm trying to make a mod that creates the need for food. Every turn units lost one food, but can accumulate it. The algorithm I wrote quickly, but the trouble with save data took a lot more time. I need to store data for each unit, available only to the save of which they are made.
I'm read:
http://modiki.civfanatics.com/index.php/Persisting_data_(Civ5)
http://forums.civfanatics.com/showthread.php?t=391102
and more, and more, and more...
I'm try:
SaveUtils.lua (Set/GetScriptData)
NewSaveUtils.lua (Modding.OpenSaveData)
Compilating with Set/Get PersistentData
and more, and more, and more...
I even tried to create a separate table with the DB.Query but fiasco
What I want?
Find out whether there is a sane method of storing data in a save file.
I'm trying to make a mod that creates the need for food. Every turn units lost one food, but can accumulate it. The algorithm I wrote quickly, but the trouble with save data took a lot more time. I need to store data for each unit, available only to the save of which they are made.
I'm read:
http://modiki.civfanatics.com/index.php/Persisting_data_(Civ5)
http://forums.civfanatics.com/showthread.php?t=391102
and more, and more, and more...
I'm try:
SaveUtils.lua (Set/GetScriptData)
NewSaveUtils.lua (Modding.OpenSaveData)
Compilating with Set/Get PersistentData
and more, and more, and more...
I even tried to create a separate table with the DB.Query but fiasco
What I want?
Find out whether there is a sane method of storing data in a save file.