Docs:Creating a multi-player map

From Mod Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 10:39, 5 June 2007 (edit)
Smile (Talk | contribs)

← Previous diff
Revision as of 10:56, 5 June 2007 (edit) (undo)
Smile (Talk | contribs)

Next diff →
Line 23: Line 23:
Maya cleanup will show all problematic sections, which need to be fixed up. Maya cleanup will show all problematic sections, which need to be fixed up.
-==Импортим в библиотеку LevelEditor'a.==+==Import to LevelEditor's library.==
<div style="text-align:center;"> <div style="text-align:center;">
<flash>file=Docs_basic_03_export_import.swf|width=800|height=619|quality=medium|menu=false</flash> <flash>file=Docs_basic_03_export_import.swf|width=800|height=619|quality=medium|menu=false</flash>
</div> </div>
-==Создаём сцену в LevelEditor.==+==Craeting scene in LevelEditor.==
-===Создание сцены===+===Creating a scene===
-Для ознакомления с процессом создания сцены просмотрите ролик.+To get familiar with the process of scene-building, check the video tutorial.
<div style="text-align:center;"> <div style="text-align:center;">
<flash>file=Docs_basic_04_simple_scene_setup.swf|width=800|height=619|quality=medium|menu=false</flash> <flash>file=Docs_basic_04_simple_scene_setup.swf|width=800|height=619|quality=medium|menu=false</flash>
</div> </div>
-===Добавление объектов из библиотеки LevelEditor'a===+===Adding objects from LevelEditor's library===
*Edit Mode -> Object ->Select *Edit Mode -> Object ->Select
-*Выбираем необходимый объект.+*Select the necessary object.
-[[image: Docs_leveleditor_select_object.jpg|Выбор объекта из библиотеки|center|frame|Выбор объекта из библиотеки]]+[[image: Docs_leveleditor_select_object.jpg|Selecting object from the library|center|frame|Selecting object from the library]]
-*Жмём Add и добавляем в сцену.+*Press "Add new object" to add it to the scene.
-==Настраиваем spawn элементы.==+ 
 +==Spawns Setup==
===General issues=== ===General issues===
-В игре существует 3 типа мультиплеерной игры:+There are 3 modes of the Multiplayer gameplay:
 +*Free for all
 +*Team play (only 2 teams)
 +*Artifact hunt
-*DeathMatch+Maximum number of players - 32.
-*TeamDeathMatch (только 2 команды)+===Free for all Setup===
-*ArtefactHunt+Add to the scene the needed amount of '''$rpoint''' <code>(Edit Mode -> Spawn Element -> $rpoint)</code> elements with the basic settings.
-Максимальное количество игроков - 32.+[[image:Docs_leveleditor_dethmatch.jpg|Basic settings for $rpoint|center|frame|Basic settings for $rpoint]]
-===DeathMatch Setup===+===Team play Setup===
-Добовляем в сцену необходимое количество '''$rpoint''' <code>(Edit Mode -> Spawn Element -> $rpoint)</code> элементов с базовой настройкой.+*Add to the scene the needed amount of $rpoint (Edit Mode -> Spawn Element -> $rpoint) elements with the basic settings.
 +*In case when it is necessary to create $rpoint, which belongs to one team only, change the parameter <code>Team: 1 or 2</code>, and <code>Game Type: TeamDeathMatch</code> (work only for version 1.003 and higher). In this case all $rpoint with basic settings will serve as spectator place.
 +[[image:Docs_leveleditor_teamdethmatch.jpg|Team play settings for $rpoint|center|frame|Team play settings for $rpoint]]
