FPS limiter, block picking, new commands and bug fixes#60
Open
pytomprog wants to merge 8 commits into
Open
Conversation
Replaces hardcoded chunk generation logic with Lua script-based generation in Planet::GenerateChunk. Updates the function signature to accept a script name and modifies PlayerSessionHandler to use planet data from the database for chunk regeneration.
Adds a `/tpplayer <name>` admin chat command that teleports the caller to the named player's current position. The command reports when the target player cannot be found or has no controlled entity.
Adds two player chat commands: `/links` for community/resource links and `/help` for a command list, with admin-only entries shown only to admins.
Add a picked-block selection path to the block selection bar and wire middle-click picking in game state so the hotbar updates to the targeted block when available. Right-click mine and left-click place behavior remain unchanged.
Adds a new `Graphics.FPSLimit` config option with a default of `-1`, registers it in the game config, and applies frame pacing in `GameAppComponent` by sleeping to cap the frame rate when the limit is set above zero.
Fixes a few bugs in `ScriptingContext.cpp`, adds the missing `fmt/format.h` include for Win32 crash handling, and exposes `GetChunkContainer` on `ServerPlanetEnvironment`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several new features and improvements across both the client and server, with a focus on gameplay enhancements, configuration options, and scripting fixes. The most significant changes include the addition of an FPS limiter, a "pick block" feature for the block selection bar, expanded server-side chat commands, and various bug fixes and code improvements.
Gameplay and User Experience Improvements:
Graphics.FPSLimitin the game config, with support for limiting frame rate inGameAppComponentand configuration options exposed ingameconfig.lua.defaultand related files. [1] [2] [3] [4] [5] [6] [7]BlockSelectionBarandGameState. [1] [2] [3] [4] [5]New chatbox commands:
/tpplayer <player_name>for admins to teleport to other players,/linksto display community resources, and/helpto list available commands. [1] [2]Scripting and Code Quality Improvements:
Planet.hppand exposedGetChunkContainerin the server scripting API forServerPlanetEnvironment. [1] [2]Other Minor Improvements: