| 1 |
* ---------------------------------------------------------------------- |
| 2 |
* |
| 3 |
* Copyright (c) 2009-2010 the Freedroid dev team |
| 4 |
* |
| 5 |
* This file is part of Freedroid |
| 6 |
* |
| 7 |
* Freedroid is free software; you can redistribute it and/or modify |
| 8 |
* it under the terms of the GNU General Public License as published by |
| 9 |
* the Free Software Foundation; either version 2 of the License, or |
| 10 |
* (at your option) any later version. |
| 11 |
* |
| 12 |
* Freedroid is distributed in the hope that it will be useful, |
| 13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
* GNU General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU General Public License |
| 18 |
* along with Freedroid; see the file COPYING. If not, write to the |
| 19 |
* Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 20 |
* MA 02111-1307 USA |
| 21 |
* |
| 22 |
* ---------------------------------------------------------------------- |
| 23 |
|
| 24 |
---------------------------------------------------------------------- |
| 25 |
|
| 26 |
This file contains a list of exceptions for the LevelEditor Validator. |
| 27 |
Those exceptions prevent the Validator to complain about errors found |
| 28 |
in the design of the levels, but that the level designer wants to keep. |
| 29 |
|
| 30 |
---------------------------------------------------------------------- |
| 31 |
|
| 32 |
Each exception is prefixed by a 'Rule' number, only used to report |
| 33 |
the uncaught exceptions to the console. So you are free to use any |
| 34 |
rule number you like. |
| 35 |
|
| 36 |
The specification of an exception depends on the sub-validator that |
| 37 |
uses it (defined by the "Type" value) : |
| 38 |
|
| 39 |
- for "C" (chest), the parser extracts the following pattern: |
| 40 |
Idx=IIII X=xxxx Y=yyyy L=llll |
| 41 |
|
| 42 |
- for "WP" (waypoint position), "WO" (waypoint orphan), |
| 43 |
"WS" (waypoint self-connected), the parser extracts the following |
| 44 |
pattern: |
| 45 |
X=xxxx Y=yyyy L=llll |
| 46 |
|
| 47 |
- for "WD" (waypoints distance), "WW" (waypoints walkability), |
| 48 |
"WQ" (waypoints quality), the parser extracts the following pattern: |
| 49 |
X1=xxxx Y1=yyyy L1=llll X2=xxxx Y2=yyyy L2=llll |
| 50 |
|
| 51 |
- for "J" (jumptarget), the parser extracts the following pattern: |
| 52 |
Interface:iiii of[space]Level:llll to[space]Level:llll |
| 53 |
|
| 54 |
- for "OW" (obstacle west), "OE" (obstacle east), "ON" (obstacle north), |
| 55 |
"OS" (obstacle south), the parser extracts the following pattern: |
| 56 |
X=xxxx Y=yyyy L=llll T=tttt border=bbbb |
| 57 |
|
| 58 |
- for "ES" (extension sign), the parser extracts the following pattern: |
| 59 |
X=xxxx Y=yyyy L=llll ObsIdx=iiii ExtType=tttt |
| 60 |
|
| 61 |
The parser is however smart enough to silently accept extras words inside |
| 62 |
an exception specification (as long as they do not collide with the |
| 63 |
searched patterns). |
| 64 |
This enables to simply copypaste the console output of the LevelValidator. |
| 65 |
|
| 66 |
---------------------------------------------------------------------- |
| 67 |
|
| 68 |
Some examples: |
| 69 |
|
| 70 |
Rule=1 [Type="C"] Obj Idx=715 (X=22.524876:Y=52.808456:L=37) : Chest |
| 71 |
Rule=3 [Type="J"] Interface:North of Level:37 points to Level:45 which does not exist. |
| 72 |
Rule=4 [Type="WP"] WP X=24.500000:Y=45.500000:L=37 |
| 73 |
Rule=5 [Type="WO"] WP X=24.500000:Y=45.500000:L=37 |
| 74 |
Rule=6 [Type="WS"] WP X=25.500000:Y=49.500000:L=37 |
| 75 |
Rule=7 [Type="WW"] WP1 X1=13.500000:Y1=35.500000:L1=0 -> WP2 X2=11.500000:Y2=25.500000:L2=0 |
| 76 |
Rule=8 [Type="WD"] WP1 X1=25.500000:Y1=49.500000:L1=37 <-> WP2 X2=25.500000:Y2=49.500000:L2=37 : distance = 0.000 |
| 77 |
|
| 78 |
---------------------------------------------------------------------- |
| 79 |
|
| 80 |
*** Beginning of LevelValidator Exceptions List *** |
| 81 |
|
| 82 |
*** End of LevelValidator Exceptions List *** |