Shopping Simulator Kit Documentation
v1.0 · UE 5.8
Settings & Systems
8. Project Settings Reference
Open Edit → Project Settings → Plugins → Shopping Simulator Kit. All values are saved in your project's DefaultGame.ini.
Money values are whole numbers in the smallest currency unit. With 2 decimals,
100000means 1000.00 and300means 3.00.
Shop
| Setting | Default | Description |
|---|---|---|
| Shop Name | My Shop | Shown on every sign with an SSF Shop Name component |
Economy
| Setting | Default | Description |
|---|---|---|
| Starting Money | 100000 (1000.00) | Money the player starts with |
| Currency Symbol | $ | Shown in all UI |
| Currency Decimals | 2 | Number of decimal places (0–4) |
Day
| Setting | Default | Description |
|---|---|---|
| Open Duration Seconds | 300 | Real seconds the shop stays open each day |
| Open Hour | 8 | In-game opening hour (for the clock) |
| Close Hour | 20 | In-game closing hour (for the clock) |
Save
| Setting | Default | Description |
|---|---|---|
| Save Slot Name | SSFSave | Name of the save slot |
| Auto Save | On | Save automatically when a day ends |
| Auto Load | On | Load the save automatically when the game starts |
Reputation
| Setting | Default | Description |
|---|---|---|
| Use Reputation | On | Turn the reputation system on/off. When off, the spawner uses its own Passerby Chance |
| Starting Reputation | 10 | Reputation of a new shop |
| Happy Customer Gain | 2 | Added for every happy customer |
| Unhappy Customer Loss | 5 | Removed for every unhappy customer |
| Passerby Chance At Low Reputation | 0.8 | Chance (0–1) that a person walks past at reputation 0 |
| Passerby Chance At High Reputation | 0.1 | Chance (0–1) that a person walks past at reputation 100 |
Reputation → Basket
| Setting | Default | Description |
|---|---|---|
| Use Reputation Basket Size | On | Basket size depends on reputation (needs Use Reputation) |
| Min / Max Items At Low Reputation | 1 / 2 | Items a normal customer buys at reputation 0 |
| Min / Max Items At High Reputation | 2 / 5 | Items a normal customer buys at reputation 100 |
| Big Shopper Chance At High Reputation | 0.4 | Chance of a big shopper at reputation 100 (lower at lower reputation) |
| Big Shopper Min / Max Items | 8 / 10 | Items a big shopper buys |
Daily Costs
| Setting | Default | Description |
|---|---|---|
| Use Daily Costs | On | Charge the costs below at the end of every day |
| Daily Costs | Rent 300, Electricity 100 | List of named costs. Add, remove or rename freely. Money can go below zero |
9. Systems in Detail
9.1 Items (Product Data Assets)
Every product is a Data Asset of type SSF Item Definition.
| Field | Description |
|---|---|
| Item Id | Unique ID for this item (e.g. Milk_1L) |
| Display Name | Name shown in UI and prompts (e.g. "Herbal Glow Soap") |
| Category | Used for the category tabs in the order screen |
| Icon | Texture shown in the catalog, cart, checkout and on the box label |
| Units Per Box | How many units come in one box |
| Box Cost | Price of one box from the supplier (smallest currency unit) |
| Default Sell Price | Starting sell price per unit; also the base for customer price tolerance |
| Item Mesh | The mesh shown on shelves for each unit |
| Item Mesh Scale | Scale applied to Item Mesh on shelves |
| Item Material Override | Optional material for Item Mesh (e.g. flavor variants that share one mesh) |
| Box Mesh / Box Mesh Scale | Mesh used for this product's delivery box |
Included products: Milk, Soap, Chips (Classic Salted, Spicy Masala, Cream & Onion).
9.2 Economy
USSFEconomySubsystem keeps the player's money and the current sell price of every item.
- Money can go negative (debt), for example when daily costs are charged.
- Sell prices start at each item's Default Sell Price and can be changed from the order screen. Changing a price updates all price tags on shelves.
FormatMoneyturns a value into text using your currency symbol and decimals.- Events: On Money Changed (new money, change), price changed.
9.3 Interaction
- SSF Interactor Component (on the player) traces from the camera, finds the actor the player is looking at and calls Interact on it.
- SSF Interactable interface: implement Get Interaction Text and Interact in C++ or Blueprint to make any actor interactable.
- The prompt widget shows the key (e.g.
E), the action text (e.g. "Pick up Milk 1L (12)") and an optional detail chip. A detail that contains!is shown as a warning.
| Property | Default | Description |
|---|---|---|
| Interaction Distance | 250 | How far the player can reach, in cm |
| Trace Channel | Visibility | Collision channel used for the line trace |
| Draw Debug Trace | Off | Draw the trace line in the world |
9.4 Carry Component
| Property | Default | Description |
|---|---|---|
| Hold Offset | (70, 0, -35) | Where the box is held relative to the camera (forward, right, up) in cm |
| Drop Distance | 100 | How far in front of the camera a dropped box lands, in cm |
Functions: Pick Up, Drop, Is Carrying, Get Carried Box. Event: On Carried Box Changed.
9.5 Boxes
ASSFBox is a physics actor that holds one product.
| Property | Default | Description |
|---|---|---|
| Item | — | Product inside the box |
| Quantity | — | Units inside |
| Fill On Begin Play | On | Fill to the item's Units Per Box when the game starts (useful for boxes placed by hand) |
| Box Material | — | Material that shows the item icon. Leave empty to keep the mesh's own material |
| Icon Material Slot | 0 | Mesh material slot that receives the icon material (the demo box uses slot 1, the label) |
| Icon Parameter Name | Icon | Texture parameter in Box Material that receives the item icon |
| Icon Opacity Parameter Name | IconOpacity | Scalar parameter: 1 = icon visible, 0 = hidden |
- The box's mesh and scale come from the item's Box Mesh.
- When a box is empty, throw it in the trash bin.
- Event: On Quantity Changed.
9.6 Delivery Point
Where ordered boxes appear.
| Property | Default | Description |
|---|---|---|
| Box Class | — | Box Blueprint to spawn (e.g. BP_SSFDemoBox) |
| Delivery Delay | 5 | Seconds between ordering and delivery (0 = instant) |
| Max Boxes Per Order | 10 | Most boxes of one product in a single order |
| Grid Columns / Grid Rows | 4 / 3 | Number of spots in the delivery grid |
| Box Spacing | 60 | Distance between spot centers, in cm |
| Stack Height | 45 | Height of one box layer when stacking, in cm (set it to your box height + 1) |
How placement works
- The grid is centered on the delivery point.
- Each new box goes to the spot with the fewest boxes and is placed exactly on top of the surface or the boxes already there. Boxes start at rest — they do not fall or bounce.
- A mesh inside the delivery point Blueprint (like the demo pallet) is used as the surface automatically, even without collision. A separate pallet or platform actor placed under the delivery point needs collision and must be within 100 cm above or below the delivery point.
Recommended settings for the demo pallet: Columns 2, Rows 2, Box Spacing 42, Stack Height 31.
9.7 Ordering Computer and Supplier Catalog
Interact with the computer to open the order screen.
- Category tabs filter products.
- Each product card shows icon, name, category, units per box, box cost, unit cost and sell price with -/+ buttons. The profit badge shows profit per unit (green for profit, red for loss).
- Add puts one box in the cart. In the cart, use +/- to change the number of boxes or remove a line.
- The cart shows total boxes, total cost and balance after purchase.
- Checkout checks your balance, spends the money, records the expense for the day and sends the order to the delivery point.
9.8 Shelves and Shelf Slots
A shelf is an ASSFShelf actor with one or more SSF Shelf Slot Components. A slot is a box-shaped area where one product is displayed.
| Property | Default | Description |
|---|---|---|
| Item Spacing | 2 | Gap between items on the shelf, in cm |
| Allow Stacking | Off | Stack items on top of each other |
| Show Price Tag | On | Show a price label on the front edge |
| Price Tag Size | 5 | Text height in cm |
| Price Tag Offset | (2, 0, -2) | Position from the front-bottom edge of the slot (X forward, Y sideways, Z up) |
| Price Tag Color | White | Text color |
Rules
- A slot holds one product type at a time. While a slot holds another product, the prompt shows "Slot has Milk 1L" and nothing is placed.
- Capacity is calculated from the slot size and the product mesh size.
- Customers take items from slots; the slot's forward direction must point to where customers stand.
Making a double-sided shelf: duplicate the slots of one side, flip their Y position and add 180° to their yaw so their forward direction points to the other side.
9.9 Storage Rack
Store full boxes in the back room.
| Property | Default | Description |
|---|---|---|
| Columns | 3 | Slots side by side on each level |
| Levels | 3 | Number of levels (the demo rack uses 4) |
| Column Spacing | 60 | Distance between slot centers, cm |
| Level Height | 55 | Distance between levels, cm (demo rack: 52.1) |
| First Level Height | 10 | Height of the first board top above the actor origin, cm (demo rack: 13.2) |
| Depth Offset | 0 | Push slots forward/back, cm |
| Box Yaw | 0 | Extra rotation for stored boxes (e.g. 90 to turn the label to the front) |
| Debug Draw Slots | Off | Draw slot boxes while playing (green = free, red = taken) |
- Carry a box, look at the rack and press Interact — the box goes to the free slot closest to where you are looking.
- Look at a stored box and press Interact to pick it up again.
- Prompts: "Store Milk box (3/12)" or "Store box (Rack full!)".
- Event: On Rack Changed. Functions: Store Box, Get Box In Slot, Get Stored Boxes, Find Free Slot Near, Is Full.
9.10 Customers
ASSFCustomer is a Character driven by NavMesh.
Behavior
- Spawns at the spawner and decides whether to come in (passer-by chance).
- Gets a shopping list (basket).
- Optionally browses random shelves.
- Walks to each wanted product, picks units from the slot.
- Skips products that are too expensive or out of stock (counted as missing).
- Joins the checkout queue, waits, pays and leaves through the exit.
| Property | Default | Description |
|---|---|---|
| Acceptance Radius | 20 | How close counts as "arrived", cm |
| Pick Duration | 1.0 | Seconds spent picking items |
| Shelf Stand Distance | 70 | How far in front of a slot the customer stands, cm |
| Min / Max Price Tolerance | 1.2 / 1.8 | Accepts prices up to default price × tolerance (random per customer) |
| Min / Max Browse Stops | 0 / 2 | Extra shelves visited without buying |
| Browse Look Time | 1.5 | Seconds spent looking when browsing |
Happy or unhappy? A customer becomes unhappy (counted once) if they:
- found nothing to buy,
- waited longer than Max Queue Wait Seconds in line or at the counter (they still stay to pay), or
- could not join because the queue was full (they leave after the wait).
Customers who pay without becoming unhappy give reputation.
Events: On Reached Target, On State Changed, On Shopping Finished.
9.11 Customer Spawner
| Property | Default | Description |
|---|---|---|
| Customer Class | — | Customer Blueprint to spawn |
| Checkout Counter | — | Counter the customers queue at |
| Available Items | — | Products customers can put on their shopping list |
| Min / Max Spawn Interval | 3 / 8 | Random seconds between spawns |
| Passerby Chance | 0.3 | Used only when reputation is off |
| Max Active Customers | 5 | Customers in the shop at the same time |
| Max Queue Wait Seconds | 30 | Patience before becoming unhappy |
| Min / Max Basket Lines | 1 / 3 | Different products per basket (when reputation basket size is off) |
| Max Quantity Per Line | 3 | Max units of one product |
| Auto Start | On | Start the spawn timer when the game begins (customers only appear while the shop is open) |
| DespawnPoint (arrow) | — | Where customers leave and disappear |
One checkout counter per spawner. Place a spawner for each counter if you have more than one.
9.12 Checkout Counter
| Property | Default | Description |
|---|---|---|
| Queue Spacing | 100 | Distance between customers in line, cm |
| Max Queue Length | 6 | Customers allowed in line |
| Debug Draw Queue | Off | Show queue spots when the game starts |
| QueueStart (arrow) | — | Where the first customer stands; the arrow points the way the line grows |
| ExitPoint (arrow) | — | Where customers walk after paying |
Flow: the first customer arrives → stand at the counter and press Interact to scan one unit at a time → when everything is scanned, press Interact again to take payment. Money and day revenue are updated and the next customer steps up.
Events: On Customer Arrived At Counter, On Item Scanned, On Checkout Completed.
The barcode scanner on the demo counter is decorative in v1. Realistic scanning is planned for v2.
9.13 Day Cycle
USSFDaySubsystem controls the shop day.
- Closed — the shop starts closed each day. Order and stock freely.
- Open — customers come in. The clock runs from Open Hour to Close Hour over Open Duration Seconds.
- Closing — no new customers; the day ends when the last customer leaves.
- At the end of the day: daily costs are charged, stats are finalized, the game is saved (if Auto Save is on) and the Day Summary opens.
Day stats: Day, Revenue, Expenses (stock + daily costs), Daily Costs, Customers Served, Customers Unhappy, Profit.
Functions: Open Shop, Close Shop, Start Next Day, Get Shop State, Get Clock Text, Get Day Progress, Get Today Stats, Record Sale/Expense. Events: On Shop State Changed, On Day Started, On Day Ended.
9.14 Reputation
USSFReputationSubsystem keeps a 0–100 value.
| Range | Level |
|---|---|
| 0–19 | New shop |
| 20–39 | Getting known |
| 40–59 | Trusted |
| 60–79 | Popular |
| 80–100 | Famous |
- +Happy Customer Gain per happy customer, −Unhappy Customer Loss per unhappy customer.
- Passer-by chance moves smoothly from the low-reputation value to the high-reputation value.
- Saved and loaded with the game.
- Event: On Reputation Changed (new value, change).
9.15 Daily Costs
At the end of each day, every cost in the Daily Costs list is charged. The Day Summary shows them as a list and splits expenses into "stock" and "bills". Turn the whole system off with Use Daily Costs.
9.16 Save and Load
USSFSaveSubsystem saves:
- Money, current day and reputation
- Sell prices of all items
- Shelf stock (which item and how many in every slot)
- Loose boxes (class, item, quantity, position)
- Boxes stored on racks (rack and slot)
Auto Save happens at the end of each day. Auto Load happens when the level starts.
When a save is loaded, boxes placed in the level by hand are removed and the saved boxes are spawned. Turn off Auto Load while designing your level.
Functions: Save Shop, Load Shop, Has Save, Delete Save. Events: On Game Saved, On Game Loaded.
9.17 Trash Bin
Carry a box to the trash bin and press Interact to throw it away. If the box still has items, the prompt warns you first, for example "Throw away box (5 items lost!)".
9.18 Open/Closed Sign
The sign shows the current shop state (OPEN / CLOSING / CLOSED) in color and is used to run the day. Look at it and press Interact:
| Shop state | Prompt | What happens |
|---|---|---|
| Closed, new day | Open Shop | The shop opens |
| Open | Close Shop | No new customers; the day ends when the last customer leaves |
| Closing | Closing... | Nothing, wait for the last customer |
| Closed, day ended | Start Day 2 | The next day starts (shop stays closed until you open it) |
9.19 Shop Name Sign
- Set Project Settings → Shopping Simulator Kit → Shop → Shop Name.
- Add an SSF Shop Name component to any Blueprint (the demo uses
BP_SSFDemoShopName).
| Property | Default | Description |
|---|---|---|
| Use Shop Name From Settings | On | Off = use the Text field as typed |
| Upper Case | On | Show the name in capital letters |
| World Size | 30 | Text size |
The name updates when you press Play or reopen the level.