Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

ZK provides garbage as savefile name for AI

Open rlcevg opened this issue 9 years ago • 2 comments

Real save: /home/bob/.spring/Saves/TestSave.lua /home/bob/.spring/Saves/TestSave.slsf

AI receives on save: /home/bob/.spring/save-team0_id0.tmp AI receives on load: /home/bob/.spring/load-team0_id0.tmp

Does ZK even use engine's save/load system or it's pure/mostly lua?

It's also possible that AI save/load callbacks were broken during major refactoring or were never properly implemented actually.

rlcevg avatar Apr 29 '17 17:04 rlcevg

ZK uses the only engine save/load that I am aware exists.

GoogleFrog avatar Apr 30 '17 04:04 GoogleFrog

As ZK uses only engine save/load mechanics this issue may be closed. /home/bob/.spring/save-team0_id0.tmp /home/bob/.spring/load-team0_id0.tmp apparantly valid buffers, and it's possible to read/write them through direct file operations, instead of using AI's File interface. There are some engine issues related to saving mutiple AIs, but it's not ZK issue.

rlcevg avatar May 02 '17 15:05 rlcevg