Skip to main content

New server? Use the txAdmin recipe

One URL in txAdmin installs every UgCore resource, creates the database and writes a hardened, organized server.cfg.
This page installs ug-core by hand, for example on a server you already run.

Requirements

FXServer with OneSync

ug-core declares /onesync as a dependency and refuses to start without it.

oxmysql

The only resource ug-core depends on. Start it before ug-core.

MySQL 8.0 or MariaDB 10.6+

Older servers abort boot with a clear message.

Lua 5.4

Every resource that imports UgCore MUST set lua54 'yes'.

Install

1

Download ug-core

Download ug-core-<version>.zip from the latest release and extract it into your resources folder, for example resources/[ug]/ug-core.The archive holds only what the server runs. The repository also has tests and tooling: clone it only to contribute.
Each release lists its changes and has a .sha256 file to verify the download.
2

Configure server.cfg

Add the database connection, start oxmysql before ug-core, and let ug-core manage ACEs:
server.cfg
The admin group of config/permissions.lua has ug.admin, which lets admins use the ug console command in game.
Without these ACEs, permission grants cannot be applied. ug-core reports it in red at boot. add_ace resource.ug-core command allow works too, but grants every command.
3

Start the server

On the first start, ug-core prints its banner, generates every config file and creates its tables:
Server console
4

Check it

Run these inspection commands from the server console:
See The ug console for every subcommand.

What happens on first boot

Every missing config/<name>.lua is written with each option’s description, type, limits and default. ug-core never edits these files again. Delete one to restore its defaults.
Each enabled module applies its migrations in version order. Applied versions are tracked in ug_migrations.
Players who connect during boot see “The server is starting. Please wait.” until ug-core is ready, for at most 60 seconds.

Updating

Extract the new release over your ug-core folder and restart. The archive ships config/ empty, so your config files stay as they are. New options are logged once with their default, and migrations run on boot.
Do not delete the folder before extracting: that deletes config/ too.
Releases follow semantic versioning. A new MAJOR version MAY need changes to your config or resources: read its notes first. The dev-build pre-release on GitHub is the latest dev branch, rebuilt on every change. It MAY break: use it on test servers only. Servers on a release are never told about it.

If boot fails

ug-core collects every configuration and database error, prints them all, then stops cleanly:
Fix the reported values and run restart ug-core. See Troubleshooting for common errors.

Next: build your first resource

Write a resource that uses UgCore in five minutes.