Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi,

I hope this is the right place to post.

I've used the netpipes SDK to connect a flight simulation program I wrote to FS2004 as a client. My program runs on one PC and sends the aircraft's state vector to another PC running FS2004. This arrengement works fine but sometime the original simulation engine (of the FS2004) takes control for a frame or two and changes the desired state. Is it possible to disable Microsoft's simulation engine ?

Thanks,

Baruch

Posted

When the simulator enters playback mode it does not enter slew mode

(Y command). Pause mode stops the playback as in normal operation.

As I understand, during playback the simulators uses it's simulation engine to calculate all the state vector data thet were not transmitted from the external input.

I'll keep on looking...

Posted
When the simulator enters playback mode it does not enter slew mode (Y command). Pause mode stops the playback as in normal operation.

So? What's playback mode to do with anything? I never mentioned it? You are confusing me! (Not hard perhaps). Are you using record and playback data? I know nothing whatsoever about that i'm afraid.

BTW none of this is remotely connected to the software I support in this Support Forum, is it?

Pete

Posted
>>> I hope this is the right place to post.

As I said...Thank you for your time :oops:

Well, I know about quite a lot of FS stuff, for sure, but not, I'm afraid, about NetPipes nor record and playpack files.

I think thast others who've synchronized two or more PCs have either used FSUIPC in them to read and write the data, and put the slave PCs into slew, pause or zero sim rate mode, or possibly managed to do it fast enough to stop FS's sim engine taking over noticeably (not possible anyway before FS2004), or they've used Luciano Napolitano's WidevieW (good for synching views more than actual simulation), or even just the straightforward in-built FS multiplayer facilities with the clients in "observer" mode.

Regards,

Pete

Posted
BTW How do you set zero rate simulation ?

Either via FSUIPC's programmable interface (i.e. from a program) by writing to the Sim Rate offset (0C1A), or by using the FS control "SIM RATE SET" with a parameter of 0. The latter can be assigned to a keypress or joystick button in FSUIPC's user options.

Regards,

Pete

  • 3 weeks later...
Posted

bar86:

I'm curious about how you are driving FS2004. My tinkering with the netpipes stuff has been fruitless so far. What do you put in the FLTF section (which looks to contain a .flt file?) I tried not passing one of those and just passing in aircraft parameters for lat, long and alt, but that didn't seem to have any affect on the simulation.

Are you generating an FLTF section when you pipe data in?

Also, did you notice that there seems to be an extra WORD of data in a Data frame at the very end? Maybe I am the only one seeing that :shock:

Posted

Hi,

I've recorded the header to a file and resend it as is.

