Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port navmesh debug renderer from primedev #626

Merged
merged 28 commits into from
Feb 5, 2024
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
115153c
Cherry picking by hand
ASpoonPlaysGames Dec 21, 2023
eba8719
another commit of the same thing
ASpoonPlaysGames Dec 21, 2023
4dd0bcb
Merge remote-tracking branch 'upstream/main' into primedev/one-folder
ASpoonPlaysGames Dec 21, 2023
fe1df93
fix CI
ASpoonPlaysGames Dec 21, 2023
5d2c56c
exclude thirdparty from CI now that it is in the same root folder
ASpoonPlaysGames Dec 21, 2023
50e5cd8
missed some files apparently
ASpoonPlaysGames Dec 21, 2023
71f784b
fix findminizip (it didnt exist in base commit)
ASpoonPlaysGames Dec 21, 2023
9bf2189
fix release (hopefully)
ASpoonPlaysGames Dec 21, 2023
66c6290
death by typo
ASpoonPlaysGames Dec 21, 2023
975e417
fix resource file
ASpoonPlaysGames Dec 21, 2023
7bb8789
update clang-format readme
ASpoonPlaysGames Dec 21, 2023
059c566
Add navmesh visualisation
F1F7Y Sep 21, 2023
d564367
start making it compatible
ASpoonPlaysGames Dec 22, 2023
6641e39
Add cllient tools interface
F1F7Y Sep 21, 2023
6642bd7
down the dependency rabbit hole we go
ASpoonPlaysGames Dec 22, 2023
5c899c1
i think i reached the end of the dependency rabbit hole
ASpoonPlaysGames Dec 22, 2023
7e896e5
formatting (the first and hopefully the last)
ASpoonPlaysGames Dec 22, 2023
0206121
it was not the last
ASpoonPlaysGames Dec 22, 2023
0dae7f1
move for cherry-pick
ASpoonPlaysGames Dec 26, 2023
e4ddc41
Improve navmesh rendering performance
F1F7Y Sep 22, 2023
6dea21c
move back
ASpoonPlaysGames Dec 26, 2023
03d2025
Merge branch 'main' into navmesh-renderer
ASpoonPlaysGames Dec 27, 2023
baf8546
all my homies hate typedef
ASpoonPlaysGames Dec 27, 2023
12ec6d3
add name to ClientTools functions
RoyalBlue1 Jan 3, 2024
5590a23
Format Northstar.cmake
GeckoEidechse Jan 3, 2024
dc637c2
Merge branch 'main' into navmesh-renderer
ASpoonPlaysGames Jan 3, 2024
d1e697a
Merge branch 'main' into navmesh-renderer
GeckoEidechse Jan 3, 2024
f3aefb2
Merge branch 'main' into navmesh-renderer
GeckoEidechse Feb 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Format Northstar.cmake
GeckoEidechse committed Jan 3, 2024
commit 5590a23b7dc2122004164cf845f061996b002ae8
370 changes: 189 additions & 181 deletions primedev/Northstar.cmake
Original file line number Diff line number Diff line change
@@ -4,188 +4,196 @@ find_package(minhook REQUIRED)
find_package(libcurl REQUIRED)
find_package(minizip REQUIRED)

