Special Aircraft Service

Individual Mods and Packs for IL-2 1946 => Skins, Maps, Missions & Campaigns => MapWorx (Common) => Topic started by: Nowekat on October 05, 2018, 12:57:09 PM

Title: File list generators for the SFSExtract.exe
Post by: Nowekat on October 05, 2018, 12:57:09 PM
This are two other of my programs i wrote when i got interested in map maping. They generate mapfile lists for the SFSExtract.exe from the load.ini files. I used this to have a look at the existing map files and especially at the texture files. The existing filelist.txt seems to be a little bit oldish.

You may download them here (12 KB)

https://www.mediafire.com/file/fbbnopb7xn8gmmp/filelistGenerators.7z/filee

This works in two steps:

1. First you have to generate a file list with the load.inis themselfes. Throw your all.ini and the load.iniLister.exe together in one directory. Run the prog. Load the generated load.iniList.txt into the SEFExtract.exe using the "Tool" menue. Extract the relevant sfs files. The orignal map files are stored in the fb_maps..SFS. The mod maps in BAT seem to be stored in the BAT00 directory, sprayed over all directorys there. I don't know if there are also map files within the other BAT SFS files.

If you remember the name of a lost map, try to add this manually. The load.ini mostly is called load.ini ;-) There definetly are maps within the SFS files that are not listed in the all.ini.

Saving the extracted files creates a "maps" root folder and subfolders with the map names and the load.inis.

2. Then throw the load.iniExtractor.exe into that "maps" folder. Run the prog. This generates a  load.ini.MapFiles.txt. This also includes entrys for tree and bump files, also in most cases there are none. I don't know if there are other additional hidden files. There may be also useless entrys, but that doesn't matter. I think that nearly all relevant files are caught. Doubled entrys are deselected by the SFSExract.exe, so i did not eleminate them.

Run the SFSExtract again with the load.ini.MapFiles.txt and save the extracted files.

I found that the SFSExtract.exe doesn't like much more then 20 SFS files at once and must be closed and restarted after extracting them or somewhen stops working. Possibly there is a kind of memory bug.

All map files together need about 18 GB.

Possibly some files are not listed as the map modders sometimes use a strange notation and this are only little q&d programms. Nevertheless you may find them usefull especially for getting the textures.

Nowekat 

Title: Re: File list generators for the SFSExtract.exe
Post by: Hubberranz on October 06, 2018, 09:24:30 AM
Thank you. Interresting.
Not extracting maps lately, but I do from time to time.
Got most of the load.ini of old.

...not been updated for a while : https://www.mediafire.com/file/6hz6y7urudbdw8e/LesKlsDeLoad%252Cini_v2.7z/file (https://www.mediafire.com/file/6hz6y7urudbdw8e/LesKlsDeLoad%252Cini_v2.7z/file)

... however I understand U said "use the all.ini to generate a LIST of load.ini's", so this might not be relevant.
Quote
Run the SFSExtract again with the load.ini.MapFiles.txt and save the extracted files.
...or might be.

Note of a rare file type: map_r.tga
exemple of rare unique names: 42ed_m03.tga
Title: Re: File list generators for the SFSExtract.exe
Post by: Nowekat on October 07, 2018, 02:15:23 AM
Thes programs exploid the load.ini entrys to get the pathes and names of the used files, so in a first step you have to get the load.inis. They are named in the all.ini und must be extracted first. The map files addressed in the load.inis then can be extracted in a second run to get the maps texture and other files.

I had a look to your link: This are folders with many of the load.inis alone, but without the mapfiles. The SFSExtract can't read load.inis, afaik. If you extract all folders of the linked files and set the load.iniExtractor.exe into its maps directory, you just don't need the first step above but you will get only the map files of listed maps.

The tool extracts some map_r.tga files, but most of them i can't open. What are these files good for and what file format is that? Many maps don't have a map_r.

I updatet the download yesterday morning CET, so the load.iniExtractor.exe now is dated from the 6. of October. The first version of the 5. of October did not extract the map_c.tga table files. With the original program i had used partly hardcoded pathes and i had forgot to adjust the rule for the table files in the reworked version. I don't know if anyone downloaded the tool in the first version from the 5. of Oktober, but if you may download the version dated 6. of October to get also the table files. The link is the same.

Nowekat
Title: Re: File list generators for the SFSExtract.exe
Post by: Hubberranz on October 07, 2018, 03:50:59 PM
These load.ini were extracted from sfs files, using some existing filelist. 'Source sfs' are a bit shown in the file names collection.

Building mode:
Every time I edit, correct or add items on a map, the resulting new files ( changed ) can
be run as "a mod" providing they are loaded with a proper load.ini; thus I got most of them.


...as for the rare map.r :

I've seen one properly opened once: seems like a black and white of rivers probably affecting behavior or looks of said rivers.
Never could properly edit one. I only fake a few "r" a couple of times to correct some error preventing a map to work...

( seems to recall it was requested by the error log at the time ).
{ I used an "all water map" as a source for such an imitating ".tga"': a stop gap measure based on the hope that
only water could be affected, and hopefully not as much the land. }


ts'all

Thanks for the update.
Title: Re: File list generators for the SFSExtract.exe
Post by: Nowekat on October 08, 2018, 12:15:38 PM
Are you shure the map_r are doing anything? The small ones (257 kb), which may be the original ones from the game, are looking like dummy files. Their header just does not make any sense as a graphical file and thy contain only "1" and "2". Could be a black and white file, of course, but the same size for all maps?

Nowekat
Title: Re: File list generators for the SFSExtract.exe
Post by: Hubberranz on October 21, 2018, 08:07:19 AM
Don't know their use.. Unknown in purpose to me.
I use such dummy "all water" to make a few reluctant map work.
They have alpha channel, most. Size may be irrelevant (?) as pic covers all  data, but does show a complete
"full map picture" in grey scales. Send you PM for view all, solution. Also all the exemples I found.
May affect water level when conf water=4. ??