Easily answered question about 1.11 (patch) Objects
#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


Messages In This Thread

Forum Jump:


Users browsing this thread: 10 Guest(s)