From 8d7a19136d7dc1bb9f96bb08f6aea54427c7f101 Mon Sep 17 00:00:00 2001 From: Jake <73198594+jaborsh@users.noreply.github.com> Date: Sun, 30 Mar 2025 18:51:07 -0700 Subject: [PATCH] Resolving Syntax Error in Spawner/Prototypes Doc --- docs/source/Components/Prototypes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/Components/Prototypes.md b/docs/source/Components/Prototypes.md index 901859a2f1..c99e49061f 100644 --- a/docs/source/Components/Prototypes.md +++ b/docs/source/Components/Prototypes.md @@ -39,7 +39,7 @@ In dictionary form, a prototype can look something like this: ``` If you wanted to load it into the spawner in-game you could just put all on one line: - spawn {"prototype_key="house", "key": "Large house", ...} + spawn {"prototype_key"="house", "key": "Large house", ...} > Note that the prototype dict as given on the command line must be a valid Python structure - so you need to put quotes around strings etc. For security reasons, a dict inserted from-in game cannot have any other advanced Python functionality, such as executable code, `lambda` etc. If builders are supposed to be able to use such features, you need to offer them through [$protfuncs](Spawner-and- Prototypes#protfuncs), embedded runnable functions that you have full control to check and vet before running.