Unified map tools ?
#16

Hm, this is what i wanna know. Is it a problem if this occurs in the file:

Quote:[buildings.House$CrimeaHouse1]
Title CrimeaVillage_House1
MeshLive 3do/Buildings/Crimea/House1/live.sim
MeshDead 3do/Buildings/Crimea/House1/dead.sim
Body RockMiddle
Panzer 0.12

and

Quote:[buildings.House$CrimeaHouse2]
Title CrimeaVillage_House1
MeshLive 3do/Buildings/Crimea/House1/live.sim
MeshDead 3do/Buildings/Crimea/House1/dead.sim
Body RockMiddle
Panzer 0.12

Two different sections with identical lines. Is this a problem? Hope not Smile
Reply
#17

... i think it's not a CTD or non saving error problem .... game will just load same object mesh for both objects .... but i can't tell for sure


Z
Reply
#18

My idea was based on the fact that you can't account for everything nor for the myriad of ways individuals think, so instead AAA would establish a protocol in the same way they established a file structure.

All future creators would use this protocol to create their files so they would integrate properly. (older objects would have to be reworked to match the new protocol if someone wanted to do so.)

I love FC and LAL_RONES work and recognize that until something is worked out their work will not get the wide distribution it deserves.

regardless thanks for even considering this.

Salute!
Reply
#19

Ok, i've finished the program and i'll just explain what it is doing for a combination of a line in the 'Z_AutoLoader.ini' file:

1) Line = \Mods\MyMod\Ini Files\blablaAdd.txt;*;\Static\static.ini;*;
The program will load inFile and then go through outFile. It will search for existing sections in outFile and add them only NEW lines. Sections that are not in outFile but are in inFile will be added at the bottom of the outFile.


2) Line = \Mods\MyMod\Ini Files\blablaAdd.txt;*;\Static\static.ini;[Middle];
Program load inFile and ignores section names IF there exists [Middle] section in out file. This file will receive only NEW content of the sections in inFile. But, if outFile has no [Middle]section, program goes through outFile and compares sections in that file and inFile. Matching sections in outFile receive NEW lines only, remaining sections are appended at the end of the outFile.


3) Line = \Mods\MyMod\Ini Files\blablaAdd.txt;[Start];\Static\static.ini;[Middle];
Content of [Start] section in inFile is added to [Middle] section in outFile. Only NEW lines are added. If the [Middle] section does not exists, program checks if outFile has [Start] section and adds NEW lines only to it. If it does not exist the [Start] section is appended at the end of the program.


4) Line = \Mods\MyMod\Ini Files\blablaAdd.txt;[Start];\Static\static.ini;*;
This line tells the program to copy [Start] section in inFile to the bottom of outFile but the program checks if the [Start] section is in outFile and does what was mention before. If there is no such section in outFile, new one is created at the end of it.

In short, this is it. As you can see i removes "copySectionName" parameter from the instruction line as it is not needed anymore. The program logic figures it by itself.

How does this sound? I'll uplad the program in the evening as from my current location i can not access rapidshare.

S!
Reply
#20

... looks good ( if i've got it correctly :wink: )

now, agreed default location for static.ini file is: MODS\STD\com\maddox\il2\objects\static.ini

so can you configure tool to search there for out file ( or installs default one if not present ) and update it there ?

many thanks for this

Z
Reply
#21

Hm, do you want to limit the app for that specific location? I mean, as it is now, static.ini can be just one of the files to modify. That is the third parameter in that control line. I mean, it's no problem fixing it to a fixed location, just say the word Smile

I think that the file (outFile) is created if it does not exist but granted, did not test it Smile Must go home :>

EDIT: jup, the file is created and filled. The visual presentation is not the nicest as when the file already exists, but the structure is fine Smile
Reply
#22

|ZUTI| Wrote:Hm, do you want to limit the app for that specific location? I mean, as it is now, static.ini can be just one of the files to modify. That is the third parameter in that control line. I mean, it's no problem fixing it to a fixed location, just say the word Smile

I think that the file (outFile) is created if it does not exist but granted, did not test it Smile Must go home :>


ok then ...leave it as it is .... will be useful for other ini's too ....


Z
Reply
#23

Hey Z, RichardHed.

This is the link for the app: http://rapidshare.com/files/156847807/I ... r.rar.html

Included is application and a bat file showing how it can be run with parameter. In that case there is no GUI but after it is done a log file is generated.

Next thig what i did is i expanded the line parsing from 'Z_AutoLoader.ini' file. Now the line can be:


Quote:inFile;fromSection;outFile;targetSection;
\Mods\MyMod\Ini Files\blablaAdd.txt;*;\Static\static.ini;*;
or
Quote:inFile;fromSection;targetSection;
\Mods\MyMod\Ini Files\blablaAdd.txt;*;*;

If the short way is used inFile and it's content is copied to the default location of static-ini by AAA standarsd (if it does not exist the file and the dir structure is created automatically).

So, this is it. Let me know when you find errors :>

S!
Reply
#24

Wilco this weekend

thank you
Reply
#25

fantastic

... will do, test it Big Grin

many thanks ... again

Z
Reply
#26

sorry - personal business came up this weekend and was unable to test
Reply
#27

Is it working that fine? Big Grin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)