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

27 Commits

Author SHA1 Message Date
MaxSignal
9d935a5ec7 Re-added handling of the buyable flag to the Arc adapter search function, and added handling of the feature_only flag. (#107)
### Description

I previously removed the `buyable` flag handling in `list()` to resolve an issue where users couldn't see bots with the `buyable` flag set to 0 in the Arc adapter.

Looking back, this might have been a mistake. Because deletion in the Arc adapter sets the `buyable` flag to 0, newly uploaded bots also become undeletable.

Therefore, from a practical standpoint, it might be better to reinstate the `buyable` flag handling.

However, in this case, the problem of some bots not being displayed, as before, will reappear. Therefore, I think it's important to recommend setting the `buyable` flag to 1 for all bots in the Arc SQLite database from the start.

Therefore, this PR reintroduces the buyable flag.
Currently, it is possible for someone who later creates an account with the same name to delete older bots. The spoof_username feature, which is intended to prevent this, would otherwise apply to newly uploaded bots as well, making them undeletable. To address this, the scope of spoof_username has been limited to bots uploaded before 2025-01-23 (the last officially uploaded bots).

### Please confirm

- [x] I am the legal owner or represent the legal owner of all work submitted (including LLM-generated code, if any)
- [x] I consent to my changes being added to this FOSS project
- [x] I have confirmed that this does not add new errors or warnings with `utils/clippy.sh`
- [ ] This PR used LLMs to generate some or all of the code changes

Reviewed-on: https://git.ngram.ca/OpenJam/rc-servers/pulls/107
Co-authored-by: MaxSignal <kastera58@gmail.com>
Co-committed-by: MaxSignal <kastera58@gmail.com>
2026-04-07 22:21:57 +00:00
NG (Graham)
a391d7e45a Create README for every crate 2026-03-05 21:47:50 -05:00
NG (Graham)
dde005b371 Add web adapter for vehicle factory 2026-02-08 17:21:32 -05:00
NG (Graham)
3b909327d8 Implement factory in main database, close #80 2026-02-01 18:14:16 -05:00
MaxSignal
cda66a8a55 Added more broken part ids 2026-01-18 22:56:57 +00:00
MaxSignal
a7b10421d8 Filter out broken part IDs 2026-01-18 21:54:24 +00:00
MaxSignal
16f0761380 Implementing the factory web API 2026-01-14 06:56:00 +00:00
MaxSignal
e76c1a6f3f Fixed override_cdn to work properly 2026-01-11 05:21:34 +00:00
NG (Graham)
6211c930ba Add dev-only factory ops for featuring a vehicle 2026-01-05 16:39:55 -05:00
NG (Graham)
437b7f9fdd Implement factory offset saving 2026-01-05 16:21:14 -05:00
NG (Graham)
2e0c6b2b62 Switch factory trait over to i32 IDs 2026-01-04 16:48:18 -05:00
NG (Graham)
3015572170 Complete factory rating support 2026-01-04 16:43:36 -05:00
NG (Graham)
50eb3f471e Fix empty factory cube amounts causing incorrect CPU display 2026-01-04 16:05:13 -05:00
NG (Graham)
495701d886 Re-add a good way to disable factory uploading 2026-01-01 21:25:24 -05:00
NG (Graham)
7f187dcb98 Fix clippy warnings in validation and chat logic 2025-12-26 16:16:23 -05:00
MaxSignal
c22a74e9fd Remove filtering by the buyable (#65)
### Description

The buyable flag is never disabled anywhere in the game, and if this flag is set to 0, the robot won’t be shown on the CRF at all—so I think we should remove it.

### Game

_No response_

### 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
- [ ] This PR used LLMs to generate some or all of the code changes

Reviewed-on: https://git.ngram.ca/OpenJam/rc-servers/pulls/65
Co-authored-by: MaxSignal <kastera58@gmail.com>
Co-committed-by: MaxSignal <kastera58@gmail.com>
2025-12-14 16:48:53 +00: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)
ade535e556 Add Arc CRF username spoofing 2025-10-06 23:02:08 -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)
299c15c6da Fix some factory search bugs 2025-05-31 14:40:24 -04:00
NG (Graham)
9281069374 Add immediate variant for singleplayer vehicle, misc tweaks 2025-05-31 11:38:41 -04:00
NG (Graham)
50cc0cc3a9 Get enemies spawning in singleplayer #23 2025-05-30 23:03:02 -04:00
NG (Graham)
2607903f7b Add arc thumbnail support as part of #10 2025-05-24 23:56:48 -04:00
NG (Graham)
a0dba39475 Add factory upload support to trait, make client handle rejections gracefully #6 2025-05-18 21:52:03 -04:00
NG (Graham)
49781d35b2 Populate garage data from factory purchase better #6 2025-05-18 16:55:12 -04:00
NG (Graham)
3f1438c068 Add minimal robot factory functionality and arc archive support for #6 2025-05-17 23:06:07 -04:00