-[[image:Docs_leveleditor_dethmatch.jpg|Базовая настройка для $rpoint|center|frame|Базовая настройка для $rpoint]]+===Artifact hunt Setup===
-===TeamDeathMatch Setup===+====Creating bases====
-*Добовляем в сцену необходимое количество $rpoint (Edit Mode -> Spawn Element -> $rpoint) элементов с базовой настройкой.+*Create two box shapes (<code>Edit Mode -> Shape -> Box</code>) in the places when the opposing bases are going to be located.
-*В случае если необходимо сделать $rpoint, принадлежащим только одной команде, меняем параметр <code>Team: 1 или 2</code>, и <caode>Game Type: TeamDeathMatch</code> (работает только в версии 1.003). В этом случае все $rpoint с базовыми настройками будут служить как spectator place.+*Place $team_base (<code>Edit Mode -> Spawn Element -> $team_base</code>) inside each box shape.
-[[image:Docs_leveleditor_teamdethmatch.jpg|TeamDeathMatch настройка для $rpoint|center|frame|TeamDeathMatch настройка для $rpoint]]+[[image:Docs_leveleditor_teambase.jpg|Artifact hunt settings for $team_base|center|frame|Artifact hunt settings for $team_base]]
-===ArtefactHunt Setup===+*Select $team_base.
-====Создание баз====+*Press <code>Commands -> Attach Object</code>…
-*Создайте два box shapes (<code>Edit Mode -> Shape -> Box</code>), в тех местах где будут располагаться противоборствующие базы.+*Select the necessary Shape.
-*Расположите в каждом $team_base (<code>Edit Mode -> Spawn Element -> $team_base</code>) внутри box shapes.+====Adding spawn point of team members====
-[[image:Docs_leveleditor_teambase.jpg|ArtefactHunt настройка для $team_base|center|frame|ArtefactHunt настройка для $team_base]]+*Add to the scene the needed amount of $rpoint within the limits of box shape of the 1st team with the following settings:
-*Выбрать $team_base.+[[image:Docs_leveleditor_artefacthunt1.jpg|Artifact hunt settings for $rpoint (players)|center|frame|Artifact hunt settings for $rpoint (players)]]
-*Нажать <code>Commands -> Attach Object</code>…+*Same for the 2nd team, but with changed parameter Team to 2.
-*Выбрать необходимый Shape.+====Adding team particles (indicate the borders of team base)====
-====Добавление spawn point членов команды====+*Add to the scene the needed amount of $rpoint in the limits of box shape of the 1st team with the following settings:
-*Добавляем в сцену необходимое количество $rpoint в пределах box shape 1ой команды с такими настройками:+[[image:Docs_leveleditor_artefacthunt2.jpg|Artifact hunt settings for $rpoint (particles)|center|frame|Artifact hunt settings for $rpoint (particles)]]
-[[image:Docs_leveleditor_artefacthunt1.jpg|ArtefactHunt настройка для $rpoint (игроки)|center|frame|ArtefactHunt настройка для $rpoint (игроки)]]+*Same for the 2nd team, but with changed parameter Team to 2.
-*Аналогично для 2ой каманды, только параметр Team меняем на 2.+====Add artifacts spawn point====
-====Добавление командных частиц (символизирует границы базы команды)====+Add to the scene the needed amount of $rpoint with the following settings:
-*Добавляем в сцену необходимое количество $rpoint в пределах box shape 1ой команды с такими настройками:+[[image:Docs_leveleditor_artefacthunt3.jpg|Artifact hunt settings for $rpoint (artifacts)|center|frame|Artifact hunt settings for $rpoint (artifacts)]]
-[[image:Docs_leveleditor_artefacthunt2.jpg|ArtefactHunt настройка для $rpoint (частицы)|center|frame|ArtefactHunt настройка для $rpoint (частицы)]]+==Compile==
-*Аналогично для 2ой каманды, только параметр Team меняем на 2.+Windows -> start -> run type in the command line:
-====Добавление spawn point артефактов====+[[image:Docs_wind_run_comp_multiplayer.jpg|Launch level's compilation|center|frame|Launch level's compilation]]
-Добавляем в сцену необходимое количество $rpoint с такими настройками:+After successful compilation:
-[[image:Docs_leveleditor_artefacthunt3.jpg|ArtefactHunt настройка для $rpoint (артефакты)|center|frame|ArtefactHunt настройка для $rpoint (артефакты)]]+[[image:Docs_wind_xray_levelcompiler.jpg|Ending compilation|center|frame|Ending compilation]]
-==Компилируем==+
-Windows -> start -> run и в командной строке пишем:+
-[[image:Docs_wind_run_comp_multiplayer.jpg|Запуск уровня на компиляцию|center|frame|Запуск уровня на компиляцию]]+
-После корректной компиляции:+
-[[image:Docs_wind_xray_levelcompiler.jpg|Завершение компиляции|center|frame|Завершение компиляции]]+
-==Настраиваем конфигурационные файлы и добавляем уровень в игру.==+==Adjusting configuration file and adding the level to the game==
В корневом каталоге игры (S.T.A.L.K.E.R) создаём каталог '''gamedata''' (и все необходимые каталоги): В корневом каталоге игры (S.T.A.L.K.E.R) создаём каталог '''gamedata''' (и все необходимые каталоги):
*Файл <code>c:\Program Files\X-Ray SDK\level_editor\gamedata\config\mp\map_list.ltx</code> копируем в <code>S.T.A.L.K.E.R\gamedata\config\mp\</code> *Файл <code>c:\Program Files\X-Ray SDK\level_editor\gamedata\config\mp\map_list.ltx</code> копируем в <code>S.T.A.L.K.E.R\gamedata\config\mp\</code>

Revision as of 10:56, 5 June 2007

Contents

Creating scene in Maya.

  • The entire geometry must be created in real-world sizes (if the table in the real life is 1 meter high, it must be created 1 meter high in Maya)
  • Character's bounding box has three states: standing (1.8х0.7х0.7 in meters), sitting (1.5х0.7х0.7 in meters) and crouching (1.2х0.7х0.7 in meters).
  • The whole level must be not more than 150 thousand triangles.
