Files
Fractured/src/server/scripts/Custom
Dawnforger 2f8c374569 fix(db): MariaDB 10.6+ server and connector compatibility
- Parse real MariaDB version after MySQL 5.5.5 compatibility prefix for
  DatabaseIncompatibleVersion checks.
- Relax client checks when building against MariaDB C connector
  (MARIADB_VERSION_ID); keep Oracle MySQL 8.0+ rules otherwise.
- Use mysql_stmt_bind_param on MariaDB; mysql_stmt_bind_named_param only for
  MySQL 8.3+ without MariaDB headers.
- SSL: MYSQL_OPT_SSL_ENFORCE on MariaDB connector, MYSQL_OPT_SSL_MODE elsewhere.
- Track custom_script_loader.cpp so static script link succeeds; CMake
  find_package(MySQL) requires COMPONENTS lib on CMake 3.16.
2026-05-08 20:11:43 -05:00
..

Custom folder

Here you can create a CMakeLists.txt file where to add your custom scripts. They will be git-ignored.

Remember to use cmake macros inside your CMakeLists.txt to correctly add your scripts to the project solution.

/!\ BTW, we strongly suggest you to use our module system to create your custom powerful module instead of simple scripts.


How to add your custom script:

1 - Create a CMakeLists.txt in this directory

Example (everything below is needed, just replace with your scripts' names):

set(scripts_STAT_SRCS
  ${scripts_STAT_SRCS}
  ${AC_SCRIPTS_DIR}/Custom/your_script.cpp
  ${AC_SCRIPTS_DIR}/Custom/your_script.h
)

AC_ADD_SCRIPT_LOADER("Custom" "ScriptLoader.h")

message("  -> Prepared: My custom scripts")

2 - Add the script to ../ScriptLoader.cpp

Open the file ScriptLoader.cpp and go at the end to know what to edit.