BS1 + BS2 : 2 versions : mod affichage des axes des sticks RCTL + ENTER

Salle dédiée aux mods/addons et applications pour DCS World
Avatar de l’utilisateur

Topic author
hellfrog
Messages : 5117
Inscription : 22 août 2008

BS1 + BS2 : 2 versions : mod affichage des axes des sticks RCTL + ENTER

#1

Message par hellfrog »

http://forums.eagle.ru/showthread.php?t=37179

le gars utilise un throttle CH product linéaire (pas en arc) , et il veut conserver l'affichage de la barre de collectif et effacer les autres barres : c'est possible en modiifant un fichier lua.

l'astuce consiste à mettre en commentaire ces lignes :

Code : Tout sélectionner

AddElement(pitch_scale) AddElement(roll_scale) AddElement(stick_position) AddElement(rudder_scale) AddElement(rudder_index) AddElement(rud) AddElement(tick_50) AddElement(tick_35) AddElement(tick) AddElement(txt_brakes) AddElement(wheel_brake_mask) AddElement(wheel_brake) AddElement(txt_autopilot) AddElement(txt_autopilot_hover)
en mettant deux - devant :

Code : Tout sélectionner

--AddElement(pitch_scale) --AddElement(roll_scale) --AddElement(stick_position) --AddElement(rudder_scale) --AddElement(rudder_index) --AddElement(rud) --AddElement(tick_50) --AddElement(tick_35) --AddElement(tick) --AddElement(txt_brakes) --AddElement(wheel_brake_mask) --AddElement(wheel_brake) --AddElement(txt_autopilot) --AddElement(txt_autopilot_hover)


EDIT 02/2011 :

partie du code qui définit l'affichage de l'axe X
pitch_scale = CreateElement "ceTexPoly"
pitch_scale.name = "pitch_scale"
pitch_scale.vertices = {{-pitch_stick_movement_positive , -line_width},
{-pitch_stick_movement_positive , line_width},
{ pitch_stick_movement_negative , line_width},
{ pitch_stick_movement_negative , -line_width}}
pitch_scale.indices = default_box_indices
pitch_scale.material = "ARCADE_3_RED"
pitch_scale.init_rot = {90,0,0}
pitch_scale.tex_params = {256/512,176.5/512,0.5*tex_scale,2*tex_scale}
pitch_scale.parent_element = base.name
AddElement(pitch_scale)
partie du code qui definit l'affichage de l'axe Y
roll_scale = CreateElement "ceTexPoly"
roll_scale.name = "roll_scale"
roll_scale.vertices = {{-size , -line_width},
{-size , line_width},
{ size , line_width},
{ size , -line_width}}
roll_scale.indices = default_box_indices
roll_scale.material = "ARCADE_3_RED"
roll_scale.tex_params = {256/512,176.5/512,tex_scale,2*tex_scale}
roll_scale.parent_element = base.name
AddElement(roll_scale)
partie du code pour le rudder :
rudder_scale = Copy(roll_scale)
rudder_scale.init_pos = {0,-(pitch_stick_movement_positive + 0.1*size)}
AddElement(rudder_scale)

rudder_index = Copy(roll_scale)
rudder_index.vertices = {{-2.0*line_width , -line_width},
{-2.0*line_width , line_width},
{ 2.0*line_width , line_width},
{ 2.0*line_width , -line_width}}
rudder_index.controllers = {{"rudder",size},{"rotate",math.rad(90)}}
rudder_index.parent_element = rudder_scale.name
AddElement(rudder_index)
partie du code pour le collectif
local collective_size = pitch_stick_movement_negative

