XML:ONLV: Difference between revisions

2,436 bytes added ,  16 February 2013
m
notes on the master xml file, to be continued ...
(starting a new section for onisplit 82, when finished the old one will be removed)
m (notes on the master xml file, to be continued ...)
Line 51: Line 51:
Use placeholder files to bypass the problem.
Use placeholder files to bypass the problem.


[...]


===the master xml file===
The '''master xml file name''' also determine the '''bsl folder name''' and the '''AKEV and ONLV file name''' in the output folder.
;shared folder
The master xml file can link to other xml files, most of them are object collections. Some resources used by those xml files can be found in a "shared" folder. OniSplit integrates 3D content (OFGA and M3GM) into the AKEV and copies the textures into the output folder. Unused resources in the shared folder will be ignored.
That way the final level archive / AE package contains only necessary files which saves the end-user space.
In the demo are various subfolders in shared folder: consoles, doors, furniture, triggers and turrets.
Following file types comes there without their file prefixes: CONS, DOOR, TRIG, OFGA. (Test todo: import files that have those prefixes.)
====texture section====
Textures become imported as they are; in the texture section you declare exceptions.
* There you can give a texture a special format, for example "bgra4444", to make it transparent.
* If the texture comes with gunkflag "NoCollision" then all objects with that texture will have no collision. Characters would fall through it.
Both makes sense, let's say, for a water-like substance. (The biolab use this for an area with green acid.)
===furniture===
The AKEV core geometry is more or less unique while this furniture file adds standard objects to it.
Between the <Class> </Class> tags is always a link to an OFGA file.
<?xml version="1.0" encoding="utf-8"?>
<Oni>
    <Objects>
        <Furniture>
            <Header>
                <Flags>Gunk</Flags>
                <Position>-62.692 -29 108.35</Position>
                <Rotation>181.522 356.021 178.114</Rotation>
            </Header>
            <OSD>
                <Class>furniture/V_tctf_bigvan.oni</Class>
            </OSD>
        </Furniture>
    </Objects>
</Oni>
===physics===
This file is for objects with "physics". Unlike AKEV core geometry or furniture, those objects can be animated and made hidden via bsl commands and object's script id.
<?xml version="1.0" encoding="utf-8"?>
<Oni>
    <Physics>
        <Object Name="fan1">
            <ScriptId>42</ScriptId>
            <Flags>FaceCollision</Flags>
            <Position>20 10 0</Position>
            <Rotation>0 0 0</Rotation>
            <Import Path="objects/fan2.dae" />
        </Object>
    </Physics>
</Oni>




8,452

edits