- Open VS Code
- Navigate to the extension folder:
c:\Users\Joseph Ridder\Documents\SWG-Source\swg-stf-editor-extension - Press
F5- This will open a new VS Code window with the extension loaded - In the new window, open any
.stffile from your SWG files
# Navigate to the extension directory
cd "c:\Users\Joseph Ridder\Documents\SWG-Source\swg-stf-editor-extension"
# Install the packaging tool (if not already installed)
npm install -g @vscode/vsce
# Package the extension
vsce package
# Install the extension
code --install-extension swg-stf-editor-1.0.0.vsixOption 1: Direct File Open
- Right-click any
.stffile in VS Code Explorer - Select "Open With..." > "SWG String File Editor"
Option 2: Command Palette
- Press
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(Mac) - Type "Open SWG String File"
- Select your
.stffile
The extension converts binary STF files to this editable format:
# Star Wars Galaxies String Table File
# Next Unique ID: 10
[welcome_message]
id=0
crc=123456
text=Welcome to Star Wars Galaxies!
[goodbye_message]
id=1
crc=789012
text=May the Force be with you!
Edit the text fields and press Ctrl+S to save. The extension automatically converts your changes back to binary format.
Try opening STF files from your SWG installation:
client-assets-master\string\en\*.stfdata\sku.0\sys.shared\built\game\string\en\*.stf
Look for these common STF files in your SWG source:
creature_names.stf- Creature namescmd_n.stf- Command namesui.stf- User interface stringsspam.stf- System messagesconversation/*.stf- NPC dialogue
[my_new_string]
id=999
crc=0
text=This is my new localized text
Just modify the text= line and save.
- Newline:
\\n - Tab:
\\t - Backslash:
\\\\
Example:
text=Line 1\\nLine 2\\nLine 3
- Ensure the file has
.stfextension - Try reloading the window:
Ctrl+Shift+P> "Developer: Reload Window"
- Check that the file is a valid SWG STF file
- Look at the Output panel: View > Output > "SWG STF Editor"
- Make sure the file is not read-only
- Check file permissions
- Verify the text format is correct (proper
[section]headers andkey=valuepairs)
- Publish to Marketplace: Follow instructions in
BUILD.md - Customize: Edit source files in
src/directory - Report Issues: Create issues in your repository
- Check
README.mdfor detailed documentation - Review
BUILD.mdfor development information - Look at the source code in
src/directory for implementation details
Happy Editing! 🌟
This extension was built by analyzing the official SWG source code to ensure 100% compatibility with the original file format.