New: 36 free tools for Unreal Engine and Unity developers.Try them →

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, 100000 means 1000.00 and 300 means 3.00.

[image10]
Project Settings → Plugins → Shopping Simulator Kit page.

Shop

SettingDefaultDescription
Shop NameMy ShopShown on every sign with an SSF Shop Name component

Economy

SettingDefaultDescription
Starting Money100000 (1000.00)Money the player starts with
Currency Symbol$Shown in all UI
Currency Decimals2Number of decimal places (0–4)

Day

SettingDefaultDescription
Open Duration Seconds300Real seconds the shop stays open each day
Open Hour8In-game opening hour (for the clock)
Close Hour20In-game closing hour (for the clock)

Save

SettingDefaultDescription
Save Slot NameSSFSaveName of the save slot
Auto SaveOnSave automatically when a day ends
Auto LoadOnLoad the save automatically when the game starts

Reputation

SettingDefaultDescription
Use ReputationOnTurn the reputation system on/off. When off, the spawner uses its own Passerby Chance
Starting Reputation10Reputation of a new shop
Happy Customer Gain2Added for every happy customer
Unhappy Customer Loss5Removed for every unhappy customer
Passerby Chance At Low Reputation0.8Chance (0–1) that a person walks past at reputation 0
Passerby Chance At High Reputation0.1Chance (0–1) that a person walks past at reputation 100

Reputation → Basket

SettingDefaultDescription
Use Reputation Basket SizeOnBasket size depends on reputation (needs Use Reputation)
Min / Max Items At Low Reputation1 / 2Items a normal customer buys at reputation 0
Min / Max Items At High Reputation2 / 5Items a normal customer buys at reputation 100
Big Shopper Chance At High Reputation0.4Chance of a big shopper at reputation 100 (lower at lower reputation)
Big Shopper Min / Max Items8 / 10Items a big shopper buys

Daily Costs

SettingDefaultDescription
Use Daily CostsOnCharge the costs below at the end of every day
Daily CostsRent 300, Electricity 100List 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.

FieldDescription
Item IdUnique ID for this item (e.g. Milk_1L)
Display NameName shown in UI and prompts (e.g. "Herbal Glow Soap")
CategoryUsed for the category tabs in the order screen
IconTexture shown in the catalog, cart, checkout and on the box label
Units Per BoxHow many units come in one box
Box CostPrice of one box from the supplier (smallest currency unit)
Default Sell PriceStarting sell price per unit; also the base for customer price tolerance
Item MeshThe mesh shown on shelves for each unit
Item Mesh ScaleScale applied to Item Mesh on shelves
Item Material OverrideOptional material for Item Mesh (e.g. flavor variants that share one mesh)
Box Mesh / Box Mesh ScaleMesh used for this product's delivery box

Included products: Milk, Soap, Chips (Classic Salted, Spicy Masala, Cream & Onion).

[image11]
An Item Data Asset open in the editor.

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.
  • FormatMoney turns 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.
PropertyDefaultDescription
Interaction Distance250How far the player can reach, in cm
Trace ChannelVisibilityCollision channel used for the line trace
Draw Debug TraceOffDraw the trace line in the world
[image12]
Interaction prompt with key, label and a warning chip.

9.4 Carry Component

PropertyDefaultDescription
Hold Offset(70, 0, -35)Where the box is held relative to the camera (forward, right, up) in cm
Drop Distance100How 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.

PropertyDefaultDescription
Item—Product inside the box
Quantity—Units inside
Fill On Begin PlayOnFill 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 Slot0Mesh material slot that receives the icon material (the demo box uses slot 1, the label)
Icon Parameter NameIconTexture parameter in Box Material that receives the item icon
Icon Opacity Parameter NameIconOpacityScalar 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.
[image13]
Five demo boxes, each showing its own product icon on the label.

9.6 Delivery Point

Where ordered boxes appear.

