Vous êtes sur la page 1sur 2

<?xml version="1.0" encoding="UTF-8" ?> <Cars> <!-How to add a new car. I.

Adding a new car to menu Each new car should be added as new <Car></Car> section. This section sh ould be ADDED INSIDE <Cars></Cars> tag, just like the commentary which you are currently reading. An example of such a section is situated below in paragraph III. Following is a list of parameters, which should be specified for a new c ar section: 'Name' attribute - this attribute is your car identificator. All gfx and settings for cars are situated in folders named as their respective car ID's. For example, a 'Car28' car h ave all its data placed in following folders: data\gui\Common\layouts\cars\Car28\ data\gui\3di_home\imagesets\cars\Car28\ data\gamedata\cars\Car28\ data\physics\cars\Car28\ data\physics\Engine\Car28\ data\physics\Transmission\Car28\ export\anims\cars\Car28\ export\gfxlib\cars\Car28\ export\meshes\cars\Car28\ export\texturesdds\cars\Car28\ All car identifiers SHOULD BE UNIQUE. Try to create an unique an d distinctive IDs so you wouldn't collide with other user cars and future developer cars. 'ABS' attribute - this attribute defines if this car could be dr iven with an antilock brake system. Values: 'true' - ABS is enabled, 'false' - ABS is disabled. 'AT' attribute - this attribute defines if this car could be dri ven with an automatic gearbox. Values: 'true' - automatic gearbox is enabled, 'false' - automat ic gearbox is disabled. NOTE that all cars should have a default manual gearbox. 'DisplayName' element - this element contains a name for the car , which is displayed in the menu. 'Description' element - this element contains a description for the car, such as technical specifications, car creator or whatever else. All listed parameters ARE MANDATORY. AN IMPORTANT NOTE: This file should be saved with UTF-8 encoding.

II. Defining an image for a new car. Each new car have a default image in the menu. In order to define an own image for a new car, one should add all necessary image files to the following path: data\gui\3di_home\imagesets\cars\<Car ID>\ An examples of such files could be found at data\gui\3di_home\imagesets\cars\Car01\ III. Example of new car description. <Car Name="Shelly5000" ABS="false" AT="false" > <DisplayName>Shelly Warsteed GT 5000</DisplayName> <Description> Shelly Warsteed GT 5000 Rear wheel drive Manual transmission, 6 gears Engine power of 5000 hp Engine displacement 3000 cm3 Maximum speed 1000 km/h Have your helmet on so it could be easier to pick up your head. </Description> </Car> --> <!-- ADD NEW CARS BELOW THIS LINE -->

<Car Name="CAD_Escalade_ESV" ABS="true" AT="true" > <DisplayName>Cadillac Escalade ESV</DisplayName> <Description> Cadillac Escalade ESV : / ( Q) - : 5( ) , ..: 409 , ..: 6199 . , /: 250 </Description> </Car> </Cars>

Vous aimerez peut-être aussi