About the data frame - a word is added to make it to a round DWORD length - that means that the number if bytes devides into 4 (it's a 32 bit OS..).

Baruch

  • 3 months later...
Posted

When sending data, MS FS ignores parametrs that are the same as in previous frame. This means that some of the parameters would be overwritten by MS siulation. If the data is artificialy changed a bit, this phenomenon disapears.

bar86

Happy New Year !

Posted

I have been looking at doing the same thing to visualize some data from another application. It would be great to hear how you are going with this! I tried Netpipes as well early last year, but got distracted on another project. Let us know!

Posted

I've started with the original code and chaged it to a dll structure. I've encapsulated the required data in the chunk structure as described in the documentation and send it periodically. With some additional tricks I've discovered during the development, it works pretty well now (but not perfect!). Last month I did a presentation with two laptops and a joystick at a major European aerospace company and it seems they were really impressed :shock: .

  • 2 weeks later...
Posted
BTW How do you set zero rate simulation ?

Either via FSUIPC's programmable interface (i.e. from a program) by writing to the Sim Rate offset (0C1A), or by using the FS control "SIM RATE SET" with a parameter of 0. The latter can be assigned to a keypress or joystick button in FSUIPC's user options.

Regards,

Pete

Maybe here's the right place to post my Q's...

I want to do the same, syncing multiple FS's, but mainly because I found a set of really good gauges (from RealityXP) which I want to run remotely on another computer. When you run WidevieW or FS Manager the position gets synchronised but no information regarding panel data (e.g. altimeter setting, indicated airspeed, engine information, etc...) is displayed. FS Manager claims to sync this data and its debug log shows it sending engine data packets. But the engine instruments are NOT updated. (the other instruments, dependent on position and orientation, like attitude, altimeter, DG etc are updated). Is this caused by the pausing of the simulation engine? Or does FS Manager have a problem synchronising? I reckon that when you set an engine's N1 value via FSUIPC directly (after receiving it through the network from a server program) that it should change on the screen.

Edit: Success! When you put the simulation engine in its slowest speed through FSUIPC (write a 0 to 0x0C1A) you can basically fiddle around with every variable in FS as the engine runs too slow to ever touch it before you will. Worked for me on the engine N1 through offset 0x2000... does not seem to work through the 'classic' offsets though (in the 0x0896 range)... only the doubles work.

Posted

I want to do the same, syncing multiple FS's, but mainly because I found a set of really good gauges (from RealityXP) which I want to run remotely on another computer.

Couldnt you use WideView with the gauges on *master* PC, with a super small visual 3D view so it doesnt eat much cpu, with most visual options set to zero (I think one has to have one visual view open) - and use WideView *slaves* for the real visual view?

This way your master pc runs the gauges and slaves the outside view? Isn't this what you are looking after? Wouldnt this work?

//Tuomas

Posted

Those reality XP gauges look like a good starting point for what I am trying to do.

I can model in 3d and have been making gauges for flightsims of one sort or another for some years now, but I can't currently find a coder to work with who knows about ALL of this stuff.

What I need to find is a coder who can understand how to load and use say DirextX models and link to FS via FSUIPC/WideFS.

What I am mostly interested in doing is GA gauges running on a latop, and hooking into FS via Pete's progs to keep it all pretty simple. The ageing laptop can't cope with flightsim, but it could very probably do this really fine. If not, then why not on another machine?

I'd really like to co-develop a new panel system, so others could even add new intruments as they discover they really can make good ones and it's not that hard to make them! It's potentially a huge niche waiting for the right program to allow it all.

I wrote the author of My FS Panel, asking him if I could just send him a picture of the WIP 172 like panel I've been working on, but not even got a reply to say no!

Anyone else fancy working on this?

Posted
This also is quite close to what Enrico is working on the Project Magenta GA panel. http://www.projectmagenta.com

//Tuomas

Yes I downloaded the demo of that yesterday. I'll be honset, I think it could be better. I rate the galss panel stuff they do, but I'm not into flying liners and jet stuff. For GA, I suspect much, much better could and should be possible.

For a more specific example; I'm not sure how one can make something blocky and fuzzy at the same time, but they found a way in some places, and it was not all that impressive, since that was a bit of information that was renedered useless as a result. The point of a panel being entirely to relay information in a clean and crisp manner.

I'd settle or a panel that is not specific to one plane, but it must be at the very least convincing, surely?

I've done panels and instruments that were clean, smooth moving and tidy in another sim, Sadly, due to rather too many other issues, that sim has no future as far as anyone can tell. So I'd like to bring that work to FS and expand on it if at all possible. Doing it via Pete's programs makes total sense to me. It's worth having as it'd then be a fair alternative to a simkits display. Obviously not quite as immersive, but as good as one could get short of being a physical dial if it is handled right in the first place. Previous versions have featured shadows, highlights, and reflections that actually change on the front glass. It's very natural feeling. Physical dials can't do that really, as they don't have access to the position of the sun or background to reflect, they must be quite sterile as a result. I liked using the more lively version, but it did not have all dial features working, I want to see the little wheels (odometers) running right too! ;O)

It's getting very frustrating not being able to find a coder though. As FS users we could have it all, and we could have had it yesterday! The need is for a coder who knows and uses Pete's software and can use DirectX as that has the most hope of success. Does not have to be DX 9 particularly, but that would only help I'd guess.

Oh well, back to the drainingboard. :roll:

Posted

Hi all,

Some good stuff here. I am doing similar, but I am running a real time MATLAB/SIMULINK code to generate fm data and using the xPC API to communicate with the FS module. I have successfully written a plugin for X-Plane, but now I am trying FS2004 using an internal FS module and talk to FSUIPC (with FS set to 0 frame rate - thanks again Pete!).

Oh yeh, the real time code also generates motion / jack data :)

Sorry, I don't know enough about direct-x gauges - I am struggling enough with this internal module.

Question - Can someone tell me a good starting point / source code for an internal module for FS2004? I have Jose's source (big thanks), just trying to figure out which one is best - the ones based on Joel's code (clock / rain) won't register in FS2004 (Ah ha! I found it! fsmenu.zip)

  • 7 months later...

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
×
×
  • Create New...

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.