Jump to content
The simFlight Network Forums
Sign in to follow this  
Guest

how to create a module?

Recommended Posts

Guest

How to create FS modules? not gauges, but DLL modules.

Am I supposed to use FS SDK for this? I have looked at it, but it only talks about gauges and panels.

Perhaps I could do things their way, but my stuff is non-graphical. I don't need mouse input or draw.

Share this post


Link to post
Share on other sites
How to create FS modules? not gauges, but DLL modules. Am I supposed to use FS SDK for this? I have looked at it, but it only talks about gauges and panels. Perhaps I could do things their way, but my stuff is non-graphical. I don't need mouse input or draw.

My first "module" was a Gauge -- EPICINFO.GAU to be precise. It had no mouse input, no graphics, nothing to do with panels. It simply used the PANELs system to get itself loaded.

There is no SDK for add-in Modules. Those that are written are done by hacking into the FS code to see how to do it. But GAUges are more than halfway there. Take a look inside them and compare them to the DLLs.

Pete

Share this post


Link to post
Share on other sites
Guest

could I get source code for EPICINFO.GAU ? it doesn't have to work, I just want to get the concept. I can probably figure things out on my own, but it's easier to use examples :-)

my email: fig_tatam@hotmail.com

Share this post


Link to post
Share on other sites
Guest

ah, forgot to ask:

Is it possible to get variable which can distinguish between "player is using game menu" and "player is inside a plane"?

I tried using this variable:

0366 2 Aircraft on ground flag (0=airborne, 1=on ground).

But it seems to be undefined when player is using game menus, same for all plane related data. To overcome this problem, I read a bunch of plane variables and compare them to their previous values. If all variables don't change for some time, then I assume it's cause player is using a menu. But it's a dirty hack.

Share this post


Link to post
Share on other sites
could I get source code for EPICINFO.GAU ? it doesn't have to work, I just want to get the concept. I can probably figure things out on my own, but it's easier to use examples :-)

Sorry, it hasn't actually existed now for about 5 or maybe 6 years. For the "concept" of writing gauges, just get the Panels SDK. The one which shows how to write gauges in MSVC and has examples, not the recent XML stuff. You might need to search back for the FS98 or FS2000 one, I don't know. I've not really downloaded or looked at FS SDKs for several years.

Pete

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  

×

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.