Quest Editor [0.19.1]

For all talk about quest development - creation, testing, and quest system.
Post Reply
User avatar
TheLacus
Posts: 1353
Joined: Wed Sep 14, 2016 6:22 pm

Quest Editor [0.19.1]

Post by TheLacus »

Daggerfall Template for VS Code
A Visual Studio Code extension that brings support for Tipton's Template scripting language for Daggerfall.

Visual Studio Code is a powerful open source and cross-platform text editor. This extension implements features for Daggerfall Unity quest language such as go to definition, find references, rename symbols, diagnostics and others. It is built with modularity in mind to allow integration with custom actions provided by game mods.

Daggerfall Quest Editor on Nexus Mods

Image

Image

Installation
  1. Install Visual Studio Code, available at code.visualstudio.com.
  2. Install TEMPLATE for Visual Studio Code, available at github.com/TheLacus/vscode-dftemplate.
Screenshots
dftemplate_hover.png
dftemplate_hover.png (29.26 KiB) Viewed 7747 times
dftemplate_completion_proposals.png
dftemplate_completion_proposals.png (101.27 KiB) Viewed 7747 times
dftemplate_references.png
dftemplate_references.png (36.01 KiB) Viewed 7747 times
Imgur gallery (some screenshots are from older versions)
Last edited by TheLacus on Tue Jun 25, 2019 2:48 pm, edited 25 times in total.

User avatar
Deepfighter
Posts: 125
Joined: Sun Mar 22, 2015 10:24 am
Location: Iliac-Bay
Contact:

Re: Syntax highlighting

Post by Deepfighter »

Personally, I think that this change is very helpful and would be probably highly appreciated. At least for translating reasons it's helping a lot. The current quest editor for translating quests has the same and can't imagine it without.

+1 from me :)
Head of the German Daggerfall translation - www.daggerfalldeutsch.de
and German translator for The Elder Scrolls V: Skyrim and Lore-Expert for The Elder Scrolls: Online

User avatar
Jay_H
Posts: 3657
Joined: Tue Aug 25, 2015 1:54 am
Contact:

Re: Syntax highlighting

Post by Jay_H »

As a quest writer I am very interested in this.

User avatar
Interkarma
Posts: 6509
Joined: Sun Mar 22, 2015 1:51 am

Re: Syntax highlighting

Post by Interkarma »

This is a smart idea!

User avatar
TheLacus
Posts: 1353
Joined: Wed Sep 14, 2016 6:22 pm

Re: Syntax highlighting

Post by TheLacus »

Thank you for feedback! I've update first post with installation instructions.

@Deepfighter
I'll give a look at translation editor, thank you for pointing that out.

User avatar
TheLacus
Posts: 1353
Joined: Wed Sep 14, 2016 6:22 pm

Re: Syntax highlighting

Post by TheLacus »

Added highlighting and snippets for Visual Studio Code.

User avatar
Jay_H
Posts: 3657
Joined: Tue Aug 25, 2015 1:54 am
Contact:

Re: Syntax highlighting

Post by Jay_H »

I installed it, but I don't have any highlighting on my end (except where I highlight some word with the mouse and it repeats the highlighting elsewhere). Is there some missing step?

Image

User avatar
TheLacus
Posts: 1353
Joined: Wed Sep 14, 2016 6:22 pm

Re: Syntax highlighting

Post by TheLacus »

You can change language from the language indicator on the bottom-right corner. Select 'dftemplate'. Extension is .txt so this can't be done automatically (unless you want it for all text files). :)

User avatar
Hazelnut
Posts: 2865
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: Syntax highlighting

Post by Hazelnut »

line 35 of dftemplate.tmLanguage has a typo:

Code: Select all

					<key>1</ley>
This is duplicated a few times. Is this correct for the VS code file? Anyway, found it while messing with trying to get an Atom grammar definition by converting yours. They seem to both be TextMate based so the info is same, but Atom wants a json/cson file instead.

I found a converter that turns .tmLanguage into .cson but it doesn't recognise the 'match' key annoyingly, that would be a real easy way to auto generate atom highlighting.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

User avatar
Jay_H
Posts: 3657
Joined: Tue Aug 25, 2015 1:54 am
Contact:

Re: Syntax highlighting

Post by Jay_H »

It's working now, and magnificently. Thank you TheLacus!

Post Reply