ESOS is a fork of FivePD 2.0
ESOS is a work in progress
- Navigate to the
/src/ESOS.Nui/project/folder and executenpm installif the commands fails, donpm install --forceinstead - Download and extract the latest recommended build of FXServer into the
/dev/FXServer/directory - Change the build configuration to
Debugvia Main Menu > Build > Change Solution Configuration - Setup a database of your choosing, either by installing MySQL Community Server or MariaDB to your local PC, or by using one of the Docker configurations metioned in the "Databases" section
- Make sure the value of
ui_pageishttp://localhost:4200in yourfxmanifest.lua - Run the
Start everythingconfiguration, or alternatively theStart FXServer,Start NUI development serverandStart static audio serverconfigurations
Building the solution will automatically copy all files recursively from the ESOS.Statics folder to the resource
folder and restart the resource.
If you choose to run a database locally, you will need to download MySQL Community Server or MariaDB. Be sure to configure your database options correctly in the general.yaml file.
Alternatively, you can -- and should -- use one of the included Docker configurations. In order to do so, download Docker Desktop and choose either "Run MySQL" or "Run MariaDB" in the run configuration dropdown.
- Host: localhost
- Username: root
- Password root
- Port: 3306 (MySQL) 3307 (MariaDB)
The project uses Dapper as the micro-ORM for database interactions. Custom SQL queries are constructed using the internal SqlBuilder (see src/ESOS.Server/Database/Sql/SqlBuilder.cs).
Database schema migrations are handled via a custom implementation. To manage table structures, we use TableBuilder. An example of the current schema definition can be found in src/ESOS.Server/Database/Migrations/Initial20251228.cs.
Make sure that all keys end with one of the following words, so we can extend them in the future if needed. There are some sentences where this doesn't make sense, for example UI.LABEL.CITIZEN_DATABASE or UI.LABEL.DIRECTION.NEXT. In these cases we don't want to have more options other than the basic form, so we can omit the endings listed below.
SINGULAR, PLURAL, TITLE, DESCRIPTION, HELP_LABEL
- Edit the
ESOS.Localization/Localization/en-US.jsonfile - Run the
Build localizationconfiguration
It'll output the files to ESOS.Statics/Localizations.
In case you need the new localization file to be loaded on the server just build the solution again.
- Select the Release solution configuration
- Build the solution. Will output to
build-public - Run the
Build localizationconfiguration to generate the optimized localization file. Will output toESOS.Statics/Localizations. - Run
npm run buildin theESOS.Nuiproject. Will output toESOS.Nui/dist - Copy all files from
ESOS.Nui/dist/browsertobuild-public/Libraries/ESOS.Nui - In the
fxmanifest.luachange theui_pagevalue toLibraries/ESOS.Nui/index.html