199 Commits

Author SHA1 Message Date
Shaggy84675
e3660342ae Cache the mod file list launchers poll
Launchers request the mod file list every 10 seconds. Cache it per
patchline as a plain array and clear every patchline's entry whenever a
GameFile is saved or deleted, so a file moved between patchlines can't
stay listed in the old one.

Also applies Pint formatting to PatchController and GameFile.
2026-11-30 23:46:28 +01:00
Shaggy84675
1168e55140 Let the launcher CI publish releases through the API
Add POST /api/v1/launcher/releases so the launcher workflow can upload
its release zip directly instead of someone uploading it in the admin
tool. The zip goes through the same validation and publisher.

- Requires LAUNCHER_PUBLISH_TOKEN as a bearer token (401 when wrong or
  missing); publishing through the API is disabled (403) while unset
- Errors on launcher API routes are rendered as JSON, so the CI gets a
  422 with the rejection reason without sending an Accept header
- The Authorization header is no longer written to the exception log
- Document that the CI treats "already been published" as a re-run
- Rename the admin upload label to "Upload update files"
2026-11-30 23:46:28 +01:00
Shaggy84675
8bb72bb2b7 Deliver launcher updates from signed CI release zips
Replace the manually set launcher version with releases uploaded from the
CI zip (exes, launcher-manifest.json and launcher-manifest.json.sig).

- New "Launcher" admin tool (renamed from Launcher Message): upload a
  release, switch the current one, delete old ones, set the launcher message
- Uploads are validated: manifest rules, size + SHA-256 of every exe, and
  the ECDSA manifest signature when LAUNCHER_UPDATE_PUBLIC_KEYS is set
- The same zip, manifest or version cannot be published twice; only the
  newest 5 releases are kept and the current one is never removed
- Serve the current release to the launcher at /launcher/{file},
  byte-for-byte and uncached, with range support for resumed downloads
- /download-launcher serves the newest framework build; the legacy
  /api/v1/launcher-version returns the current release version
- Remove the launcher version from the Versioning tool
- Fix the file input button highlighting when hovering the whole input
2026-11-14 14:15:45 +01:00
Shaggy84675
711f675896 Upgrade to Laravel 13
Rebuild the application on a fresh Laravel 13 skeleton and port the
existing code, configuration and frontend onto it.

Application structure
- Replace HTTP/console kernels, exception handler and the Auth, Broadcast,
  Event and Route service providers with bootstrap/app.php and
  bootstrap/providers.php. Route files, middleware groups, aliases, the
  scheduler (routes/console.php) and exception reporting moved there
  unchanged; route order, names and middleware verified identical.
- Drop the stock middleware stubs now provided by the framework; custom
  middleware (AccessLogger, VerifyMigrationKey, AdminPermissionCheck) kept.
- AppServiceProvider registers the Steam Socialite driver, keeps the
  125 char default string length for schema parity, and makes
  "artisan dev" fall back to "serve" where Octane cannot run (no pcntl).

Dependencies
- laravel/framework 13, spatie/laravel-permission 8, Octane, Socialite +
  Steam, log-viewer 3, Pest instead of PHPUnit, Laravel Boost.
- Remove ignition, guzzle (transitive) and the abandoned
  phattarachai/laravel-mobile-detect.

Configuration and database
- Config files trimmed to the values that differ from the framework
  defaults; renamed env keys (CACHE_STORE, BROADCAST_CONNECTION, ...).
- Cache allows unserializing only the app's cached value classes
  (cache.serializable_classes).
- Queue uses the database driver; new migration adds jobs and job_batches
  and updates failed_jobs to the current schema.
- Permission migration follows the v8 layout with UUID model keys.

Frontend
- Tailwind 4 and Vite 8: CSS-first config in app.css, Sass converted to
  plain CSS, Tailwind 3 class renames applied to views and styles,
  tailwind.config.js and postcss.config.js removed.
