@@ -2629,8 +2629,8 @@ and are only documented here for completeness:
26292629
26302630 Registers ``path `` as a `script path <script-paths> `.
26312631 If ``search_before `` is passed and ``true ``, the path will be searched before
2632- the default paths (e.g. ``raw /scripts ``, ``hack/scripts ``); otherwise, it will
2633- be searched after.
2632+ the default paths (e.g. ``dfhack-config /scripts ``, ``hack/scripts ``); otherwise,
2633+ it will be searched after.
26342634
26352635 Returns ``true `` if successful or ``false `` otherwise (e.g. if the path does
26362636 not exist or has already been registered).
@@ -5466,11 +5466,11 @@ Scripts
54665466 :local:
54675467
54685468Any files with the ``.lua `` extension placed into the :file: `hack/scripts ` folder
5469- are automatically made available as DFHack commands. The command corresponding to
5470- a script is simply the script's filename, relative to the scripts folder, with
5471- the extension omitted. For example:
5469+ (or any other folder in your ` script-paths `) are automatically made available as
5470+ DFHack commands. The command corresponding to a script is simply the script's
5471+ filename, relative to the scripts folder, with the extension omitted. For example:
54725472
5473- * :file: `hack /scripts/add-thought .lua ` is invoked as ``add-thought ``
5473+ * :file: `dfhack-config /scripts/startup .lua ` is invoked as ``startup ``
54745474* :file: `hack/scripts/gui/teleport.lua ` is invoked as ``gui/teleport ``
54755475
54765476.. note ::
@@ -5487,12 +5487,6 @@ the extension omitted. For example:
54875487 a mod developer would want to run a script from the console, it should
54885488 not be placed in this folder)
54895489
5490- Scripts can also be placed in other folders - by default, these include
5491- :file: `raw/scripts ` and :file: `data/save/{ region } /raw/scripts `, but additional
5492- folders can be added (for example, a copy of the
5493- :source-scripts: `scripts repository <> ` for local development). See
5494- `script-paths ` for more information on how to configure this behavior.
5495-
54965490Scripts are read from disk when run for the first time, or if they have changed
54975491since the last time they were run.
54985492
@@ -5520,7 +5514,7 @@ General script API
55205514
55215515* ``dfhack.run_script(name[,args...]) ``
55225516
5523- Run a Lua script in :file: ` hack/scripts/ `, as if it were started from the
5517+ Run a Lua script in your ` script-paths `, as if it were started from the
55245518 DFHack command-line. The ``name `` argument should be the name of the script
55255519 without its extension, as it would be used on the command line.
55265520
@@ -5562,8 +5556,8 @@ Importing scripts
55625556
55635557 Loads a Lua script and returns its environment (i.e. a table of all global
55645558 functions and variables). This is similar to the built-in ``require() ``, but
5565- searches all script paths for the first matching ``name.lua `` file instead
5566- of searching the Lua library paths (like ``hack/lua ``).
5559+ searches all ` script- paths ` for the first matching ``name.lua `` file instead
5560+ of searching the Lua library paths (like ``hack/lua/ ``).
55675561
55685562 Most scripts can be made to support ``reqscript() `` without significant
55695563 changes (in contrast, ``require() `` requires the use of ``mkmodule() `` and
0 commit comments