Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / DBPRO ate my code

Author
Message
luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 17th Feb 2013 01:53
Dbpro stoped responding, few minutes before that i'm sure i hit save and save project when i tried to open it it was hours away from what i saved, is there anywhere some temp files?I remember years from now that simmilar thing happend to me and i was able to find the lastest temporary dba compilations.I do not remember where to look for them...

Coding is My Kung Fu!
And My Kung Fu is better than Yours!
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 17th Feb 2013 01:58
Which OS are you running, that might help to begin with... also do not delete anything or perform disk clean-up for the time being!

luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 17th Feb 2013 02:04
I'm running windows 7 64bit, i think i found where it stash tmp files users\local\temp but they are all blank 0kb And i'm actually days not hours behind, i did not turned off dbpro all this time.

Coding is My Kung Fu!
And My Kung Fu is better than Yours!
luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 17th Feb 2013 02:14
It's hard to code when using so unreliable software...It can't even produce tmp files as it supposed to do...

Coding is My Kung Fu!
And My Kung Fu is better than Yours!
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 17th Feb 2013 02:42
Did you never compile your code once? there is an option whereby it saves changed files on compile...

I tend to compile [not run] every time I complete a code block to see if any typos get flagged up...

Hmm, I guess all that you can scavange from all this is a few pointers I suppose...

A few from me would be...

Compile often, CTRL+S or Click Save/Save All often, Work from PSEUDO CODE to be able to keep track of what you are coding [kept in separate files outside of the DB files, maybe a text or word file] and last but not least

SAVE
SAVE
SAVE

I learned this the hard way through my graphic design days where the editor would just crash for no reason but I guess memory leaks... which can be dangerous as they can wipe out more data than you think sometimes... and ALWAYS ALWAYS save in versions... What I do is each day I return to my code, I copy the folder and name it something systematically such as date or version number after the project name...

I feel your pain, but maybe there is still some luck... right click the folder and click properties and see if you by chance have shadow copying enabled and see if you can recover a previous version... but as you likely did not click save, I guess this would be useless as you would just have what you have right now...

Oh, well... get coding! err and writing a map of your code structure!

Again... SAVE SAVE SAVE!

luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 17th Feb 2013 03:29 Edited at: 17th Feb 2013 03:30
I felt like the world crubles, just finished a whole system of functions for the game.By the way i save a lot.For my luck i was looking in the wrong folder, just recently i felt the need to transfer all the files of my project to a new place and strangely forget that i've got two folders with almost exactly the same files.But DBpro path still leads to old folder and there is where my supprise came from.Actually i made another copy of the project folder an hour ago, just copied old files, again didn't notice...and when i compared what i had there and what dbpro loaded i was shocked for few minutes.Still if i wasn't so lucky tmp files were of no use...and they were my last hope.

Coding is My Kung Fu!
And My Kung Fu is better than Yours!
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 17th Feb 2013 03:32
So disaster averted?



luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 17th Feb 2013 05:32
Yes.I can't imagine coding the whole battle system again...

Coding is My Kung Fu!
And My Kung Fu is better than Yours!
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 17th Feb 2013 13:10
If you're lucky, you'll have a file in the same folder as your executable called "_Temp.dbsource". Open that file up and your code will be in it.

Another way you can get it is to go to your DarkBASIC installation directory and look in the folder "TEMP". Your code should be in the file "FullSourceDump.dba".

Note that the code found in the files I mentioned is the code from the last compile, so if you worked on your project more after compiling, you will have lost that work.

TheComet

http://blankflankstudios.tumblr.com/
"You're all wrong. You're all idiots." - Fluffy Rabbit
"Bottom line, people are retarded." - Fluffy Rabbit
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 17th Feb 2013 14:41
I guess you are not using the Indigo IDE? It has an auto-backup feature. Even with auto-backup, I still manually copy my work every few hours; I couldn't stand to redo but an hours work.

But as TheComet suggested, those places are possibles.

luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 19th Feb 2013 02:42
No, i don't use it, but after this i might.

Coding is My Kung Fu!
And My Kung Fu is better than Yours!

Login to post a reply

Server time is: 2026-07-07 09:04:44
Your offset time is: 2026-07-07 09:04:44