Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
1a2acfe
Initial commit for VANCE Mapbase migration
creeper23782 Mar 18, 2023
9a3d755
Added stuff I missed, fixes and updates from ethan
creeper23782 Mar 26, 2023
4672d2d
Changes from Ethan
creeper23782 Mar 26, 2023
66aa582
More stuff.
creeper23782 Mar 26, 2023
7d14a98
stuff i forgot
creeper23782 Mar 27, 2023
b605746
removed backups. not needed
creeper23782 Mar 27, 2023
a75b73f
Add executable flag to scripts and VPC
InevitablyDivinity Apr 5, 2023
e38eaf5
Don't copy build products to _srv.so files
InevitablyDivinity Apr 5, 2023
56544c8
Correctly rename .gitignore, .gitattributes, and .clang-format
InevitablyDivinity Apr 5, 2023
6b3f16c
Add executable flag to ccache
InevitablyDivinity Apr 5, 2023
b0470dc
Replace min() and max() with MIN() and MAX()
InevitablyDivinity Apr 5, 2023
893071d
Restore ASW_PROJECTED_TEXTURES in imaterialsystem.h
InevitablyDivinity Apr 5, 2023
b887329
Clean up OpenGL detection and colour-swapping
InevitablyDivinity Apr 5, 2023
316809d
Update Steamworks SDK
InevitablyDivinity Apr 5, 2023
803bf34
Clean up OpenGL detection and colour-swapping
InevitablyDivinity Apr 5, 2023
026013c
Add executable flag to gendbg.sh
InevitablyDivinity Apr 5, 2023
0ef7742
Restore V_strtok_s from Mapbase
InevitablyDivinity Apr 5, 2023
fda51a2
Remove conflicting definition of SteamUserStats()
InevitablyDivinity Apr 5, 2023
708113a
Update SDL2 shared library for Linux
InevitablyDivinity Apr 5, 2023
5801802
Fix responserules compiling on Linux
InevitablyDivinity Apr 5, 2023
3a4560c
Fixes for C++20 support
InevitablyDivinity Apr 5, 2023
cf8b787
Add temporary hack to allow gamepadui to link with Mapbase changes
InevitablyDivinity Apr 5, 2023
0b64ce7
Remove hack to compile gamepadui for Mapbase
InevitablyDivinity Apr 5, 2023
df18050
Fix linker error from vgui_controls
InevitablyDivinity Apr 5, 2023
be3e8fa
Restore VANCE viewmodel activities
InevitablyDivinity Apr 5, 2023
80db231
Use HL2MP stunstick to avoid conflicting with Mapbase
InevitablyDivinity Apr 5, 2023
092c7f5
Fix #include for Linux
InevitablyDivinity Apr 5, 2023
648911d
Restore Projectile Bullets implementation
InevitablyDivinity Apr 5, 2023
b529a5e
Restore Vance viewmodel activities
InevitablyDivinity Apr 5, 2023
0db6d33
Restore Alien Swarm CFlashlightEffect
InevitablyDivinity Apr 5, 2023
3166231
Fix capitalisation in VPC scripts
InevitablyDivinity Apr 5, 2023
e0b1b48
Move definition of CHunterFlechette to npc_hunter.h
InevitablyDivinity Apr 5, 2023
0ccff85
Initial WIP port. Massive shader cleanup.
InevitablyDivinity Apr 19, 2023
92b9900
Remove old scripts
InevitablyDivinity Apr 20, 2023
fd296f3
WIP: Update shaders to dramatically reduce number of shader combos
InevitablyDivinity Apr 20, 2023
7cf37a9
WIP: Everything compiles, game crashes
InevitablyDivinity Apr 27, 2023
e786f5a
WIP: Everything compiles, game crashes
InevitablyDivinity Apr 27, 2023
6e6c806
WIP: Everything compiles, game crashes
InevitablyDivinity Apr 27, 2023
7a0cf7e
Added precompiled header to shader_override
Totterynine Apr 29, 2023
7721915
Remove minmax macro redefinition
Totterynine Apr 29, 2023
dde79b1
Forcefully disable a warning in HTML.cpp
Totterynine Apr 29, 2023
481b811
Removed redefined ALIGN_VALUE macro in studio.cpp
Totterynine Apr 29, 2023
71feac9
Fixed inheritance access specifier for vgui::Panel
Totterynine Apr 29, 2023
2300ee8
Fixed warning in snappy for newer MSC versions
Totterynine Apr 29, 2023
5a95e4d
Enabled VS2022 project generation
Totterynine Apr 29, 2023
2105fde
Use /vance as a game when creating projects
Totterynine Apr 29, 2023
3d2243b
Temporary changes in shaders to make DLL compile
Totterynine Apr 29, 2023
1a199e5
Windows-Only Shader DLL verification
Totterynine Apr 29, 2023
a165575
Updated particles.lib
Totterynine Apr 29, 2023
7bbc6a0
Previous shader changes are not temporary, cleanup
Totterynine Apr 29, 2023
b931e83
Add .editorconfig
InevitablyDivinity Apr 30, 2023
8373b3b
Add Linux build and run scripts
InevitablyDivinity Apr 30, 2023
d29c15c
Make CUtlString::MatchesPattern() const-qualified
InevitablyDivinity Apr 30, 2023
bdbf2b6
graphics shaders removal
creeper23782 Jul 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
180 changes: 152 additions & 28 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,36 +1,160 @@
---
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignArrayOfStructures: Left
AlignConsecutiveMacros: true
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: Empty
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
AttributeMacros:
- CONSTRUCT_EARLY
- DLL_CLASS_EXPORT
- DLL_CLASS_IMPORT
- DLL_EXPORT
- DLL_GLOBAL_EXPORT
- DLL_GLOBAL_IMPORT
- DLL_IMPORT
- EXPLICIT
- FASTCALL
- FMTFUNCTION
- FORCEINLINE
- FORCEINLINE_TEMPLATE
- MULTIPLE_INHERITANCE
- NOINLINE
- NO_VTABLE
- NULLTERMINATED
- PLATFORM_INTERFACE
- RESTRICT
- RESTRICT_FUNC
- SELECTANY
- SELECTOR
- SINGLE_INHERITANCE
- STDCALL
- TEMPLATE_SPEC_STATIC
- TEMPLATE_STATIC
BinPackArguments: true
BinPackParameters: true
BitFieldColonSpacing: Both
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Allman
BreakBeforeConceptDeclarations: Always
BreakBeforeTernaryOperators: false
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterComma
ColumnLimit: 0
CompactNamespaces: false
ContinuationIndentWidth: 4
ConstructorInitializerAllOnOneLineOrOnePerLine: false
Cpp11BracedListStyle: true
DeriveLineEnding: false
DerivePointerAlignment: false
DisableFormat: false
EmptyLineBeforeAccessModifier: LogicalBlock
FixNamespaceComments: false
ForEachMacros:
- FOR_EACH_CURRENCY
- FOR_EACH_DICT
- FOR_EACH_DICT_FAST
- FOR_EACH_ENTLIST
- FOR_EACH_ENTLIST_HEAD
- FOR_EACH_HASHMAP
- FOR_EACH_HASHMAP_LRU
- FOR_EACH_HASHTABLE
- FOR_EACH_LL
- FOR_EACH_LL_BACK
- FOR_EACH_MAP
- FOR_EACH_MAP_BACK
- FOR_EACH_MAP_FAST
- FOR_EACH_OBJ
- FOR_EACH_PTR_ARRAY
- FOR_EACH_RBTREE_FAST
- FOR_EACH_SUBKEY
- FOR_EACH_TRUE_SUBKEY
- FOR_EACH_UTLRBTREE
- FOR_EACH_VALID_SPLITSCREEN_PLAYER
- FOR_EACH_VALUE
- FOR_EACH_VEC
- FOR_EACH_VEC_BACK
IncludeBlocks: Regroup
IncludeCategories:
- Regex: "cbase.h"
Priority: -1
- Regex: "stdafx_client.h"
Priority: -1
- Regex: "stdafx.h"
Priority: -1
- Regex: "pch_tier0.h"
Priority: -1
- Regex: "tier0/memdbgon.h"
Priority: 10000
- Regex: ".*"
Priority: 1
IndentCaseBlocks: true
IndentCaseLabels: false
IndentPPDirectives: None
IndentRequiresClause: true
IndentWidth: 4
IndentWrappedFunctionNames: false
KeepEmptyLinesAtTheStartOfBlocks: false
LambdaBodyIndentation: Signature
Language: Cpp
BasedOnStyle: Microsoft
Standard: Cpp11

AlignOperands: false

IndentCaseLabels: 'true'
IndentPPDirectives: BeforeHash
IndentWidth: '4'

FixNamespaceComments: 'true'
MacroBlockBegin: "^BEGIN_.*|IMPLEMENT_NETWORKCLASS.*$|^IMPLEMENT_CLIENTCLASS.*$|^IMPLEMENT_SERVERCLASS.*$|^CLIENTEFFECT_REGISTER_BEGIN.*$"
MacroBlockEnd: "^END_.*$|^CLIENTEFFECT_REGISTER_END.*$"
MaxEmptyLinesToKeep: 1
NamespaceIndentation: All

PointerAlignment: Right

SortIncludes: 'false'

TabWidth: '4'
PackConstructorInitializers: BinPack
PenaltyReturnTypeOnItsOwnLine: 1000000
PointerAlignment: Right # todo: change to Left
PPIndentWidth: 1
ReferenceAlignment: Right # todo: change to Left
ReflowComments: true
RequiresClausePosition: OwnLine
SeparateDefinitionBlocks: Always
SortIncludes: true
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatementsExceptControlMacros
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesInAngles: false
SpacesInConditionalStatement: true
SpacesInContainerLiterals: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: true
SpacesInSquareBrackets: false
Standard: c++20
StatementMacros:
- DECLARE_CLIENTCLASS
- DECLARE_CLIENTCLASS_NOBASE
- DECLARE_SERVERCLASS
- DECLARE_SERVERCLASS_NOBASE
- IMPLEMENT_CLIENTCLASS
- IMPLEMENT_SERVERCLASS
- NOTE_UNUSED
TabWidth: 4
UseTab: Always
UseCRLF: false
WhitespaceSensitiveMacros:
- MKSTRING

