Home
Screenshots
Downloads
Forums
Docs
Servers
Stats
IRC Chat
Mods
SpecialSpecial  SearchSearch  LoginLogin
Main Page -> Syntax For Landscapes

Syntax For Landscape Files

Contents

Description

Scorched3D allows each mod to define a set of landscapes (or to modify the existing landscapes).

Rather than being stored in a single file like the accessories, Scorched 3D's landscapes are spread out over a series of different files. Each file contains the different aspects that come together to define the overall result that you see in the game.

Landscapes are defined in two parts:-

  1. The physical structure of the landscape. This includes details like how large the landscape and how hilly it is. These are defined in landscape definition files.
  2. The visuals/skin of the landscape. This includes details like what color the landscape is and how many trees it has. These are defined in landscape texture files.

Each of these aspects (visual and physical) have a set of different properties that can be defined.

Splitting these two concepts into separate files allows each different visual to be applied to all physical landscapes increasing the variety and combinations of landscapes.

Structure

All landscapes are defined in the landscapes.xml file. This is the main file for all the landscapes. It contains some basic info about the landscape and determines which Definition Files and which Texture Files can be used by this landscape.

The Definition Files and Texture Files then in turn also reference/include other Include Files to build up a definition of the landscape. These include files can be used by any number of texture/definition files and help to keep the landscapes definitions modular.

landscapes.xml

       |
       +--> Definition Files
       |            |
       |            +--> Include Files
       |
       +--> Texture Files
                    |
                    +--> Include Files


Reference

  • landscapes.xml - This is the main landscapes file which brings the rest together. It contains some basic info about the landscape and determines which definition files and which texture files can be used by this landscape.
  • Definition Files - Used to determine the landscapes size, shape and also the tank placements. Can also reference placements, sounds, boids, ships or events as well.
  • Texture Files - Defines the texturing of the landscape and surrounding area and precipitation. Can also reference boids, events, placements, ships and ambient sounds.
  • Include Files - New to v41, include files can be referenced in a texture or definition file and can define any of the other concepts including object placement and movement, sound, per level options, events, etc.

Locations

The landscapes.xml file is contained in the game's (or your mod's) /data/ directory. The rest of the landscape files should be stored in the /data/landscapes/ directory.

Closing Remarks

In addition to this documentation, a good way to learn to manipulate the landscapes is to have a look at what has already been done. In addition to looking at the standard files that come with the game, there are plenty of mods available to look through as well. Looking at as much of the xml as you can is a great way to get acquainted with the workings of Scorched 3D.



Edit this pagePage historyWhat links hereRelated changes
Kanye West MP3 Download | Free Ringtones | Loans | Bikini Babes | Loan
Safe
OpenGL Supporter Available for Linux Available for Windows Available for Mac Available for Solaris Available for Gentoo Available for Debian Available for Slackware Available for FreeBSD
Donate to Scorched3D Visit Scorched3D at SourceForge.net Get it from CNET Download.com! 5 Stars
© Copyright 2008 Gavin Camp. All Rights reserved.