Urgent! Need help on Game Update

i have a launched game in App Store.
There are 50 levels and each time gamer advance to next level, system will update the counter in a text file, then store the file to system dir again. (the file is auto created for FIRST time, file not exist)

My question is, if i am going to have an upgrade, and will the counter file in system dir been override?

What i worry is, if gamer r now on level 5, will the gamer need to play from level 1 again after the update?

how to avoid this from happen?
Thanks [import]uid: 10373 topic_id: 6585 reply_id: 306585[/import]

As long as it’s stored in system.DocumentsDirectory or whatever the Documents directory is called, files in there shouldn’t get overriden in an update. You don’t have to change anything, just make sure the new update is reading from the same file. [import]uid: 8782 topic_id: 6585 reply_id: 22891[/import]

thanks and i will start the update soon :slight_smile: [import]uid: 10373 topic_id: 6585 reply_id: 22909[/import]

i did a simulation on iOS simulator
Build the game and play for 5 levels in the simulator

Then i tried to rebuild the game, load it into iOS simulator (consider it’s update in real life)

But what shock me is, i need to play start from Level 1

Plz update on this Corona staff coz i believe some of us might have the same queries

What NayGames said is not accurate
i use [code]

local filePath = system.pathForFile( “finlevel.txt”, system.DocumentsDirectory )
local file = io.open( filePath, “r” )
[/code]

But still, my simulator shows that my file (which store the level 5) is gone everytime i run the newly build game in iOS simulator
Thanks for the advice [import]uid: 10373 topic_id: 6585 reply_id: 23445[/import]

Have you tested on device? Never assume the simulator is 100% accurate to how things will work on device because, well, it’s not. [import]uid: 12108 topic_id: 6585 reply_id: 23528[/import]