Add mcl_player_csm
mod to check if a player have the official CSM enabled #3094
No reviewers
Labels
No Label
#P1 CRITICAL
#P2: HIGH
#P3: elevated
#P4 priority: medium
#P6: low
#Review
annoying
API
bug
code quality
combat
commands
compatibility
configurability
contribution inside
controls
core feature
creative mode
delayed for engine release
documentation
duplicate
enhancement
environment
gameplay
graphics
ground content conflict
GUI/HUD
help wanted
incomplete feature
invalid / won't fix
items
looking for contributor
mapgen
meta
mineclone2+
Minecraft >= 1.13
Minecraft >= 1.17
missing feature
mobile
mobs
mod support
model needed
multiplayer
Needs adoption
needs discussion
needs engine change
needs more information
needs research
nodes
non-Minecraft feature
non-mob entities
performance
player
possible close
redstone
release notes
schematics
Skyblock
sounds
Testing / Retest
tools
translation
unconfirmed
mcl5
mcla
Media missing
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: VoxeLibre/VoxeLibre#3094
Loading…
Reference in New Issue
No description provided.
Delete Branch "csm-enabled"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Depend of MineClone2/MineClone2Client#2
Will allow to give a better UX for CSM users conditionally.
eg: fix MineClone2/MineClone2#1724 , with adition of CSM graphics and animations
Can you explain a bit more about this mod so I can understand better, please?
How do I test the Mineclone2Client for example, and what would this change enable?
MineClone2/MineClone2Client#2 makes the client mod send a message to the server then connecting.
This PR make the server understand this message and store that the client is actually using the CSM.
This is not doing anything yet, but will allow to switch between CSM and server-side graphics per-player.
How to test:
/have_csm
and/have_csm singleplayer
returns false/have_csm
and/have_csm singleplayer
returns trueI'm not sure what I'm doing wrong here. Checked out both branches and when adding the Mineclone2Client into my mods, it still gives me false. Any ideas?
MineClone2Client is a CSM, not a regular mod lol
I think it still loads as a SSM because API used have the same names, but it will surely not work as expected.
89e7f72c92/doc/client_lua_api.txt (L28)
I wasn't able to make this work in local multiplayer.Solution
i forgot to enable
enable_client_modding
in the settings. me dumbSteps to test
reproducemod.conf
by addingload_mineclone2_client = true
. Make sureenable_client_modding
is enabled in the settings./have_csm
and/have_csm NAME
.Expected: true message in chat
true
tofalse
inmod.conf
.Expected: false message in chat
I'm assuming this is a debug preview because of
/have_csm
. Or is this intended to be in MCL2?The command require the debug priv, so it can be added to mcl2, but it is a bit useless and IDK if its good to add yet another useless command to the game.
Maybe better to comment it, so if someone wants to debug/test something they just have to re-enable it.
I'd make it a setting, if for no other reason that someone will come along and either uncomment it, or delete it.
One of the main things is to not leave in commented code blocks -- for those two reasons -- in professional settings.
I never managed to successfully test this as I couldn't get the CSM working.
If anyone can, it might be good.