| 1 |
--------------------------------------------------------------------- |
| 2 |
-- This file is part of Freedroid |
| 3 |
-- |
| 4 |
-- Freedroid is free software; you can redistribute it and/or modify |
| 5 |
-- it under the terms of the GNU General Public License as published by |
| 6 |
-- the Free Software Foundation; either version 2 of the License, or |
| 7 |
-- (at your option) any later version. |
| 8 |
-- |
| 9 |
-- Freedroid is distributed in the hope that it will be useful, |
| 10 |
-- but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
-- GNU General Public License for more details. |
| 13 |
-- |
| 14 |
-- You should have received a copy of the GNU General Public License |
| 15 |
-- along with Freedroid; see the file COPYING. If not, write to the |
| 16 |
-- Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 17 |
-- MA 02111-1307 USA |
| 18 |
---------------------------------------------------------------------- |
| 19 |
|
| 20 |
title_screen{ |
| 21 |
song = "Bleostrada.ogg", |
| 22 |
text = [[ |
| 23 |
EL EDITOR DE NIVELES DE FREEDROIDRPG |
| 24 |
|
| 25 |
=== INTRODUCCIÓN === |
| 26 |
|
| 27 |
FreedroidRPG viene con un editor de niveles integrado. Este editor de niveles te permite controlar todo aspecto de un mapa normal de FreedroidRPG y guardar mapas. |
| 28 |
|
| 29 |
Puedes acceder al mismo desde el menú principal (click en "Editor de Niveles") o ejecutando 'freedroidRPG -e'. |
| 30 |
|
| 31 |
--- Herramientas --- |
| 32 |
Para conmutar descripciones de la interfaz mientras el puntero señala, haga click al botón de burbuja de conversación localizado cerca del borde derecho de la ventana (fila inferior de botones). |
| 33 |
|
| 34 |
--- Sumarioxdfgdzfs --- |
| 35 |
Sumarios sobre obstáculos y objetos aparecerán si les haces click derecho en el selector de objetos superior. |
| 36 |
|
| 37 |
--- Navegación --- |
| 38 |
Para cambiar el nivel actual, haga click en el número de un nivel cercano en el minimapa de la esquina inferior derecha, o seleccione el nivel deseado desde el menú del editor. |
| 39 |
|
| 40 |
--- Edición de mapas --- |
| 41 |
Hay cuatro modos de edición: edición de Obstáculos, edición de Suelo, edición de Objetos, y edición de Puntos de camino. |
| 42 |
|
| 43 |
El botón seleccionada abajo a la derecha indica los objetos que puedes seleccionar o colocar. |
| 44 |
Cuando un botón está seleccionado, y estás en un modo de colocación, el objeto que colocarás es indicado por el selector de la parte superior de la pantalla. La selección en el mismo se halla dividida por las pestañas inmediatamente bajo el mismo. |
| 45 |
|
| 46 |
Puedes seleccionar el tipo de obstáculo que quieras que sea colocado en el mapa en el selector de objeto superior. Simplemente haz click en él para seleccionarlo. Los obstáculos se dividen en grupos para proveer mejor visión general. |
| 47 |
|
| 48 |
Presionando espacio, entrarás en el modo de selección siendo indicado por el cursor cambiado. Sólo puedes seleccionar grupos de objetos representados por el modo de objeto activado. |
| 49 |
Nota importante: Sólo serás capaz de seleccionar cosas que se incluyen en el modo seleccionado, si estás en modo obstáculo, no podrás seleccionar objetos o baldosas de suelo. |
| 50 |
|
| 51 |
|
| 52 |
Modo de edición de Obstáculo: |
| 53 |
|
| 54 |
Para seleccionar este modo, haga click en el botón que dice 'Obstáculo' del selector de categoría en el área inferior izquierda. |
| 55 |
Teniendo seleccionado un obstáculo, simplemente haga click en algún lugar del mapa para colocarlo en la posición del cursor. |
| 56 |
Puesto que hacer click es un poco impreciso, también puede usar su teclado numérico para posicionar obstáculos. |
| 57 |
Haga click al más a la izquierda de los cinco botones sobre el selector de categoría para tener una cuadrícula con números. Use el click derecho para activarla y click derecho para cambiar el modo de la misma. |
| 58 |
Estos números se refieren a los números de su teclado numérico si dispone de uno. Presionar '1' colocará el obstáculo seleccionado en el selector en la posición del dígito '1' en la cuadrícula púrpura. |
| 59 |
Puesto que colocar una línea de muros es bastante ineficiente, puedes simplemente mantener el click izquierdo y una línea de muros es colocada mientras mueves el puntero si tienes un objeto muro seleccionado. Esto funciona con los muros más comunes en FreedroidRPG. |
| 60 |
Mientras sujete el botón izquierdo colocando muros, un click derecho eliminará todos los muros que dibujó tras comenzar a presionar el botón izquierdo. |
| 61 |
Hay algunos objetos especiales. Los muros de vidrio y los muros de ladrillos agrietados, pero también barriles y cajas pueden ser destruidos con unos pocos golpes, mientras que los dos últimos podrían expulsar objetos. Los cofres pueden ser abiertos y también pueden contener objetos. |
| 62 |
El símbolo con huellas tachadas no es realmente un objeto sino un área de bloqueo invisible ('rectángulo de colisión'). Los rectángulos de colisión son el núcleo de todo obstáculo puesto que previenen simplemente caminar a través de ellos como puede hacerse con las baldosas de suelo o los puntos de camino. |
| 63 |
|
| 64 |
Selección de obstáculos |
| 65 |
|
| 66 |
Manteniendo el botón izquierdo del mouse puede seleccionar un rectángulo de obstáculos. Tras soltar el botón, los obstáculos seleccionados se tornarán de un color distinto indicando que se hallan seleccionando. Para seleccionar obstáculos fuera del rectángulo, mantenga 'Ctrl' y haga click en el obstáculo o dibuje otro rectángulo. |
| 67 |
Usted podría haber automáticamente seleccionado varios obstáculos con un click. Puede cambiar entre ellos haciendo click en el icono con la silla y la estantería, o presionando 'n'. |
| 68 |
El icono con el cubo de basura puede borrar el obstáculo seleccionado. |
| 69 |
También puede cortar (Ctrl+x, purede ser usado para borrar mediante no pegarlos ;) ), copiar (Ctrl+c) y pegar (Ctrl+v) obstáculos cortados o copiados. |
| 70 |
Puedes mover obstáculos seleccionados manteniendo shift izquierdo y arrastrando el objeto. Sin embargo, esto puede ser bastante impreciso. |
| 71 |
|
| 72 |
Colocar objetos en Cofres |
| 73 |
|
| 74 |
Simplemente seleccione el cofre deseado y haga click en el botón más a la izquierda en la fila superior de botones. |
| 75 |
Se te pasará a una pantalla similar a la pantalla de tienda. |
| 76 |
Se mostrará un cuchillo (que en realidad no se halla en el cofre por cierto), selecciónelo y haga click en 'vender'. |
| 77 |
Seleccione los objetos que quiere que sean expulsados cuando el jugador abre el cofre. |
| 78 |
Estos objetos se mostrarán en la barra de compra superior. |
| 79 |
Para eliminar uno de estos, simplemente selecciónelo y haga click en 'comprar'. |
| 80 |
La cruz roja le saca de la pantalla. |
| 81 |
|
| 82 |
Añadir texto a un Cartel |
| 83 |
|
| 84 |
Seleccione el cartel y añada una etiqueta de obstáculo con el texto del cartel. Guarde el mapa y salga. |
| 85 |
Abra el documento del nivel (map/levels.dat) y halle la nueva etiqueta de obstáculo. Cambie la línea sobre el texto de 'type=30' ' a type=32' y guarde. |
| 86 |
Ahora cuando haga click en el cartel en el juego su mensaje corto aparecerá. |
| 87 |
|
| 88 |
Añadiendo un Diálogo a un Terminal |
| 89 |
|
| 90 |
Seleccione el terminal y añada una etiqueta de obstáculo con el nombre de diálogo que desee usar. Guarde el mapa y salga. |
| 91 |
Abra el documento de nivel (map/levels.dat) y halle la nueva etiqueta de obstáculo. |
| 92 |
Change the line above the text from 'type=30' to 'type=32' and save. Now when you click on the terminal in the game it will start the dialog you selected. |
| 93 |
|
| 94 |
Floor edit mode: |
| 95 |
|
| 96 |
The floor edit mode works quite similar to the obstacle edit mode. You can select different types of floors at the object selector. |
| 97 |
To fill a region with a single floor tile, first select the tile to use, then click and drag the left mouse button until it covers the desired region. The floor tiles are placed on the current floor layer. |
| 98 |
There are no floors that are special in any way, they are pure decoration. |
| 99 |
|
| 100 |
The visibility of floor layers can be controlled by a button with the layer icon. The button is only displayed for levels with multilayer floors. |
| 101 |
Left click on the button switches between a single floor layer displayed and all floor layers displayed. Right click on the button changes the current floor layer. |
| 102 |
|
| 103 |
Selecting floor types |
| 104 |
|
| 105 |
Selecting is as easy as in the the obstacle mode. Floor tiles can be moved to with the method described above. |
| 106 |
For levels with multilayer floors only visible floor layers are selected. When a single floor layer is visible, only the tiles in the current floor layer are selected. |
| 107 |
|
| 108 |
In order to have a look at the floor only, click the lamp icon to have no obstacles displayed. Another click will let obstacles appear again. |
| 109 |
The icon with the turquoise rectangle displays collision rectangles. These rectangles indicate the blocking-area of an obstacle. Tux can't walk on such an area. |
| 110 |
If you turn it on and playtest (explained later) your map, the rectangles are still displayed if activated which is quite useful for testing whether the player can pass a gap or not. |
| 111 |
|
| 112 |
Item edit mode: |
| 113 |
|
| 114 |
You can place items to be used by the player on the map, too. |
| 115 |
Items are objects that the player can pick up. They can be they can be carried, some even be used or equipped. |
| 116 |
Some items are used to move the plot forward, others provide bonuses to the player, while still others do nothing at all. |
| 117 |
Select the item mode and click on an item displayed at the object selector. For some items, you must specify an amount before they are placed. |
| 118 |
You can set it by clicking the arrow buttons or dragging the blue orb to the left or the right. |
| 119 |
Press 'g' to have a better overview of what items are available (can also be used for dropping, items will be dropped at the crosshair). Hit 'Esc' to abort the process without dropping any items. |
| 120 |
You can also click the icon with the crossed-out boots to perform this. |
| 121 |
|
| 122 |
|
| 123 |
Waypoint edit mode: |
| 124 |
|
| 125 |
Currently, droids (meaning all non-player characters) move around on levels using predefined waypoints. |
| 126 |
To plant a waypoint, press the 'w' key. This will toggle the waypoint on the rectangle under the crosshair. |
| 127 |
You can also click the map at a position you want to have a waypoint having this mode activated. Another click somewhere else plants another waypoint and automatically connects the previous selected one with it. |
| 128 |
Clicking on a preexisting waypoint lets you connect it with another one (just click the other one, too, to do it). |
| 129 |
However, there is a difference between those two planting methods. When you connect two waypoints using the keyboard, the connections will be unidirectional. |
| 130 |
That means that when you make a connection from waypoint A to waypoint B, the bot will only be able to walk from A to B but not back. |
| 131 |
You can remove an unidirectional connection by 'overlying' it with another one going into the very direction as the one you want to delete (this does not work with bidirectional connections!). |
| 132 |
Bidirectional connections are however automatically done using the click method to connect waypoints. |
| 133 |
Important note: It is not possible to connect waypoints on different maps with each other! |
| 134 |
Waypoints are also used to position randomly spawned bots. However this might be inappropriate for some waypoints. |
| 135 |
There are 'normal' ones which are white, for respawning bots and 'special', purple ones which should be used for NPCs. The normal ones are used for spawned bots, the purple ones should be used for NPCs. |
| 136 |
You can select these different types of waypoints in the upper selection bar. To turn a normal waypoint into a purple one or back again, press shift+w. |
| 137 |
Please make sure that paths between waypoints are not blocked by an obstacle in between of two waypoints. |
| 138 |
To automatically check a entire map for this, you can use the map level validator which is explained later. |
| 139 |
|
| 140 |
|
| 141 |
Planting Labels: |
| 142 |
|
| 143 |
There are two kinds of tables: map labels and obstacle labels. |
| 144 |
Please make sure that each label ID is unique. |
| 145 |
Giving an empty string will delete the respective label. |
| 146 |
|
| 147 |
|
| 148 |
Planting map labels |
| 149 |
|
| 150 |
Map labels are used to define starting locations of NPCs (see ReturnOfTux.droids), events that occur when Tux moves over them (see events.dat), or locations used for movement of NPCs through the lua script files (events, quests, and the dialogs). |
| 151 |
To define a new map label, press the 'm' key on the keyboard or click the button with the M on the sign on it. You will be prompted for the map label. Note that there will be a colorful circle appearing on any map tile that has been fitted with a map label. |
| 152 |
The map label will be automatically planted on the tile in the middle of the screen. |
| 153 |
You can switch the displaying of droids/NPCs on or off pressing the button with the 302 bot on it. |
| 154 |
|
| 155 |
Planting obstacle labels |
| 156 |
|
| 157 |
Obstacle labels are important so that some obstacles can be marked for events to happen (for example during a quest). If e.g. an event is supposed to remove a special wall obstacle, then this obstacle must be given a name or ID first, so it can be referred to later in the definition of the event. |
| 158 |
You can also use them to add dialogs to obstacles, so you can talk to them as they were NPCs. |
| 159 |
To plant a label on an obstacle, you must first mark this obstacle (see obstacle mode explanation above). |
| 160 |
Clicking the icon with the sign and the O on it you will be prompted for the new label to attach to this obstacle. |
| 161 |
|
| 162 |
You can toggle display of map labels using the small icon with the label-circle on it. |
| 163 |
|
| 164 |
Saving maps: |
| 165 |
|
| 166 |
In order to save a map, click the small disk icon in the upper right area of the editor screen. The door icon lets you exit the editor. |
| 167 |
You can also do this via the menu that is opened by pressing the 'Esc' key. |
| 168 |
|
| 169 |
|
| 170 |
General tips: |
| 171 |
|
| 172 |
Getting overview |
| 173 |
In order to change the zoom factor, press the 'o' key or click the icon with the magnifying glass on it. |
| 174 |
Try left and right clicking in order to access different zoom factors. |
| 175 |
|
| 176 |
|
| 177 |
The editor menu |
| 178 |
|
| 179 |
You can access this menu by pressing ESC. |
| 180 |
|
| 181 |
"Level:" |
| 182 |
Here you can easily navigate to other levels. You can either use the arrow keys having this option selected |
| 183 |
in order to switch to the next or previous (refers to level numbers) level, or, clicking on it, enter the number of the desired level and press enter. |
| 184 |
|
| 185 |
Level options |
| 186 |
Level: See above for explanation |
| 187 |
Name: The map name displayed at the GPS in the upper right corner of the game screen. You can disable the GPS in-game using the options menu. |
| 188 |
Size: You can increase or reduce the size of your level. Select the desired edge where you want to add/remove a line of tiles and click the <- or -> arrow buttons. |
| 189 |
Floor layers: In order to change the number of floor layers for the current level, use the <- or -> arrow buttons. |
| 190 |
Edge interface: Here you can set the levels that shall be next to the current level. Enter the level number for the respective edge. |
| 191 |
A level can only have one adjacent level (one it touches edges with) in each of the four cardinal directions (North, South, West, East). |
| 192 |
Random dungeon: If you set this option to 'Yes', the map will automatically generate a dungeon. You set the number of teleporters to and from this map clicking on the option. |
| 193 |
Randomly generated dungeons automatically will have everything necessary, like waypoints, bots, and obstacles, set. |
| 194 |
Item drop class for obstacles: Set of what item class items dropped by barrels/chests/crates should be. |
| 195 |
Teleport blockade: Make it (im)possible to teleport away from a level. |
| 196 |
Teleport pair: This important if you make a dungeon that is not directly connected to another map. You can set the number of exits and entrances for a randomly generated dungeon here. |
| 197 |
Light: How much light would you like to have? Press space to switch between ambient (general brightness of the present map) and bonus (light emitted by some obstacles, such as lamps or mushrooms) mode. |
| 198 |
Background music: Here you can set a music track to be played while the player walks around on the map. Possible tracks can be found in ./sound/music/ . |
| 199 |
Just enter the file name including the .ogg extension. |
| 200 |
Infinite running Stamina: If you have this set to "yes", Tux' stamina will not decrease while running across the map. This should only be used if the level has no hostile NPCs on it, like on level 0, the Town, for example. |
| 201 |
add/rem level: Lets you add a new level or remove the current level. |
| 202 |
|
| 203 |
Advanced options |
| 204 |
Here you can run the map level validator. |
| 205 |
The map level validator checks all the paths between connected waypoints to ensure they are not blocked by obstacles. More detailed output explaining which paths are blocked can be found in the terminal, given the case that the game is run using it, or a global error output file. |
| 206 |
It can also check if you have obstacles near map borders in a critial way. |
| 207 |
This should ALWAYS be run before calling a map finished. |
| 208 |
"freedroidRPG -b leveltest" does also run this check. |
| 209 |
|
| 210 |
Playtest mapfile |
| 211 |
Allows you to playtest your modifications easily. |
| 212 |
If you leave this mode, obstacle changes that were made while playing, destroying crates for example, will be reverted to the time where you started playtesting. |
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
Keys: |
| 218 |
space toggle planting/selection mode |
| 219 |
w plant waypoint |
| 220 |
shift+w toggle mode for waypoints to 'random bot' or 'NPC' |
| 221 |
escape access menu |
| 222 |
numberpad digits 1-9 used to plant obstacles at the respective positions of the grid |
| 223 |
n cycle through selected obstacles (next) |
| 224 |
z undo last action |
| 225 |
y redo last undid action |
| 226 |
c set paths between waypoints |
| 227 |
ctrl+x or backspace cut selected object(s), can be used to delete objects by not pasting afterwards |
| 228 |
ctrl+c copy selected object(s) |
| 229 |
ctrl+v paste cut/copied object(s) |
| 230 |
alt+shift drag/move selected object using the mouse |
| 231 |
arrow keys scroll around the map |
| 232 |
ctrl+arrow keys scroll around in bigger steps |
| 233 |
mousewheel scroll through obstacles of the object selector |
| 234 |
ctrl+pageup/page down scroll through obstacles of the object selector |
| 235 |
g access drop item screen |
| 236 |
t toggle 3x3 transparency around the crosshair |
| 237 |
m add/edit a map label at the position of the crosshair or the selected tile |
| 238 |
o zoom |
| 239 |
tab switch to the next editing mode |
| 240 |
shift+tab switch to the previous editing mode |
| 241 |
f switch to the next object tab |
| 242 |
shift+f switch to the previous object tab |
| 243 |
|
| 244 |
|
| 245 |
If you encounter problems with the editor, please contact us. |
| 246 |
Also, don't be afraid to send us maps if you made something cool, we don't bite. :) |
| 247 |
]] |
| 248 |
} |