The Denizen Editor (VS Code Extension)

mcmonkey

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

f37ad5.png


Setup:
[*] Install VS Code: https://code.visualstudio.com/
[*] Install the Denizen extension: https://marketplace.visualstudio.com/items?itemName=DenizenScript.denizenscript
[*] 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)
 

mcmonkey

Administrator
Staff member
Helper
Update: this is now described on the Beginner's Guide instead of a forum post: https://guide.denizenscript.com/guides/first-steps/script-editor.html
 

n0nnie

Active member
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 =)
 

mcmonkey

Administrator
Staff member
Helper
n0nnie said:
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 said:
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)
 

n0nnie

Active member
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:
#!/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
 

mcmonkey

Administrator
Staff member
Helper
n0nnie said:
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.