1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00
Commit Graph

213 Commits

Author SHA1 Message Date
NG (Graham)
f6f6e1f127 Add intercom functionality for setting factory thumbnails 2025-12-13 16:23:18 -05:00
MaxSignal
aedec62b8d Implementing upload functionality for ArcAdapter and improving CRF search. (#62)
### Description

This PR implements upload functionality for ArcAdapter and improves CRF search.

adapter.rs

First, regarding the CRF search feature, when there is no search query (i.e., on the default page), there was a bug where sorting by added date and other sort options did not work correctly, so the default query was removed. Also, the added-date sort order was reversed, so that was fixed as well.

Next, about the upload feature.

First, in order to create cube_amounts, which stores in JSON the count of each part of the robot contained at the end of the ROBOT_CUBES table, we count—by type—the number of all byte sequences (part IDs) excluding the first 4 bytes (total part count) and excluding the last 4 bytes (coordinates) out of each following 8 bytes, and then create a JSON string where the keys are the part IDs converted to decimal and the values are the counts.

After that, we insert Base64-encoded data into cube_data and colour_data in ROBOT_CUBES, and insert the above JSON string into cube_amounts.

Next, regarding ROBOT_METADATA, the thumbnail URL is set to the internal CDN, and the actual thumbnail data is saved under data/robocraft/thumbnails.

The added date and expiration date are converted to match the same format as the other data before insertion, and the other data is inserted as-is.

arc.rs

If the requested file is not present in the ZIP file, it was changed to scan the JPG files existing in data/robocraft/thumbnails.

package_release.py

Made it so that data/robocraft/thumbnails is created.

### Game

Robocraft

### Please confirm

- [x] I am the legal owner or represent the owner of all work submitted
- [x] I consent to my submission being added to this FOSS project
- [x] This PR used LLMs to generate some or all of the code changes

Reviewed-on: https://git.ngram.ca/OpenJam/rc-servers/pulls/62
Co-authored-by: MaxSignal <kastera58@gmail.com>
Co-committed-by: MaxSignal <kastera58@gmail.com>
2025-12-13 19:23:07 +00:00
NG (Graham)
0f9f67e5a9 Update owned point count on capture 2025-12-11 21:19:48 -05:00
NG (Graham)
29b5490f86 Count all owned points first so shield isn't dropped half way through the counting/capturing 2025-12-11 20:59:44 -05:00
NG (Graham)
f36cc5b2b3 Use exec for long-running part of run scripts 2025-12-07 17:26:09 -05:00
NG (Graham)
69e6772b84 Update release archive names to reflect repo name v1.0.0 2025-12-06 11:22:23 -05:00
NG (Graham)
44d1203811 Demote user load progress message to debug 2025-12-06 10:50:02 -05:00
NG (Graham)
41cdcb9735 Reset game match rotation for release 2025-12-06 10:49:27 -05:00
NG (Graham)
8a12c59a16 Skip sending win/lose messages to ClientAIs in more cases 2025-12-06 10:47:51 -05:00
NG (Graham)
5137163146 Update multiplayer to literustlib v0.3 2025-12-06 10:38:00 -05:00
NG (Graham)
a5485881e8 Set lifetime premium duration to 365 days [sic]; fix #56 2025-12-03 17:11:21 -05:00
NG (Graham)
687f8dabbe Use resolvable vehicles in campaign mode instead of raw cube data 2025-12-02 17:08:42 -05:00
NG (Graham)
b58af3d893 Set version to 1.0.0 2025-11-30 22:08:40 -05:00
NG (Graham)
c21d727440 Retrieve most recent match that player is in instead of oldest; fix maybe #52 2025-11-30 21:52:29 -05:00
NG (Graham)
b1ecb87c96 Add more logging for #52 2025-11-30 21:49:01 -05:00
NG (Graham)
09563c9239 Fix reactor height in Mars3; fix #51 2025-11-16 15:10:47 -05:00
NG (Graham)
cd82502576 Update dependencies 2025-11-16 15:10:47 -05:00
NG (Graham)
dfc0cc351b Always skip sending to aliased connections (client AIs) #48 2025-11-16 15:10:47 -05:00
NG (Graham)
8d5f835497 Add standard favicon endpoint 2025-11-16 15:10:47 -05:00
MaxSignal
4bdb0ad1d0 Use IndexMap instead of HashMap in CubeConfig 2025-11-13 16:08:58 +00:00
NG (Graham)
2583429af8 Add status reporting to auth server 2025-11-03 19:24:20 -05:00
NG (Graham)
7579963893 Upgrade to libfj v0.9 2025-11-03 19:16:03 -05:00
NG (Graham)
340f571637 Add stats chat command 2025-10-31 22:41:33 -04:00
NG (Graham)
3ef1aa20d0 Add some basic commands for sysadmins and permission system for them 2025-10-31 21:02:10 -04:00
NG (Graham)
77b6d8c11f Add validation warning about fake players on strange teams in any game mode 2025-10-30 22:15:12 -04:00
NG (Graham)
3fb2fbad06 Allow fake players to have their team chosen automatically at game start 2025-10-30 21:59:47 -04:00
NG (Graham)
127de674b4 Allow client AIs to run on non-teammates when there are no teammates available, fix/answer #42 2025-10-29 21:29:43 -04:00
NG (Graham)
2007abd3df Ignore client NPCs (aliased connections) when considering real players, fix #39 2025-10-29 20:31:34 -04:00
NG (Graham)
2cc467726f Add self-validation framework for config 2025-10-27 22:07:38 -04:00
NG (Graham)
b3ad2c3758 Add proof-of-concept server intercom service through auth server 2025-10-26 15:43:51 -04:00
NG (Graham)
3e09a5e554 Fix multiplayer loading with more than 2 players 2025-10-12 14:02:15 -04:00
NG (Graham)
281f5dde49 Configure for v0.5.0 dev cycle 2025-10-06 23:04:04 -04:00
NG (Graham)
ade535e556 Add Arc CRF username spoofing 2025-10-06 23:02:08 -04:00
NG (Graham)
5fc8b9a571 Update build config, add riscv build script v0.4.0 2025-10-03 18:08:50 -04:00
NG (Graham)
6879fc8ed5 Remove some gamemode startup warnings, make expanded config json more obvious 2025-10-03 18:06:36 -04:00
NG (Graham)
827c14da0d Update readme with more RC specifics 2025-10-03 17:21:51 -04:00
NG (Graham)
01cd9bce97 Add debug message before unhelpful token secret file not found error 2025-10-02 22:07:25 -04:00
NG (Graham)
214599ce9a Fix some clippy warnings 2025-10-02 21:52:35 -04:00
NG (Graham)
aa690007b7 Configure for release v0.4.0 2025-10-02 21:01:57 -04:00
NG (Graham)
56e170d99c Add example connection group 2025-09-28 12:08:57 -04:00
NG (Graham)
71d8ecaea2 Update registration with new URLs and launch button 2025-09-27 23:27:58 -04:00
NG (Graham)
59f54dadaa Fix Pit not ending when out of players ending with AI teammates 2025-09-27 14:33:09 -04:00
NG (Graham)
e55bd6d288 Add basic client AI support 2025-09-27 12:36:49 -04:00
NG (Graham)
91fc2db868 Remove mentions of Cardlife (moved to different repo) 2025-09-17 17:30:25 -04:00
NG (Graham)
c9f9d146e8 Add version info chat command 2025-09-14 12:23:46 -04:00
NG (Graham)
525fa8b87e Add team death match support #33 2025-09-14 12:08:52 -04:00
NG (Graham)
d194e29ff7 Add win condition for last player connected #34 2025-09-13 17:51:58 -04:00
NG (Graham)
c85d4bbc38 Add pit spawn points #34 2025-09-13 17:36:35 -04:00
NG (Graham)
82cc2dcf1b Add pit win conditions #34 2025-09-10 19:40:51 -04:00
NG (Graham)
f2de67b338 Add minimal Pit implementation (without win conditions) #34 2025-09-09 23:36:34 -04:00