Asset Types
Mercury Core supports multiple asset types:Clothing
Type 11: Shirts
Type 12: Pants
Type 18: T-ShirtsWearable clothing items with automatic thumbnail rendering
Type 12: Pants
Type 18: T-ShirtsWearable clothing items with automatic thumbnail rendering
Accessories
Type 2: Faces
Type 8: Hats/Models
Type 19: HeadsCharacter customization accessories
Type 8: Hats/Models
Type 19: HeadsCharacter customization accessories
Functional
Type 17: GearInteractive items with gameplay functionality
Other
Additional asset types for future expansion
Creating Assets
Users can create assets through the Develop section (/develop/create).
Asset Creation Flow
Creation Fees
Asset creation costs currency to prevent abuse:Site/src/lib/server/economy.ts:129-149
Asset Configuration
Asset creators can manage their assets through the settings page (/catalog/{id}/{name}/settings).
- Basic Settings
- Permissions
Asset Metadata
Name:- 3-50 characters
- Used in URLs and listings
- Filtered for profanity
- Up to 1000 characters
- Supports formatted text
- Filtered for profanity
- Optional (can be empty)
- 0-999 currency units
- Integer values only
- 0 = free asset
- Toggle to enable/disable purchasing
- When disabled, asset cannot be bought even if priced
Site/src/routes/(main)/catalog/[id=asset]/[name]/settings/+page.server.ts:27-35Catalog Browsing
The catalog page (/catalog) provides asset discovery.
Catalog Features
- Pagination: Browse through pages of assets
- Asset Grid: Visual grid layout showing thumbnails
- Price Display: Currency symbol and price for each asset
- Quick Access: Click to view asset details
Asset Visibility
Assets have visibility states:- Visible: Approved and shown in catalog
- Hidden: Pending approval, only visible to creator
- Moderated: Rejected, hidden from catalog
Site/src/routes/(main)/catalog/+page.server.ts:11-21
Asset Details
The asset page (/catalog/{id}/{name}) displays complete asset information.
Asset Page Sections
Asset Information
Asset Information
- Creator: User who uploaded the asset
- Creation Date: When asset was created
- Last Updated: Most recent modification time
- Type: Asset type identifier
- Price: Cost to purchase
- For Sale Status: Whether asset can be purchased
- Sold Count: Number of times purchased
Comments Section
Comments Section
Purchase Section
Purchase Section
Players can purchase assets they don’t own:
- Shows current balance
- Displays total cost including fees
- Random confirmation messages for engagement
- Transaction is recorded in economy service
Site/src/routes/(main)/catalog/[id=asset]/[name]/+page.server.ts:163-217Purchasing Assets
Purchase Process
Check Eligibility
- User must not already own the asset
- Asset must be “Visible” (approved)
- Asset must be marked “For Sale”
Process Transaction
- Currency is transferred from buyer to creator
- Platform fee (10%) is deducted
- Transaction is recorded with link to asset
Grant Ownership
- Create
ownsAssetrelationship in database - Asset appears in user’s inventory
- User can now equip the asset
Transaction Details
Purchases create economy transactions:Thumbnail System
Mercury Core automatically generates thumbnails for supported asset types.Render Queue
The RCC (Render Cloud Compute) service handles thumbnail generation:- Clothing (Types 11, 12): Rendered on avatar mannequin
- Models (Type 8): Rendered as 3D model preview
Requesting Renders
Renders can be triggered:- Automatically: When asset is created or updated
- Manually: Administrators can request re-renders
- On Approval: When moderators approve assets
Site/src/routes/(main)/catalog/[id=asset]/[name]/+page.server.ts:94-121
Thumbnail Storage
Thumbnails are stored as image files:- Path:
data/thumbnails/{assetId} - Served via HTTP endpoints
- Cached by browsers for performance
Icon Endpoints
Assets have dedicated icon endpoints:r parameter forces cache refresh after re-renders.
Inventory
Players can view owned assets at/inventory.
Inventory Features
- Pagination: Browse through owned assets
- Asset Display: Shows name, type, and thumbnail
- Quick Equip: Link to character page to equip items
- Asset Count: Total number of owned assets
Site/src/routes/(main)/inventory/+page.server.ts:13-24
Ownership Tracking
Asset ownership is tracked via graph relationships:- All assets owned by a user
- All users who own a specific asset
- Purchase history and statistics
Moderation
Administrators moderate assets to ensure quality and appropriateness.Asset Moderation Queue
Access at/admin/asset (requires permission level 3+).
- Pending Assets
- Approve
- Deny
- Purge
- Re-render
View all assets awaiting approval:
- Asset name and ID
- Creator information
- Asset type
- Thumbnail preview
- Quick action buttons
Image Assets
Some assets have associated image assets for textures:- Image assets are separate database records
- Linked to parent asset via relationships
- Stored in
data/assets/{imageAssetId} - Used in rendering process
- Up to 1000 characters per comment
- Filtered for profanity
- Rate limited to 5 comments per time window
- Creators receive notifications when users comment
- Supports threaded replies
Source:Site/src/routes/(main)/catalog/[id=asset]/[name]/+page.server.ts:123-162