Einzelnen Beitrag anzeigen
Alt 11.12.2002, 08:39   #8
skorpion
Senior Member
 
Registriert seit: 31.07.2002
Alter: 60
Beiträge: 126


Standard

It is unfortunate that Simwings has not coded those static planes in Barcelona, in separate bgl files. If this was the case, you would just have to erase them from the scenery folder and you would be done.
In LEBL 2002, the static planes are coded in two bgls, namely "lebl_1.bgl" and "lebl_3.bgl", but unfortunately mixed with the rest of the scenery.

Lebl_1.bgl contains one Fokker-50 Iberia, one A320 Iberia, one MD80 Iberia, and one A320 Austrian

Lebl_3.bgl contains one Fokker-50 Iberia, one A320 Spanair, one A320 British Airways, and one A320 Iberia

OK guys, so you want to get rid of the static planes in Simwings LEBL? You have to get your hands dirty, and certain familiarity with bgl assemblers and disassemblers is needed.

Do the following:

1) Get yourself the programs "BGL-Analyze 2.0" (bgl-disassembler) and "SCASM 2.88" (bgl-assembler). I do not remember where I got them from, but do a search, they are around.

2) Go to the scenery folder where you installed LEBL 2002, and make a backup copy of the files "lebl_1.bgl" and "lebl_3.bgl".

Keep them safe somewhere OUTSIDE FS2002. If anything goes wrong, you can go back!

3) Disassemble "lebl_1.bgl" with BGL-Analyze. You will get a .sca file that you can open with Notepad or another text editor.
You will see that the scenery code is organized in "Objects" that carry an identifying number. Each object starts with a line of hyphens, and ends with an EndA command, as follows:

; ----------------------------------------
; Object # 1, offset: 0x000A size: 14090 bytes (0x370A)
;; Lat: 0004640EBh Lon: 001828DAFh
; ----------------------------------------
Area( 5 N41:25:48.00 E002:07:24.25 8 )
IfVarRange( :L000154 0346 3 5 )
PerspectiveCall( :L000028 )
etc etc etc

EndA


4) DELETE ALL the code of Object 52 (Iberia A320), Object 58 (Iberia Fokker-50), Object 76 (Austrian A320) and Object 78 (Iberia MD80). (The planes are easily identifiable by the textures they use, but I save you the search). BE CAREFUL NOT TO DELETE ANY OTHER CODE! You'll be surprised how much code a single static plane takes!

5) Save the new file after the deletions, and recompile with SCASM. From the DOS prompt, type "Scasm lebl_1.sca" and you will get a new "lebl_1.bgl" without the planes. If Scasm gives you an error message, you have done something wrong, start from the beginning.

6) Install the newly obtained bgl where the original was, REPLACING it (Do not forget the backup copy before!!). Original and modified files cannot coexist in FS2002. Take the backup copy OUT!

7) Repeat the procedure for the second file "lebl_3.bgl". In this case you have to delete the code for Object 105 (Fokker 50 Iberia), Object 108 (A320 Iberia), Object 109 (A320 Spanair) and Object 110 (A320 British).

8) Start FS, go to LEBL and see the results. No static planes! (Fill the place with AFCAD right away, he, he).


This procedure is valid to remove static planes from any scenery when they are mixed with the rest of the scenery. The tricky part is to identify which object number you should delete. As I said, search for the textures.

I have not done LEPA yet, but it would be a similar thing.

Regarding the new Tenerife, it is much easier, because the static planes are contained in individual files, namely "rod_static.bgl" (for GCXO) and "ten_static.bgl" (for GCTS). Just get rid of those files.
skorpion ist offline   Mit Zitat antworten