- Exo 2 served through the Vite fonts integration (Bunny) instead of a
  bundled TTF.
- Public bundle contains only Alpine; jQuery, select2 and jquery-modal
  moved to an admin bundle loaded by the admin layout. axios dropped.

Fixes found during the port
- Steam API client no longer passes a Collection as request body, which
  Laravel 13's HTTP client rejects.
- Online players endpoint caches plain counts instead of a JsonResponse,
  which the cache allow-list would refuse to unserialize.
- Define the viewLogViewer gate that Log Viewer 3.24 requires in
  production; it also protects the log viewer API routes.
- Require PHP ^8.4 to match the locked Symfony 8 components.
- Sidebar decides its initial state client-side instead of using
  mobile-detect.
- Item selector escapes reward names and keeps duplicate detection
  working; mailer validation uses a submit listener.
- Remove pass-through alert component classes whose lowercase namespace
  broke PSR-4 autoloading on case-sensitive systems.
2026-10-10 14:32:50 +02:00
Vari
b2d87f7c8b Fix for the leaderboard query not showing enough people below you when you are first, second or third place 2025-12-14 20:42:16 +01:00
Vari
61611f1296 Fix Leaderboard end date 2025-09-07 22:36:49 +02:00
Vari
c4eda580b8 Implement lobby leaderboard and add DB indexes. 2025-09-07 22:26:23 +02:00
Vari
a7620c2604 Leaderboard fix wrong request structure 2025-09-07 21:21:29 +02:00
Vari
85ecfa5560 Leaderboard finished 2025-09-06 21:05:36 +02:00
Vari
280d5457a5 Working Leaderboard select in a single query 2025-09-06 21:05:36 +02:00
Vari
32a5f3c410 leaderboard building the query 2025-09-06 21:05:36 +02:00
Vari
f032df588e leaderboard try stuff 2025-09-06 21:05:36 +02:00
Patrik Leifert
704f11945e Merge branch 'dev' into feature-filemanager_history 2025-08-03 22:21:07 +02:00
Shaggy84675
d006695e25 Add file history to pak manager to better handle the patches
Signed-off-by: Shaggy84675 <admin@RainbowShaggy.com>
2025-08-03 21:59:31 +02:00
Vari
62f0be4398 Added 1v4, 1v5 matchmaking timeout as a setting in the match configuration admin panel. 2025-07-10 01:04:46 +02:00
Vari
0e4d0969d9 Fixing ETA Stuff 2025-07-10 00:05:36 +02:00
Vari
94c2c831af Added ETA when delaying the matchmaking for 1v4 or 1v5 matches. 2025-07-09 22:21:34 +02:00
Vari
b92c88df09 New check for recent edge case where the matchmaking broke due to a game being stuck on open. 2025-06-17 21:19:37 +02:00
Vari
76df564f44 Removed Challenge reduction in picked challenges because it caused the game to reset character loadout's.
Also updated the addDefaultItems commadn to accept a user ID.
2024-12-29 22:55:31 +01:00
Miraak
a3ca76c7f7 Added few meta tags for the patch notes 2024-12-28 15:02:06 +01:00
Miraak
5eeaec7366 Trying to add a patch notes History 2024-12-28 12:56:37 +01:00
Vari
2f44066176 Fixed the validation of the equipped weapons equipping everything at once. 2024-12-20 12:53:29 +01:00
Vari
9d1bf68f28 Added check that automatically sets the picked challenges of the new lvl 10 default items to completed so that they don't show up in game. 2024-12-19 22:40:39 +01:00
Vari
869f84832e Merge pull request #51 from Deathgarden-Rebirth/1.2.0_dev
1.2.0 Update
2024-12-19 21:47:28 +01:00
Vari
bbc7cee598 Fix Update metadata challenges completion value reduce. 2024-12-19 21:22:09 +01:00
Vari
e75fac7291 Added mapping to reduce the values of random selected picked challenges by a percentage. 2024-12-19 20:45:43 +01:00
Vari
536d9071df Hotfix inbox message marking as read, claiming and deleting due to a timezone issue. 2024-12-19 19:52:42 +01:00
Vari
595ad29841 Fix some stuff with the challenge generation and the getChallenges endpoint. 2024-12-18 18:46:19 +01:00
Vari
3e35dc2c7f Added rewards logic to execute challenge progression batch for timed challenges. 2024-12-17 10:58:33 +01:00
Vari
68f157cb28 Fix executeChallengeProgressionBatch id parsing with timed challenges 2024-12-16 22:13:43 +01:00
Vari
95edd6382b Added Timed Challenge progression update + fix timestamp format. 2024-12-16 21:52:50 +01:00
Vari
af8f21e559 Work on timed challenges. 2024-12-16 21:21:33 +01:00
RainbowShaggy
8eb0169b51 Fix uploading and downloading files 2024-11-17 13:30:56 +01:00
RainbowShaggy
a6e463d929 Add additional mod functionality 2024-11-17 13:30:56 +01:00
Miraak
baa001f333 Fixed the typo inn the LauncherMessageController 2024-11-17 13:30:45 +01:00
Vari
77c6ca71ce Removed the Equipped_bonuses table because players cannot change their passives anyway. Now the equipped passives are retrieved directly from the config. 2024-11-17 13:30:45 +01:00
Vari
feeb8c896b Fix prestige being broken after all weapons lvl.10 change. 2024-11-17 13:30:45 +01:00
Vari
84a10713d5 Backend implementation of full match chat 2024-11-09 00:54:22 +01:00
RainbowShaggy
d3476394ac Add additional mod functionality 2024-11-04 23:32:56 +01:00
Vari
55cdce4e65 Online players api endpoint now shows players in an open lobby as in game. 2024-09-19 18:53:53 +02:00
Vari
0cca5868b9 Added some google and social meta tags for Search engine oprimization. 2024-09-16 21:41:05 +02:00
Vari
891b7fe7c5 Added an admin tool to set multipliers for XP gain and Currency gain. 2024-09-13 02:00:43 +02:00
RainbowShaggy
05512eb3d9 Rename launcher output file 2024-09-08 16:48:37 +02:00
Vari
8784443fd9 Added some logging to diagnose a bug that prevents prestige. 2024-09-08 11:57:47 +02:00
Vari
0b095cd628 Fixed too fast progression bug
Early in development when I started the challenge system, I assumed the executeChallangeProgressionBatch endpoint would send the new progression to add to the current.

