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

A few small changes (cl_filterGames + MAX_PATCH_PLANES increase) #1188

Merged
merged 4 commits into from
Feb 8, 2024

Conversation

Daggolin
Copy link
Contributor

This pull request introduces a new cvar cl_filterGames and defaults it to MBII MBIIOpenBeta. Servers using an fs_game value that's on the list specified in cl_filterGames are going to be ignored on the serverlist. The default value seems to cover the majoriy of MBII servers.

Additionally the MAX_PATCH_PLANES value got increased from 2048 to 4096, because some maps (at least for jk2) require a higher limit.

…atching one listed in the cvar (separated by spaces).
…_game values as default for cl_filterGames to filter them out.
Due to precision/rounding differences the vanilla engine on Windows, Linux and Mac effectively treated this limit different and the behavior for never consistent. For that reason jk2mv doubled the value back in 2015 and by now some maps require the limit to be increased.
@Daggolin Daggolin requested a review from a team as a code owner November 12, 2023 12:59
@Bucky21659
Copy link

Bucky21659 commented Nov 12, 2023

Seems a little racist to filter out an entire mod by default huh..

Really though, it shouldn't blacklist an fs_game if the client is currently using it.

Skip cl_filterGames entry if it matches the current fs_game.
Add support for filtering servers without fs_game set (BASEGAME).
@Daggolin
Copy link
Contributor Author

Seems a little racist to filter out an entire mod by default huh..

Good thing it's not hardcoded like it was on the fork you maintained. ^^