AccessModifierOffset: -4

SpacesInAngles: 'false'
SpacesInCStyleCastParentheses: 'false'
SpacesInConditionalStatement: 'true'
SpacesInContainerLiterals: 'false'
SpacesInParentheses: 'true'
SpacesInSquareBrackets: 'false'

ReflowComments: 'false'

PenaltyExcessCharacter: 0
---
Language: Proto
DisableFormat: true
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

root = true

[*]
insert_final_newline = false
indent_style = tab
indent_size = 4
trim_trailing_whitespace = false
43 changes: 0 additions & 43 deletions LICENSE

This file was deleted.

16 changes: 16 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

pushd "$(dirname "${BASH_SOURCE-$0}")" > /dev/null || exit
source devtools/linux/env.sh

export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
export CLICOLOR_FORCE=1
export TERM=xterm-256color

alias gcc="gcc -fdiagnostics-color=auto"

PROJECT=games

CXXFLAGS="-w -fdiagnostics-color=always" make -f$PROJECT.mak

popd || exit
1 change: 0 additions & 1 deletion common/language.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ static const Language_t s_LanguageNames[] =
{ "Brazilian", "brazilian", "#GameUI_Language_Brazilian", "pt_BR", k_Lang_Brazilian, 1046 } ,
{ "Bulgarian", "bulgarian", "#GameUI_Language_Bulgarian", "bg_BG", k_Lang_Bulgarian, 1026 } ,
{ "Greek", "greek", "#GameUI_Language_Greek", "el_GR", k_Lang_Greek, 1032 },
{ "Ukrainian", "ukrainian", "#GameUI_Language_Ukrainian", "uk_UA", k_Lang_Ukrainian, 1058 },
};

//-----------------------------------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion common/language.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ enum ELanguage
k_Lang_Brazilian,
k_Lang_Bulgarian,
k_Lang_Greek,
k_Lang_Ukrainian,
k_Lang_MAX
};

