= How to create Orxonox Levels = To create a level in Orxonox is really easy. One does not have to program anything or compile the code again, because our levels are created with XML-Files. There the objects in the level can be defined. On this page we explain what one can do with the XML-Files and how to create a new level for Orxonox with them. The objects we can add are rooms (BSP-files), spacecrafts (OBJ-files) and moving objects (MD2-files). How to that exactly is best explained with the examples below. If you're interested in creating rooms and BSP-levels check out this page: [wiki:MappingForOrxonox Maping for Orxonox with GTK-Radiant] == Adding a menu entry == Before you can play a level in Orxonox you have to add the level as a menu entry in the game. To do that you have to alter the DefaultCampaign.oxc file in the data/levels directory (or data/worlds in older versions).[[br]] Below there is a example for that file: {{{ #!xml default 0 The one and only default debug campaign 0 GameMenu levels/Menu.oxw 1 1 2 Demo Mountain Lake levels/sp_demo_mountain_lake.oxw 1 2 0 levels/mp_level_arena.oxw ... }}} Now to add your level you have to add an !SinglePlayerWorld (or !MultiPlayerWorld) entry to the !WorldList. Be sure to add an identifier a name and the most important: the path of your OXW-file. The number of the identifier and the menu-entry have to be incremented. Close every you open. == XML level file (OXW) syntax == Level files have the extension OXW (for '''O'''rxono'''X''' '''W'''orld). The order of the things you add does not matter. === Example === {{{ #!xml Meteroid pictures/menu/ss_meteroid_512x512.png pictures/load_screens/default.jpg 16 0,0,1.0,1 .65,.87,.3,.05 pictures/load_screens/default_bar.png Player 522,-389,419 Player2 models/ships/reap_#.obj 312.19, 172.36, 60.74 Player10 models/ships/reap_#.obj 315.53, 185.09, 14.04 Player6 models/ships/reap_#.obj 306.53, 190.09, 23.50 Player14 models/ships/reap_#.obj 330.19, 172.36, 25.74 ... 413.5,183,36.3 media/hero.mov 15 90 75,38.5 Player4 models/ships/fighter.obj 313,181,0 ... Player5 324,174,2 Player9 309,188,42 ... Sky pictures/sky/simple_space 10000 comet 300,50,-400 models/comet.obj, 2.5 comet2 0,0,400 models/comet.obj, 1 ... Meteroit 300,50,0 models/environments/meteorit.obj, 2.5 sound/music/allgorythm-once_upon_a_time_in_a_small_club.ogg 1,1,1 300,800,0 1,1,1 100,200,50 1,1,1 lense flare pictures/lense_flare/sun.png pictures/lense_flare/lens2.png pictures/lense_flare/lens1.png pictures/lense_flare/lens3.png pictures/lense_flare/lens4.png pictures/lense_flare/lens1.png pictures/lense_flare/lens3.png }}} === World Entities === ... ==== Player ==== ... ==== Skybox ==== ... ==== Weather effects ==== ...