PropertyDefaultDescription
Box Class—Box Blueprint to spawn (e.g. BP_SSFDemoBox)
Delivery Delay5Seconds between ordering and delivery (0 = instant)
Max Boxes Per Order10Most boxes of one product in a single order
Grid Columns / Grid Rows4 / 3Number of spots in the delivery grid
Box Spacing60Distance between spot centers, in cm
Stack Height45Height 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.

[image14]
Boxes stacked neatly on the wooden pallet in the storage room.

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.
[image15]
Product card close-up showing sell price buttons and profit badge.

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.

PropertyDefaultDescription
Item Spacing2Gap between items on the shelf, in cm
Allow StackingOffStack items on top of each other
Show Price TagOnShow a price label on the front edge
Price Tag Size5Text 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 ColorWhiteText 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.

[image16]
Shelf with price tags; a second image of the shelf Blueprint with slot boxes visible.

9.9 Storage Rack

Store full boxes in the back room.

PropertyDefaultDescription
Columns3Slots side by side on each level
Levels3Number of levels (the demo rack uses 4)
Column Spacing60Distance between slot centers, cm
Level Height55Distance between levels, cm (demo rack: 52.1)
First Level Height10Height of the first board top above the actor origin, cm (demo rack: 13.2)
Depth Offset0Push slots forward/back, cm
Box Yaw0Extra rotation for stored boxes (e.g. 90 to turn the label to the front)
Debug Draw SlotsOffDraw 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.
[image17]
Storage rack with debug slots on and boxes stored.

9.10 Customers

ASSFCustomer is a Character driven by NavMesh.

Behavior

  1. Spawns at the spawner and decides whether to come in (passer-by chance).
  2. Gets a shopping list (basket).
  3. Optionally browses random shelves.
  4. Walks to each wanted product, picks units from the slot.
  5. Skips products that are too expensive or out of stock (counted as missing).
  6. Joins the checkout queue, waits, pays and leaves through the exit.
PropertyDefaultDescription
Acceptance Radius20How close counts as "arrived", cm
Pick Duration1.0Seconds spent picking items
Shelf Stand Distance70How far in front of a slot the customer stands, cm
Min / Max Price Tolerance1.2 / 1.8Accepts prices up to default price × tolerance (random per customer)
Min / Max Browse Stops0 / 2Extra shelves visited without buying
Browse Look Time1.5Seconds 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.

[image18]
Customers shopping between the shelves.

9.11 Customer Spawner

PropertyDefaultDescription
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 Interval3 / 8Random seconds between spawns
Passerby Chance0.3Used only when reputation is off
Max Active Customers5Customers in the shop at the same time
Max Queue Wait Seconds30Patience before becoming unhappy
Min / Max Basket Lines1 / 3Different products per basket (when reputation basket size is off)
Max Quantity Per Line3Max units of one product
Auto StartOnStart 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

PropertyDefaultDescription
Queue Spacing100Distance between customers in line, cm
Max Queue Length6Customers allowed in line
Debug Draw QueueOffShow 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.

RangeLevel
0–19New shop
20–39Getting known
40–59Trusted
60–79Popular
80–100Famous
  • +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).
[image19]
HUD reputation card and the reputation row in the Day Summary.

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 statePromptWhat happens
Closed, new dayOpen ShopThe shop opens
OpenClose ShopNo new customers; the day ends when the last customer leaves
ClosingClosing...Nothing, wait for the last customer
Closed, day endedStart Day 2The next day starts (shop stays closed until you open it)

9.19 Shop Name Sign

  1. Set Project Settings → Shopping Simulator Kit → Shop → Shop Name.
  2. Add an SSF Shop Name component to any Blueprint (the demo uses BP_SSFDemoShopName).
PropertyDefaultDescription
Use Shop Name From SettingsOnOff = use the Text field as typed
Upper CaseOnShow the name in capital letters
World Size30Text size

The name updates when you press Play or reopen the level.

[image20]
Shop front with the shop name on the red sign band.