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

FS Features #52

Merged
merged 21 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
c24eece
[MP] Add fs_forcegame cvar to override fs_game.
Daggolin Nov 6, 2023
4539be3
[MP] Prefix downloaded pk3s with the string "dl_" and only load downl…
Daggolin Nov 6, 2023
7ff6316
[MP] Add reflists and adjust reference conditions (ported from jk2mv).
Daggolin Nov 6, 2023
e3930ab
[Shared] Don't unpack/load native libraries from pk3s by default.
Daggolin Nov 6, 2023
8690f73
[Shared] Workaround for high kernel load when using many pk3s.
Daggolin Nov 6, 2023
19c162c
[Shared] Add fs_restart command to restart filesystem if no module ho…
Daggolin Nov 6, 2023
fb888be
[Shared] Remove hardcoded limit of 1024 pk3s. Try to increase the max…
Daggolin Nov 6, 2023
f536ef9
[MP] Add download overlay.
Daggolin Nov 11, 2023
f0b68d1
[MP] Default cl_allowDownload to 1, because cl_downloadPrompt is enab…
Daggolin Nov 11, 2023
caab880
Revert fs_loadpakdlls and fs_globalcfg
taysta Nov 27, 2023
5e30afd
Merge remote-tracking branch 'Daggolin/qol_fs' into daggo-fs
taysta Nov 27, 2023
69c98a6
Move the declaration up as we call it higher in the file now
taysta Nov 27, 2023
9513a4e
As native libraries (dlls on Windows) are no longer automatically unp…
taysta Nov 28, 2023
f388d57
Prevent noDL prefixed pk3's on the server from being auto-downloaded
taysta Nov 28, 2023
357c0a2
Remove redundant re-definitions
taysta Nov 28, 2023
61ff4c2
Remove sv_skipServersideDownloads
taysta Nov 28, 2023
f4a547e
Merge branch 'master' into daggo-fs
taysta Nov 28, 2023
718c31c
[MP] Skip downloads if the server has disabled sv_allowDownload.
Daggolin Nov 28, 2023
4fabac9
[MP] Install OpenJK modules to base for win32.
Daggolin Nov 28, 2023
65e8841
Merge remote-tracking branch 'Daggolin/qol_fs' into daggo-fs
taysta Nov 28, 2023
a3247ee
Merge branch 'master' into daggo-fs
taysta Nov 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ set(MPDed "eternaljkded.${Architecture}")
set(MPGame "jampgame${Architecture}")
set(MPCGame "cgame${Architecture}")
set(MPUI "ui${Architecture}")
set(BinsPk3 "japro-win-${Architecture}.pk3")
# Library names
set(MPBotLib "botlib")
set(SharedLib "shared")
Expand Down
2 changes: 1 addition & 1 deletion build/build-windows-msvc.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
SETLOCAL EnableDelayedExpansion

:: Initialize configuration options with default values
SET "BuildPortableVersion=OFF"
SET "BuildPortableVersion=ON"
SET "BuildMPEngine=ON"
SET "BuildMPRdVanilla=ON"
SET "BuildMPRdVulkan=ON"
Expand Down
44 changes: 4 additions & 40 deletions codemp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -741,55 +741,19 @@ if(BuildMPDed)
target_link_libraries(${MPDed} ${MPDedLibraries})
endif(BuildMPDed)

set(GameLibsBuilt)
if(BuildMPGame)
set(GameLibsBuilt ${GameLibsBuilt} ${MPGame})
endif()

if(BuildMPCGame)
set(GameLibsBuilt ${GameLibsBuilt} ${MPCGame})
endif()

if(BuildMPUI)
set(GameLibsBuilt ${GameLibsBuilt} ${MPUI})
endif()

include(InstallZIP)
if(WIN32)
set(GameLibFullPaths)
if(MSVC)
foreach(GameLib ${GameLibsBuilt})
set(GameLibFullPaths
${GameLibFullPaths}
${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${GameLib}${CMAKE_SHARED_LIBRARY_SUFFIX})
endforeach(GameLib)
else()
foreach(GameLib ${GameLibsBuilt})
set(GameLibFullPaths
${GameLibFullPaths}
${CMAKE_BINARY_DIR}/${GameLib}${CMAKE_SHARED_LIBRARY_SUFFIX})
endforeach(GameLib)
endif()
add_zip_command(${BinsPk3}
FILES ${GameLibFullPaths}
DEPENDS "${GameLibsBuilt}")
add_custom_target(Bins
ALL
DEPENDS ${BinsPk3})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${BinsPk3}
DESTINATION "${JKAInstallDir}/EternalJK"
COMPONENT ${JKAMPCoreComponent})
endif()

add_zip_command(japro-assets.pk3
FILES ${CMAKE_SOURCE_DIR}/assets/japro/*)

add_custom_target(Assets
ALL
DEPENDS japro-assets.pk3)

install(FILES
${CMAKE_CURRENT_BINARY_DIR}/japro-assets.pk3
DESTINATION "${JKAInstallDir}/EternalJK"
COMPONENT ${JKAMPCoreComponent})
DESTINATION "${JKAInstallDir}/EternalJK"
COMPONENT ${JKAMPCoreComponent})

install(FILES
${CMAKE_SOURCE_DIR}/assets/settings/cosmetics/example.cosmetic
Expand Down
4 changes: 4 additions & 0 deletions codemp/cgame/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ if(MakeApplicationBundles AND BuildMPEngine)
DESTINATION "${JKAInstallDir}/${MPEngine}.app/Contents/MacOS/EternalJK"
COMPONENT ${JKAMPCoreComponent})
elseif(WIN32)
install(TARGETS ${MPCGame}
RUNTIME
DESTINATION "${JKAInstallDir}/EternalJK"
COMPONENT ${JKAMPCoreComponent})
else()
install(TARGETS ${MPCGame}
LIBRARY
Expand Down
4 changes: 3 additions & 1 deletion codemp/client/cl_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,9 @@ CL_MouseEvent
=================
*/
void CL_MouseEvent( int dx, int dy, int time ) {
if (g_clAutoMapMode && cls.cgameStarted)
if (cls.cursorActive) {
CL_UpdateCursorPosition( dx, dy );
} else if (g_clAutoMapMode && cls.cgameStarted)
{ //automap input
autoMapInput_t *data = (autoMapInput_t *)cl.mSharedMemory;

Expand Down
11 changes: 7 additions & 4 deletions codemp/client/cl_keys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1811,25 +1811,28 @@ void CL_KeyDownEvent( int key, unsigned time )
return;
}

UIVM_KeyEvent( key, qtrue );
if ( !cls.cursorActive ) UIVM_KeyEvent( key, qtrue );
return;
}

// send the bound action
CL_ParseBinding( key, qtrue, time );
if ( !cls.cursorActive ) CL_ParseBinding( key, qtrue, time );

// distribute the key down event to the appropriate handler
// console
if ( Key_GetCatcher() & KEYCATCH_CONSOLE )
Console_Key( key );
else if ( cls.cursorActive ) {
CL_CursorButton( key );
}
// ui
else if ( Key_GetCatcher() & KEYCATCH_UI ) {
if ( cls.uiStarted )
if ( cls.uiStarted && !cls.cursorActive )
UIVM_KeyEvent( key, qtrue );
}
// cgame
else if ( Key_GetCatcher() & KEYCATCH_CGAME ) {
if ( cls.cgameStarted )
if ( cls.cgameStarted && !cls.cursorActive )
CGVM_KeyEvent( key, qtrue );
}
// chatbox
Expand Down