collective_scale = Copy(pitch_scale)
collective_scale.vertices = {{0, -line_width},
{0, line_width},
{collective_size , line_width},
{collective_size, -line_width}}
collective_scale.init_pos = {-(size + collec_shift),0}
AddElement(collective_scale)
collective_index = Copy(roll_scale)
collective_index.vertices = {{-2.0*line_width , -line_width},
{-2.0*line_width , line_width},
{ 2.0*line_width , line_width},
{ 2.0*line_width , -line_width}}
collective_index.controllers = {{"collective",collective_size}}
collective_index.init_rot = {-90,0,0}
collective_index.parent_element = collective_scale.name
AddElement(collective_index)
partie pour frein de roues :
local brakes_pos = {-size,0.85*pitch_stick_movement_negative - ds}

txt_brakes = CreateElement "ceStringPoly"
txt_brakes.name = "txt_brakes"
txt_brakes.material = "font_ARCADE_RED"
txt_brakes.init_pos = brakes_pos
txt_brakes.alignment = "LeftBottom"
txt_brakes.stringdefs = {0.0035, 0.0035,0,0}
txt_brakes.value = "B"
txt_brakes.controllers = {{"parking_brake"},{"blinking"}}
txt_brakes.parent_element = base.name
AddElement(txt_brakes)
[SIGPIC]http://www.kirikoo.net/images/8WoodMAn- ... 212448.png[/img][/SIGPIC] (\_/) (_'.') ..i72600k@4.5GHz + AsusSabertoothZ77 + 16Go GSkill10700 + AC Noctua + Raptor + Win7x64Ult + WH MFDs SaitekThr 1920x1080x3 dt 1 tactile 6950 2G
(")_(")
[/align]
Avatar de l’utilisateur

Ghostrider
Grand Manitou
Grand Manitou
Messages : 28362
Inscription : 04 août 2001

#2

Message par Ghostrider »

Ca c est une bonne info !!!!

Pour info ca modifie l aspect de ca :

Image
Moniteur F/A-18C à l AVM http://avm-fr.com/
ImageAmd 3700x - 64 go DDR 4 3200 -Asus Tuf x570 gaming wifi - GTX 1080 ti 11go - SSD : 1 to NVME ( OS + simus) + 1ssd 500 GO Mx 500 simus + 1 SSD 256 GO (games) + 5 To HD(s)+ TM Warthog + Grip F/A18 - Track IR 5 - Pallo TPR - Deskpit 2 MFD+ICP +Oculus tift
Avatar de l’utilisateur

Topic author
hellfrog
Messages : 5117
Inscription : 22 août 2008

fenetre controllers multi ecran dual view

#3

Message par hellfrog »

déterrage de topic + edition 1er post

j'ai trouvé que l'on peut afficher cette fenetre
au centre de la fentre principale
en dual view ou multiview

car sinon elle part sur l'écran de gauche ou droite, et c'est embêtant,

en modifiant le fichier
Black Shark\Scripts\Aircrafts\Ka-50\Cockpit\ControlsIndicator\ControlsIndicator_page.lua

ainsi :

trouvez les lignes :

Code : Tout sélectionner

base.controllers = {{"show"},{"screenspace_position",2,-(aspect - 2*size),0}, {"screenspace_position",1,0,0}}
et remplacez par :

Code : Tout sélectionner

base.controllers = {{"show"},{[color=LemonChiffon][B][I]"[/I][/B][I][B]screenspace_position",2,0,0[/B][/I][/color]}, {"screenspace_position",1,0,0}}
vous pouvez aussi jouer sur la taille en modifiant :

Code : Tout sélectionner

local aspect = 5/4 --valeur d'origine : LockOn_Options.screen.aspect local size = 0.1 -- valeur d'origine : 0.15 local tex_scale = 0.1/size --valeur d'origine : 0.25/size
je cherche encore pour placer cette fenetre où je veux (à droite, à gauche, plus bas, plus haut...) en solo ET en multi , en mono ecran ET en bi ecran...
très utile pour "visualiser" le degré de trim, notemment des palos


EDIT 02/2011


ceci est valable seulement pour deux ecrans cote à cote,

