Jump to content
The simFlight Network Forums

holtrk85

Members
  • Posts

    8
  • Joined

  • Last visited

About holtrk85

  • Birthday 01/01/1970

Contact Methods

  • Website URL
    http://

Profile Information

  • Location
    Fort Worth, TX

holtrk85's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Pete, If I update to 3.7.4 will I also need to update the version of WideFS? The target currently has WideServer 6.65 and WideClient 6.65. I agree with the ALWAYS use the latest version philosophy, I just don't want to force my customer down a path that they don't need to follow. I don't know much about WideFS and Project Magenta. The app I wrote for this customer just sniffs the state data of the FlightSim aircraft and turns that into a DIS PDU so that FlightSim can play in a distributed simulation environment. So, I don't want to force my customer to do anything that could have negative effects. I am just trying to understand the issues that may exist if I go down this road. For instance...... If they upgrade to a newer version of WideFS, will that necessitate the need to make some change in Project Magenta? Keith Holt
  2. Pete, I developed an app using the Java SDK and it run beautifully using FSUIPC ver. 3.7.4. However, I need to install it on a target platform that is using ver. 3.6.5. When I run my application using this older version of FSUIPC, I get the following log file. I suppose the easy answer it to get the latest version. I am not sure if the owner of the target platform will be ok with that. They are using WideFS and Project Magenta. Are there any issues that I would or could encounter with a more current version of FSUIPC? Is there anything I can do to get my app running with this older version of FSUIPC? ********* FSUIPC, Version 3.65 by Pete Dowson ********* Running inside FS2004 (FS9.1 CONTROLS.DLL, FS9.1 WEATHER.DLL) User Name="" User Addr="" FSUIPC not user registered WIDEFS not user registered, or expired Module base=61000000 ClassOptions: UIPCMAIN=FF7F, FS98MAIN=FF7F, FS2KMAIN=FF5E WeatherOptions(Orig)=0000B027[0000B027] InitDelay: 0 seconds WeatherReadInterval=4 LogOptions=00000001 DebugStatus=0 328 System time = 13:33:18 343 C:\Program Files\Microsoft Games\Flight Simulator 9\ 343 System time = 13:33:18, FS2004 time = 12:00:00 (00:00Z) 734 FLIGHTS\OTHER\FLTSIM.flt 734 AIRCRAFT\c172\Cessna172SP.air 1281 Client Application: "java" (Id=4000) 1281 C:\fsdis\Java\jdk1.5.0_11\bin\java.exe 1297 Product="Java 2 Platform Standard Edition 5.0 U11" 1297 Company="Sun Microsystems, Inc." 1390 Illegal read attempt: offset 0560, size 8 [P4000] 1390Program or module not accredited for use with this unregistered FSUIPC
  3. Well, the source code for the Java SDK does contain the "Hello, world" sting. The EngineType method in the FSAircraft class pokes the string into FS. I used the Windoze search to try an locate this string originally. For some reason the Windoze search tool was ignoring all .java files. As soon as I renamed the file from FSAircraft.java to FSAircraft.java.txt, the Windoze search tool found the string. Here is a thread on the subject. http://forum.java.sun.com/thread.jspa?tID=3935013 THANKS BILL!!!!
  4. Pete, The test application provided with the SDK connects to FS2004 and then prints out various attributes about the aircraft to stdout. I've done a search for the words "hello world" to and found nothing. I did the search on the test code as well as the Java SDK source both. I also searched on the two offsets you provided in your previous reply, they do not appear either. Is it possible that the "Hello, world" phrase is hidding in the .dll file that is part of the Java SDK? I have provided the code from the test application. I have been able to make changes to this code, recompile and see the expected results, so I know that the "Hello, world" string is not in the .class file that I am executing. import com.flightsim.fsuipc.*; public class Test { static void TestADF() { System.out.println("Testing ADF"); FSADF adf = new FSADF(); System.out.println("freq " + adf.Freq()); System.out.println("freq as string " + adf.FreqAsString()); System.out.println("ID " +adf.Identity()); System.out.println("Name " + adf.Name()); } static void TestNav1() { System.out.println("TestNav1"); FSNav1 nav = new FSNav1(); System.out.println("freq " + nav.Freq()); System.out.println("freq as string " + nav.FreqAsString()); System.out.println("ID " +nav.Identity()); System.out.println("Name " + nav.Name()); System.out.println("loc " +nav.LocaliserNeedle()); System.out.println("glide " + nav.GlideSlope()); } static void TestAircraft() { System.out.println("TestAircraft"); FSAircraft air = new FSAircraft(); System.out.println("latitude " + air.Latitude()); System.out.println("longtitude " + air.Longitude()); System.out.println("VOR1 lat " + air.VOR1LocLatitude()); System.out.println("VOR1 long " + air.VOR1LocLongitude()); int hi = air.Heading(); System.out.println("heading " + hi); double h = 360.0*hi/(65536.0*65536.0); System.out.println("h " + h); int mi = air.Magnetic(); System.out.println("magnetic " + mi); double m = 360.0*mi/(65536.0*65536.0); System.out.println("m " + m); double p = air.Pitch(); System.out.println("pitch " + p); double b = air.Bank(); System.out.println("bank " + b); System.out.println("IAS " + air.IAS()); System.out.println("VS " + air.VerticalSpeed()); System.out.println("alt " + air.Altitude()); System.out.println("locerr " + air.LocaliserError()); System.out.println("loc " + air.Localiser()); System.out.println("engine " + air.NumberOfEngines()); System.out.println("engine type " +air.EngineType()); } static void TestEngine1() { System.out.println("TestEngine1"); FSEngine1 eng = new FSEngine1(); System.out.println("comb " + eng.Combustion()); } static void TestEngine2() { System.out.println("TestEngine2"); FSEngine2 eng = new FSEngine2(); System.out.println("comb " + eng.Combustion()); } static void TestGear() { System.out.println("TestGear"); FSGear gear = new FSGear(); System.out.println("nose" + gear.NoseGearState()); System.out.println("left " + gear.LeftGearState()); System.out.println("right " + gear.RightGearState()); } static void TestFlightSim() { System.out.println("\nTestFlightSim"); FSFlightSim sim = new FSFlightSim(); System.out.println("name " + sim.StartSituationName()); } public static void main(String s[]) { System.out.println("Running tests"); int ret = fsuipc_wrapper.Open(fsuipc_wrapper.SIM_ANY); System.out.println("ret =" + ret); if(ret == 0 ) { System.out.println("Flight sim not found"); } else { TestADF(); TestNav1(); TestAircraft(); TestEngine1(); TestEngine2(); TestGear(); TestFlightSim(); } } }
  5. Using the Java SDK, I have an issue that I can't resolve. Everytime I run the provided test application, the phrase "Hello, world" appears in the FS2004 window. The letters are red and are overlayed on a green bar that stretches the width of the window. I can't find anywhere in the provided code that would cause this to happen. Any ideas?
  6. I am currently using the FS2004 FSUIPC SDK for Java to support a client's application. At some point in the future, the client may want to migrate to FSX. The FSX documentation that I have read leads me to believe that lagacy FSUIPC based applications will work with the FSUIPC for FSX. Is this true for the language SDKs as well?
×
×
  • 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.