The Denizen Editor (VS Code Extension)

General discussion of Denizen-Bukkit, or even just Bukkit.
Post Reply
User avatar
mcmonkey
Site Admin
Site Admin
Posts: 236
Joined: August 5th, 2016, 7:27 pm
Location: Los Angeles, California, USA
Contact:

The Denizen Editor (VS Code Extension)

Post by mcmonkey » August 26th, 2019, 9:56 pm

The officially recommended way to edit Denizen scripts is using VS Code, with the Denizen extension!

Image

Setup:
[*] Install VS Code: https://code.visualstudio.com/
[*] Install the Denizen extension: https://marketplace.visualstudio.com/it ... izenscript
[*] Open your scripts folder with VS Code
[*] Edit any ".dsc" script files.

Note that some features of the extension will require .NET Core 3: https://dotnet.microsoft.com/download/dotnet-core/3.0
At the moment, there is no usage of this so you don't need it (you will see an error message when starting VS Code if you don't have it installed, but you can ignore it)
Denizen lead developer.
http://mcmonkey.org

User avatar
mcmonkey
Site Admin
Site Admin
Posts: 236
Joined: August 5th, 2016, 7:27 pm
Location: Los Angeles, California, USA
Contact:

Re: The Denizen Editor (VS Code Extension)

Post by mcmonkey » August 29th, 2019, 5:48 am

Update: this is now described on the Beginner's Guide instead of a forum post: https://guide.denizenscript.com/guides/ ... ditor.html
Denizen lead developer.
http://mcmonkey.org

n0nnie
New
New
Posts: 19
Joined: January 10th, 2018, 3:19 am
Location: München - Germany
Contact:

Re: The Denizen Editor (VS Code Extension)

Post by n0nnie » September 24th, 2019, 9:35 am

I downloaded it and I am very impressed and thankful. But I am struggling a bit, because I was used to notepad++ and have to learn VScode better because there is so much new for me.

What I am struggling the most with:
- FTP/SFTP client/extension. I tried EVERY Extension in the build in marketplace and I am stuck. Either they won't connect, or they are showing wrong files or I can only read files and not edit them. What is very annoying, if I am searching for a bug a player reported and I just want to edit debug to true. Can you recommend an extension for this purpose please?

I am really looking forward for future features. A Debug function would be very cool (also I am aware, that this might be a bunch of work, but I think hoping is a good choice ;) ), or tag autocomplete or something.

Another Question, you might know out of your head:
Is there a Discordextension, that would work for tag/command/mechanism search on your Server?

Keep up your good work, I am so glad you started to develope Denizen =)

User avatar
mcmonkey
Site Admin
Site Admin
Posts: 236
Joined: August 5th, 2016, 7:27 pm
Location: Los Angeles, California, USA
Contact:

Re: The Denizen Editor (VS Code Extension)

Post by mcmonkey » September 24th, 2019, 12:54 pm

n0nnie wrote:
September 24th, 2019, 9:35 am
What I am struggling the most with:
- FTP/SFTP client/extension. I tried EVERY Extension in the build in marketplace and I am stuck. Either they won't connect, or they are showing wrong files or I can only read files and not edit them. What is very annoying, if I am searching for a bug a player reported and I just want to edit debug to true. Can you recommend an extension for this purpose please?
To my knowledge, there was just no option at all for that in NP++, so I'm pretty used to just having FileZilla open to deal with that. A better extension in VS Code would be nice... I haven't tried any myself though.
n0nnie wrote:
September 24th, 2019, 9:35 am
Is there a Discordextension, that would work for tag/command/mechanism search on your Server?
The new meta bot is FOSS on GitHub: https://github.com/DenizenScript/DenizenMetaBot (though still in-progress)
Denizen lead developer.
http://mcmonkey.org

n0nnie
New
New
Posts: 19
Joined: January 10th, 2018, 3:19 am
Location: München - Germany
Contact:

Re: The Denizen Editor (VS Code Extension)

Post by n0nnie » September 24th, 2019, 9:11 pm

To my knowledge, there was just no option at all for that in NP++, so I'm pretty used to just having FileZilla open to deal with that. A better extension in VS Code would be nice... I haven't tried any myself though.
The Plugin for notepad++ is called NppFTP and works fine. My research for VScode brought me to many extensions, but I am not able to make a single one work. I tried literally every single one. Some are not connecting, some are not refreshing, some are only for reading and not for editing and one even prevented the denizen extension to work :lol: :eek:
The new meta bot is FOSS on GitHub: https://github.com/DenizenScript/DenizenMetaBot (though still in-progress)
I just read through the Documentation and I am missing a Requirementssection. I guess I need a Linuxserver with git installed and a Discordserver? Anything else I am missing? That might come very handy, thank you =)

Edit:
So I followed the setupguide and everything went right (I think), but I a can not start the bot? Looking at start.sh I think this is on purpose?

Code: Select all

#!/bin/bash
git pull origin master
screen -dmS DenizenMetaBot dotnet run -- $1
If I run start.sh then the git tells me, that I am up to date but no screensession is opened

User avatar
mcmonkey
Site Admin
Site Admin
Posts: 236
Joined: August 5th, 2016, 7:27 pm
Location: Los Angeles, California, USA
Contact:

Re: The Denizen Editor (VS Code Extension)

Post by mcmonkey » September 25th, 2019, 1:58 pm

n0nnie wrote:
September 24th, 2019, 9:11 pm
I just read through the Documentation and I am missing a Requirementssection. I guess I need a Linuxserver with git installed and a Discordserver? Anything else I am missing? That might come very handy, thank you =)
You need .NET Core 3.0+ installed on the Linux server.
Denizen lead developer.
http://mcmonkey.org

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests