New Discovery!
Page 1 of 2 12 LastLast
Results 1 to 25 of 42

Thread: New Discovery!

  1. #1

    Icon22 New Discovery!

    I had the cfs3 exe open in a hex editor yesterday and found some buried features we didn't know we had. Near the bottom of the file there are a whole bunch of tags with the prefix kEvent, which are all the commands CFS3 recognizes. There are quite a few that aren't listed as available commands in the key configuration setup. Not all the new commands appear to work, but some of them do. Fuel selectors work, allowing better management of fuel tanks, magnetos can be operated independently of each other and a few others. Not sure what else I'll find, but it looks good for being able to better model some of the more complex aircraft systems.

  2. #2
    That's really interesting to hear!
    Tom
    __________________________________________________ ___________________________________________
    Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding. Proverbs 4:7



  3. #3
    cool, I also see cowl flaps in there . would be nice if they actually did something besides the animation

  4. #4
    SOH-CM-2024 Pat Pattle's Avatar
    Join Date
    Jun 2005
    Location
    Newton Abbot, Devon. Dear old Blighty
    Age
    60
    Posts
    2,907
    Blog Entries
    1
    Wow Daniel, that sounds very interesting, well done on finding that! Of the ones you made work,how did you achieve it?
    Cfs3 is lacking in the engine management department!
    CFS3 Battle of Britain Website: https://cfs3bob.wixsite.com/cfs3-bob
    CFS3 ACC Member & ETO Expansion Group

  5. #5
    Redding Army Airfield Allen's Avatar
    Join Date
    Dec 2007
    Location
    O85 Benton Field Airport
    Age
    36
    Posts
    5,459
    It may not be a bad idea to use Process Explorer to export the CFS3.exe strings in a list and do the same for any thing the the CFS3.exe is using.

    I did this for CFS2 with the .exes, modules folder and sim1.sim file.
    "Let Being Helpful Be More Important Than Being Right!" Some SOH Founder.

  6. #6
    Kurier auf Stube...pauke! NachtPiloten's Avatar
    Join Date
    Jun 2005
    Location
    Leland, North Carolina, USA
    Age
    66
    Posts
    2,006

    Cowl Flaps

    Quote Originally Posted by sdsbolt View Post
    cool, I also see cowl flaps in there . would be nice if they actually did something besides the animation
    When I use them the temperature decreases....

  7. #7
    When I use them the temperature decreases....
    lol..somehow I knew once i posted that I would get corrected. I'll have to look a bit more closely .

  8. #8
    They only work on air-cooled engines, I've been trying to get a way for radiator flaps to work on liquid cooled engines without success, but maybe this will change that. We'll have to see how deep this rabbit hole goes.

    To implement the new commands you have to take the event name (minus the kEvent_ tag) and add a new line for it to the events.xml in the main folder. Then this command will be available to be assigned in the key configuration menu.

    Interestingly there are also system failure toggle commands in there, I tried, but I'm not sure if they work or not, I would need to know how they work in FS2004. This all does make me wonder how many of the external utilities that work in the FS series could work at least partially in CFS3. I'm sure there must be some, but nobody with those kinds of skills has looked into CFS3 so far.

    I also wonder if this will make new cockpit animations work.

  9. #9
    There are also some really weird ones in there:

    kEvent_TossTheChicken
    kEvent_ApplyShowyDamage

    Other than that, it seems like it contains most commands that the civvie sims have. Even the Concorde visor command and some aircraft tug related stuff is listed. Just a selection:

    kEvent_ToggleFlightRec
    kEvent_JumpBehindAircraft
    kEvent_WINGMENSYSTEM
    kEVENT_WINGMAN_TASKMNGR_TOGGLE
    kEvent_XPNDR
    kEvent_EGT
    kEvent_STROBES_TOGGLE
    kEvent_STROBES_SET
    kEvent_STROBES_ON
    kEvent_STROBES_OFF
    kEvent_ATC
    kEvent_ADF
    kEvent_HEADING_GYRO_SET
    kEVENT_DME
    kEvent_ANTI_ICE_TOGGLE
    kEvent_ANTI_ICE_SET
    kEvent_ANTI_ICE_ON
    kEvent_ANTI_ICE_OFF
    kEvent_ALL_LIGHTS_TOGGLE
    kEvent_BAROMETRIC
    kEvent_SPOILERS_TOGGLE
    kEvent_LANDING_LIGHTS_TOGGLE
    kEvent_LANDING_LIGHT_RIGHT
    kEvent_LANDING_LIGHT_LEFT
    kEvent_LANDING_LIGHT_HOME
    kEvent_CENTER_NT361_CHECK
    kEvent_SPOILERS_ARM_TOGGLE
    kEvent_KOHLSMAN_SET
    kEvent_KOHLSMAN_INC
    kEvent_KOHLSMAN_DEC
    kEvent_TRUE_AIRSPEED_CALIBRATE_INC
    kEvent_TRUE_AIRSPEED_CALIBRATE_DEC
    kEvent_CROSS_FEED_OFF
    kEvent_CROSS_FEED_RIGHT_TO_LEFT
    kEvent_CROSS_FEED_LEFT_TO_RIGHT
    kEVENT_AUTOCOORD_TOGGLE
    kEVENT_AUTOCOORD_OFF
    kEVENT_AUTOCOORD_ON
    kEvent_FUEL_SELECTOR_OFF
    kEvent_FUEL_SELECTOR_LEFT
    kEvent_FUEL_SELECTOR_LEFT_AUX
    kEvent_FUEL_SELECTOR_RIGHT
    kEvent_FUEL_SELECTOR_RIGHT_AUX
    kEvent_FUEL_SELECTOR_ALL
    kEvent_FUEL_SELECTOR_CENTER
    kEvent_SMOKE_ON
    kEvent_SMOKE_OFF
    kEvent_SMOKE_SET
    kEVENT_PITOT_HEAT_ON
    kEVENT_PITOT_HEAT_OFF
    kEVENT_PITOT_HEAT_SET
    kEVENT_TOGGLE_BEACON_LIGHTS
    kEvent_TOGGLE_ELECTRIC_VACUUM_PUMP
    kEvent_TOGGLE_AVIONICS_MASTER
    kEvent_TOGGLE_CONCORDE_NOSE_VISOR
    kEvent_TUG_SPEED
    kEvent_TUG_DISABLE
    kEvent_TUG_HEADING

    Apart from the better engine management, it seems we could perhaps have had a flightrecorder and more complex wingmen commands too. Seeing all this, I do get the feeling this really is the half-baked product some folks said it was...

    ACC Member, ETO and PTO contributor & librarian

  10. #10
    Redding Army Airfield Allen's Avatar
    Join Date
    Dec 2007
    Location
    O85 Benton Field Airport
    Age
    36
    Posts
    5,459
    If MS made it the product is half-baked at best.
    "Let Being Helpful Be More Important Than Being Right!" Some SOH Founder.

  11. #11
    SOH-CM-2024 Pat Pattle's Avatar
    Join Date
    Jun 2005
    Location
    Newton Abbot, Devon. Dear old Blighty
    Age
    60
    Posts
    2,907
    Blog Entries
    1
    To implement the new commands you have to take the event name (minus the kEvent_ tag) and add a new line for it to the events.xml in the main folder. Then this command will be available to be assigned in the key configuration menu.
    I also wonder if this will make new cockpit animations work.
    Fascinating stuff! What hex editor are you using Daniel? I could try and see if we can get any extra animations.
    CFS3 Battle of Britain Website: https://cfs3bob.wixsite.com/cfs3-bob
    CFS3 ACC Member & ETO Expansion Group

  12. #12
    Free Hex Editor Neo is what I have. I'm particularly curious to see if the fuel selector animations work, and if fuel gauges can be made to read individual tanks instead of total quantity. I know there are primer and electrical fuel pump commands in there as well, not sure if they work or not as they probable need to be set up in the individual aircraft air files too.

  13. #13
    SOH-CM-2024 Pat Pattle's Avatar
    Join Date
    Jun 2005
    Location
    Newton Abbot, Devon. Dear old Blighty
    Age
    60
    Posts
    2,907
    Blog Entries
    1
    Mmm..I have that one as well but couldn't see those, must be using it wrong!
    I'll have some time at the weekend to take a look. Yes working fuel selectors is one I'd like to see too.
    CFS3 Battle of Britain Website: https://cfs3bob.wixsite.com/cfs3-bob
    CFS3 ACC Member & ETO Expansion Group

  14. #14
    But would adding the key commands to events.xml also activate the associated functions and/or animations in the sim? I mean, it couldn't be as simple as that - waiting ten years or so, just to find out that adding a string to a file brings up a whole new bunch of functions? . For example, the parking brake works (function) but the animation doesn't... The animations must also be programmed somewhere. And I have a feeling that they dropped a lot of those... But let's see what happens after adding a few interesting ones to the .xml!

    BTW HexEditor XVI32 (freeware) also does the job.

    ACC Member, ETO and PTO contributor & librarian

  15. #15
    SOH-CM-2024 Pat Pattle's Avatar
    Join Date
    Jun 2005
    Location
    Newton Abbot, Devon. Dear old Blighty
    Age
    60
    Posts
    2,907
    Blog Entries
    1
    I mean, it couldn't be as simple as that - waiting ten years or so, just to find out that adding a string to a file brings up a whole new bunch of functions?
    Possibly Joost, Daniel already has made progress...

    Not all the new commands appear to work, but some of them do. Fuel selectors work, allowing better management of fuel tanks, magnetos can be operated independently of each other and a few others.
    So there's hope for a few others, fingers crossed!
    CFS3 Battle of Britain Website: https://cfs3bob.wixsite.com/cfs3-bob
    CFS3 ACC Member & ETO Expansion Group

  16. #16
    Kurier auf Stube...pauke! NachtPiloten's Avatar
    Join Date
    Jun 2005
    Location
    Leland, North Carolina, USA
    Age
    66
    Posts
    2,006

    Icon5 Ok, but

    Not to rain on anyone's parade but - if the export dll does not have these commands or gauge options, then there maybe an issue. That being said, if the export dll say for FS2004 could be used in some way or at least some of the code.......

  17. #17
    I know the SDK mentions animations that we didn't have commands for, and now some of those commands we find actually work, the animation code may still be there too, but as Ted points out that isn't a given.

    Ive looked the most into the fuel selector so far, and can confirm at least selector 1 is working. Turning it off will shut down the engine, and setting it to just one tank will cause the engine to shut down once it is empty, and setting it to a full one will allow it to start again. This is particularly good news for P-51 pilots, as the fuselage tank had to be drained first in order to make the aircraft controllable, and we haven't been able to do that until now.

  18. #18
    Quote Originally Posted by gecko View Post
    Ive looked the most into the fuel selector so far, and can confirm at least selector 1 is working. Turning it off will shut down the engine, and setting it to just one tank will cause the engine to shut down once it is empty, and setting it to a full one will allow it to start again. This is particularly good news for P-51 pilots, as the fuselage tank had to be drained first in order to make the aircraft controllable, and we haven't been able to do that until now.
    That is cool! I am gonna try that!!

    ACC Member, ETO and PTO contributor & librarian

  19. #19
    CFS3.exe is also where the AI is!

    I've managed to track some of it down as I've got a fairly good idea of what is going on regarding the AI.

    If we can rewrite the CFS3.exe file, we'll have effectively recreated the game all together.
    :tgun2: :tgun2: M3 fAiL 3nglush thats umpossible!

  20. #20
    Kurier auf Stube...pauke! NachtPiloten's Avatar
    Join Date
    Jun 2005
    Location
    Leland, North Carolina, USA
    Age
    66
    Posts
    2,006

    I am surprised....

    .....that this conversation has not been closed by our moderators. If it is we will need to talk elsewhere. I am sure that the OFF folks have done this with help from M$.....(well not sure but speculating).

  21. #21
    SOH-CM-2024 Pat Pattle's Avatar
    Join Date
    Jun 2005
    Location
    Newton Abbot, Devon. Dear old Blighty
    Age
    60
    Posts
    2,907
    Blog Entries
    1
    Yes, well distributing any modified files will be the tricky part, or else an instruction pack on how to enable any new features should be ok?

    Chris that sounds very interesting!
    CFS3 Battle of Britain Website: https://cfs3bob.wixsite.com/cfs3-bob
    CFS3 ACC Member & ETO Expansion Group

  22. #22
    Implementing hidden features in CFS3? Not a problem from this viewpoint. Hacking CFS3 at source? It's not SOH you'd have to worry about, not really: it's Cease-and-Desist letters from Very Expensive Legal Fellows.

    Proceed, but with caution.
    Tom
    __________________________________________________ ___________________________________________
    Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding. Proverbs 4:7



  23. #23
    SOH-CM-2024 Pat Pattle's Avatar
    Join Date
    Jun 2005
    Location
    Newton Abbot, Devon. Dear old Blighty
    Age
    60
    Posts
    2,907
    Blog Entries
    1
    "Hacking" is an emotive word, freeing features that may probably have been implemented from day one and prolonging the life of with all of our mods .... well perhaps we should be charging Microsoft?? ;0)
    CFS3 Battle of Britain Website: https://cfs3bob.wixsite.com/cfs3-bob
    CFS3 ACC Member & ETO Expansion Group

  24. #24
    Interesting to say the least!!

    I tried adding and assigning a few commands that aroused my curiosity.
    These seem to work:

    <FUEL_SELECTOR_OFF Caption="Fuel Selector Off" Type="engine"/>
    <FUEL_SELECTOR_ALL Caption="Fuel Selector All" Type="engine"/>
    <ENGINE_AUTO_SHUTDOWN Caption="Engine Auto Shutdown" Type="engine"/>

    Of course, function only, as there is no animation of the fuel selector modelled in the aircraft.
    The commands below don't seem to do a thing - most won't even save my key assignment:

    <SIM_SYSTEM Caption="Sim System" Type="sim"/>
    <ToggleConsole Caption="Console (toggle)" Type="sim"/>
    <TossTheChicken Caption="Toss The Chicken" Type="sim"/>
    <Orbit Caption="Orbit" Type="sim"/>

    I don't even know if I put them under the right heading (the 'type' entered, in this case "sim") but it would surprise me if that had anything to do with it. It seems just a way of quickly organizing the commands by function in the selection list.
    Maybe it's an idea to make a list of commands that do work. Animations etc. are another thing.



    I came across a few other interesting readable strings/words in the hexeditor:

    landrotorwash
    waterrotorwash
    contrail
    cable_force_adjust
    tail_hook_position
    tail_hook_length
    wing_folding_system_type

    and a few others. These aren't key events but are things that are floating somewhere in the .exe file (below the key events). There may be more under the hood of this thing than we think... (unfortunately I can't do anything with it but wonder at what it might do)

    ACC Member, ETO and PTO contributor & librarian

  25. #25
    SOH-CM-2023 mongoose's Avatar
    Join Date
    Jun 2005
    Location
    Navigator, where are we?
    Age
    79
    Posts
    3,553
    Quote Originally Posted by NachtPiloten View Post
    .....that this conversation has not been closed by our moderators. If it is we will need to talk elsewhere. I am sure that the OFF folks have done this with help from M$.....(well not sure but speculating).
    Go to ETO PTO WWII Combat Sim Discussion and help Forum???

    Cato said "Carthaginem esse delendam"
    I say "Carthago iam diu deleta,sed enim Bellum Alium adhuc aedificandum est"

Members who have read this thread: 1

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •