Mods / VTML Editor
Author: jayu
Side: Client
Created: Mar 16th at 7:22 PM
Last modified: Oct 9th at 10:22 PM
Downloads: 519
Follow Unfollow 40
Latest release (for Vintage Story 1.21.0 - 1.21.4, potentially outdated):
vtmleditor_1.1.3.zip
1-click install
VTML Editor is a tool designed to simplify the creation and previewing of VTML language entries in Vintage Story. With an in-game interface, accessible via the U key by default, the editor lets you quickly search for language entries (complete with wildcard support) and view them in multiple languages. A preview window is included, which replicates the exact dimensions of the handbook to ensure you get an accurate preview of your content.
In-game, you can open the editor by entering either the command .vtmleditor or .vtmle.
Recent enhancements include:
- Syntax Highlighting & Customizable Themes:
- Easily switch between themes directly in the UI (Load any theme asset from
assets/<modid>/config/vtmleditor/themes.json). - Comes with a variety of default themes to choose from.
- Easily switch between themes directly in the UI (Load any theme asset from
- Revamped Vanilla Text Editing Classes:
- Selectable Text:
- Use mouse drag to select text.
- Double-click to select a word and triple-click to select an entire line.
- Keyboard shortcuts (shift + movement keys) for more control.
- Standard Keyboard Shortcuts: Copy (Ctrl+C), paste (Ctrl+V), cut (Ctrl+X), select all (Ctrl+A), and even Ctrl+Backspace (delete word) for efficient editing.
- Undo/Redo System: Reverse up to 100 edits with Ctrl+Z and restore them using Ctrl+Y or Ctrl+Shift+Z.
- Style Shortcuts: Quickly apply formatting with Ctrl-I (italic) and Ctrl-B (bold).
- Enhanced Miscellaneous Interactions: Improved handling of keys such as Tab and better caret tracking.
- Selectable Text:
- Additional Functionality:
- Convenient buttons to insert VTML tags such as hotkey tags (selectable from a dropdown) and link tags (automatically wraps around selected text).
- And more features are on the way!
[{
"Code": "default",
"FontName": "sans-serif",
"FontSize": "16",
"TokenColors": {
"TagDelimiter": "#8F8F8FFF",
"TagName": "#8F8F8FFF",
"AttributeName": "#CC9966FF",
"EqualsSign": "#8F8F8FFF",
"AttributeValue": "#6BA6CEFF",
"Text": null
}
}]
Current Issues
Should work fine as it uses separate code from the game's base text fields, but the code needs some refactoring to uniform with the the 1.21 text editing changes. Text selection dragging and other improvements have also been implemented in a dev build but they still need to be added here.
More modding tools and libraries
| Mod Version | For Game version | Downloads | Released | Changelog | Download | 1-click mod install* |
|---|---|---|---|---|---|---|
| 1.1.3 | 83 | Oct 9th at 10:22 PM | vtmleditor_1.1.3.zip | 1-click install | ||
| ||||||
| 1.1.2 | 196 | Mar 21st at 1:46 AM | vtmleditor_1.1.2.zip | 1-click install | ||
| ||||||
| 1.1.1 | 65 | Mar 18th at 1:04 PM | vtmleditor_1.1.1.zip | 1-click install | ||
| ||||||
| 1.1.0 | 60 | Mar 17th at 10:46 PM | vtmleditor_1.1.0.zip | 1-click install | ||
| ||||||
| 1.0.1 | 60 | Mar 16th at 11:50 PM | vtmleditor_1.0.1.zip | 1-click install | ||
| ||||||
| 1.0.0 | 54 | Mar 16th at 7:23 PM | Empty | vtmleditor_1.0.0.zip | 1-click install | |
Lord_Hagen what's the crash?
Don't press H or u be crashed when u use VTMLEdit
Found a bug it seems: when making a big enough document, around 506 lines, the editor turns completely black.
The functionality basically remains, additions or edits still show up in the preview, it's just impossible to see what you're doing.
Highlighting doesn't help by the way.
jayu Thank you so much for the update, this is a huge lifesaver and makes editing books and papers way easier. Keep on being amazing!
Wow, thank you very much for this mod, it's amazing 😍
Great, this will make things much easier for me, thank you!
Poveraccio poretto it took a while for me to remember to update this unfortunately
I need this really bad to make my books. Hope this gets an update here soon!
Is this still being updated? This seems super super handy. I assume it works with books?
jayu
ctrl+left/right to jump over entire words, home/end to jump to the start/end of the line, del and ctrl+del to delete to the right
You could go on listing handy editor features forever
this saved my life
DejFidOFF what do you mean with move in exactly? The mod supports copy/paste, selection, movement arrows to more around the text, etc
jayu
I like it, but hell, it´s too slow to move in text..
Vinter_Nacht I'm not sure what you meant by automatic tbh, what did you have in mind?
jayu - I shouldn't have said "just" an editor, that's already a god send. Probably best it isn't automagic.
Ok I will change that
Y hotkey is taken by time switch by default
Vinter_Nacht it's just an editor, you copy your result and paste it in your lang file. I couldn't find a nice way to save it automatically as the game loads lang entries from multiple files. Easier to just copy it and paste it where you need it.
Is it necessary to have this as a dependency for the mod, or is it just a utility for writing handbook entries?