CogWheelz
|
 |
«
Posted
2014-08-13 22:50:09 » |
|
I was finishing my biggest project yet that I worked on for 2 weeks and.... my computer powerplug screwed up and my system shut off. I havn't done any recovery or back ups and the class I was working on completely disapeared. It was as if the text was invisible, because I can highlight it. I was going to release it as a WIP today too D:  . Deep down Inside I know I put in a LOT of work but for some reason... I'm relieved. I'm so speachless.... is there any way I can revive it? I checked my workspace. (Does the fact that I'm using windows 8 help me?)
|
|
|
|
BurntPizza
|
 |
«
Reply #1 - Posted
2014-08-13 22:52:39 » |
|
So you never once saved (saved, tested, etc) the file in that 2 weeks?
EDIT: Or is it a corruption issue?
|
|
|
|
Ecumene
|
 |
«
Reply #2 - Posted
2014-08-13 22:54:16 » |
|
I think the workspace was reset, its still there. Try using eclipse's file-import-project then the directory of the project. That or create a file with the exact name as the other one, it should take place of the the old one.
|
|
|
|
Games published by our own members! Check 'em out!
|
|
CogWheelz
|
 |
«
Reply #3 - Posted
2014-08-13 22:59:43 » |
|
I think the workspace was reset, its still there. Try using eclipse's file-import-project then the directory of the project. That or create a file with the exact name as the other one, it should take place of the the old one.
EDIT: Whenever I type, thos boxes appear So you never once saved (saved, tested, etc) the file in that 2 weeks?
EDIT: Or is it a corruption issue?
I never saved and it might be corruption because The outlet fell out.
|
|
|
|
BurntPizza
|
 |
«
Reply #4 - Posted
2014-08-13 23:06:50 » |
|
What does it look like in here: http://www.onlinehexeditor.com/Looks like corruption, wiped to invalid characters, don't know why that would happen though.
|
|
|
|
CogWheelz
|
 |
«
Reply #5 - Posted
2014-08-13 23:11:55 » |
|
 Not too sure if I was supposed to change any settings, but I think it just shows a bunch of 0s.
|
|
|
|
CogWheelz
|
 |
«
Reply #6 - Posted
2014-08-13 23:15:34 » |
|
Im on my phone now, but after the computer shut off it had a major update so I'm restoring it to before the update. Fingers crossed.
|
|
|
|
BurntPizza
|
 |
«
Reply #7 - Posted
2014-08-13 23:16:44 » |
|
Just odd that the file was wiped to zeros but retained it's length.
|
|
|
|
tkausl
|
 |
«
Reply #8 - Posted
2014-08-13 23:17:28 » |
|
Well hope you learned something. Next time: Safe your files often and use some sort of scm like git.
|
My English isnt that great. Correct me, if you want, im still learning this Language 
|
|
|
CogWheelz
|
 |
«
Reply #9 - Posted
2014-08-13 23:31:07 » |
|
Still the same. Atleast I showed my parents before this happened :/. Just odd that the file was wiped to zeros but retained it's length.
So it's just spaces?
|
|
|
|
Games published by our own members! Check 'em out!
|
|
|
CogWheelz
|
 |
«
Reply #11 - Posted
2014-08-13 23:39:23 » |
|
This sucks so much, today marked the day I began programming :p.
|
|
|
|
Rayvolution
|
 |
«
Reply #12 - Posted
2014-08-13 23:39:32 » |
|
Are *all* your files this way? This is very, very strange. Unless you crashed while actively saving the file I'm puzzled how this could even happen. 
|
|
|
|
CogWheelz
|
 |
«
Reply #13 - Posted
2014-08-13 23:40:21 » |
|
Are *all* your files this way? This is very, very strange. Unless you crashed while actively saving the file I'm puzzled how this could even happen.  I only lost the file I had open before my computer was unplugged.
|
|
|
|
HeroesGraveDev
|
 |
«
Reply #14 - Posted
2014-08-13 23:40:50 » |
|
BACKUP! BACKUP! BACKUP!
Although I guess it's better to learn your lesson now than later with a bigger project.
|
|
|
|
Rayvolution
|
 |
«
Reply #15 - Posted
2014-08-13 23:42:57 » |
|
BACKUP! BACKUP! BACKUP!
Although I guess it's better to learn your lesson now than later with a bigger project.
Yeah, true. Once you get into a really beefy project, 2 weeks of work is nothing in comparison to what you'd lose if you lost a core file to a much larger project.
|
|
|
|
Abuse
|
 |
