Search the archive:
Simviation Main Site
|
Site Search
|
Upload Images
Simviation Forum
›
Current Flight Simulator Series
›
Flight Simulator X
› Corrupt Logbook in FSX
(Moderators: Mitch., Fly2e, ozzy72, beaky, Clipper, JBaymore, Bob70, BigTruck)
‹
Previous Topic
|
Next Topic
›
Pages: 1
Corrupt Logbook in FSX (Read 426 times)
Dec 12
th
, 2006 at 10:20am
Al_Fallujah
Ex Member
Yesterday, I corrupted my logbook. I had been messing around from plane to plane, just looking around in the VC, and the different controls, and such. Just killin time. I looked in my log book, and there were entries for this activity. I am a neat freak, I thought it made the book look sloppy. So I deleted them. It's an option, right there on the screen, so I figured it would not be a problem.
The then launched a free flight, flew about an hour across Northern Texas. After landing and hitting end flight, FSX locked up tight. I had to kill it in task manager.
Tried to re-launch, never got passed the splash screen. Rebooted, re-launch, no good.
I work in technical support for a software company, and so I took a page from my play book, and looked at the .cfg and .ini files. Corruption in these simple little files can bring it down. I figured the last thing it does after a flight was log it.
I renamed the LOGBOOK.BIN, and FSX started right up. It kept my "awards" for completing missions but created a blank logbook. I lost my whopping 60 hours or so. I can live with that.
Warning to anyone else. Your logbook maybe fragile.
Back to top
IP Logged
Reply #1 -
Dec 12
th
, 2006 at 11:12am
Al_Fallujah
Ex Member
I just did a quick search, I am obviously no the only one to have run into this.
I did see someone mentioed a log book fixer. Does anyone have any experience using it?
Need to know details, like.... does it work?
Back to top
IP Logged
Reply #2 -
Dec 12
th
, 2006 at 2:12pm
Gypsy_Baron
Offline
Colonel
USS Dewey DGL-14 & VX-8
Daly City, California
Gender:
Posts: 467
[quote author=Al_Fallujah link=1165936846/0#1 date=1165939936]I just did a quick search, I am obviously no the only one to have run into this.
I did see someone mentioed a log book fixer. Does anyone have any experience using it?
Need to know details, like.... does it work?[/quote]
Yes, I've had to repair my corrupted logbook.bin a number of times. Last night,
as a matter of fact.
What usually happens is that an entry gets made with an incorrect "length" byte for
that record. This byte tells FSX where to look for the beginning of the next record, or
in the case of the last record, the end of file.
To repair the logbook.bin you will need a HEX editor and having a HEX calculator would also
be helpfull.
Make a back-up copy of the corrupted logbook, just in case you need to start over gain,
then open the logbook.bin with the HEX editor. Also, rename the new logbook.bin
so you can use it to add any entries you've made since the corruption back to the
( hopefully ) restored logbook.bin.
Most often, the problem is with the last, or next to last record. I once found the error
in the 2nd from last, but in any case start at the end of the file.
Many records that have no comments attached will have a length of 63 bytes ( 3f hex ).
Look back from the end of file a until you find a "beginning of record" byte..."05" hex.
The next byte is the length byte and it is usually followed by two "00" bytes.
Note the hex address of the "05" byte. Add the value of the length byte to this.
The result should be the address of the end of file. In my hex editor it displays a "__".
If it points to a location within the record, or an address beyound the end of file,
you have found the problem. If it's OK, then search back from the "05" byte until
you find the next "05" byte. Again, note the address, add the length and it should
point to the "05" byte you just "left".
If you find and error, note the address of the next "05" byte or end of file in the
case an error in the last record, then note the address of the "05" byte for the
corrupted record. Subtract that address from the address of the next "05" byte
and the result is the correct value for the length byte.
Edit the record to insert the correct length.
Close the file and restart FSX. It should start up OK.
There is a logbook editor utility ( try searching over at Avsim ) that will allow you to
eidt times, dates, airport codes, etc. But it won't fix logbooks with corrupted length
bytes. At least it wouldn't last night for my latest "corruption".
It's usefull for editing flight info that has been "addes: to the logbook.bin file,
whicj I do when I've flown for an hour or more and FSX suddenly ends with
a CTD or BSOD. I then find a record in the logbook that is similar to the flight
I just made as far as aircraft type and time, then I use the hex editor to copy
it and paste it onto the end of the logbook.bin. I then use the logbook editor
to edit that entry for the correct departue/arrival airports, times, etc.
After my first corrupted logbook problem I went in and examined the structure of
the entries. Here is the format for the first 24 bytes of a record. I added the "|"
character to seperate fields.
05|47|00 00 3a f5 6e 74|d6 07|00|0a|19|0b 2e 27|45 45 54 4e|45 56 52 41|
--|71|---------------------|2006|---|10|25|11 46 39|-E--T--T--N-|E--V--R--A-|
05 = start of record, 47 = length of 71 decomal, d6 07 = year 2006
oa = 10, month of October, 19 = 25, day of the month, 0b 2e 27 = 11:46:39 time of day
then comes the depature and the destination airport codes. ETTN and EVRA here. This
particular record had a comment, thus the length of 71 bytes.
The most common record length is 63 so the beginning of most records will look like this:
"05 3f 00 00"
Hope this helps you fix your problem. If it does, and you have some flights in the logbook.bin
that was created after the corruption, simply add that entire logbook.bin data to the end
of your restored logbook.bin. just besure to make backups periodically!
Paul
Back to top
IP Logged
Reply #3 -
Dec 14
th
, 2006 at 9:41am
Al_Fallujah
Ex Member
Thanks, I will give this a shot.
Back to top
IP Logged
Pages: 1
‹
Previous Topic
|
Next Topic
›
« Home
‹ Board
Top of this page
Forum Jump »
Home
» 10 most recent Posts
» 10 most recent Topics
Current Flight Simulator Series
- Flight Simulator X ««
- FS 2004 - A Century of Flight
- Adding Aircraft Traffic (AI) & Gates
- Flight School
- Flightgear
- MS Flight
Graphic Gallery
- Simviation Screenshots Showcase
- Screenshot Contest
- Edited Screenshots
- Photos & Cameras
- Payware Screenshot Showcase
- Studio V Screenshot Workshop
- Video
- The Cage
Design Forums
- Aircraft & 3D Design
- Scenery & Panel Design
- Aircraft Repainting
- Designer Feedback
General
- General Discussion
- Humour
- Music, Arts & Entertainment
- Sport
Computer Hardware & Software Forum
- Hardware
- Tweaking & Overclocking
- Computer Games & Software
- HomeBuild Cockpits
Addons Most Wanted
- Aircraft Wanted
- Other Add-ons Wanted
Real World
- Real Aviation
- Specific Aircraft Types
- Autos
- History
On-line Interactive Flying
- Virtual Airlines Events & Messages
- Multiplayer
Simviation Site
- Simviation News & Info
- Suggestions for these forums
- Site Questions & Feedback
- Site Problems & Broken Links
Combat Flight Simulators
- Combat Flight Simulator 3
- Combat Flight Simulator 2
- Combat Flight Simulator
- CFS Development
- IL-2 Sturmovik
Other Websites
- Your Site
- Other Sites
Payware
- Payware
Old Flight Simulator Series
- FS 2002
- FS 2000
- Flight Simulator 98
Simviation Forum
» Powered by
YaBB 2.5 AE
!
YaBB Forum Software
© 2000-2010. All Rights Reserved.