Commit graph

399 commits

Author SHA1 Message Date
kuwacom 842ffe2760 fix: added the updated library source 2026-03-08 15:41:10 +09:00
kuwacom dca2a73d4a Merge origin/main into feature/dedicated-server
Conflict resolution summary:

- CMakeLists.txt: kept main-side C++17/build-system updates and preserved the dedicated-server target, source list, and post-build asset copy steps.
2026-03-08 15:33:00 +09:00
kuwacom 71fd1e3a62 add: significantly improved the dedicated server logging system
- add ServerLogManager to Minecraft.Server as the single entry point for dedicated-server log output
- forward CMinecraftApp logger output to the server logger when running with g_Win64DedicatedServer
- add named network logs for incoming, accepted, rejected, and disconnected connections
- cache connection metadata by smallId so player name and remote IP remain available for disconnect logs
- keep Minecraft.Client changes minimal by using lightweight hook points and handling log orchestration on the server side
2026-03-08 15:22:00 +09:00
kuwacom b250be7387 fix: Re-added the source that had somehow disappeared. 2026-03-08 13:48:46 +09:00
eh-K a865cea026
Adjust gamma calculation based on slider value (#893) 2026-03-07 22:31:20 -06:00
Marlian cfcec48ae1
Fix horse rendering: culling when looking up + fire debug texture (#899)
- Skip frustum culling for the entity the player is currently riding, preventing the horse from disappearing when looking up (fixes a bug reported on Discord)

- Fix HorseRenderer::bindTexture() to delegate to base class for single textures (fire atlas, enchant glint), only using bindTextureLayers() for multi-layer horse textures

Co-authored-by: MCbabel <MCbabel@users.noreply.github.com>
2026-03-07 22:30:44 -06:00
Loki Rautio 087b7e7abf Revert "Project modernization (#630)"
This code was not tested and breaks in Release builds, reverting to restore
functionality of the nightly. All in-game menus do not work and generating
a world crashes.

This reverts commit a9be52c41a.
2026-03-07 21:12:22 -06:00
ModMaker101 a9be52c41a
Project modernization (#630)
* Fixed boats falling and a TP glitch #266

* Replaced every C-style cast with C++ ones

* Replaced every C-style cast with C++ ones

* Fixed boats falling and a TP glitch #266

* Updated NULL to nullptr and fixing some type issues

* Modernized and fixed a few bugs

- Replaced most instances of `NULL` with `nullptr`.
- Replaced most `shared_ptr(new ...)` with `make_shared`.
- Removed the `nullptr` macro as it was interfering with the actual nullptr keyword in some instances.

* Fixing more conflicts

* Replace int loops with size_t and start work on overrides
2026-03-08 09:56:03 +07:00
kuwacom c91efe0095 update: changed file read/write operations to use FileUtils.
- As a side effect, saving has become faster!
2026-03-08 10:31:00 +09:00
kuwacom b535baa7c6 add: Dedicated Server BAN access manager with persistent player and IP bans
- add Access frontend that publishes thread-safe ban manager snapshots for dedicated server use
- add BanManager storage for banned-players.json and banned-ips.json with load/save/update flows
- add persistent player and IP ban checks during dedicated server connection handling
- add UTF-8 BOM-safe JSON parsing and shared file helpers backed by nlohmann/json
- add Unicode-safe ban file read/write and safer atomic replacement behavior on Windows
- add active-ban snapshot APIs and expiry-aware filtering for expires metadata
- add RAII-based dedicated access shutdown handling during server startup and teardown
2026-03-08 10:15:13 +09:00
kuwacom da284c1387 add: add FileUtils
Moved file operations to `utils`.
2026-03-08 10:13:36 +09:00
Vincent Zhang 1be5faaea7
bugfix: Holding CTRL key resets flying acceleration (#863) 2026-03-07 23:18:25 +00:00
TraoX_ bbe396d90d
Update to zlib 1.3.2 (#852) 2026-03-07 13:56:03 -06:00
rtm516 9cac3e0394
Change F3 rendering and add git version information (#836)
* Change F3 rendering and add git version information

* Change position, block, chunk and facing

* Limit position decimal places

* Move LCE unique to the bottom and add more java features

* Fix chunk information disappearing after y256

* Add chunk count information

* Move build number script to prebuild.ps1

* We dont need to specify vector and wstring are from std

* Restore build number to fix multiplayer

* Use short symbolic-ref

* Restore original BuildVer.h

---------

Co-authored-by: Loki <lokio.casebstv@gmail.com>
Co-authored-by: Loki Rautio <lokirautio@gmail.com>
2026-03-07 13:55:44 -06:00
Loki Rautio e5ad785803 Revert "50% - 100% increase to some mob caps. (#789)"
It's unclear if this change maintains mob density parity so it has been
reverted. This can be committed back in if parity is properly verified
2026-03-07 12:54:40 -06:00
Loki 766f5e2c57
Update CONTRIBUTING.md 2026-03-07 12:46:35 -06:00
Loki 2e21f4830d
Fix formatting issue in CONTRIBUTING.md 2026-03-07 12:08:06 -06:00
Loki 3839bf6187
Add LCE Parity guidelines to CONTRIBUTING.md 2026-03-07 12:03:20 -06:00
eh-K b3ff7f5998
50% - 100% increase to some mob caps. (#789)
* 50% increase to most mob caps, doubling some.

* Changed from 75 to 70 to match PC parity. Ambient is back to 20
2026-03-08 00:32:01 +07:00
void_17 b7bd9bb903 Move to newer C++17 language standard 2026-03-08 00:23:39 +07:00
bulkmoerls 261c7f3de0
added git lfs (#849) 2026-03-08 00:22:21 +07:00
VivyaCC 52b1882f13 win cpp23 compat: Minecraft.Client 2026-03-07 23:58:51 +07:00
VivyaCC 6dfdd90328 win cpp23 compat: Minecraft.World 2026-03-07 23:58:21 +07:00
kuwacom 49f41b8bce add: add nlohmann/json json lib 2026-03-08 01:08:23 +09:00
GuglioIsStupid 7c2869c5b9
I genuinely didn't know release and debug had seperate include dirs 😢😢😢 i suck with vs projects (#830) 2026-03-07 21:09:34 +07:00
GuglioIsStupid 220fe18487
Fix PCH (#828) 2026-03-07 20:21:37 +07:00
GuglioIsStupid 38ce933fd5
voids request - Move the filesystem files to root/ as it will be used in both Minecraft.Client and Minecraft.World (#819)
* Move Filesystem to root/include/ as per devoiders request

* Filesystem -> lce_filesystem
2026-03-07 18:36:05 +07:00
kuwacom 71cd0d3630 update: add note about issue 2026-03-07 20:24:10 +09:00
kuwacom 891052e208 add: create Minecraft.Server developer guide in English and Japanese 2026-03-07 20:18:35 +09:00
kuwacom 35f81c6e4f update: converted Japanese comments to English 2026-03-07 20:12:17 +09:00
kuwacom 83063f4b73 Merge origin/main into feature/dedicated-server
Conflict resolution summary:

- .gitignore: kept dedicated-server-specific ignore entries (tmp*/, _server_asset_probe/, server-data/) and also kept main-side entries (*.user, /out).

- Minecraft.Client/Common/Network/GameNetworkManager.cpp: kept int64_t seed from main and preserved dedicatedNoLocalHostPlayer logic from dedicated-server.

- Minecraft.Client/Windows64/Network/WinsockNetLayer.cpp: preserved dedicated-server shutdown flow and also included main-side cleanup for s_smallIdToSocketLock.
2026-03-07 19:39:52 +09:00
kuwacom dd10c2526a fix: return client to menus when Win64 host connection drops
- Add client-side host disconnect handling in CPlatformNetworkManagerStub::DoWork() for _WINDOWS64.
- When in QNET_STATE_GAME_PLAY as a non-host and WinsockNetLayer::IsConnected() becomes false, trigger g_NetworkManager.HandleDisconnect(false) to enter the normal disconnect/UI flow.
- Use m_bLeaveGameOnTick as a one-shot guard to prevent repeated disconnect handling while the link remains down.
- Reset m_bLeaveGameOnTick on LeaveGame(), HostGame(), and JoinGame() to avoid stale state across sessions.
2026-03-07 18:39:31 +09:00
kuwacom 4bb18290fc fix: send DisconnectPacket on shutdown and fix Win64 recv-thread teardown race
Before this change, server/host shutdown closed sockets directly in
ServerConnection::stop(), which bypassed the normal disconnect flow.
As a result, clients could be dropped without receiving a proper
DisconnectPacket during stop/kill/world-close paths.

Also, WinsockNetLayer::Shutdown() could destroy synchronization objects
while host-side recv threads were still exiting, causing a crash in
RecvThreadProc (access violation on world close in host mode).
2026-03-07 18:23:34 +09:00
ModMaker101 e754bad17e
Improve gamma shader parity - fixes #611 (#790)
* Call gamma post process after `ui.render` #611

* Fixed "washed out" look.

* Improve gamma pass and cache viewport size
2026-03-07 03:00:38 -06:00
Kevin cc85ecf05a
Block sneak while chat is open. (#803) 2026-03-07 02:57:20 -06:00
kuwacom fa09e28572 add: implement StringUtils for string manipulation and refactor usages
Unified the scattered utility functions.
2026-03-07 17:39:37 +09:00
kuwacom 5f118ca6a4 update: enhance command line completion with predictive hints
Like most command line tools, it highlights predictions in gray.
2026-03-07 16:56:56 +09:00
kuwacom 965a859b40 add: add implementing interactive command line using linenoise
- Integrated linenoise library for line editing and completion in the server console.
- Updated ServerLogger to handle external writes safely during logging.
- Modified ServerMain to initialize and manage the ServerCli for command input.
- The implementation is separate from everything else, so it doesn't affect anything else.
- The command input section and execution section are separated into threads.
2026-03-07 16:48:58 +09:00
Loki Rautio 341dfa1868 update audio to prevent artifacts 2026-03-07 00:50:44 -06:00
Loki Rautio 4f73dd18b1 Actually really switch back to extracted sounds, add back missing sounds
The sounds Guglio was using were missing several sounds (skeleton damage, etc) as well as the "original" sound pack just being wrong. Switches back to the original sounds, though Miles was still louder somehow
2026-03-06 22:11:29 -06:00
Loki Rautio 16eec7e68b Revert to original sounds
Original sounds from Guglio - should be correct audio levels. Current sounds
were too quiet so swapping these for JE sounds will have to be done with
some sort of normalization level sampling thingie with ffmpeg or smthn
2026-03-06 20:59:25 -06:00
kuwacom 9e4052ece5 update: add LAN advertising configuration for server.properties
LAN-Discovery, which isn’t needed in server mode and could potentially be a security risk, has also been disabled(only server mode).
2026-03-07 11:51:38 +09:00
Loki Rautio c590cd6995 Fix SkinsBirthday.pck incompatability
Technically incompatible in debug builds, this removes the .loc file from the archive
2026-03-06 20:36:05 -06:00
Kevin 13960a93b2
Max players from 8 -> 255 + small connection optimizations (#722)
* Multiplayer 8 to max byte increase.

Made-with: Cursor

* Server chunk optimizations for large player counts, server full notification fix, added to server.properties.
2026-03-06 19:23:32 -06:00
MijaeLio 16446265d5
Add Render Distance option. (#675)
* FOV option without debug menu

Now located in Graphics section.

Based on the FOV thing from discord idk

* language

* render distance option for graphics menu

* oop

* swf files on media

* revert changes on language selector

* nvm it was actually easy to fix

* forgot this

* Final probably

Fixed visual bug and made the chunk updates depend to your view distance.
2026-03-06 19:14:06 -06:00
Loki Rautio 216943716b Revert "Fix UI button staying focused on mouse-out + controller snap (#773)"
This reverts commit 2f614a52c2.
Causes weird selection regression in certain menus
2026-03-06 19:05:12 -06:00
Adem Kurt 8f2ae54b3a
Add toggle inventory/crafting with E and C/R keys (#593) 2026-03-06 19:02:42 -06:00
GabsPuNs123 8dee53a565
Update DLCs for windows64media (#778)
* Fix DLCs textures and crash in 720p

* Revert "Fix DLCs textures and crash in 720p"

This reverts commit 7c38605360.

* Update Durango and Windows64 DLCs Textures also fix crash in 720p

* DLC update for Windows edition

- The windows edition dont use anymore DurangoMedia
- Fixed Bed and missing items in Skyrim
- Fixed Hud in almost all the DLCs (Halo hud in 720p is still the default hud)
- Add 720p support
- Add missing skin packs
- High quality Music for DLCs

* Add Fantasy Texture Pack, Remove LittleBigPlanet DLC

The LittleBigPlanet world crash the game, the texture pack dont support 1080p, and the loc file wasn't working
2026-03-06 18:56:15 -06:00
FriedMonkey 54df68ac53
Fix ocelot hit noises (#776)
it couldnt play sound because folder has hitt with 2 t instead of just hit
2026-03-06 18:48:05 -06:00
FriedMonkey a6699a2e6f
Fixed baby zombie hitbox size (#765)
* Added scaling to zombie

i added scaling to zombie based on if its a baby or not

just setting the size does not work you have to set it in the tick (look at the tick for slimes which is a scalable monster)

* add output dir to gitignore

the build output folder is now added to the git ignore

---------

Co-authored-by: Loki <lokirautio@gmail.com>
2026-03-06 18:45:22 -06:00