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

15 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)
687f8dabbe Use resolvable vehicles in campaign mode instead of raw cube data 2025-12-02 17:08:42 -05: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)
e33a499415 Update shield and natural regen defaults 2025-09-09 20:29:10 -04:00
NG (Graham)
624fee6d72 Fix auto-selecting chat channel, add some more config options 2025-08-13 22:17:24 -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)
9f90c2e5fb Handle game event change situation in lobby queue 2025-07-24 22:17:41 -04:00
NG (Graham)
4baa1ef911 Add minimum matchmaking lobby server 2025-06-10 20:52:36 -04:00
NG (Graham)
c0d04f0553 Reduce size of minimum hitbox to fix #27 and #29 2025-06-03 21:29:23 -04:00
NG (Graham)
8affa33ace Add user registration 2025-05-12 20:56:24 -04:00
NG (Graham)
b04a8902e2 Add upgrade and dismantle vehicle slot functionality for #14 2025-05-11 12:09:23 -04:00
NGnius (Graham)
77ddeb7891 Create RC database layer 2025-05-07 20:23:22 -04:00
NGnius (Graham)
a540cf6d8f Load more config data from files (instead of hardcoded) 2025-03-30 17:54:06 -04:00