Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
#4382065 - 09/29/17 01:35 PM Possibility to define MFD's, gauges and indicators with someting like an INI file?  
Joined: Dec 2010
Posts: 1,179
Viper1970 Offline
Member
Viper1970  Offline
Member

Joined: Dec 2010
Posts: 1,179
Bavaria, near Munich
As I looked in the code, I thought about if its possible to extract the instrument definition of the cockpits to an external file like e.g. the eech.ini is.

I mean generating some different needles in size (small, medium, large) and some bargraphs and define their color, steps, angel of degree, coordinates and maybe even the size itself if possible in an external file or in the eech.ini. for every helicopter. Maybe its also possible to make some simple glowing indication lamps which can be definded via coordinate. Same principle could be used for MFD's. Something similar the MSFS had or still has (have not made any panels for the newer FS versions since years now)

This way it could be easier to make a cockpit and adjust the instruments. At the moment as far as I understood this has to be changed in the code itself (aphavoc\source\gunships\cockpits\) and has to be compiled every time to check where those indicators are placed. Maybe I'm thinking nonsense here and there exists a simpler way to adjust those coordinates biggrin

If such an ini-file would exist it would be much easier to make a new cockpit. O.k. no 3D gauges, only plain texture and indication needles or bars like in the Havoc, but I think its not so bad at all (and frame rate friendly). The alternative to make good looking 3D instruments for HQ cockpits still remains, by just deactivating the appropriate ini.

P.S:

I did not mean complete instruments, this was already discussed before. I mainly think of extracting those definitions to an external file for making it easier to adjust this code. The gauge (background texture only) and the needle still remain simple graphics nothing more.

Last edited by Viper1970; 09/29/17 02:00 PM.

CockpitPC1: Ryzen9 5950X|64GB DDR4|512GB M2 SSD|2TB M2 SSD|Geforce RTX3090|Reverb G2|Win11Pro
CockpitPC2: PhenomII X6 1100T|32GB DDR2|2x 2TB HDD|2x Geforce GTX660 SLI|Win7Pro64
ComUnitPC1: Ryzen9 3900XT|32GB DDR4|2x 2TB HDD|Geforce RTX2070|Win11 Pro
ComUnitPC2: PhenomII X6 1100T|16GB DDR2|2x 2TB HDD|Geforce GTX660|Win7Pro64
ComUnitPC3: AthlonII X2 250|2GB DDR2|2TB HDD|Geforce 5950Ultra|2x VoodooII SLI|WinXPPro32&WinME
ComUnitPC4: K6-2+|768MB SDR|640GB HDD|Geforce 256DDR|VoodooI|Win98SE
#4382108 - 09/29/17 04:30 PM Re: Possibility to define MFD's, gauges and indicators with someting like an INI file? [Re: Viper1970]  
Joined: Dec 2010
Posts: 1,883
messyhead Offline
Member
messyhead  Offline
Member

Joined: Dec 2010
Posts: 1,883
There was some talk a while ago of making the cockpit components more modular, as there's a lot of duplicated code throughout all of the cockpits. So these could be kept in some common classes in the code, and reused in a better way. That would require quite a bit of a rewrite of the cockpits to get working.

The way you're suggesting is kind of the old way that cockpits were drawn, for example the old havoc cockpit. It used Direct Draw to basically draw lines between a set of coordinates, and then animate that line. I'm not sure that would be much of an improvement, as the 3D cockpits and gauges are actually easier to do. I think they also look more realistic than a drawn textured gauge.

In the lightwave scene, each object is given a label. Then that label is used in the code to move the object. This works for needles and other gauges.

For the MFDs, these are still drawn using DD functions, but even those are layered. So the components in an MFD could be separated out and made reusable e.g. the Flight display has different components for the compass heading, the flight ladder, the speed etc. And the MFD is also labelled in the scene in LW and with the texture name, so that the code knows where to draw the MFD.

I suppose that's something that could be on the development road map, to make it easier to add new cockpits. But there's probably other things that need done first that will bring greater improvements. Perhaps some other properties could be made external, for example flight model, or names of objects, or things like that.

#4382120 - 09/29/17 05:10 PM Re: Possibility to define MFD's, gauges and indicators with someting like an INI file? [Re: Viper1970]  
Joined: Dec 2010
Posts: 1,179
Viper1970 Offline
Member
Viper1970  Offline
Member

Joined: Dec 2010
Posts: 1,179
Bavaria, near Munich
Ah o.k. , now I understand how those things are working. Thank's for your explanation.


Quote
Perhaps some other properties could be made external, for example flight model, or names of objects, or things like that.


Yes, that's something I also thought about, but as I'm no coder I had no idea if its possible at all. In the broadest sense something comparable like the directory structure and config files the MSFS has. This would be a dream but I think it would also be a lot of work to do, because EECH originally was never planed with such an expandability in mind.

This could really be a great benefit somewhere in future.


CockpitPC1: Ryzen9 5950X|64GB DDR4|512GB M2 SSD|2TB M2 SSD|Geforce RTX3090|Reverb G2|Win11Pro
CockpitPC2: PhenomII X6 1100T|32GB DDR2|2x 2TB HDD|2x Geforce GTX660 SLI|Win7Pro64
ComUnitPC1: Ryzen9 3900XT|32GB DDR4|2x 2TB HDD|Geforce RTX2070|Win11 Pro
ComUnitPC2: PhenomII X6 1100T|16GB DDR2|2x 2TB HDD|Geforce GTX660|Win7Pro64
ComUnitPC3: AthlonII X2 250|2GB DDR2|2TB HDD|Geforce 5950Ultra|2x VoodooII SLI|WinXPPro32&WinME
ComUnitPC4: K6-2+|768MB SDR|640GB HDD|Geforce 256DDR|VoodooI|Win98SE

Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

If you shop on Amazon use this Amazon link to support SimHQ
.
Social


Recent Topics
Dickey Betts was 80
by Rick_Rawlings. 04/19/24 01:11 AM
Exodus
by RedOneAlpha. 04/18/24 05:46 PM
Grumman Wildcat unique landing gear
by Coot. 04/17/24 03:54 PM
Peter Higgs was 94
by Rick_Rawlings. 04/17/24 12:28 AM
Whitey Herzog was 92
by F4UDash4. 04/16/24 04:41 PM
Anyone can tell me what this is?
by NoFlyBoy. 04/16/24 04:10 PM
10 Years ago MV Sewol
by wormfood. 04/15/24 08:25 PM
Pride Of Jenni race win
by NoFlyBoy. 04/15/24 12:22 AM
It's Friday: grown up humor for the weekend.
by NoFlyBoy. 04/12/24 01:41 PM
OJ Simpson Dead at 76
by bones. 04/11/24 03:02 PM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0