Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

possible problem(s) with CRCTool Beta 2

Here you can find the postings on the different editing utilities found for Freelancer

Post Mon Jun 19, 2006 3:22 am

possible problem(s) with CRCTool Beta 2

First of all this is a great tool for debugging mods and the main reason that I found a couple of possible issues is probably due to the size of this mod?

I processed FL with the FrontierSpace mod installed and this generated a .cdb file of 383 megs and I exported this to a text file that was 412 megs in size.

Firstly, it took me a while to figure why there were hex values in the .cdb file that are not in the exported text file but I now think that the problem is that when you export to the text file CRCTool is silently failing when it runs out of memory writing the text output. I believe this is the case as I know there are values in the .cdb file that are not in the .txt file, the 2 files and my used memory add up to about 1 gig which is what I have installed.

Second issue. In .txt output file there are 9 mill. lines but I believe that there are many duplicated lines, specifically I found that the entry for:

0xe981eddd 2380211782

WeaponPlate.tga

C:\Program Files\Microsoft Games\Freelancer\Data\SHIPS\Frontier\FIREBASE\RAVENCL
AW\RavenCLaw.3db

is repeated 2,871,339 times. I noticed this after looking at chunks of the .txt file towards the end to find hex values to use as test data for a routine that I'm working on and seeing the repeated values. This is easy to verify, just run a findstr command on the .txt file and pipe the output to a file then look at the file:

C:\temp>findstr /I 0xe981eddd tmp.txt >lc.txt

and count the lines in the 68 meg output lc.txt (preferably with a program or dos version of the Unix lc command - not manually )

I know that the source to CRCTool is distributed with it and I have had a look. I know enough Cpp to read the code and have a good idea what it is doing but determining if it is going awray it is something else.

Anyone else found this problem or have any suggestions?

Finally, I should point out that I have no reason to believe that using CRCTool with the .cdb database by itself is in any way wrong, the two issues that I found are w.r.t. to the "save as text" option.

Rgds.

Post Mon Jun 19, 2006 6:35 am

Red how the hell did you get a .cdb file of that size, mine is 20.9 meg and the .txt is 22.7 meg, I've only got 1 copy of the weaponplate.tga in the .txt and not 2 million of them.

**shuffles of with a new headache**

Post Mon Jun 19, 2006 1:15 pm

beats me. I just checked again and that's correct. I did delete the .cdb and the text database before and regenerated them, so this isn't a "one-off"

I'll clear everything and try again tomorrow a.m. - have no idea why the files should be so different between your and my machines.

Rgds.

Post Mon Jun 19, 2006 1:45 pm

I just had another look to make sure that I'm not being a complete monkey and here is the last few lines of the (sorted by time) dir listing:

19/06/2006 11:27 305 readlast.py
19/06/2006 11:40 420 readlast2.py
04/04/2005 17:05 1,967 readme.txt
18/06/2006 16:08 736 read_all.py
19/06/2006 10:00 926 read_all2.py
19/06/2006 10:04 932 read_all3.py
19/06/2006 10:10 889 read_all4.py
19/06/2006 10:18 1,020 read_all5.py
19/06/2006 10:18 1,020 read_all6.py
19/06/2006 11:10 1,240 read_all7.py
19/06/2006 11:15 1,224 read_all8.py
18/06/2006 11:56 525 read_line_time.py
18/06/2006 12:11 604 read_line_time2.py
18/06/2006 17:30 <DIR> source
19/03/2003 06:04 618,496 stlpmt45.dll
19/06/2006 10:44 425 testdbm.py
17/06/2006 13:04 0 this.txt
18/06/2006 16:46 392,303,655 tmp.cdb
18/06/2006 16:46 422,905,041 tmp.txt
19/06/2006 11:12 1,254 tmp40.txt
19/06/2006 16:58 172,032 tmphash.txt
36 File(s) 888,230,147 bytes
3 Dir(s) 93,869,371,392 bytes free

C:\temp>

Rgds...

edit: it looks fine in the preview window but loses the tabs in posting.... dunno how to preserve the original pasted text??

Edited by - red777 on 6/19/2006 2:48:02 PM

Post Sun Aug 06, 2006 1:39 am

Um... beats me... I dont even see an entry for CRCTool output there Are you pointing it at the FL directory? A mod directory thats picking up all the mods stored under it?

*edit* coffee kicking in - ok that is just ridiculous and there is no way the files should be that size and it has never been reported before.

Can you tell me then what dir you are pointing CRCTool at? It is a simple unfussy tool (like its author ) so it wont worry about running through *every* directory below the one you point it at.

+++ out of cheese error - redo from start +++

Edited by - anton on 8/6/2006 2:41:57 AM

Return to Freelancer Editing Utilities Forum