OMG This is not possible, suddenly all my code for my game is deleted, the files are empty.
I’m using Sublime Text 2 for editing. How can i restore the code ? Come on, please tell me i can restore it somehow
[import]uid: 193035 topic_id: 32899 reply_id: 332899[/import]
Your text editor isn’t that important, did you delete your files on disc? Where did you store your code files?
If you didn’t use Source Control, I suggest you look into Git or Svn (TortoiseSvn is nice). These will let you do iterative backups and have control a good view of iterative changes to your files. [import]uid: 134101 topic_id: 32899 reply_id: 130734[/import]
No i didn’t delete anything. I was coding and when i sow the files there was nothing in there, some of the files are ok, the images are there, but the main game logic is deleted. The funny thing is the files are there but they are empty. It would be better they were deleted, because i could restore them using software. I dont know if its possible to restore them with some recovery software because the files are there but they are empty
[import]uid: 193035 topic_id: 32899 reply_id: 130735[/import]
If you have changed/moved/renamed the .lua files (your source code) from any folder that it was into so it probably would show up into ST2 as “empty tabs” but it happens not because the files are deleted but as I said above, for example, if a .lua file of yours is called, lets say: credits.lua and it is opened into Sublime as a tab there and so if you change the name of the file for something else than the original one (e.g.: credit.lua) as I said it will look like deleted from ST2 but it is not deleted at all. Maximum it has been changed/renamed/moved for other folder/directory in your machine.
Hope that helps.
Regards,
Rodrigo. [import]uid: 89165 topic_id: 32899 reply_id: 130738[/import]
Thanks for the help guys, but i didn’t manage to restore the files. Obviously my system has deleted the code. But thanks to god somehow yesterday i made a backup of the main game logic file and now i rewrote all the necessary code
[import]uid: 193035 topic_id: 32899 reply_id: 130742[/import]
Have a look at Git or SVN (or other source control systems), and you will never have this sort of issue ever again.
[import]uid: 134101 topic_id: 32899 reply_id: 130743[/import]
Your text editor isn’t that important, did you delete your files on disc? Where did you store your code files?
If you didn’t use Source Control, I suggest you look into Git or Svn (TortoiseSvn is nice). These will let you do iterative backups and have control a good view of iterative changes to your files. [import]uid: 134101 topic_id: 32899 reply_id: 130734[/import]
No i didn’t delete anything. I was coding and when i sow the files there was nothing in there, some of the files are ok, the images are there, but the main game logic is deleted. The funny thing is the files are there but they are empty. It would be better they were deleted, because i could restore them using software. I dont know if its possible to restore them with some recovery software because the files are there but they are empty
[import]uid: 193035 topic_id: 32899 reply_id: 130735[/import]
If you have changed/moved/renamed the .lua files (your source code) from any folder that it was into so it probably would show up into ST2 as “empty tabs” but it happens not because the files are deleted but as I said above, for example, if a .lua file of yours is called, lets say: credits.lua and it is opened into Sublime as a tab there and so if you change the name of the file for something else than the original one (e.g.: credit.lua) as I said it will look like deleted from ST2 but it is not deleted at all. Maximum it has been changed/renamed/moved for other folder/directory in your machine.
Hope that helps.
Regards,
Rodrigo. [import]uid: 89165 topic_id: 32899 reply_id: 130738[/import]
Thanks for the help guys, but i didn’t manage to restore the files. Obviously my system has deleted the code. But thanks to god somehow yesterday i made a backup of the main game logic file and now i rewrote all the necessary code
[import]uid: 193035 topic_id: 32899 reply_id: 130742[/import]
Have a look at Git or SVN (or other source control systems), and you will never have this sort of issue ever again.
[import]uid: 134101 topic_id: 32899 reply_id: 130743[/import]