Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (577)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2
  ignore  |  Print  
  Lost my CODE!  (Read 2892 times)
0 Members and 1 Guest are viewing this topic.
Offline 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:  Cry . 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?)
Offline 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?
Offline Ecumene

Senior Duke


Medals: 10



« 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.

You acknowledge that this software is not designed, licensed or intended for use in the design, construction, operation or maintenance of any nuclear facility.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline 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.

Click to Play


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.
Offline 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.
Offline 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.
Offline 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.
Offline BurntPizza
« Reply #7 - Posted 2014-08-13 23:16:44 »

Just odd that the file was wiped to zeros but retained it's length.
Offline 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 Smiley
Offline 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!
Legends of Yore - The Casual Retro Roguelike
Offline BurntPizza
« Reply #10 - Posted 2014-08-13 23:34:21 »

So it's just spaces?

No, they're NUL characters: http://www.robelle.com/smugbook/ascii.html

But yeah, use version control of some kind, Git (esp. combined with Github) is quite popular.
Offline CogWheelz
« Reply #11 - Posted 2014-08-13 23:39:23 »

This sucks so much, today marked the day I began programming :p.
Online Rayvolution

JGO Kernel


Medals: 216
Projects: 2
Exp: 1 year


Resident Crazyman


« 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. Shocked

- Raymond "Rayvolution" Doerr.
Retro-Pixel Castles - Survival Sim/Builder/Roguelike!
LIVE-STREAMING DEVELOPMENT: http://www.twitch.tv/SG_Rayvolution
Offline 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. Shocked

I only lost the file I had open before my computer was unplugged.
Offline HeroesGraveDev

JGO Kernel


Medals: 269
Projects: 11
Exp: 2 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« 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.

Online Rayvolution

JGO Kernel


Medals: 216
Projects: 2
Exp: 1 year


Resident Crazyman


« 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.

- Raymond "Rayvolution" Doerr.
Retro-Pixel Castles - Survival Sim/Builder/Roguelike!
LIVE-STREAMING DEVELOPMENT: http://www.twitch.tv/SG_Rayvolution
Offline Abuse

JGO Knight


Medals: 13


falling into the abyss of reality


« Reply #16 - Posted 2014-08-13 23:44:29 »

Anything recoverable from your Windows 'Previous Versions' ?

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline 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.
Offline 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.
Offline Cero
« Reply #19 - Posted 2014-08-14 01:21:41 »

<a href="http://www.youtube.com/v/_GxC4kKD9qA?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/_GxC4kKD9qA?version=3&amp;hl=en_US&amp;start=</a>

Offline CogWheelz
« Reply #20 - Posted 2014-08-14 01:23:22 »

Windows, I use windows
Offline Ecumene

Senior Duke


Medals: 10



« Reply #21 - Posted 2014-08-14 01:24:45 »

-snip-

Damn end users
Click to Play

You acknowledge that this software is not designed, licensed or intended for use in the design, construction, operation or maintenance of any nuclear facility.
Online Rayvolution

JGO Kernel


Medals: 216
Projects: 2
Exp: 1 year


Resident Crazyman


« 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. Tongue
[/derail-alert]

- Raymond "Rayvolution" Doerr.
Retro-Pixel Castles - Survival Sim/Builder/Roguelike!
LIVE-STREAMING DEVELOPMENT: http://www.twitch.tv/SG_Rayvolution
Offline opiop65

JGO Kernel


Medals: 156
Projects: 7
Exp: 3 years


JumpButton Studios


« 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!

Online 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.
Offline 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
Online cylab

JGO Ninja


Medals: 52



« 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 Sad

I was going to release it as a WIP today too D:  Cry . 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.  Cool

Mathias - I Know What [you] Did Last Summer!
Offline SHC
« Reply #27 - Posted 2014-08-14 11:47:25 »

You can restore files from Windows 8 file history. Link here http://windows.microsoft.com/en-IN/windows-8/how-use-file-history if you have it enabled. I recommend you to enable it to not suffer anytime again.

Online cylab

JGO Ninja


Medals: 52



« 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!
Offline KevinWorkman

JGO Wizard


Medals: 85
Projects: 11
Exp: 12 years


klaatu barada nikto


« 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.

Static Void Games - Play indie games, learn game programming, upload your own games!
Pages: [1] 2
  ignore  |  Print  
 
 

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Longarmx (49 views)
2014-10-17 03:59:02

Norakomi (38 views)
2014-10-16 15:22:06

Norakomi (31 views)
2014-10-16 15:20:20

lcass (35 views)
2014-10-15 16:18:58

TehJavaDev (65 views)
2014-10-14 00:39:48

TehJavaDev (65 views)
2014-10-14 00:35:47

TehJavaDev (55 views)
2014-10-14 00:32:37

BurntPizza (72 views)
2014-10-11 23:24:42

BurntPizza (43 views)
2014-10-11 23:10:45

BurntPizza (84 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!