add_library(NorthstarDLL SHARED
"resources.rc"
"client/audio.cpp"
"client/audio.h"
"client/chatcommand.cpp"
"client/clientauthhooks.cpp"
"client/clientruihooks.cpp"
"client/clientvideooverrides.cpp"
"client/debugoverlay.cpp"
"client/demofixes.cpp"
"client/diskvmtfixes.cpp"
"client/entity_client_tools.cpp"
"client/languagehooks.cpp"
"client/latencyflex.cpp"
"client/localchatwriter.cpp"
"client/localchatwriter.h"
"client/modlocalisation.cpp"
"client/r2client.cpp"
"client/r2client.h"
"client/rejectconnectionfixes.cpp"
"config/profile.cpp"
"config/profile.h"
"core/convar/concommand.cpp"
"core/convar/concommand.h"
"core/convar/convar.cpp"
"core/convar/convar.h"
"core/convar/cvar.cpp"
"core/convar/cvar.h"
"core/filesystem/filesystem.cpp"
"core/filesystem/filesystem.h"
"core/filesystem/rpakfilesystem.cpp"
"core/filesystem/rpakfilesystem.h"
"core/math/bitbuf.h"
"core/math/bits.cpp"
"core/math/bits.h"
"core/math/color.cpp"
"core/math/color.h"
"core/math/math_pfns.h"
"core/math/vector.h"
"core/math/vplane.h"
"core/hooks.cpp"
"core/hooks.h"
"core/macros.h"
"core/memalloc.cpp"
"core/memalloc.h"
"core/memory.cpp"
"core/memory.h"
"core/sourceinterface.cpp"
"core/sourceinterface.h"
"core/structs.h"
"core/tier0.cpp"
"core/tier0.h"
"core/tier1.cpp"
"core/tier1.h"
"dedicated/dedicated.cpp"
"dedicated/dedicated.h"
"dedicated/dedicatedlogtoclient.cpp"
"dedicated/dedicatedlogtoclient.h"
"dedicated/dedicatedmaterialsystem.cpp"
"engine/host.cpp"
"engine/hoststate.cpp"
"engine/hoststate.h"
"engine/r2engine.cpp"
"engine/r2engine.h"
"engine/runframe.cpp"
"logging/crashhandler.cpp"
"logging/crashhandler.h"
"logging/logging.cpp"
"logging/logging.h"
"logging/loghooks.cpp"
"logging/loghooks.h"
"logging/sourceconsole.cpp"
"logging/sourceconsole.h"
"masterserver/masterserver.cpp"
"masterserver/masterserver.h"
"mods/autodownload/moddownloader.h"
"mods/autodownload/moddownloader.cpp"
"mods/compiled/kb_act.cpp"
"mods/compiled/modkeyvalues.cpp"
"mods/compiled/modpdef.cpp"
"mods/compiled/modscriptsrson.cpp"
"mods/modmanager.cpp"
"mods/modmanager.h"
"mods/modsavefiles.cpp"
"mods/modsavefiles.h"
"plugins/plugin_abi.h"
"plugins/pluginbackend.cpp"
"plugins/pluginbackend.h"
"plugins/plugins.cpp"
"plugins/plugins.h"
"scripts/client/clientchathooks.cpp"
"scripts/client/cursorposition.cpp"
"scripts/client/scriptbrowserhooks.cpp"
"scripts/client/scriptmainmenupromos.cpp"
"scripts/client/scriptmodmenu.cpp"
"scripts/client/scriptoriginauth.cpp"
"scripts/client/scriptserverbrowser.cpp"
"scripts/client/scriptservertoclientstringcommand.cpp"
"scripts/server/miscserverfixes.cpp"
"scripts/server/miscserverscript.cpp"
"scripts/server/scriptuserinfo.cpp"
"scripts/scriptdatatables.cpp"
"scripts/scripthttprequesthandler.cpp"
"scripts/scripthttprequesthandler.h"
"scripts/scriptjson.cpp"
"scripts/scriptjson.h"
"scripts/scriptutility.cpp"
"server/auth/bansystem.cpp"
"server/auth/bansystem.h"
"server/auth/serverauthentication.cpp"
"server/auth/serverauthentication.h"
"server/alltalk.cpp"
"server/ai_helper.cpp"
"server/ai_helper.h"
"server/ai_navmesh.cpp"
"server/ai_navmesh.h"
"server/buildainfile.cpp"
"server/r2server.cpp"
"server/r2server.h"
"server/serverchathooks.cpp"
"server/serverchathooks.h"
"server/servernethooks.cpp"
"server/serverpresence.cpp"
"server/serverpresence.h"
"shared/exploit_fixes/exploitfixes.cpp"
"shared/exploit_fixes/exploitfixes_lzss.cpp"
"shared/exploit_fixes/exploitfixes_utf8parser.cpp"
"shared/exploit_fixes/ns_limits.cpp"
"shared/exploit_fixes/ns_limits.h"
"shared/keyvalues.cpp"
"shared/keyvalues.h"
"shared/maxplayers.cpp"
"shared/maxplayers.h"
"shared/misccommands.cpp"
"shared/misccommands.h"
"shared/playlist.cpp"
"shared/playlist.h"
"squirrel/squirrel.cpp"
"squirrel/squirrel.h"
"squirrel/squirrelautobind.cpp"
"squirrel/squirrelautobind.h"
"squirrel/squirrelclasstypes.h"
"squirrel/squirreldatatypes.h"
"util/printcommands.cpp"
"util/printcommands.h"
"util/printmaps.cpp"
"util/printmaps.h"
"util/utils.cpp"
"util/utils.h"
"util/version.cpp"
"util/version.h"
"util/wininfo.cpp"
"util/wininfo.h"
"dllmain.cpp"
"dllmain.h"
"ns_version.h"
)
add_library(
NorthstarDLL SHARED
"resources.rc"
"client/audio.cpp"
"client/audio.h"
"client/chatcommand.cpp"
"client/clientauthhooks.cpp"
"client/clientruihooks.cpp"
"client/clientvideooverrides.cpp"
"client/debugoverlay.cpp"
"client/demofixes.cpp"
"client/diskvmtfixes.cpp"
"client/entity_client_tools.cpp"
"client/languagehooks.cpp"
"client/latencyflex.cpp"
"client/localchatwriter.cpp"
"client/localchatwriter.h"
"client/modlocalisation.cpp"
"client/r2client.cpp"
"client/r2client.h"
"client/rejectconnectionfixes.cpp"
"config/profile.cpp"
"config/profile.h"
"core/convar/concommand.cpp"
"core/convar/concommand.h"
"core/convar/convar.cpp"
"core/convar/convar.h"
"core/convar/cvar.cpp"
"core/convar/cvar.h"
"core/filesystem/filesystem.cpp"
"core/filesystem/filesystem.h"
"core/filesystem/rpakfilesystem.cpp"
"core/filesystem/rpakfilesystem.h"
"core/math/bitbuf.h"
"core/math/bits.cpp"
"core/math/bits.h"
"core/math/color.cpp"
"core/math/color.h"
"core/math/math_pfns.h"
"core/math/vector.h"
"core/math/vplane.h"
"core/hooks.cpp"
"core/hooks.h"
"core/macros.h"
"core/memalloc.cpp"
"core/memalloc.h"
"core/memory.cpp"
"core/memory.h"
"core/sourceinterface.cpp"
"core/sourceinterface.h"
"core/structs.h"
"core/tier0.cpp"
"core/tier0.h"
"core/tier1.cpp"
"core/tier1.h"
"dedicated/dedicated.cpp"
"dedicated/dedicated.h"
"dedicated/dedicatedlogtoclient.cpp"
"dedicated/dedicatedlogtoclient.h"
"dedicated/dedicatedmaterialsystem.cpp"
"engine/host.cpp"
"engine/hoststate.cpp"
"engine/hoststate.h"
"engine/r2engine.cpp"
"engine/r2engine.h"
"engine/runframe.cpp"
"logging/crashhandler.cpp"
"logging/crashhandler.h"
"logging/logging.cpp"
"logging/logging.h"
"logging/loghooks.cpp"
"logging/loghooks.h"
"logging/sourceconsole.cpp"
"logging/sourceconsole.h"
"masterserver/masterserver.cpp"
"masterserver/masterserver.h"
"mods/autodownload/moddownloader.h"
"mods/autodownload/moddownloader.cpp"
"mods/compiled/kb_act.cpp"
"mods/compiled/modkeyvalues.cpp"
"mods/compiled/modpdef.cpp"
"mods/compiled/modscriptsrson.cpp"
"mods/modmanager.cpp"
"mods/modmanager.h"
"mods/modsavefiles.cpp"
"mods/modsavefiles.h"
"plugins/plugin_abi.h"
"plugins/pluginbackend.cpp"
"plugins/pluginbackend.h"
"plugins/plugins.cpp"
"plugins/plugins.h"
"scripts/client/clientchathooks.cpp"
"scripts/client/cursorposition.cpp"
"scripts/client/scriptbrowserhooks.cpp"
"scripts/client/scriptmainmenupromos.cpp"
"scripts/client/scriptmodmenu.cpp"
"scripts/client/scriptoriginauth.cpp"
"scripts/client/scriptserverbrowser.cpp"
"scripts/client/scriptservertoclientstringcommand.cpp"
"scripts/server/miscserverfixes.cpp"
"scripts/server/miscserverscript.cpp"
"scripts/server/scriptuserinfo.cpp"
"scripts/scriptdatatables.cpp"
"scripts/scripthttprequesthandler.cpp"
"scripts/scripthttprequesthandler.h"
"scripts/scriptjson.cpp"
"scripts/scriptjson.h"
"scripts/scriptutility.cpp"
"server/auth/bansystem.cpp"
"server/auth/bansystem.h"
"server/auth/serverauthentication.cpp"
"server/auth/serverauthentication.h"
"server/alltalk.cpp"
"server/ai_helper.cpp"
"server/ai_helper.h"
"server/ai_navmesh.cpp"
"server/ai_navmesh.h"
"server/buildainfile.cpp"
"server/r2server.cpp"
"server/r2server.h"
"server/serverchathooks.cpp"
"server/serverchathooks.h"
"server/servernethooks.cpp"
"server/serverpresence.cpp"
"server/serverpresence.h"
"shared/exploit_fixes/exploitfixes.cpp"
"shared/exploit_fixes/exploitfixes_lzss.cpp"
"shared/exploit_fixes/exploitfixes_utf8parser.cpp"
"shared/exploit_fixes/ns_limits.cpp"
"shared/exploit_fixes/ns_limits.h"
"shared/keyvalues.cpp"
"shared/keyvalues.h"
"shared/maxplayers.cpp"
"shared/maxplayers.h"
"shared/misccommands.cpp"
"shared/misccommands.h"
"shared/playlist.cpp"
"shared/playlist.h"
"squirrel/squirrel.cpp"
"squirrel/squirrel.h"
"squirrel/squirrelautobind.cpp"
"squirrel/squirrelautobind.h"
"squirrel/squirrelclasstypes.h"
"squirrel/squirreldatatypes.h"
"util/printcommands.cpp"
"util/printcommands.h"
"util/printmaps.cpp"
"util/printmaps.h"
"util/utils.cpp"
"util/utils.h"
"util/version.cpp"
"util/version.h"
"util/wininfo.cpp"
"util/wininfo.h"
"dllmain.cpp"
"dllmain.h"
"ns_version.h"
)

