Documentation
Docs/Resources/Base/arcademachines
Base Resource

arcademachines

Provides local and hosted HTML5 games through configurable arcade cabinets. Prices use Core’s configured currency. Define every title in Config.Games, then enable its ID in each cabinet’s games table. A game omitted from a cabinet is not shown there. For hosted games: 1. Use a direct HTTPS iframe-compatible HTML5 game URL. 2. Add its host to Config.ExternalAllowedHosts. 3. Add a kind = 'external' game entry. 4. Enable its ID on the required cabinets. Unreachable or iframe-blocked hosted games are excluded automatically. Local games remain available. Upstream hosted-game licences are listed in EXTERNALGAMES.md. Restart arcademachines after catalogue changes.

v1.0.0VCore FrameworkGameplay systems

Introduction

Provides local and hosted HTML5 games through configurable arcade cabinets. Prices use Core’s configured currency. Define every title in Config.Games, then enable its ID in each cabinet’s games table. A game omitted from a cabinet is not shown there. For hosted games: 1. Use a direct HTTPS iframe-compatible HTML5 game URL. 2. Add its host to Config.ExternalAllowedHosts. 3. Add a kind = 'external' game entry. 4. Enable its ID on the required cabinets. Unreachable or iframe-blocked hosted games are excluded automatically. Local games remain available. Upstream hosted-game licences are listed in EXTERNALGAMES.md. Restart arcademachines after catalogue changes.

2Client Lua
2Server Lua
2Exports
13Events
0SQL tables

UI page: html/index.html

Dependencies & References

ResourceDetected asPackage status
coreManifest dependencyIncluded in Base
logsReferenced by sourceIncluded in Base

Cross-resource export calls

ResourceFunctions called
coregetCoreObject
logsLog

Installation / Start Order

The supplied server.cfg enables this resource in the Gameplay systems stage at enabled-resource position 49. Base installation also depends on the global prerequisites and consolidated VCORE_INSTALL.sql documented in Getting Started.

server.cfg
ensure arcademachines

Configuration

Config files

  • config.lua

Top-level config keys detected

AllowExternalGamesDebugExternalAllowedHostsExternalGameLoadTimeoutMsGamesHeartbeatSecondsLoadDurationMsMachineModelsMachinesMaxReportedScoreMaxStoredCreditSecondsPaymentAccountProbeExternalGamesOnStartRequestCooldownMsServerUseDistanceSessionTimeoutSecondsStreamDistanceTickets

Events, Exports & Callbacks

Exports

Server exports2
  • GetMachineOccupant
  • GetPlayerCredit

Callbacks

No Vcore callback registrations were detected.

Registered network events

Client registered events6
  • VCORE:Client:OnPlayerUnload
  • arcademachines:client:forceExit
  • arcademachines:client:machineReady
  • arcademachines:client:sessionUpdated
  • arcademachines:client:startGame
  • arcademachines:client:timeExpired
Server registered events7
  • arcademachines:server:heartbeat
  • arcademachines:server:leaveMachine
  • arcademachines:server:purchaseTime
  • arcademachines:server:startGame
  • arcademachines:server:stopGame
  • arcademachines:server:submitScore
  • arcademachines:server:useMachine

Commands

No commands were detected.

Database / SQL

No resource-local SQL file was detected.

No CREATE TABLE statements detected inside this resource.

The root Base package also ships the consolidated VCORE_INSTALL.sql.

Source Layout

AreaDetected files
Client Lua2
Server Lua2
Other/shared Lua2
JavaScript2
HTML1
CSS1
SQL0

Troubleshooting

  • Confirm all manifest dependencies are started before arcademachines.
  • Check the supplied start-order note above; resources absent from server.cfg need an explicit decision before enabling.
  • If database queries fail, import the consolidated Base SQL and any resource-local SQL listed above.
  • If the UI fails, verify the resource's NUI files and ui_page when one is declared.