SOFTTH 2.08b et DCS : besoin aide configuration

Bugs, problèmes d'installation, de patch, optimisation
Avatar de l’utilisateur

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

SOFTTH 2.08b et DCS : besoin aide configuration

#1

Message par hellfrog »

3 ecrans 1920x1080 sur 6970 2 Go, nView actif
ecran principal = centre

DCS marche
hardware marche
3 ecrans marchent
softTH marche en mode simple (3 écrans par defaut, mais peu d'intérêt par rapport à DCS seul)

MAIS je voudrais afficher :

DCS renderer: mainview 2 x (1920 x1080)
et exporter avec sofTH entre le pixel 810,0 sur ecran de gauche et 4650,0 sur ecran de droite de mamnière à centrer cette vue 2x1920 sur l'écran central
Pour ensuite utilser les zones de gauche et droite pour les exports et Helios. (ecran drroit tactile)

Mais softTH plante et me renvoie un log où les dimensions ne correspondent pas du tout à ce que j'ai configuré...

options.lua

Code : Tout sélectionner

["aspect"] = 4650/1080, ["haze"] = 1, ["HDR"] = 0, ["TranspSSAA"] = true, ["cockpitShadows"] = false, ["effects"] = 3, ["textures"] = 2, ["width"] = 4650, ["MSAA"] = 3, ["height"] = 1080,
sofTHconfig
[main]
renderResolution=4650x1080
; DCS renderer 1920+1920 for mainview +810 for exports

; Your width/height/aspect in the options.lua must match the one you have set in the config.Softthconfig - If one number isn't right nothing will work.
; 3 x 1920x1080 screens from left to right, with AMD nView, main in windows is center screen, extended desktop on3 monitors

nonlocalFormat=RGB16D
keepComposition=1 ; 1 helios
smoothing=0 ; 0 DCS
debugD3D=0
zClear=0 ;0 DCS
vsync=0
tripleBuffer=0
screenshotFormat=jpg
dllPathD3D9=auto
dllPathDXGI=auto
dllPathD3D11=auto

[overrides]
forceResolution=0
antialiasing=0
processAffinity=1 ;
FOVForceHorizontal=0
FOVForceVertical=0

[debug]
compatibleIB=0
compatibleTex=0
compatibleVB=0
enableVBQuirk=1 ; 1 DCS

[head_primary]
; center from mainview on center screen + half left on left screen and half right on right screen see below head_1 & _2
devID=0
sourceRect=810,0,2730,1080 ; select 810 to 2730=1920+810 pixels from DCS renderer mainview
destRect=0,0,1920,1080 ; display on center screen
;The destRect function doesn't start counting at x0/y0 of your overall resolution. -this does the sourceRect line already -
;The destRect= starts counting in the x0/y0 of your target monitor.
;Keep in mind that SoftTH can only use the resolution your Monitor is set in windows properties when using the "destRect=" function.
; question is if is Softth able to teleport different 'grabs' to a single monitor : NO. Only one "destRect" line for one monitor.
screenMode=1920x1080
fpsLimit=30

[head_1]
; (exports à ajouter ensuite) ; mainview left on second half
devID=1
sourceRect=0,0,810,1080 ; select 0 to 810 pixels from renderer mainview
destRect=810,0,1920,1080 ; display at second half of left screen
transportResolution=810x1080
transportMethod=auto
noSync=0
screenMode=1920x1080
fpsLimit=30

[head_2]
; right screen right of mainview on first half of screen, Helios on second half (tactile screen)
devID=2
sourceRect=2730,0,3840,1080 ;
destRect=0,0,810,1080 ;
transportResolution=810x1080
transportMethod=auto
noSync=0
screenMode=1920x1080
fpsLimit=30
SoftTH log

Code : Tout sélectionner

3968: 0.000 SoftTH: config: main.renderResolution: 4650x1080 3968: 0.000 SoftTH: config: Additional heads: 2 3968: 0.000 SoftTH: config: head_primary.screenMode: 1920x1080 3968: 0.000 SoftTH: config: head_primary.sourceRect: 810,0,[b][i][highlight=#ffff00]3540[/highlight][/i][/b],1080 3968: 0.000 SoftTH: config: head_primary.destRect: 0,0,1920,1080 3968: 0.000 SoftTH: config: head_1.screenMode: not set 3968: 0.000 SoftTH: config: head_1.sourceRect: 0,0,810,1080 3968: 0.000 SoftTH: config: head_1.destRect: 810,0,2730,1080 3968: 0.000 SoftTH: config: head_1.transportResolution: 810x1080 3968: 0.000 SoftTH: config: head_2.screenMode: not set 3968: 0.000 SoftTH: config: head_2.sourceRect: 2730,0,[b][i][highlight=#ffff00]6570[/highlight][/i][/b],1080 3968: 0.000 SoftTH: config: head_2.destRect: 0,0,810,1080 3968: 0.000 SoftTH: config: head_2.transportResolution: 810x1080

Je pensais que ça devrait marcher...
qqn a une idée ?
Avatar de l’utilisateur

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

Re: SOFTTH 2.08b et DCS : besoin aide configuration

#2

Message par hellfrog »

Bon en fait ça n'a pas d'intérêt, si les ecrans sont tous locaux, softTH désactive le smoothing.
autant placer les vues directement en lua...

à part pour les bezel... faut que je vois encore ça...


EDIT

bon ça marche tjrs pas

config options.lua
["aspect"] =5960/1080, -- 810 pour exports gauches + 2 x 1920 + 810 pour exports droits + 2 x 100 bezel
["haze"] = 1,
["HDR"] = 0,
["TranspSSAA"] = true,
["cockpitShadows"] = false,
["effects"] = 3,
["textures"] = 2,
["width"] = 5960,
["MSAA"] = 3,
mon monitorsetup
_ = function(p) return p; end;
name = _('CS');
Description = '3 monitors + Helios + exports + SoftTH'

--[[displays = -- screen table also contain x, y members which mark top left corner of DCS window

note about fullscreen : directx doesn't allow fullscreen applications with resolutions more than primary display can handle,
so multimonitor presets in DCS will fall back to windowed mode if fullscreen initialization failed ( this info also will be printed to dcs.log)

{
[1] =
{
x = 0, -- note : x == 0 and y == 0 is always mark primary windows display
y = 0,
width = 1920,
height = 1080
},
[2] =
{
x = -1920, -- mark that secondary display is on left side of primary display
y = 0,
width = 1920,
height = 1080
},
[3] =
{
x = 1920, -- mark that third display is on right side of primary display
y = 0,
width = 1920,
height = 1080
}
}
]]--
function reconfigure_for_unit(unit_type) --unit type is string with unit name
--[[if unit_type == "A-10C" then

-- EMC (MFCD_init.lua)
ED_A10C_LEFT_MFCD
ED_A10C_RIGHT_MFCD

(CDU_init.lua)
ED_A10C_CDU

(DIGIT_CLK_init.lua)
ED_A10C_CLOCK

(AN_ALR69V_init.lua)
ED_A10C_RWR

(CMSP_init.lua)
ED_A10C_CMSP

(CMSC_init.lua)
ED_A10C_CMSC

(freq_status_init.lua)
ED_A10C_UHF_FREQUENCY_STATUS

(preset_channel_init.lua)
ED_A10C_UHF_PRESET_CHANNEL

(repeater_init.lua)
ED_A10C_UHF_REPEATER ]]--
if unit_type == "Ka-50" then

Viewports =
{
Center =
{
x = 810;
y = 0;
width = 4040; -- (3840=2*1920) + 100x2 bezel
height = 1080;
viewDx = 0;; -- Fine tune this to move your center-viewpoint left/rigth
viewDy = 0; -- Fine tune this to move your center-viewpoint up/down
aspect = 4040/1080;
}

Gui =
{
x = 1920;
y = 0;
width = 1920;
height = 1080;
}

UIMainView = Gui -- to maintain GUI on center screen
-- UIMainView = Viewports.Center

-- EMC(CautionLights_panel.lua)
ED_KA50_CautionLights =
{
x = 4650; --2x 1920 + 2 x 100 bezel
y = 0;
width = 810;
height = 100;
}

-- EMC (Ekran_init.lua)
ED_KA50_Ekran =
{
x = 4650;
y = 101;
width = 80;
height = 80;
}

-- EMC (UV_26_init.lua)
ED_KA50_UV26 =
{
x = 4650+(810/2)-(50/2); -- 4650 + CautionLights.Width/2 - UV26.width/2
y = 100;
width = 50; --129x51
height = 45;
}

-- EMC (PVI_init.lua)
ED_KA50_PVI =
{
x = 4650+810-150; --4650 + CautionLights.Width - PVI.Width
y = 100;
width = 150; -- 356x92
height = 54;
}

-- EMC (SHKVAL_init.lua)
ED_KA50_Shkval =
{
x = 0;
y = 0;
width = 410; --356x234
height = 272;
}

-- EMC (ABRIS_init.lua)
ED_KA50_ABRIS =
{
x = 411; -- 0 + Shkval.Width
y = 0;
width = 400; -- 356x438
height = 504;
}

}

else
Viewports =
{
Center =
{
x = 0;
y = 0;
width = screen.width;
height = screen.height;
viewDx = 0;
viewDy = 0;
aspect = screen.aspect;
}
}

Gui =
{
x = screen.width / 3;
y = 0;
width = screen.width / 3;
height = screen.height;
}

UIMainView = Gui -- to maintain GUI on center screen
-- UIMainView = Viewports.Center

-- RIGHT_MFCD = nil -- remove for others
end
end
mon softTHConfig
; softTH's d3d9.dll as well as the config.softthconfig in the Game/bin directory.
; -use the "app-key+S" (You should see all data that is rendered at the primary screen) and make a screen-shoot again.
; You will find them in : C:\Users\>User name<\Documents\SoftTH\Screenshots
; Please also post the SoftTH.log you find in C:\Users\>User name<\Documents\SoftTH
;
[main]
renderResolution=5960x1080
; DCS renderer 1920+1920 for mainview + 810 for export views x2 + 2x100 bezel

; Your width/height/aspect in the options.lua must match the one you have set in the config.Softthconfig - If one number isn't right nothing will work.
; 3 x 1920x1080 screens from left to right, with AMD nView, main in windows is center screen, extended desktop on3 monitors

nonlocalFormat=RGB16D
keepComposition=1 ; 1 helios
smoothing=0 ; 0 DCS
debugD3D=0
zClear=0 ;0 DCS
vsync=0
tripleBuffer=0
screenshotFormat=jpg
dllPathD3D9=auto
dllPathDXGI=auto
dllPathD3D11=auto

[overrides]
forceResolution=0
antialiasing=0
processAffinity=1 ;
FOVForceHorizontal=0
FOVForceVertical=0

[debug]
compatibleIB=0
compatibleTex=0
compatibleVB=0
enableVBQuirk=1 ; 1 DCS

[head_primary]
; center from mainview on center screen + half left and half right on left screen and right screen
devID=0
sourceRect=2020,0,3940,1080 ; select 1920 + 100 bezel to 3840+100 bezel pixels from DCS renderer mainview
destRect=0,0,1920,1080 ; display on center screen
transportResolution=1920x1080
transportMethod=auto
;The destRect function doesn't start counting at x0/y0 of your overall resolution. -this does the sourceRect line already -
;The destRect= starts counting in the x0/y0 of your target monitor.
;Keep in mind that SoftTH can only use the resolution your Monitor is set in windows properties when using the "destRect=" function.
; my question is if is Softth able to teleport different 'grabs' to a single monitor
; NO. Only one "destRect" line for one monitor.
noSync=0
screenMode=1920x1080
fpsLimit=30

[head_1]
; left screen exports on first half of screen + mainview left on second half
devID=1
sourceRect=0,0,1920,1080 ; select 0 to 810 pixels exports + 810-1920 from renderer mainview
destRect=0,0,1920,1080 ; display at left screen
transportResolution=1920x1080
transportMethod=auto
noSync=0
screenMode=1920x1080
fpsLimit=30

[head_2]
; right screen right of mainview on first half of screen, exports + Helios on second half (tactile screen)
devID=2
sourceRect=4040,0,5860,1080 ; 3940+100 bezel to 3940+1920
destRect=0,0,1920,1080 ;
transportResolution=1920x1080
transportMethod=auto
noSync=0
screenMode=1920x1080
fpsLimit=30
sofTH.log
4044: 0.000 SoftTH: SoftTH v2.08 x64 alpha by Kegetys (Launcher.exe, dynamic link)
4044: 0.000 SoftTH: Arguments: <"C:\JEUX\SIMU\DCS World\bin/Launcher.exe">
4044: 0.000 SoftTH: Config path: <C:\JEUX\SIMU\DCS World\bin\config.SoftTHconfig>
4044: 0.000 SoftTH: config: main.renderResolution: 5960x1080
4044: 0.000 SoftTH: config: Additional heads: 2
4044: 0.000 SoftTH: config: head_primary.screenMode: 1920x1080
4044: 0.000 SoftTH: config: head_primary.sourceRect: 2020,0,5960,1080
4044: 0.000 SoftTH: config: head_primary.destRect: 0,0,1920,1080
4044: 0.000 SoftTH: config: head_1.screenMode: 1920x1080
4044: 0.000 SoftTH: config: head_1.sourceRect: 0,0,1920,1080
4044: 0.000 SoftTH: config: head_1.destRect: 0,0,1920,1080
4044: 0.000 SoftTH: config: head_1.transportResolution: 1920x1080
4044: 0.000 SoftTH: config: head_2.screenMode: 1920x1080
4044: 0.000 SoftTH: config: head_2.sourceRect: 4040,0,9900,1080
4044: 0.000 SoftTH: config: head_2.destRect: 0,0,1920,1080
4044: 0.000 SoftTH: config: head_2.transportResolution: 1920x1080
4044: 0.000 SoftTH: Initializing win32 hooks...
4044: 0.000 SoftTH: Added module <C:\JEUX\SIMU\DCS World\bin\d3d9.dll> to hook ignore list
4044: 0.000 SoftTH: Added module <C:\Windows\system32\kernel32.dll> to hook ignore list
4044: 0.000 SoftTH: Added module <C:\Windows\system32\USER32.dll> to hook ignore list
4044: 0.000 SoftTH: Hooked user32.dll/ClipCursor
4044: 0.000 SoftTH: Hooked user32.dll/GetCursorPos
4044: 0.000 SoftTH: Hooked user32.dll/GetCursorInfo
4044: 0.000 SoftTH: Hooked user32.dll/SetCursorPos
4044: 0.000 SoftTH: Hooked user32.dll/EnumDisplaySettingsExA
4044: 0.000 SoftTH: Hooked user32.dll/ChangeDisplaySettingsExA
4044: 0.000 SoftTH: Hooked user32.dll/EnumDisplaySettingsA
4044: 0.000 SoftTH: Hooked user32.dll/GetWindowRect
4044: 0.000 SoftTH: Hooked user32.dll/GetClientRect
4044: 0.000 SoftTH: Hooked user32.dll/SetPhysicalCursorPos
4044: 0.000 SoftTH: Hooked user32.dll/GetPhysicalCursorPos
4044: 0.000 SoftTH: Hooked user32.dll/LogicalToPhysicalPoint
4044: 0.000 SoftTH: Hooked user32.dll/GetMonitorInfoA
4044: 0.000 SoftTH: Hooked user32.dll/EnumDisplayMonitors
4044: 0.000 SoftTH: Hooked user32.dll/SetWindowPos
4044: 0.000 SoftTH: Pinned DLL: <C:\JEUX\SIMU\DCS World\bin\d3d9.dll>
4044: 0.000 SoftTH: Direct3D DLL Path: <C:\Windows\system32\d3d9.dll>
4044: 0.000 SoftTH: Added module <C:\Windows\system32\d3d9.dll> to hook ignore list
4044: 0.015 SoftTH: Direct3DCreate9
4044: 0.062 SoftTH: Detected refresh rates: 50Hz 60Hz 59Hz 25Hz 30Hz 29Hz (6)
4044: 0.062 SoftTH: IDirect3D9New: GetAdapterDisplayMode return 1920x1080
4044: 0.093 SoftTH: Added mode 73: 5960x1080 50Hz D3DFMT_X8R8G8B8 (D3DFMT_X8R8G8B8)
4044: 0.093 SoftTH: Added mode 74: 5960x1080 60Hz D3DFMT_X8R8G8B8 (D3DFMT_X8R8G8B8)
4044: 0.093 SoftTH: Added mode 75: 5960x1080 59Hz D3DFMT_X8R8G8B8 (D3DFMT_X8R8G8B8)
4044: 0.093 SoftTH: Added mode 76: 5960x1080 25Hz D3DFMT_X8R8G8B8 (D3DFMT_X8R8G8B8)
4044: 0.093 SoftTH: Added mode 77: 5960x1080 30Hz D3DFMT_X8R8G8B8 (D3DFMT_X8R8G8B8)
4044: 0.093 SoftTH: Added mode 78: 5960x1080 29Hz D3DFMT_X8R8G8B8 (D3DFMT_X8R8G8B8)
4044: 0.093 SoftTH: IDirect3D9New::CreateDevice 0x0DB61300
4044: 0.093 SoftTH: Adapter 0: AMD Radeon HD 6900 Series (aticfx64.dll v8.17.10.1247) '\\.\DISPLAY1'
4044: 0.093 SoftTH: Adapter 1: AMD Radeon HD 6900 Series (aticfx64.dll v8.17.10.1247) '\\.\DISPLAY2'
4044: 0.093 SoftTH: Adapter 2: AMD Radeon HD 6900 Series (aticfx64.dll v8.17.10.1247) '\\.\DISPLAY3'
4044: 0.093 SoftTH:
4044: 0.093 SoftTH: Validating settings
4044: 0.093 SoftTH: Head 0: OK
4044: 0.093 SoftTH: Head 1: OK
4044: 0.093 SoftTH: ERROR: Head 2: sourceRect (4040x0-9900x1080) outside
render surface (5960x1080)

4044: 11.497 SoftTH: SoftTH: validateSettings FAILED
4044: 11.497 SoftTH: createdevice failed!
4044: 11.497 SoftTH: ~IDirect3DDevice9SoftTH
4044: 11.497 SoftTH: ~IDirect3DDevice9New
4044: 11.497 SoftTH: Created device 0x00000000
4044: 11.497 SoftTH: IDirect3D9New::CreateDevice 0x0DB61300
4044: 11.497 SoftTH: Adapter 0: AMD Radeon HD 6900 Series (aticfx64.dll v8.17.10.1247) '\\.\DISPLAY1'
4044: 11.497 SoftTH: Adapter 1: AMD Radeon HD 6900 Series (aticfx64.dll v8.17.10.1247) '\\.\DISPLAY2'
4044: 11.497 SoftTH: Adapter 2: AMD Radeon HD 6900 Series (aticfx64.dll v8.17.10.1247) '\\.\DISPLAY3'
4044: 11.497 SoftTH:
4044: 11.497 SoftTH: Validating settings
4044: 11.497 SoftTH: Head 0: OK
4044: 11.497 SoftTH: Head 1: OK
4044: 11.497 SoftTH: ERROR: Head 2: sourceRect (4040x0-9900x1080) outside
render surface (5960x1080)

4044: 12.262 SoftTH: SoftTH: validateSettings FAILED
4044: 12.262 SoftTH: createdevice failed!
4044: 12.262 SoftTH: ~IDirect3DDevice9SoftTH
4044: 12.262 SoftTH: ~IDirect3DDevice9New
4044: 12.262 SoftTH: Created device 0x00000000
4044: 12.293 SoftTH: DLL_PROCESS_DETACH (process terminating)
4044: 12.293 SoftTH: end
Avatar de l’utilisateur

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

Re: SOFTTH 2.08b et DCS : besoin aide configuration

#3

Message par hellfrog »

sans sofTH, avec les fichiers ci dessous, pas d'exports, seulement mainview

without sofTH,only mainview displayed, no exports with below files

EDIT
after some typo corrections
DCS running but no pit neither world can be seen , only labels and map, map is on 3 screens,
maybe some lua syntax or typo is not correct ?

options.lua
["multiMonitorSetup"] = "CS_exports",
["aspect"] = ((1920*3) + (100*2))/1080,
["width"] = (1920*3) + (100*2), --5960,
["height"] = 1080,
monitorsetup
_ = function(p) return p; end;
name = _('CS_exports');
Description = '3 monitors + bezel + Helios + exports'

-- screen table also contain x, y members which mark top left corner of DCS window
--note about fullscreen : directx doesn't allow fullscreen applications with resolutions more than primary display can handle,
--so multimonitor presets in DCS will fall back to windowed mode if fullscreen initialization failed ( this info also will be printed to dcs.log)
displays =
{
[1] =
{
x = 0, -- note : x == 0 and y == 0 is always mark primary windows display
y = 0,
width = 1920,
height = 1080,
bezel = 100 -- here test bezel ? + 100
},
[2] =
{
x = -1920, -- mark that secondary display is on left side of primary display
y = 0,
width = 1920,
height = 1080,
bezel = 0
},
[3] =
{
x = 1920, -- mark that third display is on right side of primary display
y = 0,
width = 1920,
height = 1080,
bezel = 100 -- here test bezel ? +100
}
}

MyMainview =
{
x = displays[2].x/2;
y = displays[2].y;
width = (displays[2].width/2) + displays[1].width + displays[1].bezel + (displays[3].width/2) + displays[3].bezel;
height = displays[1].height
}
MyRightExport =
{
x = MyMainview.x + MyMainview.width;
y = displays[3].y
}

--[[function reconfigure_for_unit(unit_type) --unit type is string with unit name

if unit_type == "Ka-50" then
]]--
Viewports =
{
Center =
{
x = MyMainview.x;
y = MyMainview.y;
width = MyMainview.width;
height = MyMainview.height;
viewDx = 0; -- Fine tune this to move your center-viewpoint left/rigth
viewDy = 0; -- Fine tune this to move your center-viewpoint up/down
aspect = MyMainview.width/MyMainview.height;
}
}

Gui =
{
x = displays[1].x;
y = displays[1].y;
width = displays[1].width;
height = displays[1].Height;
}

UIMainView = Gui -- to maintain GUI on center screen and not 3 screens
-- UIMainView = Viewports.Center

-- EMC(CautionLights_panel.lua)
ED_KA50_CautionLights =
{
x = MyRightExport.x;
y = MyRightExport.y;
width = 810;
height = 100;
}

-- EMC (Ekran_init.lua)
ED_KA50_Ekran =
{
x = MyRightExport.x;
y = 101;
width = 80;
height = 80;
}

-- EMC (UV_26_init.lua)
ED_KA50_UV26 =
{
x = MyRightExport.x +(810/2)-(50/2); -- 4650 + CautionLights.Width/2 - UV26.width/2
y = 100;
width = 50;
height = 45;
}

-- EMC (PVI_init.lua)
ED_KA50_PVI =
{
x = MyRightExport.x+810-150; --4650 + CautionLights.Width - PVI.Width
y = 100;
width = 150;
height = 54;
}

-- EMC (SHKVAL_init.lua)
ED_KA50_Shkval =
{
x = 0;
y = 0;
width = 410;
height = 272;
}

-- EMC (ABRIS_init.lua)
ED_KA50_ABRIS =
{
x = 411; -- 0 + Shkval.Width
y = 0;
width = 400;
height = 504;
}

--[[ else
Viewports =
{
Center =
{
x = 0;
y = 0;
width = screen.width;
height = screen.height;
viewDx = 0;
viewDy = 0;
aspect = screen.aspect;
}
}

Gui =
{
x = screen.width / 3;
y = 0;
width = screen.width / 3;
height = screen.height;
}

UIMainView = Gui -- to maintain GUI on center screen
-- UIMainView = Viewports.Center

-- RIGHT_MFCD = nil -- remove for others
end
end]]--
EDIT

above monitorsetup updated

still one log error
00073.747 UNKNOWN main: Error loading file [string "C:\Users\Christophe Sourgen\Saved Games\DCS\Config/MonitorSetup..."]:75: unexpected symbol near ';'
I don't see what is problem
Avatar de l’utilisateur

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

aide demandée pour exports DCS BS

#4

Message par hellfrog »

en fait j'ai déjà créé un sujet,

comme c'était au départ pour softTH et je l'ai mis en salle pb technique hardware software, mais en fait c'est plutot pour DCS...

je ne peux plus le déplacer (je n'ai plus les droits, ne suis plus rédac ni modo) , donc si un gentil modo veux bien le remettre ici...

le lien http://www.checksix-forums.com/viewtopi ... 1#p1414281

3 ecrans

exports de 0 à 810 à gauche et 810 à 1920 à droite
vue principale de 810 à 1920 a gauche, 0 à 1920 au centre, 0 à 810 à droite
correction bezel essayée dans le lua, sans pouvoir vérifier si ça marche

DCS tourne, mais pas affichage du pit ni world, c'est noir, mais on voit les messages radio, les labels... toutes les touches fonctionnent...

voir mes fichiers listés dans le sujet, prendre le dernier en date, je n'utilise pas softTH tant que ça ne marche pas ainsi. et si ça marche, pas besoin.
Avatar de l’utilisateur

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

Re: SOFTTH 2.08b et DCS : besoin aide configuration

#5

Message par hellfrog »

si j'ajoute dans monitorsetup :
Viewports =
{
Left =
{
x = 810;
y = 0;
width = 810;
height = 1080;
viewDx = 0;
viewDy = 0;
aspect = 810/1080;
},
Center =
{
x = 1920;
y = 0;
width = 1920;
height = 1080;
viewDx = 0; -- Fine tune this to move your center-viewpoint left/rigth
viewDy = 0; -- Fine tune this to move your center-viewpoint up/down
aspect = 1920/1080;
},
Right =
{
x = 3840;
y = 0;
width = 810;
height = 1080;
viewDx = 0;
viewDy = 0;
aspect = 810/1080;
}
}
j'ai ecran central en vue normale, + clones à 1/2 gauche et droite, mais pas extension !

if I add these left and right definitions, display is : center like nromal, and left and right are cloned view of center, on half of screen. Not extension !

therfore previous one should be better... still exploring
Avatar de l’utilisateur

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

Re: SOFTTH 2.08b et DCS : besoin aide configuration

#6

Message par hellfrog »

mainview is ok, without bezel, will loook at this later

for info : 35 FPS in free flight over sukumi 16Go Ram i7 @4.5 GHz 6970 2go

didn't take count of my "MyMainview" and "MyRightExport" tables...
you have to put numbers directly in lua
_ = function(p) return p; end;
name = _('CS_exports');
Description = '3 monitors + exports for Helios'

-- screen table also contain x, y members which mark top left corner of DCS window
--note about fullscreen : directx doesn't allow fullscreen applications with resolutions more than primary display can handle,
--so multimonitor presets in DCS will fall back to windowed mode if fullscreen initialization failed ( this info also will be printed to dcs.log)
displays =
{
[1] =
{
x = 0, -- note : x == 0 and y == 0 is always mark primary windows display
y = 0,
width = 1920,
height = 1080,
},
[2] =
{
x = -1920, -- mark that secondary display is on left side of primary display
y = 0,
width = 1920,
height = 1080,
},
[3] =
{
x = 1920, -- mark that third display is on right side of primary display
y = 0,
width = 1920,
height = 1080,
}
}

--[[MyMainview =
{
x = displays[2].x/2;
y = displays[2].y;
width = (displays[2].width/2) + displays[1].width + displays[1].bezel + (displays[3].width/2) + displays[3].bezel;
-- NB bezel removed, not working in lua, try sofTH
height = displays[1].height
}
MyRightExport =
{
x = MyMainview.x + MyMainview.width;
y = displays[3].y
}
MyLeftExport =
{
x = 0
y = 0
width = 816
height = 1080
]]--

function reconfigure_for_unit(unit_type) --unit type is string with unit name

if unit_type == "Ka-50" then

Viewports =
{
Center =
{
x = 810;
y = 0;
width = 3840;
height = 1080;
viewDx = 0; -- Fine tune this to move your center-viewpoint left/rigth
viewDy = 0; -- Fine tune this to move your center-viewpoint up/down
aspect = 3840/1080;
}
}

Gui =
{
x = displays[1].x;
y = displays[1].y;
width = displays[1].width;
height = displays[1].Height;
}

UIMainView = Gui -- to maintain GUI on center screen and not 3 screens
-- UIMainView = Viewports.Center

-- EMC(CautionLights_panel.lua)
ED_KA50_CautionLights =
{
x = 4650;
y = 100;
width = 810;
height = 100;
}

-- EMC (Ekran_init.lua)
ED_KA50_Ekran =
{
x = 4650;
y = 201;
width = 80;
height = 80;
}

-- EMC (UV_26_init.lua)
ED_KA50_UV26 =
{
x = 4650 + (810/2) - (50/2); -- 4650 + CautionLights.Width/2 - UV26.width/2
y = 201;
width = 50;
height = 45;
}

-- EMC (PVI_init.lua)
ED_KA50_PVI =
{
x = 4650 + 810 - 150; --4650 + CautionLights.Width - PVI.Width
y = 201;
width = 150;
height = 54;
}

-- EMC (SHKVAL_init.lua)
ED_KA50_Shkval =
{
x = 0;
y = 540;
width = 800;
height = 540;
}

-- EMC (ABRIS_init.lua)
ED_KA50_ABRIS =
{
x = 330; -- 810 - Abris.Width
y = 0;
width = 480;
height = 540;
}

else
Viewports =
{
Center =
{
x = 810;
y = 0;
width = 3840;
height = 1080;
viewDx = 0; -- Fine tune this to move your center-viewpoint left/rigth
viewDy = 0; -- Fine tune this to move your center-viewpoint up/down
aspect = 3840/1080;
}
}

Gui =
{
x = displays[1].x;
y = displays[1].y;
width = displays[1].width;
height = displays[1].Height;
}

UIMainView = Gui -- to maintain GUI on center screen and not 3 screens

--[[ Viewports =
{
Center =
{
x = 0;
y = 0;
width = screen.width;
height = screen.height;
viewDx = 0;
viewDy = 0;
aspect = screen.aspect;
}
}

Gui =
{
x = screen.width / 3;
y = 0;
width = screen.width / 3;
height = screen.height;
}

UIMainView = Gui -- to maintain GUI on center screen
-- UIMainView = Viewports.Center

-- RIGHT_MFCD = nil -- remove for others ]]--
end
end
options.lua resized to 5760/1080

have to fine move exports views and will try again softTH for bezel compensation...

still that report in DCS.log :
00334.534 UNKNOWN main: Error loading file [string "C:\Users\Christophe Sourgen\Saved Games\DCS\Config/MonitorSetup..."]:75: unexpected symbol near ';'
anyone knows about ?
Avatar de l’utilisateur

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

Re: SOFTTH 2.08b et DCS : besoin aide configuration

#7

Message par hellfrog »

softTH resolved :
sourceRect syntax definition is not x1,y1,x2,y2
but x,y,width,height !!!!!
eureka !!!!
let's go on !
; softTH's d3d9.dll as well as the config.softthconfig in the Game/bin directory.
; -use the "app-key+S" (You should see all data that is rendered at the primary screen) and make a screen-shoot again.
; You will find them in : C:\Users\>User name<\Documents\SoftTH\Screenshots
; Please also post the SoftTH.log you find in C:\Users\>User name<\Documents\SoftTH
;
[main]
renderResolution=5960x1080
; DCS renderer 1920+1920 for mainview + 810 for export views x2 + 2x100 bezel

; Your width/height/aspect in the options.lua must match the one you have set in the config.Softthconfig - If one number isn't right nothing will work.
; 3 x 1920x1080 screens from left to right, with AMD nView, main in windows is center screen, extended desktop on3 monitors

nonlocalFormat=RGB16D
keepComposition=1 ; 1 helios
smoothing=0 ; 0 DCS
debugD3D=0
zClear=0 ;0 DCS
vsync=0
tripleBuffer=0
screenshotFormat=jpg
dllPathD3D9=auto
dllPathDXGI=auto
dllPathD3D11=auto

[overrides]
forceResolution=0
antialiasing=0
processAffinity=1 ;
FOVForceHorizontal=0
FOVForceVertical=0

[debug]
compatibleIB=0
compatibleTex=0
compatibleVB=0
enableVBQuirk=0 ; 1 DCSA10 beta not necessary nowadays ?

[head_primary]
; center from mainview on center screen + half left and half right on left screen and right screen
devID=0
sourceRect=2020,0,1920,1080 ; select 1920 + 100 bezel to 3840+100 bezel pixels from DCS renderer mainview
destRect=0,0,1920,1080 ; display on center screen
transportResolution=1920x1080
transportMethod=auto
;The destRect function doesn't start counting at x0/y0 of your overall resolution. -this does the sourceRect line already -
;The destRect= starts counting in the x0/y0 of your target monitor.
;Keep in mind that SoftTH can only use the resolution your Monitor is set in windows properties when using the "destRect=" function.
; my question is if is Softth able to teleport different 'grabs' to a single monitor
; NO. Only one "destRect" line for one monitor.
noSync=0
screenMode=1920x1080
fpsLimit=35

[head_1]
; left screen exports on first half of screen + mainview left on second half
devID=1
sourceRect=0,0,1920,1080 ; select 0 to 810 pixels exports + 810-1920 from renderer mainview
destRect=0,0,1920,1080 ; display at left screen
transportResolution=1920x1080
transportMethod=auto
noSync=0
screenMode=1920x1080
fpsLimit=35

[head_2]
; right screen right of mainview on first half of screen, exports + Helios on second half (tactile screen)
devID=2
sourceRect=4040,0,1920,1080 ; 3940 + 100 bezel to 3940 + 1920
destRect=0,0,1920,1080 ;
transportResolution=1920x1080
transportMethod=auto
noSync=0
screenMode=1920x1080
fpsLimit=35
and finally see atach img

still to work on : exports on right side
Pièces jointes
SoftTH_dcs.exe_2014_04_02_01_36_19_42.jpg
Avatar de l’utilisateur

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

Re: SOFTTH 2.08b et DCS : besoin aide configuration

#8

Message par hellfrog »

pas moyen d'avoir les exports à droite ...
une idee ?

je vois juste le bas des 2 voyants allumés du caution panel tt en haut de l'écran...

all these ones don"t display on right screen... I only bare see the down of the 2 lighted on caution lights panel ... tried many x,y and sizes...
NB EMC scripts not installed;;; any relation ?
ED_KA50_CautionLights =
{
x = 4520;
y = 1;
width = 1240; --1282x156
height = 148;
}

-- EMC (Ekran_init.lua)
ED_KA50_Ekran =
{
x = 5000;
y = 402; -- 150 + 126x2
width = 126; -- 232x232 + 232x232
height = 126;
}

-- EMC (UV_26_init.lua)
ED_KA50_UV26 =
{
x = 4650;
y = 150;
width = 100; -- 162x136
height = 84;
}

-- EMC (PVI_init.lua)
ED_KA50_PVI =
{
x = 5610;
y = 150;
width = 150; -- 272x272
height = 150;
}

-- EMC (SHKVAL_init.lua)
ED_KA50_Shkval =
{
x = 4;
y = 540;
width = 806; -- 602x402
height = 540;
}

-- EMC (ABRIS_init.lua)
ED_KA50_ABRIS =
{
x = 378; -- 810 - Abris.Width
y = 0;
width = 432; --402x502
height = 540;
}
Avatar de l’utilisateur

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

Re: SOFTTH 2.08b et DCS : besoin aide configuration

#9

Message par hellfrog »

QQs points importants :

le moniteur principal doit être le premier en haut à gauche X=0 et Y=0 sinon les exportations de vues (EMC ou modif du monitorsetup et des init.lua des instruments) ne marchent pas !

dans mon cas, c'était le moniteur du centre : export Abris et Shkval OK, le reste non. avec l'écran de gauche en principal, tout marche ...

pour le monitorsetup, la table 'displays' n'a aucune utilité dans mon cas : avec ou sans = meme résultat...
Répondre

Revenir à « Support technique »