How vekendian/nebula works
Nebula is a metadata-driven Lua memory SDK for Hill Climb Racing 2, loaded into a host script running in GameGuardian. Its principal workflow resolves a dotted field path against versioned struct metadata, performs typed memory reads or writes, and can verify a write. The graph follows the README’s documented design and capabilities; source excerpts were limited, so edges represent documented relationships rather than claims of direct calls in unsampled files.
Main entry points: defineApi.lua API bridge · main.lua SDK loader · Struct.lua Struct reader/writer · Memory.lua Memory I/O
Components 21
SDK entry
- SDK loader
src/main.lua
Public APIs
- Player info
src/api/PlayerInfo.lua - Game data
src/api/GameData.lua - Public events
src/api/PublicEvent.lua - Team events
src/api/TeamEvent.lua - Community events
src/api/CommunityEvent.lua
Metadata and types
- API bridge
src/core/defineApi.lua - Path resolver
src/core/Path.lua - Versioned metadata
src/metadata - Field helpers
src/core/Field.lua - Struct reader/writer
src/core/Struct.lua - Type registry
src/core/Type.lua - Field types
src/core/types - Array containers
src/core/Repeated.lua
Memory operations
- Memory I/O
src/core/Memory.lua - Address cache
src/core/Cache.lua - Scratch pages
src/core/ZeroPage.lua - Operation tracing
src/core/Trace.lua - Log sink
src/core/Logfile.lua
Other components
- Host script
- GameGuardian
Connections 25
- Host script → SDK loader: loads SDK
README.md - SDK loader → Player info: exports API
README.md - SDK loader → Game data: exports API
README.md - SDK loader → Public events: exports API
README.md - SDK loader → Team events: exports API
README.md - SDK loader → Community events: exports API
README.md - Player info → API bridge: builds API
README.md - Game data → API bridge: uses bridge
README.md - Public events → API bridge: uses bridge
README.md - Team events → API bridge: uses bridge
README.md - Community events → API bridge: uses bridge
README.md - API bridge → Path resolver: resolves paths
README.md - API bridge → Versioned metadata: uses metadata
README.md - Path resolver → Field helpers: resolves fields
README.md - Path resolver → Struct reader/writer: reads struct paths
README.md - Struct reader/writer → Versioned metadata: reads templates
README.md - Struct reader/writer → Type registry: dispatches types
README.md - Type registry → Field types: selects implementation
README.md - Struct reader/writer → Array containers: walks arrays
README.md - Struct reader/writer → Memory I/O: performs memory I/O
README.md - Memory I/O → GameGuardian: reads and writes
README.md - Memory I/O → Address cache: uses address cache
README.md - Array containers → Scratch pages: allocates growth space
README.md - Memory I/O → Operation tracing: traces operations
README.md - Operation tracing → Log sink: writes log lines
README.md