Pactica que no sale

Discusiones sobre diseño de escenarios
Responder
Alvar
Aprendiz
Aprendiz
Mensajes: 31
Registrado: Noviembre 22, 2005, 19:43
Ubicación: Avila

Pactica que no sale

Mensaje por Alvar »

Hola Compañeros, despues de haberme empapado un poco de todo esto y de intentar hacer algo, llamemosle practica, no me va casi nada.
Con ScenX muy bien hasta que intento compilar el XML, que os reproduzco:

=============== leav.XML ===============
00001 - <?xml version="1.0"?>
00002 - <FSData
00003 - version = "9.0"
00004 - xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
00005 - xsi:noNamespaceSchemaLocation="bglcomp.xsd" >
00006 -
00007 - <!-- File generated by SceneGenX Version 1.0 Build 61 for FS 2004 -->
00008 - <!-- Copyright RAUL -->
00009 -
00010 -
00011 -
00012 -
00013 - <Airport
00014 - region = "AVILA"
00015 - country = ""
00016 - state = ""
00017 - city = ""
00018 - name = ""
00019 - lat = "40.5748333333333"
00020 - lon = "-4.93683333333333"
00021 - alt = "2255.52"
00022 - magvar = "5.202"
00023 - ident = "LEAV">
00024 -
00025 -
00026 - <TaxiwayPoint index = "1" type = "NORMAL" orientation = "FORWARD"
00027 - lat = "40.57559055079" lon = "-4.94221933529231"/>
00028 -
00029 - <TaxiwayPoint index = "2" type = "NORMAL" orientation = "FORWARD"
00030 - lat = "40.5763210429246" lon = "-4.9436947063956"/>
00031 -
00032 - <TaxiwayPoint index = "3" type = "NORMAL" orientation = "FORWARD"
00033 - lat = "40.5755727339087" lon = "-4.94223104255482"/>
00034 -
00035 - <TaxiwayPoint index = "4" type = "NORMAL" orientation = "FORWARD"
00036 - lat = "40.574681889842" lon = "-4.94137624720108"/>
00037 -
00038 - <TaxiwayPoint index = "5" type = "NORMAL" orientation = "FORWARD"
00039 - lat = "40.5767041058733" lon = "-4.93721972686145"/>
00040 -
00041 - <TaxiwayPoint index = "6" type = "NORMAL" orientation = "FORWARD"
00042 - lat = "40.5757152689593" lon = "-4.93809787528092"/>
00043 -
00044 - <TaxiwayPoint index = "7" type = "NORMAL" orientation = "FORWARD"
00045 - lat = "40.5756529098747" lon = "-4.94607150617334"/>
00046 -
00047 - <TaxiwayPoint index = "8" type = "NORMAL" orientation = "FORWARD"
00048 - lat = "40.576499211738" lon = "-4.93476086530226"/>
00049 -
00050 - <TaxiwayPoint index = "9" type = "NORMAL" orientation = "FORWARD"
00051 - lat = "40.5768822746866" lon = "-4.93458521954644"/>
00052 -
00053 - <TaxiwayPoint index = "10" type = "NORMAL" orientation = "FORWARD"
00054 - lat = "40.5765081201786" lon = "-4.93474915616581"/>
00055 -
00056 - <TaxiwayPoint index = "11" type = "NORMAL" orientation = "FORWARD"
00057 - lat = "40.5761072403486" lon = "-4.94630574471361"/>
00058 -
00059 - <TaxiwayPoint index = "12" type = "NORMAL" orientation = "FORWARD"
00060 - lat = "40.5756796351967" lon = "-4.94602467500151"/>
00061 -
00062 - <TaxiwayParking index = "1" lat = "40.5739319611095" lon = "-4.94122398695776"
00063 - heading = "0.0" radius = "50.0" type = "GATE_SMALL"
00064 - name = "GATE" number = "2" pushBack = "NONE"/>
00065 -
00066 - <TaxiwayPath type = "TAXI" start = "1" end = "2" width = "10.0"
00067 - weightLimit = "500000" surface = "ASPHALT"
00068 - centerLine = "TRUE" centerLineLighted = "TRUE"
00069 - leftEdge = "SOLID" leftEdgeLighted = "TRUE"
00070 - rightEdge = "SOLID" rightEdgeLighted = "TRUE" name = "0"/>
00071 -
00072 - <TaxiwayPath type = "TAXI" start = "0" end = "0" width = "10.0"
00073 - weightLimit = "500000" surface = "ASPHALT"
00074 - centerLine = "TRUE" centerLineLighted = "TRUE"
00075 - leftEdge = "SOLID" leftEdgeLighted = "TRUE"
00076 - rightEdge = "SOLID" rightEdgeLighted = "TRUE" name = "0"/>
00077 -
00078 - <TaxiwayPath type = "TAXI" start = "1" end = "1" width = "10.0"
00079 - weightLimit = "500000" surface = "ASPHALT"
00080 - centerLine = "TRUE" centerLineLighted = "TRUE"
00081 - leftEdge = "SOLID" leftEdgeLighted = "TRUE"
00082 - rightEdge = "SOLID" rightEdgeLighted = "TRUE" name = "0"/>
00083 -
00084 - <TaxiwayPath type = "TAXI" start = "2" end = "2" width = "10.0"
00085 - weightLimit = "500000" surface = "ASPHALT"
00086 - centerLine = "TRUE" centerLineLighted = "TRUE"
00087 - leftEdge = "SOLID" leftEdgeLighted = "TRUE"
00088 - rightEdge = "SOLID" rightEdgeLighted = "TRUE" name = "0"/>
00089 -
00090 - <TaxiwayPath type = "TAXI" start = "0" end = "0" width = "10.0"
00091 - weightLimit = "500000" surface = "ASPHALT"
00092 - centerLine = "TRUE" centerLineLighted = "TRUE"
00093 - leftEdge = "SOLID" leftEdgeLighted = "TRUE"
00094 - rightEdge = "SOLID" rightEdgeLighted = "TRUE" name = "0"/>
00095 -
00096 - <TaxiwayPath type = "TAXI" start = "1" end = "0" width = "10.0"
00097 - weightLimit = "500000" surface = "ASPHALT"
00098 - centerLine = "TRUE" centerLineLighted = "TRUE"
00099 - leftEdge = "SOLID" leftEdgeLighted = "TRUE"
00100 - rightEdge = "SOLID" rightEdgeLighted = "TRUE" name = "0"/>
00101 -
00102 - <TaxiwayPath type = "TAXI" start = "0" end = "0" width = "10.0"
00103 - weightLimit = "500000" surface = "ASPHALT"
00104 - centerLine = "TRUE" centerLineLighted = "TRUE"
00105 - leftEdge = "SOLID" leftEdgeLighted = "TRUE"
00106 - rightEdge = "SOLID" rightEdgeLighted = "TRUE" name = "0"/>
00107 -
00108 - <TaxiwayPath type = "TAXI" start = "0" end = "0" width = "10.0"
00109 - weightLimit = "500000" surface = "ASPHALT"
00110 - centerLine = "TRUE" centerLineLighted = "TRUE"
00111 - leftEdge = "SOLID" leftEdgeLighted = "TRUE"
00112 - rightEdge = "SOLID" rightEdgeLighted = "TRUE" name = "0"/>
00113 -
00114 - <TaxiwayPath type = "TAXI" start = "0" end = "0" width = "10.0"
00115 - weightLimit = "500000" surface = "ASPHALT"
00116 - centerLine = "TRUE" centerLineLighted = "TRUE"
00117 - leftEdge = "SOLID" leftEdgeLighted = "TRUE"
00118 - rightEdge = "SOLID" rightEdgeLighted = "TRUE" name = "0"/>
00119 -
00120 - <TaxiwayPath type = "TAXI" start = "1" end = "0" width = "10.0"
00121 - weightLimit = "500000" surface = "ASPHALT"
00122 - centerLine = "TRUE" centerLineLighted = "TRUE"
00123 - leftEdge = "SOLID" leftEdgeLighted = "TRUE"
00124 - rightEdge = "SOLID" rightEdgeLighted = "TRUE" name = "0"/>
00125 -
00126 - <TaxiwayPath type = "TAXI" start = "0" end = "0" width = "10.0"
00127 - weightLimit = "500000" surface = "ASPHALT"
00128 - centerLine = "TRUE" centerLineLighted = "TRUE"
00129 - leftEdge = "SOLID" leftEdgeLighted = "TRUE"
00130 - rightEdge = "SOLID" rightEdgeLighted = "TRUE" name = "0"/>
00131 -
00132 - <TaxiwayPath type = "TAXI" start = "3" end = "4" width = "10.0"
00133 - weightLimit = "500000" surface = "ASPHALT"
00134 - centerLine = "FALSE" centerLineLighted = "FALSE"
00135 - leftEdge = "DASHED" leftEdgeLighted = "TRUE"
00136 - rightEdge = "DASHED" rightEdgeLighted = "TRUE" name = "0"/>
00137 -
00138 - <TaxiwayPath type = "TAXI" start = "5" end = "6" width = "10.0"
00139 - weightLimit = "500000" surface = "ASPHALT"
00140 - centerLine = "FALSE" centerLineLighted = "FALSE"
00141 - leftEdge = "DASHED" leftEdgeLighted = "TRUE"
00142 - rightEdge = "DASHED" rightEdgeLighted = "TRUE" name = "1"/>
00143 -
00144 - <TaxiwayPath type = "TAXI" start = "7" end = "8" width = "10.0"
00145 - weightLimit = "500000" surface = "ASPHALT"
00146 - centerLine = "FALSE" centerLineLighted = "FALSE"
00147 - leftEdge = "DASHED" leftEdgeLighted = "TRUE"
00148 - rightEdge = "DASHED" rightEdgeLighted = "TRUE" name = "2"/>
00149 -
00150 - <TaxiwayPath type = "TAXI" start = "9" end = "10" width = "10.0"
00151 - weightLimit = "500000" surface = "ASPHALT"
00152 - centerLine = "FALSE" centerLineLighted = "FALSE"
00153 - leftEdge = "DASHED" leftEdgeLighted = "TRUE"
00154 - rightEdge = "DASHED" rightEdgeLighted = "TRUE" name = "3"/>
00155 -
00156 - <TaxiwayPath type = "TAXI" start = "11" end = "12" width = "10.0"
00157 - weightLimit = "500000" surface = "ASPHALT"
00158 - centerLine = "FALSE" centerLineLighted = "FALSE"
00159 - leftEdge = "DASHED" leftEdgeLighted = "TRUE"
00160 - rightEdge = "DASHED" rightEdgeLighted = "TRUE" name = "4"/>
00161 -
00162 - <TaxiName index="0" name="A" />
00163 -
00164 - <TaxiName index="1" name="B" />
00165 -
00166 - <TaxiName index="2" name="C" />
00167 -
00168 - <TaxiName index="3" name="G" />
00169 -
00170 - <TaxiName index="4" name="H" />
00171 -
00172 - <Runway
00173 - lat = "40.5767230025656" lon = "-4.94049975597028" alt = "2255.52"
00174 - surface = "ASPHALT" heading = "84.798" length = "1000.0" width = "50.0" number = "09" designator = "NONE"
00175 - patternAltitude = "243.84" primaryTakeoff = "TRUE" primaryLanding = "TRUE" primaryPattern = "LEFT"
00176 - secondaryTakeoff = "TRUE" secondaryLanding = "TRUE" secondaryPattern = "LEFT">
00177 - <Markings
00178 - edges = "TRUE"
00179 - threshold = "TRUE"
00180 - fixedDistance = "TRUE"
00181 - touchdown = "TRUE"
00182 - dashes = "TRUE"
00183 - ident = "TRUE"
00184 - precision = "FALSE"
00185 - edgePavement = "FALSE"
00186 - singleEnd = "FALSE"
00187 - primaryClosed = "FALSE"
00188 - secondaryClosed = "FALSE"
00189 - primaryStol = "FALSE"
00190 - secondaryStol = "FALSE"/>
00191 - <Lights center = "MEDIUM" edge = "MEDIUM" centerRed = "FALSE"/>
00192 - <ApproachLights
00193 - end = "PRIMARY"
00194 - system = "NONE"
00195 - strobes = "0"
00196 - reil = "TRUE"
00197 - touchdown = "TRUE"
00198 - endLights = "TRUE"/>
00199 - <ApproachLights
00200 - end = "SECONDARY"
00201 - system = "NONE"
00202 - strobes = "0"
00203 - reil = "FALSE"
00204 - touchdown = "FALSE"
00205 - endLights = "TRUE"/>
00206 - <Ils
00207 - lat = "40.577109934837"
00208 - lon = "-4.93490549350683"
00209 - alt = "2255.52"
00210 - heading = "84.798"
00211 - frequency = "110.0"
00212 - end = "PRIMARY"
00213 - range = "0.0"
00214 - magvar = "5.202"
00215 - ident = "ILS/DME"
00216 - width = "0.0"
00217 - name = "ILS/DME Runway 09"
00218 - backCourse = "FALSE">
00219 - <GlideSlope
00220 - lat = "40.5764170561185"
00221 - lon = "-4.94491125336439"
00222 - alt = "2255.52"
00223 - pitch = "0.0"
00224 - range = "0.0"/>
00225 - <Dme
00226 - lat = "40.5764170561185"
00227 - lon = "-4.94491125336439"
00228 - alt = "2255.52"
00229 - range = "0.0"/>
00230 - </Ils>
00231 - </Runway>
00232 -
00233 - <Start
00234 - type = "RUNWAY"
00235 - lat = "40.5761695994333"
00236 - lon = "-4.94375323487055"
00237 - alt = "0.0"
00238 - heading = "0.0"
00239 - number = "NORTH"
00240 - designator = "NONE"/>
00241 -
00242 - <Aprons>
00243 -
00244 - <Apron surface = "BITUMINOUS" drawSurface = "TRUE" drawDetail = "TRUE">
00245 - <Vertex lat = "40.5759420292672" lon = "-4.93649803698355"/>
00246 - <Vertex lat = "40.57412065808" lon = "-4.93707388861032"/>
00247 - <Vertex lat = "40.575483649502" lon = "-4.93961893503405"/>
00248 - </Apron>
00249 -
00250 - <Apron surface = "BITUMINOUS" drawSurface = "TRUE" drawDetail = "TRUE">
00251 - <Vertex lat = "40.5754625931877" lon = "-4.93962957840967"/>
00252 - <Vertex lat = "40.5741141792141" lon = "-4.93706963097191"/>
00253 - <Vertex lat = "40.5727058357305" lon = "-4.94041710541968"/>
00254 - </Apron>
00255 -
00256 - <Apron surface = "ASPHALT" drawSurface = "TRUE" drawDetail = "TRUE">
00257 - <Vertex lat = "40.5726159360666" lon = "-4.94045648975855"/>
00258 - <Vertex lat = "40.575483649502" lon = "-4.9396380946942"/>
00259 - <Vertex lat = "40.574204073479" lon = "-4.94230756931522"/>
00260 - </Apron>
00261 -
00262 - </Aprons>
00263 -
00264 - <ApronEdgeLights>
00265 -
00266 -
00267 -
00268 -
00269 -
00270 - </ApronEdgeLights>
00271 -
00272 - </Airport>
00273 -
00274 - <Marker lat = "40.5739694662818" lon = "-4.98024487303013" alt = "2255.52"
00275 - type = "OUTER" ident = "OM" heading = "84.798" region = "AA"/>
00276 -
00277 - <Vor
00278 - lat = "40.57732769672" lon = "-4.94056850558682" alt = "1127.76"
00279 - type = "HIGH" frequency = "108.0" magvar = "5.202"
00280 - region = "AA" ident = "AVL" name = "AVILA"
00281 - nav = "TRUE" dmeOnly = "FALSE" dme = "TRUE">
00282 - <Dme lat = "40.57732769672" lon = "-4.94056850558682" alt = "1127.76" range = "20000.0"/>
00283 - <VisualModel
00284 - heading = "0.0"
00285 - imageComplexity = "SPARSE"
00286 - name = "3a5affe143e95cb6df00d3b5786eb8c3">
00287 - </VisualModel>
00288 - </Vor>
00289 -
00290 -
00291 -
00292 -
00293 - </FSData>
00294 -

