Skip to content

feat: Implement server-side support for custom block properties (Waypoint Priority, Text rich formatting, Pickup Locked/Uses/Attachments)#40

Open
flaouve wants to merge 24 commits into
Michal78900:masterfrom
flaouve:main
Open

feat: Implement server-side support for custom block properties (Waypoint Priority, Text rich formatting, Pickup Locked/Uses/Attachments)#40
flaouve wants to merge 24 commits into
Michal78900:masterfrom
flaouve:main

Conversation

@flaouve

@flaouve flaouve commented Jul 10, 2026

Copy link
Copy Markdown

Summary

This Pull Request implements the server-side handling and generation logic for the new custom block properties compiled by the updated Unity Editor helper.

Important

Compatibility Warning: This server-side update is fully backwards compatible with older schematic files. However, to utilize the new features (such as Waypoint priority, text alignment/size, and pickup uses), you should build your schematics using the matching updated Unity editor project: https://github.com/FuffyPal/Fla-SL-CustomObjects


Key Changes

  • Interactable: The server now dynamically resolves the Animator component from the specified TargetObject, checking the target object itself, its children, and its parents.
  • Waypoint: Implemented custom Priority property mapping for bot navigation.
  • Pickup:
    • Implemented AttachmentsCode mapping to spawn weapons with custom scope/attachment builds.
    • Implemented NumberOfUses (Uses) mapping via PickupUsesLeft to allow finite or infinite item spawns.
    • Correctly mapped the Locked property to register pickups as button indicators (ButtonPickups).
  • Core Debugging: Changed Logger.Debug to Logger.Info inside debug-conditional code blocks to bypass framework-level debug log suppression, allowing server administrators to easily test interactions.
  • Crash Prevention: Added duplicate key protection when populating the ObjectFromId lookup dictionary to prevent server crashes on schemas with overlapping IDs.

flaouve added 19 commits July 10, 2026 12:32
…LabAPI ignores Logger.Debug without framework debug flag) - bump to 0.2.3
@flaouve

flaouve commented Jul 11, 2026

Copy link
Copy Markdown
Author

I wrote 40 lines of unnecessary code for debugging, but just so you know, the code isn't working whether it's fixed or not, it's still working as intended, but

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant