Wrapper MOD possible? - RichardHed - 17.09.2008
I have an idea I would like to ask about
I love the new objects, I love the new ships, but for the life of me I can't figure out how to merge multiple static.ini, etc in a form that would be universally acceptable to AAA for inclusion into the Unified Installer, so I can't make missions using the new objects until this is resolved.
So here my Idea, Have the wrapper merge static.ini similar to the way it picks mods over originals then assign initials to object developers just like you did maps.
If we had Lal_RONE's objects he would include a LR1_static.ini. and Cannon's objects would include a CAN_Static.ini, and FC's ShipPack2 would include an FC__Static.ini, then when wrapper ran it would append the multiple ini files into the single Static.ini file IL2 recognizes.
Do the same for all the ini and properties files. If AAA had an agreed upon convention it wouldn't even NEED to parse the files so it would be faster.
what do you think oh mighty AAA?
- fly_zo - 17.09.2008
... so wrapper should read all lines ( not just a file name as it does now ), compare and fix double entries from all ini files user may have , and then merge them with preserved structure ( cos some ini files mustn't get alphabetically rearranged ) ? Is that what you're saying ?
Z
- RAF_Magpie - 17.09.2008
That... or two wrappers... One wrapper dedicated to that ONE type of file...
- fly_zo - 17.09.2008
.... if someone come out with that routine ( manipulating with all types of ini files ) wouldn't it be better if that gets included in installation procedure of those mods ? It would decrease loading time ( wrapper must go through all of that every time game gets loaded) and it would be easier to detect possible errors ( certain mod )
Z
- RichardHed - 17.09.2008
No sir - you looking at as if there were two ini files with the same information
I would say that the objects ini files contain ONLY the CHANGES made
so making up an example
[buildings.House$CrimeaBarnStucco]
blah
blah
[buildings.House$CrimeaBarnWood]
blah
blah
[buildings.House$CrimeaChurch]
blah
blah
is OM standard
then Cannon wouldn't include the above
ONLY his NEW objects
//=======================================================
[***]
Title Brit_Iron
//=======================================================
[buildings.House$Brit_IronBSA]
blah
blah
[buildings.House$Brit_IronTriumph]
blah
blah
[buildings.House$Brit_IronM21]
blah
blah
so there would be no duplicate names only new names, so no sorting needed and it would append on to the end on OM static.ini the unique new objects from CAN_static.ini instead of object/ship makers providing WORKING ini files the would provide only the NEW OBJECT ini names in thier ini
- RichardHed - 17.09.2008
the problem as you've explained it to me (simplified i assume) is developing a program that can parse, identify multiple lines under one heading and remove duplicates without removing a duplicate under a different heading.
I point you toward FC's ShipPack2 - I got this idea from his "AddTo Ini" where he has ONLY the changes and NO duplicates, so you do not need to PARSE for duplicates.
Granted there would need to be a protocol from AAA and a vetting process so that existing object headings are not repeated, but don't you sort of do that already?
- fly_zo - 18.09.2008
... whatever you say , good luck
Z
- RichardHed - 18.09.2008
fly_zo Wrote:... whatever you say , good luck
Z
whatever=talk to the hand=you're not important enough to listen to=don't bother me little man=rude
so much for trying to help come up with a solution :roll:
over, out, adios muchacho's
:evil:
- Triad773 - 18.09.2008
Well here's a little program I heard about here somewhere
It's allowed me to combine a few static.ini files into one. But make backups first of course.
Good luck
Triad
- Avatar - 18.09.2008
Triad773 Wrote:Well here's a little program I heard about here somewhere
http://www.softplatz.com/Soft/Developme ... mpare.html
It's allowed me to combine a few static.ini files into one. But make backups first of course.
Went to the above link but no good. Keep getting a "page not found" error message.
- Triad773 - 18.09.2008
Hmmm... that's strange. Still works for me. Not sure what it isn't working.
Maybe try here- same product and it's free
Correction - Triad773 - 18.09.2008
Go here instead
http://winmerge.org/
I mis-remembered the program title. Sorry about that :oops:
Supports drag and drop.
Sure is handy tho.
- RichardHed - 18.09.2008
Thank you Triad I too use WinMerge
What i was asking for was something AAA sponsored. I can use ShipPacks and Hangers and everything but I can't dare you any online because if i make a mission using a new object then others online get load errors if the don't have the same objects installed.
i personally have added the objects without to much problem (OK maybe a little problem) but we need something AAA Unified sponsored so EVERYONE has the same set.
- RAF_Magpie - 18.09.2008
Well I remember someone tried to do a "Unified .ini" (a U.I :lol
but I can't remember how that went...
If someone was to make a UNIFIED .INI I'm sure it would become AAA sanctioned and sponsored if done right...
- Triad773 - 18.09.2008
Oh okay, I see.
Yeah that'd be nice. There's so many mods, so much of it very cool 8)
I'm sure in time something like this will get sorted out. They've come such a long way from one used to have to install mods of any kind. Just think it seems like this has been going a little less than a year, and even regular folks can install most mods without too much pain. It's only going to get better
Cheers
Triad