Using "command prompt", and binary encoding

Use this forum to discuss technical issues related to the operation of your computer. Graphics, Hardward, Software, settings, etc.
Post Reply
User avatar
kungfuman
Lieutenant Colonel
Lieutenant Colonel
Posts: 845
Joined: 01 Jun 2008, 18:21
Version: FS9
Location: EGGD

Using "command prompt", and binary encoding

Post by kungfuman »

Hi folks,

This isn't the only place I'm asking this, but if anyone can help... :)

I have decompiled my bvcf.bgl file (from my "add on scenery/scenery" folder) using Bgl2Xml GUI by Jon "scruffyduck". I then edited my bvcf.bgl.xml file in notepad, and now I wish to recompile it. BGLComp flashed up a multitude of errors, but I don't know how to control that tool to save the error report somewhere useful. I am thus clueless about how best to proceed.

I have never tried to compile a file from the "command prompt", but I tried to do so just now as this apparently shows the error messages. It should be clear that I'm clueless about using ms dos command prompt from the following. I entered:
C:\>"c:\program files\microsoft games\fs9 engineering\excbuilderv2\bglcomp.exe"


and got this response:
Build: Dec 31 2003 21:41:08

Try something like

bglcomp file:///drive:/path/file.xml
Options
/V Verbose mode (display XML as it's parsed)

Good luck!


So, looking at the "template" offered above, I entered:
C:\>"///c:/program files\microsoft games\fs9 engineering\excbuilderv2/bvcf.xml


Now I'm not surprised it didn't like that, but I thought I should at least try the suggested format just in case...

Would anyone like to put me out of my misery?

I also had a look at the original file with a hex editor, and located the dwords containing center frequency data (thanks to Winfried Orthmann's pdf). Lacking in experience as I do, I couldn't figure out how the data is encoded. Is it a common algorithm with a name I could google to read up on it? This is probably what I'm most keen on getting to grips with.

Thanks for your time...

Dan
User avatar
Firebird
MAIW Admin
MAIW Admin
Posts: 12397
Joined: 11 Aug 2006, 21:04
Version: FS9
Location: EGLL

Post by Firebird »

OK briefly, when you are using a command line proggy it will normally require a file that it should act upon.

Your first attempt you just ran he bglcomp.exe proggy which came back and told you that it needs a file to process and you can add some options or switches.

Generally you need:-
proggy file(s) /options

In this specific example if you are knew to command line usage may I suggest a helpful tip.
Actually alter your active directory to the directory that you have the program you want to run.

To do this open the prompt and whenyou see the prompt enter the following :-
C:\>cd program files\microsoft games\fs9 engineering\excbuilderv2\

You should now find that the prompt reads:-
C:\Program Files\Microsoft Games\fs9 engineering\excbuilderv2>

Now all you need to run bglcomp is to type in "bglcomp" and hit enter. However you now add the file name so in your specific case it would be the decompiled file bvcf.xml and as its in the same working directory that you 'cd'ed to you don't need a path.
So you should type and see :-
C:\Program Files\Microsoft Games\fs9 engineering\excbuilderv2>bglcomp bvcf.xml
Once you hit enter it should compile. If you wanted to see the verbose option what you would type is "bglcomp bvcf.xml /V"

This will solve your problem, however I am not guaranteeing that it will compile correctly :) .
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat
_______________________________________________________
User avatar
kungfuman
Lieutenant Colonel
Lieutenant Colonel
Posts: 845
Joined: 01 Jun 2008, 18:21
Version: FS9
Location: EGGD

Post by kungfuman »

Steve,

Thanks for trying - I can see you would get this working in no time if it was on your system.

Unfortunately, my command prompt proggy doesn't like spaces or long words for path names. Hence the use of double quotation marks to get it to respond in the first place. Alack, I don't have any syntactic knowledge for this kind of computing, as I was raised by wolves (bohemian artists!) in the woods. So I can't even get it to "change directory". The response was:
Too many parameters - files\microsoft
Is there a way round this?
User avatar
Firebird
MAIW Admin
MAIW Admin
Posts: 12397
Joined: 11 Aug 2006, 21:04
Version: FS9
Location: EGLL

Post by Firebird »

Are you using XP with SP3?

How are you loading the command prompt? I personally have a menu shortcut I created to the actually command, although I did test entering 'cmd' in the 'Run...' menu option.

The commands I tested out before I posted, to make sure. I have never had a problem with spaces and I have never set any option with regards to achieving this.
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat
_______________________________________________________
User avatar
kungfuman
Lieutenant Colonel
Lieutenant Colonel
Posts: 845
Joined: 01 Jun 2008, 18:21
Version: FS9
Location: EGGD

Post by kungfuman »

It seems that for whatever reason, the program wasn't working properly.

I tried again, and it finally worked - doing exactly as I had done so before (to my knowledge at least)!

Thanks a lot for your input :D :smt023 :D
Post Reply