But no it just sends the new complete value to set in the Backend.
2024-09-07 23:39:09 +02:00
Vari
00ae7e16aa Adjusted Matchmaking now also removing games the user is the creator of when freshly queueing.
Added some loggin to the matchmaking job.

Adjusted Matchmaking cleanup times.

Changed Session log to now put the session logs of a user inside a folder with their name.
2024-09-06 12:41:32 +02:00
Vari
dfbb8f34c0 Added new Admin Tool page to manage the different versions we need to control. These are:
- launcher version (updating launcher)
- game version
- content version (for catalog)
- catalog version

Also added checks that when the wrong content version you dont get a catalog until you update tha game. And added another check when queuing when using the wrong game version you dont get queued. (so that hunters on the wrong version cannot block the matchmaking)
2024-09-05 23:43:47 +02:00
Vari
3a317a3adc Added new Content to the Website:
- Modifierd FAQ
- Added FAQ for the laucnher in the Download page
- Added new page 'known issues'
2024-09-05 13:25:00 +02:00
Vari
9eee06dc2e Added Check to game steam login to verify if the user needs to have a special role to play the game.
the role/s can be set in the .env with `ROLES_ALLOWED_TO_PLAY=`
2024-09-02 00:12:22 +02:00
Vari
e97d70ecb4 Added some special logging to research the purchase error that sometime happens. 2024-09-01 15:06:06 +02:00