Help:Automation
Jump to navigation
Jump to search

This is a draft help page. It is a work in progress open to editing by anyone.
Remember to check for any notes left by the tagger at this article's talk page.
Remember to check for any notes left by the tagger at this article's talk page.

This article or section should be converted to third person to conform to wiki standards.

This article or section needs to be cleaned up to conform to a higher standard of quality because:
Any ideas?
For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.This article provides some tips on how to make your life easier when performing various tedious tasks. As you know, any simple tasks that do not contain something like "write a poem!" are subject to automation, although this is still possible today. But here I will show you some scripts that are useful... for creating something.
Entity Lists
Creating lists of entities is not something supernatural; in fact, it is a simple task. While studying the .fgd file format, I outlined some points for myself that can be used to my advantage. Well, look!
For Source FGDs
Todo: Python impletation with GUI (PyQT6)







The Script[1]
- Uses grep -i '^\(@solidclass\|@pointclass\|@NPCClass\)' "$1" to filter lines from the input file that start with @solidclass, @pointclass, or @NPCClass.
- Creates sections based on the prefixes extracted from the processed lines. It uses an associative array declare -A seen to keep track of prefixes that have already been processed. This ensures that each prefix corresponds to a single section.
- Uses *{{ent|$result}} to format the processed lines as wiki entries.
- The section headers are formatted as ===%s_*=== where %s is replaced with the prefix. For example, if the prefix is example, the section header will be ===example_*===. Each processed line is then added under the appropriate section.
- Handles unincluded lines by appending them to a separate "Unincluded" section at the end of the output file. This ensures that all lines are accounted for, even if they don't fit the criteria for the other sections.
For GoldSrc FGDs
Table Generator for Console Variables
Ideas
References
- "FGD to Entity List" for Source Engine (GitHub Gist)