our des ecrans l'un au dessus de l'autre il faut d'autres paramètres... que je suis en train de chercher...
[SIGPIC]http://www.kirikoo.net/images/8WoodMAn- ... 212448.png[/img][/SIGPIC] (\_/) (_'.') ..i72600k@4.5GHz + AsusSabertoothZ77 + 16Go GSkill10700 + AC Noctua + Raptor + Win7x64Ult + WH MFDs SaitekThr 1920x1080x3 dt 1 tactile 6950 2G
(")_(")
[/align]
Avatar de l’utilisateur

Topic author
hellfrog
Messages : 5117
Inscription : 22 août 2008

#4

Message par hellfrog »

travail sur : .\scripts\aircrafts\ka-50\cockpit\controlsindicator\controlsindicator_page.lua


la ligne
local size = 0.15 -- original
définit la taille de la fenetre des axes

si vous voulez la réduire ou l'agrandir, multipliez 0.15 par le coefficient souhaité

par exemple 0.15 x 1/2 = 0.07 donne une fenetre deux fois plus petite et 0.15 x 2 = 0.3 donne une fenetre deux fois plus grande.



la ligne
local line_width = (4.5/512)/tex_scale -- original
définit la largeur des curseur de throttle, collectif, et rudder


si vous voulez les doubler, faites 4.5 x 2 = 9 et vous obtenez :
local line_width = (9/512)/tex_scale




la ligne

local orange_mat = MakeMaterial("",{255,100,0,50}) --original -- "RED_TRANSPARENT"
définit la couleur du fond

par exemple :
local orange_mat = MakeMaterial("",{255,255,174,10})
donne un fond beige très clair peu translucide

local orange_mat = MakeMaterial("",{0,0,0,100})
donne un fond noir très transparent

selon la syntaxe du fichier .\scripts\aircrafts\ka-50\cockpit\materials.lua :
-- format : R, G, B, transparency (alpha channel)
materials["RED"] = {255, 0, 0, 255}


la ligne
pitch_scale.material = "ARCADE_3_RED" correspond dans materials.lua à = {"arcade.tga",materials["RED"]}
et définit la couleur des axes verticaux.

par exemple
pitch_scale.material = MakeMaterial("arcade.tga",{255,255,200,255})
crée des lignes verticales jaune très pale non transparentes
[SIGPIC]http://www.kirikoo.net/images/8WoodMAn- ... 212448.png[/img][/SIGPIC] (\_/) (_'.') ..i72600k@4.5GHz + AsusSabertoothZ77 + 16Go GSkill10700 + AC Noctua + Raptor + Win7x64Ult + WH MFDs SaitekThr 1920x1080x3 dt 1 tactile 6950 2G
(")_(")
[/align]
Avatar de l’utilisateur

Topic author
hellfrog
Messages : 5117
Inscription : 22 août 2008

Couleurs Et Taille [resolu]

#5

Message par hellfrog »

bon je suis arrivé à changer taille couleur et position des axes, curseurs, et texte :

lignes grises, fond noir transparent, curseurs oranges, level throttle 50% vert et 30% cyan, texte frein de parking : remplacé B par PARK et modifié taille


Image

mais j'ai encore du mal pour la position du cadre sur l'écran secondaire...


en lien mon fichier controlsindicator_page.lua actuel

les lignes modifiées et syntaxe pour les couleurs sont commentées dans le fichier
[SIGPIC]http://www.kirikoo.net/images/8WoodMAn- ... 212448.png[/img][/SIGPIC] (\_/) (_'.') ..i72600k@4.5GHz + AsusSabertoothZ77 + 16Go GSkill10700 + AC Noctua + Raptor + Win7x64Ult + WH MFDs SaitekThr 1920x1080x3 dt 1 tactile 6950 2G
(")_(")
[/align]
Avatar de l’utilisateur

Topic author
hellfrog
Messages : 5117
Inscription : 22 août 2008

#6

Message par hellfrog »

position horizontale de la fenetre :

le centre de l'écran est 0
la gauche est -1
la droite est +1

tte valeur décimale entre -1 et +1 définit la position horizontale de la fenetre

la syntaxe proposée juste avant est la bonne


