Easily answered question about 1.11 (patch) Objects
#16

I'm working on a program that will display (in HTML) a jpg file with the same name as an object.
The format is basically

The problem I'm having is in parsing the static.ini file. In IL2 FMB, I can select from 889 objects.
When I parse out the items with 'Title' in their entry, I get 999 objects.
When I parse out building entries, I get 1147 entries.

What do I have to do to get a list of objects only associated in the object selection of IL2 FMB?

If I get this program working, I'll post it.
Reply
#17

Hi Burns,
you're going to have a bugger of a job parsing the static .ini file based on the word Title me thinks eg;

Code:
[buildings.House$Tent_HQ_US]
Title           Tent_HQ_US
MeshLive        3do/Buildings/Tents/Tent_HQ_US/live.sim
MeshDead        3do/Buildings/Tents/Tent_HQ_US/dead.sim
AlignToLand     1
Body            WoodSmall               // FIXME: need special type 'Cloth'
Panzer          0.00021


//===========================================================================
[***]
Title HouseWinter
//===========================================================================


[buildings.House$RussiaCityHouse1W]
equals buildings.House$RussiaCityHouse1
MeshLive        3do/Buildings/Russia/CenterHouse1_w/live.sim
MeshDead        3do/Buildings/Russia/CenterHouse1_w/dead.sim

[buildings.House$RussiaCityHouse2W]
equals buildings.House$RussiaCityHouse2
MeshLive        3do/Buildings/Russia/CenterHouse2_w/live.sim
MeshDead        3do/Buildings/Russia/CenterHouse2_w/dead.sim

You'd want the
Code:
Title           Tent_HQ_US

but not the
Code:
//===========================================================================
[***]
Title HouseWinter
//===========================================================================

and then to complicate things a little you have the winter buildings like this;
Code:
[buildings.House$RussiaCityHouse1W]
equals buildings.House$RussiaCityHouse1
MeshLive        3do/Buildings/Russia/CenterHouse1_w/live.sim
MeshDead        3do/Buildings/Russia/CenterHouse1_w/dead.sim

It may be better to parse for buildings. - trouble would then be linking to the description, suppose you could try grabbing the bit after the $ as the description.

Sorry to be of little help Cry

Cheers

Quelty
Reply
#18

I parse for "[buildings.", being sure it starts the line.
Then I read subsequent lines looking for lines that start with "Title" and occur prior to another "[buildings.".

Another way of saying it is: I make sure to count every "[buildings." that has a "Title" after it.


When I count those, I get 999 objects. IL2 FMB reports 889.

If I know what objects are 'used' as numbered objects, I think I can parse them out.

If I parse only on "[buildings.', I get 1147 instead of FMB's 889.

Found the problem. I needed to parse for "[buildings.House"....
Reply
#19

I think I have a working version. It's written in C and is compiled for x86 machines.
The zip is almost 6Mb. I don't know where or how to post it.
Reply
#20

A couple of places to upload to that come to mind are Filefront or MediaFire - when you have uploaded your files you copy the link provided and post in these forums - easy peasy :lol: - lookin forward to this app

Cheers

Quelty

MediaFire

FileFront
Reply
#21

Done. New topic created and link included. Please let me know what you think.
Reply


Forum Jump:


Users browsing this thread: 12 Guest(s)