8,452
edits
Paradox-01 (talk | contribs) (reverted a bit the notes on position, rotation and scale + table for master xml file) |
Paradox-01 (talk | contribs) m (placed a few links) |
||
Line 45: | Line 45: | ||
==Level import with onisplit [http://mods.oni2.net/node/38 0.9.82.0]== | ==Level import with onisplit [http://mods.oni2.net/node/38 0.9.82.0]== | ||
'''General information | '''General information''' | ||
* the import doesn't work with empty skybox tag; <Sky>clear</Sky> helps here (or maybe onisplit just wants a name and doesn't care if the resource really exists?) | * the import doesn't work with empty skybox tag; <Sky>clear</Sky> helps here (or maybe onisplit just wants a name and doesn't care if the resource really exists?) | ||
* triangle limit: ca. 520.000 (500.000 to be on save side) | * triangle limit: ca. 520.000 (500.000 to be on save side) | ||
Line 106: | Line 106: | ||
| | | | ||
|- | |- | ||
| <Level SharedPath="..."> | |valign="top"| <Level SharedPath="..."> | ||
| link | |valign="top"| link | ||
| | | The master xml file can link to other xml files, most of them are [[OBD:BINA/OBJC#OBJC_types|BINACJBO]] files. The file type gets declared inside the file, so the file name itself doesn't have to contain the type. Ergo, "BINACJBOCharacter.xml" can be given a simpler name like "Character.xml". | ||
Some resources used by those xml files can be found in a "shared" folder. OniSplit copies textures and "physics" objects into the output folder; furniture objects will be integrate into the AKEV. 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. | |||
|- | |- | ||
| <Environment> | | <Environment> | ||
Line 116: | Line 121: | ||
| <Model> | | <Model> | ||
| - | | - | ||
| | | See [[#<Model>|HERE]] for detailed information. | ||
|- | |- | ||
| <Import Path="..."/> | | <Import Path="..."/> | ||
Line 126: | Line 131: | ||
| informative ? | | informative ? | ||
|- | |- | ||
| <ScriptId> | |valign="top"| <ScriptId> | ||
| integer | |valign="top"| integer | ||
| Tested with BSL command ... | | Tested with BSL command ... | ||
: env_show Id 1 (use 0 to hide) | : [[#<Model>|env_show Id 1]] (use 0 to hide) | ||
: env_broken Id [Id] (if also second Id is used then objects in that range get counted e.g. 3001, 3018 = 18) | : [[#Breakable objects with BSL recognition|env_broken Id [Id]]] (if also second Id is used then objects in that range get counted e.g. 3001, 3018 = 18) | ||
: env_texswap Id texture ( | : [[#Texture exchange|env_texswap Id texture]] (no file prefix/suffix allowed) | ||
|- | |- | ||
|valign="top"| <GunkFlags> | |valign="top"| <GunkFlags> | ||
Line 146: | Line 151: | ||
:Invisible | :Invisible | ||
|- | |- | ||
| <Rooms> | |valign="top"| <Rooms> | ||
| - | |valign="top"| - | ||
| | | For detailed information see [[#<Rooms>|HERE]]. | ||
For Google Sketchup BNV tutorial see [http://oni.bungie.org/community/forum/viewtopic.php?pid=36760#p36760 HERE]. | |||
|- | |- | ||
| <Import Path="..."/> | | <Import Path="..."/> | ||
Line 160: | Line 167: | ||
| <Texture Name="..."> | | <Texture Name="..."> | ||
| string | | string | ||
| | | TXMP file name to generate. | ||
|- | |- | ||
| <Format> | |valign="top"| <Format> | ||
| flag | |valign="top"| flag | ||
| | | | ||
:BGR | :BGR | ||
Line 188: | Line 195: | ||
| File path to *.tga/jpg/dds file. | | File path to *.tga/jpg/dds file. | ||
|- | |- | ||
| <Sky> | |valign="top"| <Sky> | ||
| string | |valign="top"| string | ||
| ONSKfile.oni (without file pre- and suffix) | | ONSKfile.oni (without file pre- and suffix) | ||
For detailed information see [[XML:ONSK|HERE]]. | |||
|- | |- | ||
| <Objects> | | <Objects> | ||
Line 199: | Line 208: | ||
|valign="top"| link | |valign="top"| link | ||
| File path. Supported files: | | File path. Supported files: | ||
: Character.xml (has to contain player character) | : [[#Character.xml|Character.xml]] (has to contain player character) | ||
: Console.xml | : Console.xml | ||
: Door.xml | : Door.xml | ||
: Flag.xml | : Flag.xml | ||
: Furniture.xml | : [[#Furniture.xml|Furniture.xml]] | ||
: Neutral.xml | : Neutral.xml | ||
: Particle.xml | : Particle.xml | ||
: PatrolPath.xml | : PatrolPath.xml | ||
: Physics.xml | : [[#Physics.xml|Physics.xml]] | ||
: PowerUp.xml | : PowerUp.xml | ||
: Sound.xml | : Sound.xml | ||
Line 284: | Line 293: | ||
</Level> | </Level> | ||
</Oni> | </Oni> | ||
edits