«
Reply #16 - Posted
2014-08-13 23:44:29 » |
|
Anything recoverable from your Windows 'Previous Versions' ?
|
|
|
|
CogWheelz
|
 |
«
Reply #17 - Posted
2014-08-13 23:47:38 » |
|
Anything recoverable from your Windows 'Previous Versions' ?
Accidently appreciated, but no, Ironicly when I started the project, Windows would tell me o back up almost every day. I was too lazy to get a blank dvd from the living room.
|
|
|
|
BurntPizza
|
 |
«
Reply #18 - Posted
2014-08-13 23:51:23 » |
|
You can also set up a automatic system that backs up certain folders at certain times, e.g. "Documents" "every 3 hours." Version control is still good for code specifically, though, it has other benefits, like being able to easily reverse changes, etc.
|
|
|
|
Cero
|
 |
«
Reply #19 - Posted
2014-08-14 01:21:41 » |
|
|
|
|
|
CogWheelz
|
 |
«
Reply #20 - Posted
2014-08-14 01:23:22 » |
|
Windows, I use windows
|
|
|
|
Ecumene
|
 |
«
Reply #21 - Posted
2014-08-14 01:24:45 » |
|
|
|
|
|
Rayvolution
|
 |
«
Reply #22 - Posted
2014-08-14 04:40:15 » |
|
-Snippy Mc snip snip-
[derail-alert] I love how Apple can get away with advertising quite blatantly to complete and total morons, calling the machine they failed to use correctly the problem.  [/derail-alert]
|
|
|
|
Opiop
|
 |
«
Reply #23 - Posted
2014-08-14 04:49:17 » |
|
Wait, you never saved that file in 2 weeks?
I'm sorry, but that's just silly!
|
|
|
|
trollwarrior1
|
 |
«
Reply #24 - Posted
2014-08-14 07:05:56 » |
|
Its impossible to not save the file in 2 weeks, unless he never ran the program 1 time in those 2 weeks. The code must be saved for it to be compiled. If he didn't save it 1 time, that means he didn't run it even once.
Try opening source code from My Computer (Ow wow I don't know how the things where you browse folders in Windows). I think something like this happened to me once on my shitty laptop which would turn off randomly sometimes. My file was empty, but in folder explorer the file was like it was before.
|
|
|
|
Gibbo3771
|
 |
«
Reply #25 - Posted
2014-08-14 08:16:27 » |
|
Source hosting is free... Like what is so difficult about taking 10 minutes to learn how to use it.
|
"This code works flawlessly first time and exactly how I wanted it" Said no programmer ever
|
|
|
cylab
|
 |
«
Reply #26 - Posted
2014-08-14 11:45:18 » |
|
Wait, you never saved that file in 2 weeks?
I'm sorry, but that's just silly!
No - the file just got corrupted. I have the same problem with my work PC. I get a blue screen on it from time to time and then every open file is filled with binary nulls... Unfortunately this also happens to my locally cloned git repo - So any non-pushed changes are also lost  I was going to release it as a WIP today too D:  . Deep down Inside I know I put in a LOT of work but for some reason... Get over with. This might actually not be that bad at all. Redoing something that you already did just helps you practice and usually results in cleaner code anyway. So see this as an oportunity and not as a problem. Back in the days when I started programming I always started from scratch and so basically memorized all the 68k assemly code you need to write an Atari ST overscan demo with side scrolling text and raster interrupt colorizing without even looking up interrupts, adresses or clock cycles. 
|
Mathias - I Know What [you] Did Last Summer!
|
|
|
|
cylab
|
 |
«
Reply #28 - Posted
2014-08-14 12:00:38 » |
|
I guess from the screenshot that you use Eclipse, so tried the Local History feature? I don't use Eclipse, so I don't know how long its' history lasts...
|
Mathias - I Know What [you] Did Last Summer!
|
|
|
KevinWorkman
|
 |
«
Reply #29 - Posted
2014-08-14 14:40:30 » |
|
Also, try opening it up outside of eclipse. Navigate to your workspace and look for files that look like this: GameScreen.java~
If you get really desperate, you could try decompiling any class files that eclipse has generated.
|
|
|
|
|