target_link_libraries(NorthstarDLL PRIVATE
minhook
libcurl
minizip
WS2_32.lib
Crypt32.lib
Cryptui.lib
dbghelp.lib
Wldap32.lib
Normaliz.lib
Bcrypt.lib
version.lib
)
target_link_libraries(
NorthstarDLL
PRIVATE minhook
libcurl
minizip
WS2_32.lib
Crypt32.lib
Cryptui.lib
dbghelp.lib
Wldap32.lib
Normaliz.lib
Bcrypt.lib
version.lib
)

target_precompile_headers(NorthstarDLL PRIVATE pch.h)
target_precompile_headers(
NorthstarDLL
PRIVATE
pch.h
)

target_compile_definitions(NorthstarDLL PRIVATE
UNICODE
_UNICODE
CURL_STATICLIB
)
target_compile_definitions(
NorthstarDLL
PRIVATE UNICODE
_UNICODE
CURL_STATICLIB
)

set_target_properties(NorthstarDLL PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${NS_BINARY_DIR}
OUTPUT_NAME Northstar
LINK_FLAGS "/MANIFEST:NO /DEBUG"
)
set_target_properties(
NorthstarDLL
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${NS_BINARY_DIR}
OUTPUT_NAME Northstar
LINK_FLAGS "/MANIFEST:NO /DEBUG"
)