Repository navigation
docs: add Tags & Tokens wiki pages - #363
Blaylock1988 wants to merge 3 commits into
Conversation
… from unrelated grids (verified in-game by server owner)
Documents two mechanics that weren't written up anywhere on the wiki:
- Tags.md: the string-Tag broadcast system ([Tags:Value] + consumers like
[ManuallyActivatedTriggerTags:], [EnableTriggerTags:], [ToggleEventTags:]) -
the two independent Trigger-tag/Event-tag pools, all 8 tag-consuming
fields with their master gates, the RivalAI-Action-vs-MES-Event-Action
dual-context trap where some of these fields resolve tokens on one side
but not the other, a worked example, and what the grid-scoped (not
global) trigger lookup actually costs you in practice.
- Tokens.md: the {Token} placeholder system (IdsReplacer.cs and friends) -
the full token list, why substitution needs live NPC data and so never
works inside MES Events (with the one narrow SpawnData/SpawnFactionTags
exception), and the other token-aware fields (StoreProfiles, Waypoint,
TrueSandboxBooleans/FalseSandboxBooleans, etc).
Everything was checked directly against the current MES source, including
two independent verification passes.
Source-only - the built WebWiki/site/ output isn't regenerated here.
|
Ok, so. As mentioned on discord, I think these features should be documented and this is a good initiative, however, IMO it has to be done differently on a fundamental level. First of all, calling this feature "Tokens", especially in the current context, is a no-go. While it is not as unique a term, a much more fitting one would be "Variables". Furthermore, for better or worse, the term "Tag" is often used to reference any MES logic parameter. So I think when referring to TriggerTags, EventTags etc. we have to call it a "Tagging" system - and always use the Trigger- and Event- prefixes for any use in singular form. The overall biggest issue however, and I'm sorry to say this, is that the LLM-generated text is just not good. It's way too wordy while not being clear enough and contains plenty of unhelpful and irrelevant bits. While generating the description of a singular MES logic Tag might yield something adequate, generating a whole page of text like this does not. I'd much rather have 90% less text on these pages, text that is correct and human-written, than tons of LLM text that makes it actively harder to understand. Unfortunately as a result this is in a "start over from scratch" stage, and not something that can be salvaged as is. And to be honest, I also do not think it is something that an LLM can be successfully prompted to produce an acceptable version of. I'm sorry if this is demotivating. I still think it's a good initiative and I agree these pages should exist. I understand, of course, if you don't have the time to rework these from scratch. But if you'd still like to give this a go, let's figure out a structure for these pages together first and then work on filling them in a second step. :-) |
|
Thanks for the detailed feedback. Fair points on length and clarity, and I agree these should be much tighter. On naming: when I was looking for a word for the stuff in curly brackets, "tokens" came up as a common name for that, so that's why I picked it. MES didn't really have an established name for them beyond the IdsReplacer code, and I didn't want to use that since not every field that swaps in values actually goes through it. I'm reluctant to reuse "Variables" for even more mechanics, since there are already a lot of tags using that word for values (SandboxVariables, Counters Variable tags, SaveLocationToSandboxVariable), not to mention one of these can even insert a sandbox variable's value. How about "Placeholders"? Agreed on "Tagging" and on always saying Trigger Tag / Event Tag. New proposed skeleton below: 1 to 2 new short pages that link to the existing tag cards instead of repeating them. I think Tagging might fit better as a section on the Trigger page than its own page, whichever you prefer. I'd also move the placeholder list from the Chat page to the new page and link to it from there. TaggingAbout 150 words, down from 174 lines.
PlaceholdersAbout 200 words, down from 142 lines.
The tables would follow the same simple format as the Trigger Types table on the Trigger page. Other related pages worth updating:
|
…w log statuses Name tags for what the modder sees (MeridiusIX/Modular-Encounters-Systems#408), agree structure and keep new wiki pages short, Tagging terms (MeridiusIX/Modular-Encounters-Systems#363). Review log: #408, #363 entries; #389/#396/#400 released in 2.75.00; #399 waits on an in-game test. se-dev-blockrestrictions: br_ec.py accepts subtypes with spaces (#2). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
Two mechanics that weren't written up anywhere on the wiki:
[Tags:Value]+ consumers like[ManuallyActivatedTriggerTags:],[EnableTriggerTags:],[ToggleEventTags:]): the two independent Trigger-tag/Event-tag pools, all 8 tag-consuming fields with their master gates, the RivalAI-Action-vs-MES-Event-Action dual-context trap where a few of these fields resolve tokens on one side but not the other, a worked example, and what the grid-scoped (not global) trigger lookup actually costs you in practice.{Token}placeholder system (IdsReplacer.csand friends): the full token list, why substitution needs live NPC data and so never works inside MES Events (with the one narrowSpawnData/SpawnFactionTagsexception), and the other token-aware fields (StoreProfiles,Waypoint,TrueSandboxBooleans/FalseSandboxBooleans, etc).Both follow the existing per-tag card format used across the rest of the wiki. Everything in them was checked directly against the current MES C# source, including two independent verification passes, and one genuinely dead/unreachable token (
{CustomVariablesName}) is flagged as such rather than documented as if it works.Nav: added under Modding (Tokens, standalone since it's referenced from multiple pages) and under Behaviors > Triggers (Tags, alongside Trigger/Condition).
Test plan
mkdocs servelocally to confirm both pages render correctly in the readthedocs theme and the nav entries land where expectedToggleEventTags/ResetEventCooldownTags,{CustomVariablesName}being dead) against your own knowledge of the codeSource-only — the built
WebWiki/site/output isn't regenerated in this PR.🤖 Generated with Claude Code