But i'm stuck at syncing the technology progress, because get_saved_technology_progress always returns nil, regardless of progress - (my code:
Code: Select all
/c game.player.print(game.player.force.get_saved_technology_progress(game.player.force.current_research.name))
and set_saved_technology_progress doesn't work either...:
Code: Select all
/c game.player.force.set_saved_technology_progress(game.player.force.current_research), 0.5)
edit: i see now that this only affects technologies that are not currently researching...
A bit counter-intuitive, because now i have to write a function to automatically switch between research_progress and saved...progress
I guess you have more important stuff to do, but maybe you want to merge those functions at some point.