Scenery question..

A quiet place for budding model makers to share thoughts, get answers to questions and request and share references.

Moderators: Guru's, The Ministry

User avatar
petermcleland
Red Arrows
Red Arrows
Posts: 5201
Joined: 25 Jul 2004, 10:28
Location: Dartmouth, Devon
Contact:

Re: Scenery question..

Post by petermcleland »

DaveB wrote:Hi Peter,

Thanks for that ;-) Is having to rewrite the refuelling syntax the only drawback you can think of??
Hi Dave,

It is the only real bug that I've found with BGLX but it does also put in a lot of unecessary rem comments of Offsets. I prefer to delete these and that can be a pain with a big file. Basically BGLX is just perfect for dissembling other peoples .bgl files and then copying and pasting a bit of code that you want to put in your own file. BUT...I always keep my text files for later use rather than dissembling my own .bgl file again. That way I don't have to do any of those annoying rem deletions. Just keep your refuelling syntax text file handy somewhere just in case!...Here is mine:-

<SceneryObject
lat="N59.583001"
lon="W139.337997"
alt="1.214F"
altitudeIsAgl="TRUE"
pitch="0"
bank="0"
heading="57.00"
imageComplexity="NORMAL">
<Trigger
type="REFUEL_REPAIR">
<Fuel type="100"/>
<Vertex biasX="-15" biasZ="-15" />
<Vertex biasX="-15" biasZ="15" />
<Vertex biasX="15" biasZ="15" />
<Vertex biasX="15" biasZ="-15" />
</Trigger>
</SceneryObject>

It is those Trigger <Vertex bias entries that BGLX can't handle.

User avatar
DanKH
Battle of Britain
Battle of Britain
Posts: 3526
Joined: 02 Dec 2004, 10:53
Location: EKCH, Denmark
Contact:

Re: Scenery question..

Post by DanKH »

I normally use these two programs:

bglanalyze.zip and bglx180.zip

Both of them have their pros and cons....

As Peter said: both of them tend to fiddle with the XML, each in their own way...

If you disassemble the bgl with either of them you could make a compare of the output. Then you should be pretty close to a working bgl afterwards ;-)

Btw. Dave I could never dream of talking the joy from you, I just didn't want to tell tales unless I'd tried it myself.
Best Rgds
Dan
Image
Image Image
Who's General Failure, and why is he reading my harddisk?

User avatar
DaveB
The Ministry
Posts: 30457
Joined: 17 Jun 2004, 20:46
Location: Pelsall, West Mids, UK
Contact:

Re: Scenery question..

Post by DaveB »

Cheers Peter.. and Dan ;-)

I'm obviously starting from a point no where near where I should be as I downloaded bglanalyze yesterday hoping that it was a GUI based program and this obviously isn't so as hitting the exe opens a dos box for a brief second and then it's gone! :roll: :lol: I think I'll pencil it onto the growing list of 'Things to do before you die' :cpu:

Food for thought as always guys and thanks ;-)

ATB

DaveB :tab:
ImageImage
Old sailors never die.. they just smell that way!

User avatar
DanKH
Battle of Britain
Battle of Britain
Posts: 3526
Joined: 02 Dec 2004, 10:53
Location: EKCH, Denmark
Contact:

Re: Scenery question..

Post by DanKH »

There is a nice small registry hack, that enables you to open up a DOS-prompt any location you are at the present.

Open the File-Explorer, place your cursor upon the folder you wish to run the command-prompt from
Right-click your mouse and select Command Prompt, and voila you now have a command-prompt window and your current directory is the one you just selected.

This is how it's done:
  • 1. Start up Notepad

    2. Copy and paste this into the file:

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\Directory\shell\OpenNew]
    @="Command Prompt"
    [HKEY_CLASSES_ROOT\Directory\shell\OpenNew\Command]
    @="cmd.exe /F:OFF cd %1"

    [HKEY_CLASSES_ROOT\Drive\shell\OpenNew]
    @="Command Prompt"
    [HKEY_CLASSES_ROOT\Drive\shell\OpenNew\Command]
    @="cmd.exe /F:OFF cd %1"


    3. Save the file as CmdHere.reg (note the extension)
    4. Close Notepad.
    5. Find the file you just created and double-click on it to merge it into your registry.
    6. You are now ready to use it.
Very usable in various occasions.
Best Rgds
Dan
Image
Image Image
Who's General Failure, and why is he reading my harddisk?

User avatar
DaveB
The Ministry
Posts: 30457
Joined: 17 Jun 2004, 20:46
Location: Pelsall, West Mids, UK
Contact:

Re: Scenery question..

Post by DaveB »

'DaveB has left the building'!

:lol: :lol: :lol:

Tks Dan ;-)

ATB

DaveB :tab:
ImageImage
Old sailors never die.. they just smell that way!

nigelb
Red Arrows
Red Arrows
Posts: 5039
Joined: 11 Apr 2005, 17:19
Location: Herndon, Virginia, USA

Re: Scenery question..

Post by nigelb »

DaveB wrote:Cheers Peter.. and Dan ;-)

I'm obviously starting from a point no where near where I should be as I downloaded bglanalyze yesterday hoping that it was a GUI based program and this obviously isn't so as hitting the exe opens a dos box for a brief second and then it's gone! :roll: :lol: I think I'll pencil it onto the growing list of 'Things to do before you die' :cpu:

Food for thought as always guys and thanks ;-)

ATB

DaveB :tab:
Dave,

There are several versions of that program floating around and somewhere I found a GUI interface for it. I just checked a few sites and I can't find it online and I can't remember where I found it, but if you want I could send it to you. To be clear, this is the dissasembler for SCASM created .bgl files only.

User avatar
DaveB
The Ministry
Posts: 30457
Joined: 17 Jun 2004, 20:46
Location: Pelsall, West Mids, UK
Contact:

Re: Scenery question..

Post by DaveB »

Hi Nigel and tks for that ;-) I suppose you only find out what a scenery area has been compiled with when you try and decompile it and get a message saying 'Sod off' (or words to that effect) :lol: It does seem that one has to be somewhat proficient in a number of programs and not just one. Ah well.. that's the beauty of open code I suppose ;-)

Suddenly, I seem bereft of 'tinker time' so I may not get to tinker for a while but I'll take you up on the offer when the time comes ;-)

ATB

DaveB :tab:
ImageImage
Old sailors never die.. they just smell that way!

nigelb
Red Arrows
Red Arrows
Posts: 5039
Joined: 11 Apr 2005, 17:19
Location: Herndon, Virginia, USA

Re: Scenery question..

Post by nigelb »

DaveB wrote:Hi Nigel and tks for that ;-) I suppose you only find out what a scenery area has been compiled with when you try and decompile it and get a message saying 'Sod off' (or words to that effect) :lol: It does seem that one has to be somewhat proficient in a number of programs and not just one. Ah well.. that's the beauty of open code I suppose ;-)

Suddenly, I seem bereft of 'tinker time' so I may not get to tinker for a while but I'll take you up on the offer when the time comes ;-)

ATB

DaveB :tab:
Not exactly 'sod off' but "Error: Compressed BGL file, uncompression failed, file not compressed" A bit cryptic but it means the same thing I suppose! BGLXML is a little kinder if you try to decompile a SCASM assembled file - "Input file: not a valid FS2004 facility data BGL!" which I translate as a slightly gentler "Get lost"

When you are ready to tinker again, just let me know.

Post Reply