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 / Help with backup files.

Author
Message
genius
22
Years of Service
User Offline
Joined: 16th Oct 2003
Location: Utah, USA
Posted: 29th Nov 2003 00:55
I just lost a program that had over 4000 lines and all I have is the backup file for it. I am wondering if anyone could help me with changing the backup file into code. PLEASE HELP, If I can't get back my code, then I would have lost over a year's developement with my game.

Be happy, tomorrow is another day
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 29th Nov 2003 01:07
Open the backup file in Notepad, copy & paste back into the original dba file...


Mirrors are more fun than television. Well, that was fun, in a not-so-fun sort of way...
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 29th Nov 2003 02:32
I have to ask ... if you've worked on something for a year, why aren't you making copies of it 'just in case' anyway?

I backup to another machine nightly (full backup friday, differential every other day), and every-so-often I dump my whole development directory and my source control system to CD. At under 30p per CD it's well worth it
genius
22
Years of Service
User Offline
Joined: 16th Oct 2003
Location: Utah, USA
Posted: 29th Nov 2003 06:15
I should back them up from now on. My problem is that I have the file, it says it is 115 K, but it is empty. Even the backup file is empty. I sure beats me.

Be happy, tomorrow is another day
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 29th Nov 2003 06:28
The backup file is rewritten every compile, so if you don't catch a terminal crash fast it too will be overwritten.


God created the world in 7 days, but we're still waiting for the patch.
genius
22
Years of Service
User Offline
Joined: 16th Oct 2003
Location: Utah, USA
Posted: 29th Nov 2003 08:22
Shit, back to the drawing board.

Be happy, tomorrow is another day
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 29th Nov 2003 10:26
I presume you've had a look at the files in Notepad - sometimes the editor says a file is empty, but its not.


Mirrors are more fun than television. Well, that was fun, in a not-so-fun sort of way...
genius
22
Years of Service
User Offline
Joined: 16th Oct 2003
Location: Utah, USA
Posted: 29th Nov 2003 18:40
Even the notepad is empty!

Be happy, tomorrow is another day
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 29th Nov 2003 18:45
Ah - so it has wiped everything... You'll have to remember to do backups next time!


Mirrors are more fun than television. Well, that was fun, in a not-so-fun sort of way...
genius
22
Years of Service
User Offline
Joined: 16th Oct 2003
Location: Utah, USA
Posted: 29th Nov 2003 18:47
Yep, I should. What I don't get is that it says that it has data but there is nothing there.

Be happy, tomorrow is another day
CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 29th Nov 2003 19:12
might be some non-viewable characters

-RUST-
genius
22
Years of Service
User Offline
Joined: 16th Oct 2003
Location: Utah, USA
Posted: 30th Nov 2003 04:15
i don't know, but I just gave up on it and started working. I finally found one of the earlier versions and started off that, I still lost about 2500 lines!

Be happy, tomorrow is another day
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 30th Nov 2003 06:49
Might be worth trying RobK's IDE - at least that doesn't appear to wipe files


Mirrors are more fun than television. Well, that was fun, in a not-so-fun sort of way...
genius
22
Years of Service
User Offline
Joined: 16th Oct 2003
Location: Utah, USA
Posted: 30th Nov 2003 07:32
Yah, I should. How much does it cost?

Be happy, tomorrow is another day
Jess T
Retired Moderator
22
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 30th Nov 2003 07:58
If it says that the file had data in it, yet when you open it up in notepad, there is nothing, then there is either somethign wrong with Notepad, or something wrong with windows for telling you that there is info in teh file when there isn't.

I suggest copying the file, renaming the extension to .dba, then open it in the editor, if that doesn't work, instead of renaming it to .dab, rename it to .txt and open it in notepad.

Good luck.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 30th Nov 2003 22:39
I suppose it could be cross-linked, so might be worth doing a scandisk. However, whether you do that depends on the size reported by Windows - if its only a few bytes then its a near empty file.


Mirrors are more fun than television. Well, that was fun, in a not-so-fun sort of way...
genius
22
Years of Service
User Offline
Joined: 16th Oct 2003
Location: Utah, USA
Posted: 1st Dec 2003 07:03
It's about 115 K.

Be happy, tomorrow is another day
waffle
23
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 1st Dec 2003 07:37
thats too big for notepad. Best simply to rename it .dba and see what happens. The worst case senario is "nothing" which you currently have already. You could try with wordpad, but that sucks.
You also should try having multiple modules too.

internet gaming group
Jess T
Retired Moderator
22
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 1st Dec 2003 08:33 Edited at: 1st Dec 2003 08:34
MAKE A BACKUP!

I know it's not workign for you currently, but, if you don't make a copy of that file you have now, and then accidentally do sometign to the original, your work is definatly gone forever! But, if you have a back-up, you won't lose it at all.

Also, if you can't get it to work on your computer at all, try it on a different computer, coppy it to Floppy and give it a whirl in notepad (or wordpad) on another computer.

Hope I Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 1st Dec 2003 10:32
Send the file to me - I'll see whats in it


Mirrors are more fun than television. Well, that was fun, in a not-so-fun sort of way...
genius
22
Years of Service
User Offline
Joined: 16th Oct 2003
Location: Utah, USA
Posted: 3rd Dec 2003 01:48
I managed to re-code it(working day and night). I don't think it is as good as the origanal, but I am glad I have the code now.

Be happy, tomorrow is another day

Login to post a reply

Server time is: 2026-07-26 20:16:53
Your offset time is: 2026-07-26 20:16:53