outliner screenshot
outliner screenshot
  • The scene must consist of groups. The name of the group is composed according to the principle - mp_levelname_geometryname. For example, there are the following groups in our test scene: mp_atp_terrain, mp_atp_buildings. The group may have both one object, and several of them. The names of the objects inside the group must by no means coincide with the name of the group.

Meaning that within one group, the names must be unique..

mp_atp_terrain - game landscape
mp_atp_terrain - game landscape
mp_atp_buildings - game geometry
mp_atp_buildings - game geometry
  • Object's shape must contain the correct name. It's composed according to the principle: object - objectname, shape - objectnameShape.
Objects' names in Maya
Objects' names in Maya

Exporting geometry in Maya.

The Video Tutorial will guide you through the exporting process In case when xrayMaya_export doesn't export objects, check for errors and fix them.

The following are considered to be errors for xrayMaya_export:

  • Incorrect texture coordinates (stretched textures).
  • 0 (zero) square meters polygon.
  • Long thin triangles.
  • Not adhered points positioned in the same place etc.
Cleanup settings
Cleanup settings

Maya cleanup will show all problematic sections, which need to be fixed up.

Import to LevelEditor's library.

Craeting scene in LevelEditor.

Creating a scene

To get familiar with the process of scene-building, check the video tutorial.

Adding objects from LevelEditor's library

  • Edit Mode -> Object ->Select
  • Select the necessary object.
Selecting object from the library
Selecting object from the library
  • Press "Add new object" to add it to the scene.

Spawns Setup

General issues

There are 3 modes of the Multiplayer gameplay:

  • Free for all
  • Team play (only 2 teams)
  • Artifact hunt

Maximum number of players - 32.

Free for all Setup

Add to the scene the needed amount of $rpoint (Edit Mode -> Spawn Element -> $rpoint) elements with the basic settings.

Basic settings for $rpoint
Basic settings for $rpoint

Team play Setup

  • Add to the scene the needed amount of $rpoint (Edit Mode -> Spawn Element -> $rpoint) elements with the basic settings.
  • In case when it is necessary to create $rpoint, which belongs to one team only, change the parameter Team: 1 or 2, and Game Type: TeamDeathMatch (work only for version 1.003 and higher). In this case all $rpoint with basic settings will serve as spectator place.
Team play settings for $rpoint
Team play settings for $rpoint

Artifact hunt Setup

Creating bases

  • Create two box shapes (Edit Mode -> Shape -> Box) in the places when the opposing bases are going to be located.
  • Place $team_base (Edit Mode -> Spawn Element -> $team_base) inside each box shape.
Artifact hunt settings for $team_base
Artifact hunt settings for $team_base
  • Select $team_base.
  • Press Commands -> Attach Object
  • Select the necessary Shape.

Adding spawn point of team members

  • Add to the scene the needed amount of $rpoint within the limits of box shape of the 1st team with the following settings:
Artifact hunt settings for $rpoint (players)
Artifact hunt settings for $rpoint (players)
  • Same for the 2nd team, but with changed parameter Team to 2.

Adding team particles (indicate the borders of team base)

  • Add to the scene the needed amount of $rpoint in the limits of box shape of the 1st team with the following settings:
Artifact hunt settings for $rpoint (particles)
Artifact hunt settings for $rpoint (particles)
  • Same for the 2nd team, but with changed parameter Team to 2.

Add artifacts spawn point

Add to the scene the needed amount of $rpoint with the following settings:

Artifact hunt settings for $rpoint (artifacts)
Artifact hunt settings for $rpoint (artifacts)

Compile

Windows -> start -> run type in the command line:

Launch level's compilation
Launch level's compilation

After successful compilation:

Ending compilation
Ending compilation

Adjusting configuration file and adding the level to the game

В корневом каталоге игры (S.T.A.L.K.E.R) создаём каталог gamedata (и все необходимые каталоги):

  • Файл c:\Program Files\X-Ray SDK\level_editor\gamedata\config\mp\map_list.ltx копируем в S.T.A.L.K.E.R\gamedata\config\mp\
  • Содержимое папки c:\Program Files\X-Ray SDK\level_editor\gamedata\levels\mp_atp_test\ копируем в S.T.A.L.K.E.R\gamedata\levels\mp_atp_test\
  • Текстуру c:\Program Files\X-Ray SDK\level_editor\gamedata\textures\user\user_floor_dirty_gr.dds копируем в папку S.T.A.L.K.E.R\gamedata\textures\user\ (в случае, если было добавлено больше текстур, то копируем все их соответственно)
  • Файл c:\Program Files\X-Ray SDK\level_editor\gamedata\textures\textures.ltx копируем в папку S.T.A.L.K.E.R\gamedata\textures\
  • В файле S.T.A.L.K.E.R\gamedata\config\mp\map_list.ltx в каждой из секции [deathmatch], [teamdeathmatch], [artefacthunt] дописать mp_atp_test
Добавляем уровень в описание уровней
Добавляем уровень в описание уровней
Personal tools
In other languages