Expand Down
53 changes: 0 additions & 53 deletions common/lzma/lzma.h

This file was deleted.

17 changes: 3 additions & 14 deletions common/studiobyteswap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -891,8 +891,8 @@ void ByteswapAnimData( mstudioanimdesc_t *pAnimDesc, int section, byte *&pDataSr
int iStartFrame = section * sectionFrames;
int iEndFrame = (section + 1) * sectionFrames;

iStartFrame = min( iStartFrame, totalFrames - 1 );
iEndFrame = min( iEndFrame, totalFrames - 1 );
iStartFrame = MIN( iStartFrame, totalFrames - 1 );
iEndFrame = MIN( iEndFrame, totalFrames - 1 );

totalFrames = iEndFrame - iStartFrame + 1;
}
Expand Down Expand Up @@ -1679,11 +1679,6 @@ int ByteswapMDLFile( void *pDestBase, void *pSrcBase, const int fileSize )

SET_INDEX_POINTERS( pData, pSequence, keyvalueindex )
WriteBuffer<char>( pDataDest, pDataSrc, SrcNative( &pSequence->keyvaluesize ) );

/** ACTIVITY MODIFIERS **/

SET_INDEX_POINTERS( pData, pSequence, activitymodifierindex )
WriteObjects<mstudioactivitymodifier_t>( pDataDest, pDataSrc, SrcNative( &pSequence->numactivitymodifiers ) );
}

/** TRANSITION GRAPH **/
Expand Down Expand Up @@ -2806,10 +2801,6 @@ BEGIN_BYTESWAP_DATADESC( mstudiomovement_t )
DEFINE_FIELD( position, FIELD_VECTOR ),
END_BYTESWAP_DATADESC()

BEGIN_BYTESWAP_DATADESC( mstudioactivitymodifier_t )
DEFINE_INDEX( sznameindex, FIELD_INTEGER ),
END_BYTESWAP_DATADESC()

BEGIN_BYTESWAP_DATADESC( mstudioseqdesc_t )
DEFINE_INDEX( baseptr, FIELD_INTEGER ),
DEFINE_INDEX( szlabelindex, FIELD_INTEGER ),
Expand Down Expand Up @@ -2849,9 +2840,7 @@ BEGIN_BYTESWAP_DATADESC( mstudioseqdesc_t )
DEFINE_INDEX( keyvalueindex, FIELD_INTEGER ),
DEFINE_FIELD( keyvaluesize, FIELD_INTEGER ),
DEFINE_INDEX( cycleposeindex, FIELD_INTEGER ),
DEFINE_INDEX( activitymodifierindex, FIELD_INTEGER ),
DEFINE_FIELD( numactivitymodifiers, FIELD_INTEGER ),
DEFINE_ARRAY( unused, FIELD_INTEGER, 5 ), // remove/add as appropriate (grow back to 8 ints on version change!)
DEFINE_ARRAY( unused, FIELD_INTEGER, 7 ), // remove/add as appropriate (grow back to 8 ints on version change!)
END_BYTESWAP_DATADESC()

BEGIN_BYTESWAP_DATADESC( mstudioevent_t )
Expand Down
8 changes: 8 additions & 0 deletions createallprojects
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

cd "$(dirname "${BASH_SOURCE-$0}")" || exit
devtools/bin/vpc /vance +everything /mksln everything

make -Bnwk -no-silent -j"$(nproc)" -feverything.mak | compiledb
#bear -- make -Bnwk -no-silent -j"$(nproc)" -feverything.mak

7 changes: 7 additions & 0 deletions creategameprojects
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

cd "$(dirname "${BASH_SOURCE-$0}")" || exit
devtools/bin/vpc /vance +game +shaders /mksln games

make -Bnwk -no-silent -j"$(nproc)" -fgames.mak | compiledb
#bear -- make -Bnwk -no-silent -j"$(nproc)" -fgames.mak
3 changes: 1 addition & 2 deletions creategameprojects.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
devtools\bin\vpc.exe /vance +game +game_shader_dx9 /mksln games.sln
pause
devtools\bin\vpc.exe /vance +game +shaders /mksln games.sln
Loading