December 20, 200322 yr Has anyone tried an exclude with the BGL Compiler?I tried;<?xml version="1.0"?>but it doesn't like the syntax..boneshttp://fsaviation.net
December 20, 200322 yr Author Hi bones.A this should work for a scenery exclusion:<?xml version="1.0"?>Dick
December 20, 200322 yr hey bonesplease try to use plain text formatting (it's a checkbox just above the message writing box) to send code snippets, as otherwise the board software could change lots of things and introduce errors.there seems to be some problems with your code. here's the corrected version:notice that since 'exclusionrectangle' does not allow child objects, you must close the tag with this way, not with '/exclusionrectangle'. this is stated in the beginning of the sdk. and yes, almost all of the examples are plain wrong.also, don't use spaces between the itens, the parenthesis and the values. BGLcomp seemed to accept it, but the resulting binary code in BGL was different (I did a byte-by-byte comparison)rafa
December 20, 200322 yr Panic over..All I did was strip out the line returns for the last two lines..boneshttp://fsaviation.net
December 20, 200322 yr So will the code I have just used not work? Example as previous with just the line returns removed..Apologies about not setting text format on the first post..boneshttp://fsaviation.net
December 20, 200322 yr Author Hi bones.The complete code I gave you works.Rafa is just telling you why it works. And he is right that just about all the examples are wrong, and someone needs to rewrite the entire SDK with working examples.Dick
December 21, 200322 yr Perhaps my new ExcBuilder program can help you.Screenshot:http://www.estscen.net/misc/ExcBuilder.jpgFeatures:- Create fast'n'easy exclusion areas- Import coordinates from FS trough FSConnect.dll- Simple and user-friendly interfaceDownload: http://www.estscen.net/files/ExcBuilder.zip (45KB)BTW - Nice first "real program" for 14 year-old teen, huh? ;)
December 21, 200322 yr very impressive...how long have you been programming, and what languages have you studied? B
December 21, 200322 yr I bought MS' Visual Basic 6.0 (it was discounted :)) on 11. nomvember this year. Precisely month ago. I had never before programmed "real programs". Learning curve would have been pretty steep without knowing SCASM. Working with SCASM tought me "machine logic" - how variable systems and IF checks work.And it's good to know ExcBuilder works as it should. :)
December 21, 200322 yr Well done Paavo. We have noticed your name cropping up as a contributor recently. Can I say a belated welcome to our community, and look forward to hearing lots more from you.CheersGerrish
December 21, 200322 yr Oops. There was a bug in the original program. The .bgl was not compiled. Download the revised version here: http://www.estscen.net/files/ExcBuilder_2.zip
December 21, 200322 yr You seem to have the talent needed, congratulations Paavo!Since I am only a dabbler in programming since 1965 (Fortan IV, Basic), Am I that old?, I wondered about the requirement to include the various lines. For instance, the exclude:has numerous exclude lines. I question having to have all the lines if is set. Am I correct that if is set, the remaining lines are redundant and don't need to be part of the code?Alternatively, can you omit , if you are selectively setting the other lines or would you have to leave it as .W. Sieffert Bill Sieffert
December 21, 200322 yr Very nice indeed!It saves a lot of messing around with batch files. :)boneshttp://fsaviation.net
December 21, 200322 yr Hi Dick,Yep - I appreciate the pointers for the right code (which I have now used). I was just trying to understand why my original code was not "approved".I've not touched XML before and owing to the badly written SDK I am falling into the trap many other newbies will drop into. I just wanted to get things down on paper so that my mistakes will be avoided by others.boneshttp://fsaviation.net
Create an account or sign in to comment