Cuando compilo, y tengo el BGL instalado, me sale:

C:\Archivos de programa\FS2004SDK\BGLCOMP_SDK>bglcomp.exe leav.xml

Parsing document: leav.xml

ERROR C2034: XML Parse Fatal Error (line, column, error)

ERROR: 1, 1, Incorrect document syntax.
ERROR C2470: Unrecoverable error parsing XML!
ERROR C2006: Parse failed (0x80004005)
ERROR C2003: Failed to process file: leav.xml

y de hay no paso. Lo he revisado, pero mi desconocimiento noo da para mas, jajjaa.

Y al hilo otra pregunta; Genero un auropuerto con AFCAD y estupendo, pero ¿ Donde genera el .XML?


Un saludo
Que la Fuerza os Acompañe.
Raúl Jiménez.
AHS8763
Ivao Flight Capitan: 209931
Avatar de Usuario
janu
Recluta graduado
Recluta graduado
Mensajes: 72
Registrado: Octubre 4, 2006, 07:31
Contactar:

Mensaje por janu »

Hola Raul

Ese listado, con numeración de líneas incluido, no es compilable. EL primer error se lo en cuantra en la fila 1 columna 1, con un "0" del número de línea, que el parser no sabe interpretar. No sé porqué SceneGenX ofrece la opción de compilar desde esa ventana, pero es así.