me reste à trouver pour Y la position verticale
[SIGPIC]http://www.kirikoo.net/images/8WoodMAn- ... 212448.png[/img][/SIGPIC] (\_/) (_'.') ..i72600k@4.5GHz + AsusSabertoothZ77 + 16Go GSkill10700 + AC Noctua + Raptor + Win7x64Ult + WH MFDs SaitekThr 1920x1080x3 dt 1 tactile 6950 2G
(")_(")
[/align]
Avatar de l’utilisateur

Topic author
hellfrog
Messages : 5117
Inscription : 22 août 2008

position horizontale et verticale [RESOLU]

#7

Message par hellfrog »

il faut modifier la ligne

base.controllers = {{"show"},{"screenspace_position",2,-(aspect - 2*size),0}, {"screenspace_position",1,0,0}}

Configuration de test :

Windows 7
fullscreen et non fenetré


on peut définir deux positions différentes de la fenetre des axes de controlleurs de jeu :

une pour la vue principale F1[INDENT]vue F1
{"screenspace_position",2,X,Y}
[/INDENT]une pour la vue sans cockpit[INDENT]vue ALT F1
{"screenspace_position",1,X,Y}
[/INDENT]ecrans superposés : meme résolution, l'un au dessous de l'autre, le principal en haut[INDENT] X :
[/INDENT][INDENT][INDENT] gauche[INDENT]-1+4*size-0.005,
[/INDENT][/INDENT][/INDENT][INDENT][INDENT] milieu
[/INDENT][/INDENT][INDENT][INDENT][INDENT]0
[/INDENT][/INDENT][/INDENT][INDENT][INDENT] droite
[/INDENT][/INDENT][INDENT][INDENT][INDENT]1-3.5*size+0.008
[/INDENT][/INDENT][/INDENT][INDENT] Y :
[/INDENT][INDENT][INDENT]affichage sur l'écran du haut:
[/INDENT][/INDENT][INDENT][INDENT][INDENT]haut
[/INDENT][/INDENT][/INDENT][INDENT][INDENT][INDENT][INDENT]2-3*size
[/INDENT][/INDENT][/INDENT][/INDENT][INDENT][INDENT][INDENT]centre
[/INDENT][/INDENT][/INDENT][INDENT][INDENT][INDENT][INDENT] 1.5-3*size (haut de la fenetre au milieu)
1.5+3*size (bas de la fenetre au milieu)
1.5 (milieu de la fenetre au milieu)
[/INDENT][/INDENT][/INDENT][/INDENT][INDENT][INDENT][INDENT]bas
[/INDENT][/INDENT][/INDENT][INDENT][INDENT][INDENT][INDENT]1+3*size
[/INDENT][/INDENT][/INDENT][/INDENT][INDENT][INDENT]affichage sur l'écran du bas:
[/INDENT][/INDENT][INDENT][INDENT][INDENT]haut
[/INDENT][/INDENT][/INDENT][INDENT][INDENT][INDENT][INDENT]1-3*size
[/INDENT][/INDENT][/INDENT][/INDENT][INDENT][INDENT][INDENT]centre
[/INDENT][/INDENT][/INDENT][INDENT][INDENT][INDENT][INDENT]0.5
[/INDENT][/INDENT][/INDENT][/INDENT][INDENT][INDENT][INDENT]bas
[/INDENT][/INDENT][/INDENT][INDENT][INDENT][INDENT][INDENT]0
[/INDENT][/INDENT][/INDENT][/INDENT]voila en combinant ces valeurs et avec qqs tests vous pouvez maintenant placer cette fenetre où vous voulez !!!

cumulé avec des couleurs plus discrètes et de meilleurs contrastes pour une meilleur visibilité, cet outil redevient très utile sans gâcher l'affichage !!
[SIGPIC]http://www.kirikoo.net/images/8WoodMAn- ... 212448.png[/img][/SIGPIC] (\_/) (_'.') ..i72600k@4.5GHz + AsusSabertoothZ77 + 16Go GSkill10700 + AC Noctua + Raptor + Win7x64Ult + WH MFDs SaitekThr 1920x1080x3 dt 1 tactile 6950 2G
(")_(")
[/align]
Avatar de l’utilisateur

Topic author
hellfrog
Messages : 5117
Inscription : 22 août 2008

#8

Message par hellfrog »

Image
[SIGPIC]http://www.kirikoo.net/images/8WoodMAn- ... 212448.png[/img][/SIGPIC] (\_/) (_'.') ..i72600k@4.5GHz + AsusSabertoothZ77 + 16Go GSkill10700 + AC Noctua + Raptor + Win7x64Ult + WH MFDs SaitekThr 1920x1080x3 dt 1 tactile 6950 2G
(")_(")
[/align]
Avatar de l’utilisateur

Topic author
hellfrog
Messages : 5117
Inscription : 22 août 2008

Dernier Update

#9

Message par hellfrog »

Image

derniere version du fichier,

nettoyé, commenté en anglais

actuellement le graph s'affiche sur l'écran principal en haut à gauche
fond noir transparent, lignes grises, curseurs orange
lignes de niveau throttle bleu cyan 30% et vert 50%
taille moitié par rapport à origine

attention si vous n'avez qu'un écran il est probable qu'il faille modifier les lignes du post précédent
(remplacer 2 par 1 pour la coordonnee verticale)

compilé en version Modman 7.3 compatible
Pièces jointes

[L’extension « zip » a été désactivée et ne peut plus être affichée.]

[L’extension « zip » a été désactivée et ne peut plus être affichée.]

[SIGPIC]http://www.kirikoo.net/images/8WoodMAn- ... 212448.png[/img][/SIGPIC] (\_/) (_'.') ..i72600k@4.5GHz + AsusSabertoothZ77 + 16Go GSkill10700 + AC Noctua + Raptor + Win7x64Ult + WH MFDs SaitekThr 1920x1080x3 dt 1 tactile 6950 2G
(")_(")
[/align]
Avatar de l’utilisateur

Topic author
hellfrog
Messages : 5117
Inscription : 22 août 2008

#10

Message par hellfrog »

[SIGPIC]http://www.kirikoo.net/images/8WoodMAn- ... 212448.png[/img][/SIGPIC] (\_/) (_'.') ..i72600k@4.5GHz + AsusSabertoothZ77 + 16Go GSkill10700 + AC Noctua + Raptor + Win7x64Ult + WH MFDs SaitekThr 1920x1080x3 dt 1 tactile 6950 2G
(")_(")
[/align]
Avatar de l’utilisateur

Topic author
hellfrog
Messages : 5117
Inscription : 22 août 2008

#11

Message par hellfrog »

WIP pour BS2...
[SIGPIC]http://www.kirikoo.net/images/8WoodMAn- ... 212448.png[/img][/SIGPIC] (\_/) (_'.') ..i72600k@4.5GHz + AsusSabertoothZ77 + 16Go GSkill10700 + AC Noctua + Raptor + Win7x64Ult + WH MFDs SaitekThr 1920x1080x3 dt 1 tactile 6950 2G
(")_(")
[/align]
Avatar de l’utilisateur

Topic author
hellfrog
Messages : 5117
Inscription : 22 août 2008

Adaptation réussie pour BS2

#12

Message par hellfrog »

voir fichier fourni en lien et lire la discussion depuis le début SVP
Pièces jointes

[L’extension « zip » a été désactivée et ne peut plus être affichée.]

[SIGPIC]http://www.kirikoo.net/images/8WoodMAn- ... 212448.png[/img][/SIGPIC] (\_/) (_'.') ..i72600k@4.5GHz + AsusSabertoothZ77 + 16Go GSkill10700 + AC Noctua + Raptor + Win7x64Ult + WH MFDs SaitekThr 1920x1080x3 dt 1 tactile 6950 2G
(")_(")
[/align]
Répondre

Revenir à « Mods et Applications »