For anyone unfamiliar with the current situation: MBII is a total conversion for multiplayer. It requires new modules (game/cgame/ui), new pk3s (menus, maps, models, textures, ...) and possibly other things to be able to join a server. The mod can NOT be downloaded ingame (neither using the vanilla client nor OpenJK) and when you try to join the server you drop back to the main menu with an error message most players probably don't understand (for instance: invalid entityState field count). There is no helpful meassges printed, the player is left wondering what the issue is and why they can't play online or how to resolve it. While writing this message I checked the serverlist: there is currently 151 servers of which 56 match the default cl_filterGames proposed in this pull request. That means more than one third of the servers (almost 40 percent) are not usable with OpenJK, because they require a total conversion mod. This makes it hard for players to find actual servers they can join and in recent times players have already asked for help on how to fix their game, because they ran into error messages caused by trying to join MBII servers (with more than a third of servers requiring MBII that's not surprising). Who knows how many players tried to play online and gave up, not finding their way into community chatrooms to ask for help?

As I don't play MBII myself I may be wrong on this, but as far as I know MBII only supports the vanilla client and it requires a custom launcher to run the game. These defaults should not affect MBII.

Really though, it shouldn't blacklist an fs_game if the client is currently using it.

Good catch, thank you. Added a check for that. If MBII supports OpenJK at some point just launching the game with the right fs_game should counteract the default value provided by cl_filterGames now.

@taysta taysta mentioned this pull request Nov 28, 2023
@Razish Razish merged commit 58ad339 into JACoders:master Feb 8, 2024
16 checks passed
taysta pushed a commit to taysta/TaystJK that referenced this pull request Feb 9, 2024
…oders#1188)

* [MP] Add cl_filterGames cvar to discard servers that use an fs_game matching one listed in the cvar (separated by spaces).

* [MP] Use known MB2 (incompatible mod using the default serverlist) fs_game values as default for cl_filterGames to filter them out.

* [Shared] Increase MAX_PATCH_PLANES from 2048 to 4096.

Due to precision/rounding differences the vanilla engine on Windows, Linux and Mac effectively treated this limit different and the behavior for never consistent. For that reason jk2mv doubled the value back in 2015 and by now some maps require the limit to be increased.

* [MP] Improve cl_filterGames.

Skip cl_filterGames entry if it matches the current fs_game.
Add support for filtering servers without fs_game set (BASEGAME).

(cherry picked from commit 58ad339)
taysta added a commit to taysta/TaystJK that referenced this pull request Feb 10, 2024
* A few small changes (cl_filterGames + MAX_PATCH_PLANES increase) (JACoders#1188)

* [MP] Add cl_filterGames cvar to discard servers that use an fs_game matching one listed in the cvar (separated by spaces).

* [MP] Use known MB2 (incompatible mod using the default serverlist) fs_game values as default for cl_filterGames to filter them out.

* [Shared] Increase MAX_PATCH_PLANES from 2048 to 4096.

Due to precision/rounding differences the vanilla engine on Windows, Linux and Mac effectively treated this limit different and the behavior for never consistent. For that reason jk2mv doubled the value back in 2015 and by now some maps require the limit to be increased.

* [MP] Improve cl_filterGames.

Skip cl_filterGames entry if it matches the current fs_game.
Add support for filtering servers without fs_game set (BASEGAME).

(cherry picked from commit 58ad339)

* replace PATCH_STITCHING preprocessor define with r_patchStitching cvar (JACoders#1199)

(cherry picked from commit 540edeb)

---------

Co-authored-by: Daggolin <daggolin@gmx.de>
Co-authored-by: razor <mrrazish@gmail.com>
taysta pushed a commit to taysta/TaystJK that referenced this pull request Feb 10, 2024
…oders#1188)

* [MP] Add cl_filterGames cvar to discard servers that use an fs_game matching one listed in the cvar (separated by spaces).

* [MP] Use known MB2 (incompatible mod using the default serverlist) fs_game values as default for cl_filterGames to filter them out.

* [Shared] Increase MAX_PATCH_PLANES from 2048 to 4096.

Due to precision/rounding differences the vanilla engine on Windows, Linux and Mac effectively treated this limit different and the behavior for never consistent. For that reason jk2mv doubled the value back in 2015 and by now some maps require the limit to be increased.

* [MP] Improve cl_filterGames.

Skip cl_filterGames entry if it matches the current fs_game.
Add support for filtering servers without fs_game set (BASEGAME).
taysta added a commit to taysta/TaystJK that referenced this pull request Mar 5, 2024
* damagenumbers improvement, mandatory checkpoint logic improvement

* fix damage number for npc

* typo fix

* add courseid to checkpoints for eventual mandatory checkpoint

* Update japro_docs.md

* Update w_force.c

nerf tribes shield/protect

* deadstop fix for mv_tribes?

* shield nerf tribes

* ability to unset checkpoints

* tribes wep tweaks, dodgemove

* dodge tweak

* tribes dodge tweak

* tribes weapon tweaks

* oops

* wep tweak

* oops

* tribes wep tweaks, no more mortar weapontweak its part of tribes now

* rocket fix

* rewrite firetime overwrites

* redeemer tribes tweakz

* Update g_weapon.c

* dashfix?

* epic

* fix redeemer tribes

* buff dodge

* dodge uses fuel

* ep

* s6

* Update g_trigger.c

* Update g_trigger.c

* s6

* splashdmg flag,  edgebug fix option (test)

* epic

* 1flag ctf

* flagpunt nerf, racemode ctf fix?

* g_neutralflag 5 for other style of 1flagctf

* 1flagctf timers

* checkpoint and neutral flag timer tweak

* timerfix

* add fix explosive hitbox as a wt

* spawnflags 256 + 4 on newpush for absolute z vel

* allowedstyle for trigger_newpush

* auto return pitted flags even if there is no surf_nodrop

* strange return fix?

* bug?

* ok

* flag splash knockback fix, bounce fix

* fixes from tom

* tribes class system test

* tribes class fix

* tribes heavy hitbox

* tribes class fix

* modelname c hange

* tribes tweaks

* tribes balance

* tayst fix 1stperson ski view

* tribes fixes

* tribes fix

* tribes tweaks

* eweb tweaks

* tribes vel tweaks (t2c) , crashfix, aagun

* fixfff

fff

* fix pill ghosting, score bug

* heavy physics tweak

* fix

* ammo fix

* faster jet refuel, give jetfuel on pills

* make tribes jetpack use forcepower instead of jetpackfuel

also blow up redeemer if we weaponswitch

* nerf shrike ram damage in tribes mode

* redeemer rework to not require perfect aim

* make tribes alt rockets easier to hit

* re add redeemer explode when swap wep

* redeemer tweak

* redeemer tweak for turnspeed cap

* redeemer tweak

* instantupdate tribesclass, showhealth settings

* heavy healthbar

* chaingun overheat mechanic

* stunbaton for tribes

* let us walk up steeper slopes in tribes

* test push, sabers in tribes.  hardcode jetpack regen in tribes.

* re add full grapple to tribes but make it cost fuel

* fix

* fix

* push strength fix tribes

* crash fix

* backslash tribes

* tribes push

* longer sabers in tribes

* fix shields in tribes

* fix

* rCompare command

todo: sorted by difference instead of course popularity

* plasma gun v1

* dont healthbar racemoders

* 3rd class for tribes (light)

* boltlauncher tweak

* fix

* dont require forcepoint menu for tribes powers

* fix

* fix2

* tweak

* charge

* crashfix

* fix

* fix for tribes GLs not rendering explosions on direct hits with terrain......

* scale net health when increasing health instead of just in g_damage

* superheavy damage nerf, superheavy knockback reduce, class based knockback scale, class based push scale

also half energy gained by pills if you are using protect

* tribes class detection tweak

* tribes respawn delay

discjump nerf
light items fix
bowcaster flag punt

* no respawntimer in tffa

* nugget gives items, integer mins/maxs

* revert test?

* deadstop/stepsize fix

* light chain,

* fix?

* balances

* flagthrow physics

* crashfix

* jetpack hackscale fix, jetapck fuel regen delay, punting fix

* passive heal

* fix i guess

* tribesclass health rework

* fix

* tribes health regen, armor pickup fix

* tribes light mass fix, regen fix, kb fix

* fix health scaling, kb

* protect fix

* dmg tribesmode tweaks

* tribes weps

* crashfix, npc damage fix

* vehicle damage scaling

* better npc health fix

* tribes fixes, trigger newpush spawnflags 512

* coop conc fix

* tribes grapple tweaks

* conc sniper uses energy like phase rifle, mortar  FX tweak, bounce strength

* lt fix

* pill regen

* superheavy dmg fix, pill amt fix

* redo tribes grapple

* tribes grapple change

* crashfix???

* tribes grapple tweaks

* hook forcepoints

* proj sniper no drop

* proj sniper tweak

* swap firemodes for stun and e11 in tribes mode.

increase max slope walkable in tribes mode
rework hook (max 4s duration) in tribes mode
buff grapple range tribesmode
buff light chain overheat

* start of special pack moves for tribes

testing blink

* blink tweak

* blinkmove tweaks

* thrust pack

* pack fix

* oops

* cgame compilefix?

* cgame compile fix

* overdrive pack test

* do the overdrive speed here so its predicted without needing client

* sniepr dmg fix

* overdrive balance tweaks

* compilefix

* /pack to choose pack item

* pack default, proj sniper nerf tribes, inc course limit

* absorb delay tribes

* jetpack racemode fix, allowedstyle fix?

* few more warps

* conc racemode fix, hitbox scaling (?),

* flag phys tweak

* tribes racemode stuff

* conc splash fix, some typo fixes

* typo fix, will this change something with elevators in racemode?

* int to time function change

* fix racemode tribes kb

* tribes jet tweak (effective 20% energy drain buff heavy)

* crashfix?

* let search for rtop mapnames with spaces by using &

* tribes balance tweaks for pack/grapple

* don't consume tribes jetfuel in water

* mortar fix

* grapple speedloss fix

* trigger_hurt spawnflags 32 is npc only,  adjust  tr_gravity in tribes

* tired

* cosmetics unlock fix

* thrownade command

* throw grenade fix

* grapple tribes race fix

* test per-weapon delays

* test slick terrain fix

* oops

* re add some delay to doomet wepswitch

* tribes fixes

* surf v1 from devy / css

* surf fix?

* surf fix ?

* test surf strength cmd

* A few small changes (cl_filterGames + MAX_PATCH_PLANES increase) (JACoders#1188)

* [MP] Add cl_filterGames cvar to discard servers that use an fs_game matching one listed in the cvar (separated by spaces).

* [MP] Use known MB2 (incompatible mod using the default serverlist) fs_game values as default for cl_filterGames to filter them out.

* [Shared] Increase MAX_PATCH_PLANES from 2048 to 4096.

Due to precision/rounding differences the vanilla engine on Windows, Linux and Mac effectively treated this limit different and the behavior for never consistent. For that reason jk2mv doubled the value back in 2015 and by now some maps require the limit to be increased.

* [MP] Improve cl_filterGames.

Skip cl_filterGames entry if it matches the current fs_game.
Add support for filtering servers without fs_game set (BASEGAME).

* surf strength

* replace PATCH_STITCHING preprocessor define with r_patchStitching cvar (JACoders#1199)

* re add crashland in skii but adjust it so it doesn't affect zspeed

* quick fix to stop crouching down tribes slopes to give more speed

* comment rcompare

* cache pb/wr sounds

* downjet tribes tweak, self kb buff

* dont affect racemode with this until finalized

* blink nerf range

* fix thrownade

* render local entities as late as possible (JACoders#1200)

this should defer an overflow of refents occurring that would result in e.g. map models disappearing (light poles on mp/ffa5)
localents are a lower priority, we can afford to miss out on force push/grip effects in these cases

* Fix endless loop in Z_Malloc due to imageDeleted always being qtrue, even if no images were deleted. (JACoders#1209)

Co-authored-by: Tom <tomarrowtomarrow@hotmail.com>

* ignore numBones assert if we're mixing jk2/jka models (JACoders#1210)

* [Meta] trim EOL whitespace (JACoders#1202)

* trim EOL whitespace

* draw the rest of the owl

* fix encoding issue with JK2 cg_effects.cpp

* [Meta] deprecated WinXP builds, introduce macOS-14 runner for M1 builds (JACoders#1206)

* deprecated WinXP builds, introduce macOS-14 runner for M1 builds

* also allow running deprecated actions manually

* [Shared] misc loop overrun fixes (JACoders#1201)

* misc loop overrun fixes

* revert RT_BEAM changes

the extra iteration is intentional to seal the tri strip

* revert inadvertent whitespace changes

* [Meta] Update readme (JACoders#1171)

* update readme

* github-friendly emoji

* normalise build links

* missed a build link, clarified linux instructions

* link to publicly viewable org, normalise paths

* remove mention of OpenJKDF2

* [MP] reconcile game module changes with the original source releases by diffing codemp/game (JACoders#1178)

* reconcile game module changes with the SDK release by diffing codemp/game

* revert saberMoveData changes to match basejka, provide a new cvar (g_fixSaberMoveData) to patch it if desired
* introduce a new configstring (26: CS_LEGACY_FIXES) to inform the client of which fixes it should also apply, e.g. saberMoveData
* client module obtains gamestate (including configstrings) earlier to prevent use before initialisation, which is now checked for in debug builds
* revert a change to saber disarm bonus calculation if g_fixSaberDisarmBonus is not enabled
* G_CanBeEnemy considers private duels once again (removed from modbase before its git history)

* add disclaimer to legacyFixes_e

* revert: client module obtains gamestate (including configstrings) earlier to prevent use before initialisation

this was causing issues loading incorrect clientinfo

* [MP] Remove BASE_COMPAT define (JACoders#1211)

* move BASE_COMPAT flag behind cmake option BuildMPWithCompatMode, add g_fixWeaponAttackAnim making use of CS_LEGACY_FIXES

* remove BASE_COMPAT and BuildMPWithCompatMode, add g_fixRunWalkAnims

* actually remove BuildMPWithCompatMode

* remove bloat

* let passengers eject from vehicles

* Thomas

* crashfix

* replace saberthrow with backslash in tribes

* messy jetpack tribes test

* thrust buff, spread for light chain

* better dropped flag physics (slide downhill)

* flag slide tweak

* [MP] fix g_weaponDisable + g_forcePowerDisable regression when creating listen servers (JACoders#1217)

* fix g_weaponDisable + g_forcePowerDisable regression when creating listen servers.

re-enabling this block that turns e.g. g_weaponDisable 1 --> g_weaponDisable 524279
also fix some stray uninitialised warnings

* replace commented code with commented words

* g_forcelogin 2 blocks chat from people not logged in

* g_forcelogin 3 block rename - need testing

* add support for df_trigger_stop having worldrecordnoise field

* cs style crouch to surf style

* valid surf

* better highspeed jets

* river current support for trigger_newpush

1) a trigger brush w/ spawnflags 512 that covers the river
2) a target_position for each bend in the river.  push angle will be interpolated between the nearest two positions

* Update g_trigger.c

adjust trigger water push speed

* dynamic scoring for CTF flag returns based on distance from bases

* v0 of tribes bots

* adjust ctf scoring option

* print fix

* dynamic scoring for CTF flag returns based on distance from bases

(cherry picked from commit 3f21a83)

* v0 of tribes bots

(cherry picked from commit 8b4454a)

* adjust ctf scoring option

(cherry picked from commit 1715267)

* print fix

(cherry picked from commit ddf712c)

* better tribes bot weapon decisions, jet Z tweak,

* avoid configstring index clash with base_entranced (JACoders#1218)

* [Shared] add a custom CMake target to copy compilation DB from build dir to source dir (JACoders#1177)

* add a custom cmake target to copy compilation DB from build dir to source dir

see https://clang.llvm.org/docs/JSONCompilationDatabase.html for further details

* gitignore compile_commands.json

* better tribes bot weapon decisions, jet Z tweak,

(cherry picked from commit 375e215)

* Fixup merge conflicts

* Fixup merge conflicts - japro

---------

Co-authored-by: videoP <videoprofess@gmail.com>
Co-authored-by: Daggolin <Daggolin@Gmx.de>
Co-authored-by: razor <mrrazish@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants