Hi everyone
I am using the ice save system, and i am creating all the data on a external file and then require this file to the game, some like:
P.S: the default value that i saved on database is off
external\_file.lua:
local data = ice:newBox( "database")
data:store( "level", "off" )
game.lua
local data = ice:loadBox( "database")
local game = data:retrieve( "level")
if game == "off" then
data:store( "level", "on" )
data:save()
print(game)
end
This code run, but to change the value i need to relaunch the simulator 2 times, and it should update ate only one time.
if the data:save() is inside the external_file.lua, it updates at one time, but with the code that i have i need 2 relaunch to update the value.
Can anyone give me some help?
Thanks
[import]uid: 26056 topic_id: 20415 reply_id: 320415[/import]