New server? Use the txAdmin recipe
One URL in txAdmin installs every UgCore resource, creates the database and writes a hardened, organized
server.cfg.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.2
Configure server.cfg
Add the database connection, start The
oxmysql before ug-core, and let ug-core manage ACEs:server.cfg
admin group of config/permissions.lua has ug.admin, which lets admins use the ug console command in game.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
What happens on first boot
Config files are generated
Config files are generated
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.Tables are created
Tables are created
Each enabled module applies its migrations in version order. Applied versions are tracked in
ug_migrations.Connections wait for Ready
Connections wait for Ready
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 yourug-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.
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:restart ug-core. See Troubleshooting for common errors.
Next: build your first resource
Write a resource that uses UgCore in five minutes.