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

19 Commits

Author SHA1 Message Date
NG (Graham)
a222745841 Update dependencies with breaking changes 2026-05-04 21:53:29 -04:00
NG (Graham)
8c2a90cea7 Fix clan avatars not displaying in some cases 2026-04-06 10:22:10 -04:00
NG (Graham)
5ce1611cc5 Log when an invalid URL path is accessed 2026-03-18 17:42:09 -04:00
NG (Graham)
a391d7e45a Create README for every crate 2026-03-05 21:47:50 -05:00
NG (Graham)
f0cca11d3c Implement most of clans functionality; close #89 2026-02-22 22:39:34 -05:00
NG (Graham)
36100a34c4 Set version to v1.1.0 and update dependencies 2025-12-22 19:40:34 -05:00
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)
cd82502576 Update dependencies 2025-11-16 15:10:47 -05:00
NG (Graham)
b3ad2c3758 Add proof-of-concept server intercom service through auth server 2025-10-26 15:43:51 -04:00
NG (Graham)
0e35aced01 Readability fixes for cargo clippy 2025-09-03 22:33:32 -04:00
NG (Graham)
a8692b2839 Enable premium, add custom avatar saving support to complete #10 2025-08-13 17:36:44 -04:00
NG (Graham)
78c1ad2ee5 Add some build tooling 2025-06-05 21:20:53 -04:00
NG (Graham)
f678426e10 Prefix all crates with oj_ and use release version of dependencies 2025-06-03 21:09:03 -04:00
NG (Graham)
6ddea92a87 Add default image to CDN, favicon to registration, create logo 2025-06-01 17:51:12 -04:00
NG (Graham)
093bc42e97 Add git commit hash to version info on HTTP servers 2025-05-30 23:11:51 -04:00
NG (Graham)
2607903f7b Add arc thumbnail support as part of #10 2025-05-24 23:56:48 -04:00
NG (Graham)
59612e6aa3 Create basic CDN endpoints for #10 2025-05-24 16:21:45 -04:00
NG (Graham)
e7de53929d Replace rc_static_data with general CDN implementation 2025-05-24 13:42:53 -04:00