Skip to content

Conversation

@Slumey
Copy link
Owner

@Slumey Slumey commented Jul 7, 2025

No description provided.

tslashd and others added 2 commits December 28, 2024 17:54
* [DB] Add Transactions (#12)

* cs# version bump

* add transaction method

* save cps with transaction;dot for millis

co-pilot = op

* small patch

* Change hook methods for OnTriggerStart/EndTouch

* don't start timer after `!s <X>`

* reset `IsStageMode`

* Latest "update" and reworks (#17)

* hi

Summary of completed items:
- Resolved hibernation issues with timers.
- Implemented async queries and methods with multiple database connections.
- Moved PlayerProfile and Map queries to respective classes.
- Added ReplayFrame Situations for situation-specific replay handling.
- Corrected Map Replays reload and ReplayFrameSituations usage.
- Updated Checkpoints comparison messages for correct display.
- Adjusted Stage Replays tracking, saving, and reloading during map runs.
- Fixed checkpoint saving on first map run.
- Refer to TODO for more information

* bonus replays

* readme + todo

* Update README.md

* Update README.md

* Update README.md

Fix `TODO` link

---------

Co-authored-by: 1zc <liamzcharles@gmail.com>
Inactive development
@Slumey Slumey self-assigned this Jul 7, 2025
tslashd and others added 27 commits July 7, 2025 21:19
Slumey Vector Leak Fix
- Replace `SurfTimer.csproj` with `SurfTimer.Plugin.csproj` in `tasks.json` for build configurations.
- Add new project entries for `SurfTimer.Plugin`, `SurfTimer.Api`, and `SurfTimer.Shared` in the solution file (`CS2SurfTimer.sln`).
- Add a project reference to `SurfTimer.Shared` in `SurfTimer.Plugin.csproj`.
- Introduce new data models from `SurfTimer.Shared` for consistency across `Plugin` and `API`
- Remove overlapping models
- Update `AccessService`s to match new structures (MySQL **NOT** tested)
- `ApiMethod` includes custom JSON serialization option for `ReplayFramesStringConverter` to match with `API`
- Fully use SurfTimer.Shared entities
- Delete unused files and methods
- Get rid of some comments and messages
- Rename classes to follow PascalCase
- Better(?) error handling
- Change types to match with DB
- Start using `timer_settings.json` (does NOT stop replays atm)
- Added null check for `CurrentMap` in `Tick.cs` to prevent errors.
- Adjusted timing logic for saving stage mode run times for last stage in `ZoneEventHandlers.cs`.
- Changed initialization of stage and bonus completions to use dynamically sized arrays in `Map.cs`.
- Updated `ReplayManager` to handle stages and bonuses dynamically, removing hardcoded values.
- Modified `SurfTimer` to use a static property for `CurrentMap` for better encapsulation.
- Converted `LocalizationService` to a static class for intended usage without instantiation.
- Updated timer delays for better replay frame handling.
- Added HUD for when spectating a replay bot.
- Added new methods in `PlayerHUD` for building HUD modules with color coding and improved formatting.
- Enhanced `ReplayPlayer` to update ticks when replay has left the "start zone".
- Introduced a plugin logo in `Config.cs` for improved visual representation.
- Added a method in `Extensions.cs` for generating speed-based color gradients.
- Updated MySQL database schema link in README.md.
- Reformatted entries in `en.json` without content changes.
- Refactored `IsPrivateIP` method to `Extensions` class.
- Changed access modifiers of methods in `PlayerHUD.cs` to internal.
- Commented out addition to `ConnectedMapTimes`.
- Updated `CounterStrikeSharp.API` package reference in project file.
- Changed `NextWorldUpdate` to `NextWorldUpdateAsync` for async execution.
- Added the `Dapper.dll` binary file to the project.
…the SurfTimer project.

- Streamlining database access with Dapper through `SurfTimer.Shared` library, removing unused MySQL code.
- Enhancing error handling and logging in `ApiDataAccessService` and `MySqlDataAccessService`.
- Improving readability and maintainability
…n the server

- Created api_config.json for API configuration
- Update release.yml
- Added them to the build sequence
- Bump CounterStrikeSharp version
- Bump minimum CounterStrikeVersion to avoid broken EyeAngles
- Wrong minimum CS# version
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.

2 participants