tribal-relations / client

0 stars 0 forks source link

add possibility to save game #140

Open gennadyterekhov opened 7 months ago

gennadyterekhov commented 7 months ago

in console - save to file in browser - save to file, in future - save to server
(un)fortunately, the save file will be modifiable and therefore cheatable
but if 2 players hold the copy, then one cannot cheat

so just upload memory into json and be able to load it back and start from the correct place, even correct sub-action during several tribe actions

gennadyterekhov commented 7 months ago

in future, there will be need to see the turns
so i need to save turns anyway maybe implement save/load as saving the turns in order and then replaying them
also it makes sure that you cannot make nonsensical save file manually -> only values permitted by succession of turns for example, cannot just have military power 10000, because save file says so - need to really have those 'arm' actions listed

gennadyterekhov commented 6 months ago
  1. make saveable turns and rounds https://github.com/tribal-relations/client/issues/162
  2. cli https://github.com/tribal-relations/client/issues/163
  3. cli https://github.com/tribal-relations/client/issues/164
gennadyterekhov commented 1 month ago

https://github.com/tribal-relations/client/issues/164#issuecomment-2232958305