Tienes que hacer lo siguiente: (se supone que has instalado el BGLCompiler del FSDK)

- una vez que te enseña el listado, pues muchas gracias y sales de la ventana sin compilar ni nada.

- te vas a la carpeta donde tengas instalado Scenegenx y ahí tendrás el verdadero archivo XML, que lo abres con el bloc de notas y verás que no tiene números de líneas ni nada parecido.

- compílalo con BGLCOMP.EXE en ventada de comandos. Mira por el foro que ha salido varias veces cómo hacerlo y si tienes problemas, los planteas.

Saludos
Janu AHS6585
Alvar
Aprendiz
Aprendiz
Mensajes: 31
Registrado: Noviembre 22, 2005, 19:43
Ubicación: Avila

[RE] Prueba que no sale

Mensaje por Alvar »

Muchas Gracias a todos, y a ti Janu por las indicaciones, mira que no caer en que el XML no lleva nº de linea, jajaja.

Lo probare esta noche. Respecto al AFCAD lo veo mas completo, no se si sera una percepcion mia, y aunque lo hare como me dices si me interesaria poder sacar el XML del AFCAD, ¿me podrias decir que programa lo hace?
Que la Fuerza os Acompañe.
Raúl Jiménez.
AHS8763
Ivao Flight Capitan: 209931
Avatar de Usuario
janu
Recluta graduado
Recluta graduado
Mensajes: 72
Registrado: Octubre 4, 2006, 07:31
Contactar:

programa para sacar XML de AFCAD

Mensaje por janu »

No hay tal programa, que yo sepa. Lo que hay son herramientas de análisis con las que recuperas el origen XML ó SCA de un fichero BGL. No de todos ni de aquellos que no hayan sido compilados desde un XML ó en su caso un SCA. Son herramientas distintas.

En general, a todos los analizadores o decompiladores puestos ya para usuario final, se les plantea el problema de qué ramas seguir en el proceso de inversión. Esto es como un árbol. Hay que elegir camino y para ello es preciso acotar todo lo posible de forma predefinida. A veces los resultados difieren, aunque no mucho. Si no usas la herramienta concreta para algo concreto, lo normal es que se niegue a trabajar.

Busca en http://www.scenery.org/design_utilities_a.htm por bglanalyzer ó bglxml. Son licencias GNU-GPL, con fines exclusivamente de estudio.
Janu AHS6585
Responder