Jump to content
  • entries
    165
  • comments
    199
  • views
    85,476

About this blog

Combat-Helo Dev Blog

Entries in this blog

Tracking down memory leaks

After close checking of memory usage when boarding and exiting the Apache there's feedback saying that objects are getting freed and memory dumped, except it isn't. Only a small percentage. There are object references that are keeping the cockpit and avionic entities alive and preventing them from being released.   Going to take a little time to track each one down.   *edit*   The large memory leak located, was the TADS camera world not being released. It's been removed for now.   Source

Flexman

Flexman

Tonight I have mostly been coding...rotor RPM

Actually the rotor brake system. I'm not really clear what would happen if the rotor brake is off when you move the power levers from the Idle to Fly position. Procedures say DONT, return the switch back to on until the engines are at flight speed (approx 100%). Once the engines are happily settled at flight speed flip the brake off and the rotors begin to turn. Watch the rotor RPM gauge on the MFD until it's in the yellow close to 100% then you're good to go.   Conversely, I'm not too clear w

Flexman

Flexman

To facilitate new vehicles and multiplayer

In the process of sweeping changes to how the game loads vehicles and other data. A lot of data the describes how the virtual cockpit works, where you sit, angles of views etc. was not available early on and since my long term plan is a system in which we can serve you new vehicles down the wire, even adding the Chinook was going to need a bit of fiddling around. Some data was in the object LUA, some in an external file, some embedded. It wasn't the original intention to build vehicles this way,

Flexman

Flexman

Time is an illusion, game-time doubly so.

Combat-Helo presents a persistent world, day-time / night-time mission capability where you can stand around your base with your thumb up your rear-end. The game's heartbeat is the day cycle clock from which all missions, AI entity start/stop times, spawn times. All operate as offsets from mission start time. This presents the issue of real-time vs game time.   To offer variety of day/night operations in a real-time game could be tedious. I want to fly a night mission, but it's noon, I can't.

Flexman

Flexman

Third Person Cam - don't laugh

I'm in the process of adding the weapon systems; avionics and links to the stores. While that's coming along at a steady pace I often come across a bit of code and think "I could quickly do this..."   So I just quickly added the third-person cam; as we don't yet have any character models I'm having to use this laughable code generated place-holder.   Character height is 1.8m.   We're going to require a rigged humanoid with a number of animations for sitting, prone, kneeling, aiming,

Flexman

Flexman

Testing Autopatcher Software

Currently testing the autopatcher software. Broadband upstream speeds being what they are, don't make this a fast process. The project core files are currently around the 300mb mark spread over 1300+ files. This will come down when we package them.   The benefits of having an autopatcher is the ability to push updates for CombatHelo on a regular basis without too much hassle and players having to negotiate versions when playing with friends. Just run the updater and everyone should be in sync.

Flexman

Flexman

TADS/PNVS Stow

I wasn't sure about the STOW angles so I set the PNVS to 165 inboard (0=along the nose) and TADS 180' inboard. Activated via the NVS mode switch in the cockpit (or CTRL S). The CPG station doesn't seem to have the noeswheel/NVS panel unless we missed it. You'll just have to play as the pilot if you want to flip the switch by hand. Switch has 3 position, off (stows the sensors for transitional flight), normal for tracking head movement and fixed for boresight (straight ahead). The NVS Mode sw

Flexman

Flexman

Summer Sim, ups and downs but great fun

I want to thank Komodo Simulations for inviting me down for Summer Sim 2010, even though it didn't go according to plan we all learned a lot, I certainly did and this was really a chance to meet people and forge connections.   Rich was clearly deep in thought and concerned about hardware performance. I was lost in deep thought and concerned about software. Everyone else didn't seem to mind very much. What happened was, early in the day while I was re-compiling the demo to fix a stupid inverted

Flexman

Flexman

Summer Sim 2010 pre-flight

All the things we want to show but can't. Still making some final hour changes to get a robust demo working that can be operated by Joe Public (I'm told he's coming along). A simple flying demo that will show the technology, Afghan map, lighting and cockpit. It has the mark 1 flight model I keep tweaking. sounds could be better. I wish I had time to do the landing gear joints, it's hard to land without wheels.   Better stop with the bloggin and get back to writing.       Source

Flexman

Flexman

Stuff you thought was going to be simple but wasn't

Swimming was one.   Setting up controllers in XPlane is another.   Yes the things you thought were going to take a few days which turned into a week and a bit (you could almost say 'two weeks'). Josh at Leadwerks gave me a leg-up on how to put an MMO style launcher together and I've almost done wrapping up all the security for the necessary database, key code generation, CVS style updates and all the stuff we need to match individual content to clients. We'll make available downloadable cont

Flexman

Flexman

Static reflections or cubmapping

I was looking at the problem of glass again, reflections for cockpit instruments and improving the canopy and TADS optics. FSX manages to do so much with so little (a small 128x128 DDS) for shiny metal parts, such as chrome props it was time to look at adding cube mapping again.   I know this has been added to Leadwerks 2.40 but the corona problem doesn't seem to be fixed yet. Retro-fitting cube-maps to 2.31 is an easy task and the river mesh material was updated (we don't use the single heigh

Flexman

Flexman

Splash one load screen

We've been using the black and orange diamond logo for some time, it needed to reflect the game colour palette. As a 90's homage to sims of that era, a saturated colour scheme with the GUI elements using 90'-45' angles, black and orange. Two contrasting colours that are visible against most backgrounds.   It wasn't until after I had designed and coded a number of elements that I noticed other military games using the same colours.   Why bother with stuff like splash screens at this stage?  

Flexman

Flexman

Some more architecture

I think these have been on the SimHQ forums for a couple of days but I've been too busy to post any updates. Here AD has been adding some gardens to the Friday Mosque and adding it to the city. To overcome scale/zbuffer issues of having a large scene, AD has buried the the tiled gardens into the terrain, just like the river sections. The gardens sit on a large slab that is quite deep, this also accommodates uneven terrain.     No paved road surface currently. While Leadwerks supports

Flexman

Flexman

Some improvements to the MPDs

Added a simple frame-skip to MPD draw method, they don't need to be updated every single frame and it squeezes out a little extra. Found a "toob" video in which you get a couple of frames of the UTIL page. Anti-ice and FMS options, presumably this is where you can toggle pitch roll and yaw augmentation. Well seems like a good place to add that and we will need to flag some FMCS values for HTR which can auto-trim. Turning that off in the UTIL page will be handy. Looks like "NOE?" at the bottom to

Flexman

Flexman

Smoke ribbons, when emitters are too slow

Particle engines are commonly used for fire and smoke effects adding a lot of eye-candy for little effort. Every frame an emitter creates a number of billboard sprites along a vector. Normally this is not an issue when movement along this vector between frames is quite small.   But what if you're talking about something that moves really fast between frames? Such as a rocket launcher or space-ship? Fellow Brit and indy developer Cliff Harris of Gratuitous Space Battles fame ran into the same p

Flexman

Flexman

SimHQ Dev Diary update

AD has been finishing more of the villages and green zones around the region. You can read more about it here...   SimHQ Dev Diary update   This is "Dara" in the Northern region (See map below)   Source

Flexman

Flexman

SimHQ CH47 Chinook progress pics

Dave has put up some more preivew pics of the CH47 at SimHQ and on our Facebook page. SimHQ CH47 Chinook progress pics   CombatHelo on Facebook   Source

Flexman

Flexman

Showroom pic

I'm still hard at work on flight model code so not much to show or talk about. I'm feeling a bit sleep deprived but we're against the clock.   Dave is refreshed from his little break in the sun and has been rendering shadows for the opfor ground vehicles and CH47. I like these "showroom" pictures. Gives me a hankering to play an RTS game.     Source

Flexman

Flexman

Shaders the old fashioned way

Yes were still using Notepad to edit them. Well that's not quite accurate, I'm using Notepad++   What's nice about Leadwerks is being able to create a shader to add new effects or change how the engine renders something without anything getting in your way. So when Dave asks for a version of the cubemap that will blend in some particular way it was no problem to quickly put it together. He's doing terrible things to make filthy looking windshields, chrome toggle switches and this rather neat l

Flexman

Flexman

Scrappy day

Began preliminaries on the advanced flight model. This involved looking through the various classes and discussing best strategies to minimise future maintenance and ease integration.   Dor setup a flight-sim workstation and was researching the finer points of .GAU programming but was thwarted when her PC detected a Rookit virus infection picked up when working away over the weekend. She shouldn't have plugged into strange networks and let the client install software. Lesson learned the hard w

Flexman

Flexman

Saitek X65 - A Tale of Two Joysticks

I've been using this for testing and making profiles for Combat-Helo since the weekend. This is a really odd stick. It's perhaps the best built joystick out of the box I've ever had the privilege of using. And quite a looker too. The textured metal feel, the metal triggers and even a couple of the HATs. Oddly this level of build isn't consistent with several hats made from what feels like a poor quality plastic. But it wasn't broken or badly assembled, and nothing has broken yet.   If you didn

Flexman

Flexman

Saitek Instrument Panel test

Had a quick play with Saitek's DirectOutput SDK, results are mixed but not bad. The MFD resolution in Combat-Helo is a native 512x512 and the Saitek Flight Instrument Panel is VGA 320x240, there's a bit of difference.   Sampling the buffer down to a smaller surface and then adding a suitable BMP header to send over to the device. Remarkably easy. I'll have three more please Saitek   BUT please can you make an FIP version two with a 512x512 square ratio display? Or at least increase the ve

Flexman

Flexman

RotorCam - the stupidest idea in the history of helo simulation

Yup, perhaps the most nauseating camera view is back. One that a still screen-shot and an fps hungry FRAPs recording IMPROVES. RotorCam is like having your brain ripped out by your eye-stalks and soaked in vinegar. A virtual camera is strapped to the underside of blade number 1 and everything else is a blur. Only use I can think of is a debug aid when we get to blade flapping etc.   I'd like to thank Macklebee for helping me sort out the LUA object passing to get this working. RotorCam fo

Flexman

Flexman

Rotor heads will like this...rotor head

More detailing on the rotor head, details on the flap, pitch link and coning hinges.   Assembled audio for the CH-47 today in addition to implementing the Apache cold-start procedure.   Source

Flexman

Flexman

Rockets and Rails

This entry is not about the life of pioneer George Stephenson. The pylons seem capable of configuring themselves, got some elevation in there for aim assist if/when we add that.   I removed the LUA based weapon loading, it wasn't working out the way I hoped it might. There's a level of disconnect between LUA and the game-engine which added to the complexity of something that is already complex, when it didn't need to be.   Can finally get started on the arming now. Got a little sidetracked w

Flexman

Flexman

×
×
  • Create New...