43 Commits

Author SHA1 Message Date
Xenovyy
ab80b34c45 Update banner.png to new logo (#1323)
Update banner.png to new logo
2026-03-18 20:08:40 -04:00
rtm516
b774d13806 Fix zip command when packaging release 2026-03-17 22:36:52 +00:00
rtm516
76f4832a6b Fix actions and sort docker nightly 2026-03-17 22:02:24 +00:00
rtm516
02a5961f39 Move project to CMake (#781)
* Move to cmake

* Move sources to source_groups and ditch more old VS files

* Add BuildVer.h generation

* Break out cmake source lists to platforms

* Don't copy swf files

* Revert audio changes from merge

* Add platform defines

* Match MSBuild flags

* Move BuildVer.h to common include and fix rebuild issue

* Seperate projects properly

* Exclude more files and make sure GameHDD exists

* Missing line

* Remove remaining VS project files

* Update readme and actions

* Use incremental LTCG

* Update workflows

* Update build workflows and output folder

* Disable vcpkg checks

* Force MSVC

* Use precompiled headers

* Only use PCH for cpp

* Exclude compat_shims from PCH

* Handle per-platform source includes

* Copy only current platform media

* Define Iggy libs per platform

* Fix EnsureGameHDD check

* Only set WIN32_EXECUTABLE on Windows

* Correct Iggy libs path

* Remove include of terrain_MipmapLevel

* Correct path to xsb/xwb

* Implement copilot suggestions

* Add clang flags (untested)

* Fix robocopy error checking

* Update documentation

* Drop CMakePresets.json version as we dont use v6 features

* Always cleanup artifacts in nightly even if some builds fail

* Re-work compiler target options

* Move newer iggy dll into redist and cleanup

* Fix typos

* Remove 'Source Files' from all source groups

* Remove old ps1 build scripts
2026-03-17 16:39:22 -05:00
Loki Rautio
ab9b034c51 Update README.md
fixed up some ordering and made it a little more organized, added new
banner image
2026-03-15 03:09:41 -05:00
kuwa
f483074cd2 Dedicated Server Software - Minecraft.Server.exe (#498)
* add: Dedicated Server implementation

- Introduced `ServerMain.cpp` for the dedicated server logic, handling command-line arguments, server initialization, and network management.
- Created `postbuild_server.ps1` script for post-build tasks, including copying necessary resources and DLLs for the dedicated server.
- Added `CopyServerAssets.cmake` to manage the copying of server assets during the build process, ensuring required files are available for the dedicated server.
- Defined project filters in `Minecraft.Server.vcxproj.filters` for better organization of server-related files.

* add: refactor world loader & add server properties

- Introduced ServerLogger for logging startup steps and world I/O operations.
- Implemented ServerProperties for loading and saving server configuration from `server.properties`.
- Added WorldManager to handle world loading and creation based on server properties.
- Updated ServerMain to integrate server properties loading and world management.
- Enhanced project files to include new source and header files for the server components.

* update: implement enhanced logging functionality with configurable log levels

* update: update keyboard and mouse input initialization 1dc8a005ed

* fix: change virtual screen resolution to 1920x1080(HD)

Since 31881af56936aeef38ff322b975fd0 , `skinHud.swf` for 720 is not included in `MediaWindows64.arc`,
the app crashes unless the virtual screen is set to HD.

* fix: dedicated server build settings for miniaudio migration and missing sources

- remove stale Windows64 Miles (mss64) link/copy references from server build
- add Common/Filesystem/Filesystem.cpp to Minecraft.Server.vcxproj
- add Windows64/PostProcesser.cpp to Minecraft.Server.vcxproj
- fix unresolved externals (PostProcesser::*, FileExists) in dedicated server build

* update: changed the virtual screen to 720p

Since the crash caused by the 720p `skinHud.swf` not being included in `MediaWindows64.arc` has been resolved, switching back to 720p to reduce resource usage.

* add: add Docker support for Dedicated Server

add with entrypoint and build scripts

* fix: add initial save for newly created worlds in dedicated server

on the server side, I fixed the behavior introduced after commit aadb511, where newly created worlds are intentionally not saved to disk immediately.

* update: add basically all configuration options that are implemented in the classes to `server.properties`

* 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).

* 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.

* update: enhance command line completion with predictive hints

Like most command line tools, it highlights predictions in gray.

* add: implement `StringUtils` for string manipulation and refactor usages

Unified the scattered utility functions.

* 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).

* 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.

* update: converted Japanese comments to English

* add: create `Minecraft.Server` developer guide in English and Japanese

* update: add note about issue

* add: add `nlohmann/json` json lib

* add: add FileUtils

Moved file operations to `utils`.

* 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

* update: changed file read/write operations to use `FileUtils`.

- As a side effect, saving has become faster!

* fix: Re-added the source that had somehow disappeared.

* 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

* fix: added the updated library source

* add: add `ban` and `pardon` commands for Player and IP

* fix: fix stop command shutdown process

add dedicated server shutdown request handling

* fix: fixed the save logic during server shutdown

Removed redundant repeated saves and eliminated the risks of async writes.

* update: added new sever files to Docker entrypoint

* fix: replace shutdown flag with atomic variable for thread safety

* update: update Dedicated Server developer guide

English is machine translated.
Please forgive me.

* update: check for the existence of `GameHDD` and create

* add: add Whitelist to Dedicated Server

* refactor: clean up and refactor the code

- unify duplicated implementations that were copied repeatedly
- update outdated patterns to more modern ones

* fix: include UI header (new update fix)

* fix: fix the detection range for excessive logging

`getHighestNonEmptyY()` returning `-1` occurs normally when the chunk is entirely air.
The caller (`Minecraft.World/LevelChunk.cpp:2400`) normalizes `-1` to `0`.

* update: add world size config to dedicated server properties

* update: update README add explanation of  `server.properties` & launch arguments

* update: add nightly release workflow for dedicated server and client builds to Actions

* fix: update name for workflow

* add random seed generation

* add: add Docker nightly workflow for Dedicated Server publish to GitHub Container Registry

* fix: ghost player when clients disconnect out of order

#4

* fix: fix 7zip option

* fix: fix Docker workflow for Dedicated Server artifact handling

* add: add no build Dedicated Server startup scripts and Docker Compose

* update: add README for Docker Dedicated Server setup with no local build

* refactor: refactor command path structure

As the number of commands has increased and become harder to navigate, each command has been organized into separate folders.

* update: support stream(file stdin) input mode for server CLI

Support for the stream (file stdin) required when attaching a tty to a Docker container on Linux.

* add: add new CLI Console Commands for Dedicated Server

Most of these commands are executed using the command dispatcher implemented on the `Minecraft.World` side. When registering them with the dispatcher, the sender uses a permission-enabled configuration that treats the CLI as a player.

- default game.
- enchant
- experience.
- give
- kill(currently, getting a permission error for some reason)
- time
- weather.
- update tp & gamemode command

* fix: change player map icon to random select

* update: increase the player limit

* add: restore the basic anti-cheat implementation and add spawn protection

Added the following anti-cheat measures and add spawn protection to `server.properties`.
- instant break
- speed
- reach

* fix: fix Docker image tag

---------

Co-authored-by: sylvessa <225480449+sylvessa@users.noreply.github.com>
2026-03-15 02:32:50 -05:00
Loki
dc91a1dad0 Add Discord Invite to issue flow 2026-03-08 03:50:16 -05: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
EnderActually
cd3bb89317 Add issue templates again (#457)
* Update issue templates

* Update bug_report.md

* change to form

* Refactor bug report template

* Remove 'type' field from bug report template

Removed the 'type' field from the bug report template.

* Add final Fields

* remove invalid syntax

* Fix typo in bug report template for Debug label

* Change input types to textareas in bug report template

Fixes uploads with images and videos

* Change to form

* Update bug report template validations

Changed 'required' validation for additional context from true to false.

* Change feature request template to suggestion request

* fix title

* Refactor suggestion request template

Removed duplicate textarea for solution and updated title format.
2026-03-05 15:33:38 -06:00
Loki Rautio
f48a39ae3d Adjust github action for debug 2026-03-05 14:33:33 -06:00
Loki Rautio
9e52beaa9d Support debug compile test in PRs 2026-03-05 14:12:31 -06:00
Loki Rautio
f208a5c80e Add debug action 2026-03-05 14:11:04 -06:00
Loki Rautio
a03c36f83f Update nightly description
Fix broken new lines. Oops, forgot this was yaml
2026-03-05 09:06:14 -06:00
Loki Rautio
1b69eef4b0 Update nightly description 2026-03-05 07:48:32 -06:00
Loki Rautio
23cb7de110 Add additional warnings and a field to PR template 2026-03-05 07:11:47 -06:00
rtm516
9b5348113c Don't build when PR template is updated 2026-03-03 18:20:14 +00:00
rtm516
942ef7e99f Tidy up PR template 2026-03-03 18:17:33 +00:00
void_17
b44d29b2ff Ship the .pdb file in nightly builds too 2026-03-03 23:18:57 +07:00
void_17
a3095a7050 Ship updated binary alongside with the whole archive in nightly builds
Now ship both the entire .zip archive and the separate .exe binary updated on each commit.
2026-03-03 23:07:37 +07:00
void_17
c1ec83aedc Add nightly.yml release description
Compiler information mostly
2026-03-03 12:59:47 +07:00
Twig6943
2189da6f92 Make ci skip on non important stuff - give tutorial image a name (#202) 2026-03-03 06:01:00 +07:00
void_17
73ceca7fc2 Fix typo in pull_request_template.md 2026-03-02 19:43:22 +07:00
void_17
40953f857e Update pull_request_template.md 2026-03-02 19:41:30 +07:00
Fireblade
b2381555b2 Merge branch 'smartcmd:main' into main 2026-03-01 17:41:09 -05:00
Fireblade
cd34348db5 create workflow for minecraft legacy console edition compilation 2026-03-01 17:07:52 -05:00
Omri
0d33cfbdbc Merge branch 'smartcmd:main' into main 2026-03-02 00:00:08 +02:00
WushR00M
a4dd1c4bc7 Add files via upload 2026-03-01 14:08:52 -07:00
void_17
180ad193ee Revert "Added bug, and feature template for issues" 2026-03-02 03:52:55 +07:00
Omri H
34d398cf1b dumbass 2026-03-01 22:34:48 +02:00
Omri H
7bed2fb0e9 use working action for release 2026-03-01 22:29:31 +02:00
Omri H
465be08bbf update nightly release 2026-03-01 22:21:18 +02:00
Omri H
99ddc06eb8 fix target 2026-03-01 22:13:05 +02:00
Omri H
44aafd7d53 fix target 2026-03-01 22:08:37 +02:00
Omri H
2c7803a2cf setup msbuild 2026-03-01 22:05:29 +02:00
Omri H
904f19b74c fix workflow 2026-03-01 22:03:47 +02:00
void_17
f580a6a603 Remove the word template from PR template
Looks like people don't change this field so the word `template` is not needed here.
2026-03-02 03:02:18 +07:00
NΞVΛR
c48120dd35 Remove heart emoji from feature request template 2026-03-01 20:55:00 +01:00
NΞVΛR
dc1e90fdc0 Removed emoji from feature request name for consistency. 2026-03-01 20:54:42 +01:00
NΞVΛR
47924e86fd Rename bug report template to remove emoji 2026-03-01 20:54:18 +01:00
NΞVΛR
15e952d4cb added config for issues 2026-03-01 20:20:20 +01:00
NΞVΛR
c23dc98b67 added bug report template 2026-03-01 20:10:49 +01:00
NΞVΛR
cde94faefa added feature request template 2026-03-01 20:07:49 +01:00
void_17
6850c3b42c Create pull_request_template.md 2026-03-02 01:54:47 +07:00