Skip to content

Commit

Permalink
Merge from dev [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
xrSimpodin committed Nov 4, 2021
2 parents 7ab5bb7 + 2bab758 commit 4c6a8bc
Show file tree
Hide file tree
Showing 134 changed files with 706 additions and 711 deletions.
2 changes: 0 additions & 2 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
### [>>Latest release<<](https://github.com/OGSR/OGSR-Engine/releases/latest) ###
### [Write here](https://github.com/OGSR/OGSR-Engine/issues) to report bugs ###
### [Write here](https://github.com/OGSR/OGSR-Engine/discussions) your suggestions, questions and everything else ###
#### For the engine to work with the worldwide version of SoC, use the ` -steam` launch parameter ####

### Compilation guide: ###
* Latest version of Visual Studio 2017 or 2019 or 2022 required
Expand Down Expand Up @@ -56,7 +55,6 @@ And everyone else whose work has been used. If you are not mentioned, send a mes
### [>>Свежий релиз<<](https://github.com/OGSR/OGSR-Engine/releases/latest) ###
### Баги можно присылать [сюда](https://github.com/OGSR/OGSR-Engine/issues) ###
### Предложения, вопросы и тп можно писать [сюда](https://github.com/OGSR/OGSR-Engine/discussions) ###
#### Для того, чтобы движок работал с WW-версией SHOC - используйте специальный ключ запуска ` -steam` ####

### Инструкции по сборке: ###
* Требуется актуальная версия Visual Studio 2017 или 2019 или 2022
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,9 @@
<string id="ui_mm_small_font">
<text>Small font (requires restart)</text>
</string>
<string id="ui_mm_crosshair_hard">
<text>Realistic crosshair</text>
</string>
<!-- Controls menu -->
<string id="ui_mm_controls">
<text>Controls</text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,9 @@
<string id="ui_mm_small_font">
<text>Óìåíüøåííûé øðèôò (òðåáóåòñÿ ïåðåçàïóñê èãðû)</text>
</string>
<string id="ui_mm_crosshair_hard">
<text>Ðåàëèñòè÷íûé ïðèöåë</text>
</string>
<!-- Îêíî "Óïðàâëåíèå" -->
<string id="ui_mm_controls">
<text>Óïðàâëåíèå</text>
Expand Down
5 changes: 5 additions & 0 deletions Game/Resources_SoC_1.0006/gamedata/config/ui/ui_mm_opt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,11 @@
<text font="letterica16" r="215" g="195" b="170">ui_mm_small_font</text>
</check_small_font>

<check_crosshair_hard x="20" y="305" width="243" height="21">
<options_item entry="hud_crosshair_hard" group="mm_opt_gameplay"/>
<text font="letterica16" r="215" g="195" b="170">ui_mm_crosshair_hard</text>
</check_crosshair_hard>

</tab_gameplay>
<tab_controls>
<cap_mousesens x="20" y="25" width="150" height="21">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ function opt_gameplay:InitControls(x, y, xml)
xml:InitCheck("tab_gameplay:check_ammunition_on_belt", self)
xml:InitCheck("tab_gameplay:check_build_crosshair", self)
xml:InitCheck("tab_gameplay:check_small_font", self)
xml:InitCheck("tab_gameplay:check_crosshair_hard", self)
xml:InitComboBox("tab_gameplay:list_difficulty", self)
end
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion ogsr_engine/Engine_lib_properties.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<ObjectFileName>$(SolutionDir)\ogsr_engine\_TEMP\Engine\$(Configuration)\$(Platform)\$(ProjectName)\</ObjectFileName>
<ProgramDataBaseFileName>$(SolutionDir)\ogsr_engine\_TEMP\Engine\$(Configuration)\$(Platform)\$(ProjectName)\</ProgramDataBaseFileName>
<PreprocessorDefinitions>_ITERATOR_DEBUG_LEVEL=0;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalOptions>/source-charset:utf-8 /we4566 /we4828 /we4715 /we4189 /we4595 %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/source-charset:utf-8 /we4566 /we4828 /we4715 /we4189 /we4595 /we4834 %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<ImportLibrary>$(SolutionDir)\ogsr_engine\_LIB\Engine\$(Configuration)\$(Platform)\$(TargetName).lib</ImportLibrary>
Expand Down
2 changes: 1 addition & 1 deletion ogsr_engine/Engine_properties.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<ObjectFileName>$(SolutionDir)\ogsr_engine\_TEMP\Engine\$(Configuration)\$(Platform)\$(ProjectName)\</ObjectFileName>
<ProgramDataBaseFileName>$(SolutionDir)\ogsr_engine\_TEMP\Engine\$(Configuration)\$(Platform)\$(ProjectName)\</ProgramDataBaseFileName>
<PreprocessorDefinitions>_ITERATOR_DEBUG_LEVEL=0;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalOptions>/source-charset:utf-8 /we4566 /we4828 /we4715 /we4189 /we4595 %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/source-charset:utf-8 /we4566 /we4828 /we4715 /we4189 /we4595 /we4834 %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<ImportLibrary>$(SolutionDir)\ogsr_engine\_LIB\Engine\$(Configuration)\$(Platform)\$(TargetName).lib</ImportLibrary>
Expand Down
2 changes: 1 addition & 1 deletion ogsr_engine/Layers/xrRender/R_DStreams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

int rsDVB_Size = 16384; // 8192; //4096; //512+1024;
int rsDVB_Size = 4096; //Fixed: (bytes_need<=mSize) && vl_Count
int rsDIB_Size = 512;

void _VertexStream::Create ()
Expand Down
8 changes: 4 additions & 4 deletions ogsr_engine/Layers/xrRender/ResourceManager_Resources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ SVS* CResourceManager::_CreateVS (LPCSTR _name)
//Msg("compiling shader: [%s], c_target: [%s], c_entry: [%s]", name, c_target, c_entry);
HRESULT const _hr = ::Render->shader_compile( name, (DWORD const*)data, size, c_entry, c_target, D3DXSHADER_DEBUG | D3DXSHADER_PACKMATRIX_ROWMAJOR, (void*&)_vs);

CHECK_OR_EXIT (
R_ASSERT(
!FAILED(_hr),
make_string("Your video card doesn't meet game requirements.\n\nTry to lower game settings.")
);
Expand Down Expand Up @@ -252,7 +252,7 @@ SPS* CResourceManager::_CreatePS (LPCSTR name)
//Msg("compiling shader: [%s], c_target: [%s], c_entry: [%s]", name, c_target, c_entry);
HRESULT const _hr = ::Render->shader_compile( name, (DWORD const*)data, size, c_entry, c_target, D3DXSHADER_DEBUG | D3DXSHADER_PACKMATRIX_ROWMAJOR, (void*&)_ps);

CHECK_OR_EXIT (
R_ASSERT(
!FAILED(_hr),
make_string("Your video card doesn't meet game requirements.\n\nTry to lower game settings.")
);
Expand Down Expand Up @@ -744,7 +744,7 @@ SVS* CResourceManager::_CreateVS (LPCSTR _name)
_RELEASE (pErrorBuf);
pConstants = NULL;

CHECK_OR_EXIT (
R_ASSERT(
!FAILED(_hr),
make_string("Your video card doesn't meet game requirements.\n\nTry to lower game settings.")
);
Expand Down Expand Up @@ -849,7 +849,7 @@ SPS* CResourceManager::_CreatePS (LPCSTR name)
_RELEASE (pErrorBuf);
pConstants = NULL;

CHECK_OR_EXIT (
R_ASSERT(
!FAILED(_hr),
make_string("Your video card doesn't meet game requirements.\n\nTry to lower game settings.")
);
Expand Down
2 changes: 1 addition & 1 deletion ogsr_engine/Layers/xrRender/ShaderResourceTraits.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@

VERIFY(SUCCEEDED(_hr));

CHECK_OR_EXIT (
R_ASSERT(
!FAILED(_hr),
make_string("Your video card doesn't meet game requirements.\n\nTry to lower game settings.")
);
Expand Down
2 changes: 1 addition & 1 deletion ogsr_engine/Layers/xrRender/SkeletonAnimated.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ void CKinematicsAnimated::Load(const char* N, IReader *data, u32 dwFlags)
}

if ( omfs.size() ) {
R_ASSERT( omfs.size() < MAX_ANIM_SLOT );
//R_ASSERT( omfs.size() < MAX_ANIM_SLOT );
m_Motions.reserve( omfs.size() );
for ( const auto& s : omfs ) {
auto nm = s.c_str();
Expand Down
1 change: 1 addition & 0 deletions ogsr_engine/Layers/xrRender/light.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ class light : public IRender_Light, public ISpatial
virtual void set_rotation (const Fvector& D, const Fvector& R);
virtual void set_cone (float angle);
virtual void set_range (float R);
float get_range() const override { return range; };
virtual void set_virtual_size(float S) {
#if RENDER != R_R1
virtual_size = (S > MIN_VIRTUAL_SIZE) ? S : MIN_VIRTUAL_SIZE;
Expand Down
4 changes: 2 additions & 2 deletions ogsr_engine/Layers/xrRender/r__screenshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void CRender::ScreenshotImpl (ScreenshotMode mode, LPCSTR name, CMemoryWriter* m
break;
case IRender_interface::SM_NORMAL:
{
static const bool UsePNG = !!strstr(Core.Params, "-ss_png"), UseTGA = !!strstr(Core.Params, "-ss_tga");
static const bool UseTGA = !!strstr(Core.Params, "-ss_tga"), UsePNG = !strstr(Core.Params, "-ss_jpg") && !UseTGA;
string64 t_stemp;
string_path buf;
sprintf_s(buf, sizeof(buf), "ss_%s_%s_(%s).%s", Core.UserName, timestamp(t_stemp), g_pGameLevel ? g_pGameLevel->name().c_str() : "mainmenu", UsePNG ? "png" : UseTGA ? "bmp" : "jpg");
Expand Down Expand Up @@ -363,7 +363,7 @@ void CRender::ScreenshotImpl (ScreenshotMode mode, LPCSTR name, CMemoryWriter* m
}break;
case IRender_interface::SM_NORMAL:
{
static const bool UsePNG = !!strstr(Core.Params, "-ss_png"), UseTGA = !!strstr(Core.Params, "-ss_tga");
static const bool UseTGA = !!strstr(Core.Params, "-ss_tga"), UsePNG = !strstr(Core.Params, "-ss_jpg") && !UseTGA;
string64 t_stemp;
string_path buf;
sprintf_s(buf, sizeof(buf), "ss_%s_%s_(%s).%s", Core.UserName, timestamp(t_stemp), g_pGameLevel ? g_pGameLevel->name().c_str() : "mainmenu", UsePNG ? "png" : UseTGA ? "tga" : "jpg");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ SVS* CResourceManager::_CreateVS (LPCSTR _name)

VERIFY(SUCCEEDED(_hr));

CHECK_OR_EXIT (
R_ASSERT(
!FAILED(_hr),
make_string("Your video card doesn't meet game requirements.\n\nTry to lower game settings.")
);
Expand Down Expand Up @@ -283,7 +283,7 @@ SPS* CResourceManager::_CreatePS (LPCSTR _name)

VERIFY(SUCCEEDED(_hr));

CHECK_OR_EXIT (
R_ASSERT(
!FAILED(_hr),
make_string("Your video card doesn't meet game requirements.\n\nTry to lower game settings.")
);
Expand Down Expand Up @@ -339,7 +339,7 @@ SGS* CResourceManager::_CreateGS (LPCSTR name)

FS.r_close ( file );

CHECK_OR_EXIT (
R_ASSERT(
!FAILED(_hr),
make_string("Your video card doesn't meet game requirements.\n\nTry to lower game settings.")
);
Expand Down
2 changes: 1 addition & 1 deletion ogsr_engine/Layers/xrRenderPC_R4/CSCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ void CSCompiler::compile(const char* name)

VERIFY(SUCCEEDED(_hr));

CHECK_OR_EXIT (
R_ASSERT(
!FAILED(_hr),
make_string("Your video card doesn't meet game requirements.\n\nTry to lower game settings.")
);
Expand Down
3 changes: 0 additions & 3 deletions ogsr_engine/build_config_defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
// скопировать этот файл в нее и изменить, как требуется.

//***********************************[Настройки отладочных режимов]***********************************
// Включает кастомное окно с сообщением об ошибках, выключает стандартное "Прекращена работа программы..."
#define USE_OWN_ERROR_MESSAGE_WINDOW

// Включает создание минидампов при вылетах
#define USE_OWN_MINI_DUMP

Expand Down
153 changes: 0 additions & 153 deletions ogsr_engine/xrCompress/trivial_encryptor.h

This file was deleted.

Loading

0 comments on commit 4c6a8bc

Please sign in to comment.