quick_start_v2 - ryzom/ryzomcore GitHub Wiki


title: Quick Start v2 Notes description: published: true date: 2023-03-16T22:57:27.834Z tags: editor: markdown dateCreated: 2022-02-22T00:53:37.946Z

2022 FEB 22

Goal

Python scripts to replace the bat scripts.

Additionally:

  • A python script to generate bat or sh scripts as shortcuts into the quickstart.
  • A prepared configure bat and sh script that calls into the quickstart as a shortcut.

Specifics

  • Detect all Visual Studio build environments on Windows
  • Detect all 3ds Max installations and SDKs on Windows, and match with appropriate Visual Studio versions
  • Prepare x86 and x64 Docker images based on SteamRT for static Linux client builds, plus native Ubuntu 18 and 20 LTS server builds
  • Detect if Docker is installed
  • Setup Docker images on Windows and Linux
  • Detect all GCC pipelines (w/ basic check if dev dependencies are installed) in Docker images
  • (Optional) Install all build dependencies natively on Linux (supported distributions only)
  • Detect all GCC pipelines (w/ idem dependency check) natively on Linux
  • (Optional) Detect all GCC pipelines (w/ idem dependency check) on remote SSH hosts (for macOS / darling builds)
  • (Optional) Detect all MinGW pipelines in Docker images
  • Generate bat or sh scripts to setup all CMake projects, and scripts to build all CMake projects
  • Rewrite setup scripts for web
  • Generate bat or sh scripts to setup web
  • Docker-based alternative for development web server (for Linux target)

Tools target and the Qt tools

  • The tools and samples targets are configured with one Qt: the first folder of Toolchain/Native/Qt in config_default.json (qt6, qt5, qt4) that the externals have, and WITH_QT5 and WITH_QT6 follow that folder. With the 2026q4 externals that is Qt 6.12, externals without Qt 6 give Qt 5.15; the dev client and dev server keep Toolchain/Native/GameQt (qt5, qt4, qt6). The tools target also turns on the NeL tools, the Ryzom tools and assimp; the NeL Material Editor and the other Qt tools (crash_report, message_box_qt, words_dic_qt, tile_edit_qt, the object viewer widget, georges_editor_qt) are built when the tools have Qt 5 or Qt 6.
  • A tree configured with another Qt folder than the configuration now gives its target (another Qt version, or the same version in other externals) is emptied and configured anew by the configure step (configure_targets.py, run by _configure.bat and _upgrade.bat), which says so; the build scripts do not touch the Qt of a tree.
  • .nel/path_config.bat sets RC_QT_PLUGIN_DIR to the plugins of the Qt of the tools target, and the terminals set QT_PLUGIN_PATH to it.
  • cmd_tools.bat starts in .nel\tools of the root, with the tools build, the externals and that Qt on PATH: the Qt tools start there by their name, nothing is copied, and nl_material_editor finds the project of each file it opens by going up to the folder that holds .nel.
  • tool/quick_start/check_tools.py, run from the tools terminal with the Python of the externals (--debug for the Debug build and cmd_tools_debug.bat): the tools target has one Qt, the one the configuration chooses (a program, a module or a folder of QT_PLUGIN_PATH of another Qt fails), its configured tree builds nl_material_editor, and the terminal finds every module the Qt tools load at run time (the Qt libraries and their platform, style, image format and, with Qt 6, TLS plugins, the NeL drivers the editor loads by name), resolved from their import tables the way the Windows loader searches, without starting them. Exit code 1 when a check fails.
  • The tools package (redist\nel_tools_win_x64.bat) carries nl_material_editor.exe, the OpenGL 3 driver and Qt's platforms\qoffscreen.dll (the editor opens every model through a child process of itself on the offscreen platform), and the runtime of the Qt the tools tree was built with (with Qt 6: Qt6Core, Qt6Gui, Qt6Widgets, Qt6Network, the style and the TLS backend that Qt has). It checks that Qt before it copies anything.
  • With Qt 5 and a multi-configuration generator, CMAKE_AUTOGEN_BETTER_GRAPH_MULTI_CONFIG is on, so that the configuration built second runs moc again after a header changed.

How to run the editor from the quick start is on Quick Start for Windows (Run the tools), and how an agent drives it through the nel_mcp of .mcp.json on Material Editor Control Endpoint.

TODO

  • Static nel_report build (include static Qt in externals package)
⚠️ **GitHub.com Fallback** ⚠️