Mods / VTML Editor

Tags: #Other #QoL #Utility
Author: jayu
Side: Client
Created: Mar 16th at 7:22 PM
Last modified: Mar 21st at 1:46 AM
Downloads: 74
Follow Unfollow 20

Latest file for Various v1.20.x:
vtmleditor_1.1.2.zip 1-click install


VTML Editor is a powerful 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—this editor lets you quickly search for language entries (complete with wildcard support) and view them in multiple languages. The preview window, which replicates the exact dimensions of the handbook, ensures 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.
  • 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.
  • 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!
Example Theme Configuration
[{
"Code": "default",
"FontName": "sans-serif",
"FontSize": "16",
"TokenColors": {
"TagDelimiter": "#8F8F8FFF",
"TagName": "#8F8F8FFF",
"AttributeName": "#CC9966FF",
"EqualsSign": "#8F8F8FFF",
"AttributeValue": "#6BA6CEFF",
"Text": null
}
}]

More modding tools and libraries

image

ExtraCode

Adds extra classes and behaviors for content modders

image

Vintage Mod Templates [Code][Content]

Custom templates for code and content mods

image

BlockPatch Patcher

Dynamically patch block patches. Allows wildcards and multiplication of values.

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v1.1.2 31 Mar 21st at 1:46 AM Show vtmleditor_1.1.2.zip Install now
v1.1.1 15 Mar 18th at 1:04 PM Show vtmleditor_1.1.1.zip Install now
v1.1.0 11 Mar 17th at 10:46 PM Show vtmleditor_1.1.0.zip Install now
v1.0.1 11 Mar 16th at 11:50 PM Show vtmleditor_1.0.1.zip Install now
v1.0.0 5 Mar 16th at 7:23 PM Show vtmleditor_1.0.0.zip Install now

9 Comments (oldest first | newest first)

💬 sneezerstein, 1 day ago

this saved my life

💬 jayu , Apr 2nd at 5:44 PM

DejFidOFF what do you mean with move in exactly? The mod supports copy/paste, selection, movement arrows to more around the text, etc

💬 DejFidOFF, Apr 2nd at 5:23 PM

jayu

I like it, but hell, it´s too slow to move in text..

💬 jayu , Mar 23rd at 9:47 PM

Vinter_Nacht I'm not sure what you meant by automatic tbh, what did you have in mind?

💬 Vinter_Nacht, Mar 23rd at 7:21 PM

jayu - I shouldn't have said "just" an editor, that's already a god send.  Probably best it isn't automagic.

💬 jayu , Mar 19th at 1:56 PM

Ok I will change that

💬 DanaCraluminum, Mar 18th at 5:16 PM

Y hotkey is taken by time switch by default

💬 jayu , Mar 17th at 3:58 PM

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.

💬 Vinter_Nacht, Mar 17th at 2:13 PM

Is it necessary to have this as a dependency for the mod, or is it just a utility for writing handbook entries?

 (edit comment delete)