Subj : Setting up G-key Text File Section and the easiest way to set up a si
To : Odusseus71
From : echicken
Date : Tue Aug 06 2024 01:00 pm
Re: Setting up G-key Text File Section and the easiest way to set up a sim
By: Odusseus71 to all on Tue Aug 06 2024 08:56:48
Od> I've searched the Wiki but did not get how to populate the Text File
Od> Section and related subdirectiories (as configured by SCFG).
This is a very poorly documented feature, and if you get it working I encourage you to add something to the wiki.
Od> I was assuming it was simply putting text files into sbbs/Data/Text
Od> subdirs and then using postfile.js to add them to database, but this did
Od> not work because postfile only shows configured "File Areas" and not "Text
Od> File Sections".
It looks like if you drop your text files into the section's subdirectory of data/text, then it will just show up the next time text_sec.js is run. If you as a sysop run text_sec.js, you'll have the option of filling out descriptions for the text files in each section.
I'm not 100% sure of the filename and format, but I think you can prepopulate those descriptions by just filling out:
data/text/section/section.ini
with sections like:
[filename]
desc = This is a file description
Which is probably only really useful if you are importing from somewhere and can write a utility to build out this file.
Alternately you can use ANSIView from xtrn/ansiview. I'm not saying it's better or even good, but it exists.