Jump to content
Sign in to follow this  

Recommended Posts

Guest odog

hi all, has anyone see a utility that converts bgl to sca? i cant seem to get fsregen to work right and it would seem easier if i had a sca file to convert to api for use in fssc.odog

Share this post


Link to post
Share on other sites
Guest

It seems that you are looking for a decompiler.I use BGLAnalyze.exe, by Winfried Orthmann. A very good disassamble program. You need scasm to compile again.Remember: IT IS NOT ALLOWED TO CHANGE/USE SOMEONE ELSES FILES WITHOUT HIS PERMISSION.You can find it under bglana21.zip, but not avsim I see. Try some of the other flightsimboards.Bert Kuyper

Share this post


Link to post
Share on other sites

Do I understand it correct that you want to use it to decompile a BGL made with GMax, because you can't get FsRegen to work? I can help you out of that dream, that won't work. SCASM doesn't support most of the new commands GMax uses and you can not make a macro out of it. That is the reason we are using the work around with the library.Otherwise I would also recommend BGLAnalyzer.ArnoMember NL2000 Teamhttp://home.wanadoo.nl/arno.gerretsen


Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites
Guest GerrishGray

That's not entirely true, Arno. Theoretically, one can program ANY BGL command in SCASM as long as you know the opcode and parameter structure, by using the dbx() etc. commands. You can also turn these into parameterised macros as a direct substitute for the full-blown command by using a SCASM Macro(). SCASM macros have a much wider range of potential uses than just making API's.The biggest problem, though, is the 32-bit real data types used by many of the new commands ...Roll on the scenery SDK - do you think it might be out before FS2004 ?!?CheersGerrish>Do I understand it correct that you want to use it to >decompile a BGL made with GMax, because you can't get >FsRegen to work? I can help you out of that dream, that >won't work. SCASM doesn't support most of the new commands >GMax uses and you can not make a macro out of it. That is >the reason we are using the work around with the library. >Otherwise I would also recommend BGLAnalyzer. >>Arno >Member NL2000 Team >http://home.wanadoo.nl/arno.gerretsen

Share this post


Link to post
Share on other sites

Yes, that's true Gerrish. If you make a simple object in GMax and leave out the crash detection and other special options, the latest version of BGLAnalyzer can already decompile it to SCASM code. But more complex objects don't work yet with BGLAnalyzer.And about the SDK. I have given up hope a little know. If they wait long the next version of FS is there bt the time we have learned to use the new features. I think this is really a bad thing from M$ as it makes it less fun the make addons.Arno


Member Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites
Guest odog

all i really want is a way to use my gmax scenery models in a program like airport or fssc i thought i read of someone doing this but maybe its beyond my current abilities...im new to scasm...it seems like it should be easier than im making it

Share this post


Link to post
Share on other sites

I think the fastest and easiest way of doing it is to make a library BGL of your objects using FsRegen and then call them with a simple macro. I can give you an example of such a macro if you want.Arno


Member Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites
Guest odog

i have a copy of the sample mac you posted earlier, but i dont know what to do with it where do i paste it and how do i call it? when i try to get library tool to work i get the error "cant find _0.asm the program seems to add the _0 to my filename...? if i rename and add the _0 it cant find _0_0.asm wierd.

Share this post


Link to post
Share on other sites
Guest cwright

>And about the SDK. I have given up hope a little know. If >they wait long the next version of FS is there bt the time >we have learned to use the new features. I think this is >really a bad thing from M$ as it makes it less fun the make >addons. > Arno, I think it's pretty appalling. How long can it take to write a Word document? It's now nine months since they finished work on FS2002. If they could at least give some idea when the scenery SDK will be released it would help. Yet another SDK has just been released. I'm reminded of that well known saying: another day, another useless SDK. Best regards, Chris

Share this post


Link to post
Share on other sites

You must paste the example macro in an empty text file. You can do that with notepad or so. Then you must adjust the ID to the value you want.And for your other question. Make sure you have the latest version of MakeMDL. Then you select the asm file of your project (test.asm for example). GMax also has made a test_0.asm and that file is also loaded then. But you must select the file without the _0.Arno


Member Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites

It almost looks if you can read my mind :).And they have also spend some time on making an addon scenery. If at least they would tell us which SDK's are still going to come that would make things a lot easier.Arno


Member Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites
Guest PaavoP

Arno, I didn't belive I ever have to say it, but You're a bit wrong. It IS possible to decompile an object exported from gmax. When exporting, make sure crash detection is turned off. Decompile the source with BglAnalyze and there! You'll see nice SCASM code.

Share this post


Link to post
Share on other sites

Remember that this was written a year ago :D, by now there is a newer version of BGLAnalyzer that can indeed read some, but not all, of the new commands used by GMax.


Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...