nimrodxy Posted November 12, 2019 Share Posted November 12, 2019 We just got done adding PPJ build support and guided assistance to the extension. So this is "now easier to use than ever" as the people on TV commercials like to say. All you have to do to try it out is: Download and install https://code.visualstudio.com/ then run it. Click the extension icon on the left (looks like four squares with a square coming loose) and type @joelday into the search panel. Click install on the papyrus extension. Click the new icon on the left that looks like a scroll. Follow the instructions that appear. It's now possible to build your Skyrim projects (LE or SE) using PPJ files. Don't worry the getting started process will explain it. PPJ files are automatically detected and provide build tasks without any additional configuration. PPJ is all you need. Everything is supported for everything except that there's no real-time debugging for Skyrim LE (Classic, Oldrim). Features:Code completion (tab)IntelliSense tooltips for some in-editor docuentationSyntax highlighting (of course)Real-Time error checking (linting) as you typeJump to definitionAutodetected Build TasksPPJ File Support thanks to fireundubh's Pyro tool.Real-Time Debugging of script execution! (for FO4 and SSE)And we shall not stop there.... we're still working on making it better! Link to comment Share on other sites More sharing options...
romasty Posted November 12, 2019 Share Posted November 12, 2019 (edited) Oh! It is awesome! :woot: Thanks you a lot! P.S. I just installed it, and maybe I haven’t read everything yet.. What about "find code-usages" feature? It would be very useful to find all calls of any method or any variable access points in the project code.I’d also like to ask if there is (or is planned) auto-refactoring feature? P.P.S.Notepad++ good bye! :D Edited November 12, 2019 by romasty Link to comment Share on other sites More sharing options...
nimrodxy Posted November 15, 2019 Author Share Posted November 15, 2019 (edited) P.S. I just installed it, and maybe I haven’t read everything yet.. What about "find code-usages" feature? It would be very useful to find all calls of any method or any variable access points in the project code.I’d also like to ask if there is (or is planned) auto-refactoring feature? I'm actually unsure if the language server has explicit support for that feature right now. Try doing Shift-Alt-F12 or Shift-F12 (the latter is a "peek" that will open up a little window with the results) on a function name or variable and see what happens. (These commands are in the right click context menu in the text editor for words/tokens in the text editor.) I've been so focused on improving the extension lately I haven't even written any papyrus or done any modding for a while so I can't remember if this was working or not. Even if not, "Search in project" works pretty well and is fast (but will match comments and stuff). As for Notepad++, yea lots of people are still using it but I think it's because 1) lots of guides just use Notepad++ as an example (heck I even wrote a guide for something else that uses it because it's a good example text editor that most people have installed) and 2) people are focused on their modding and it requires going off on a bit of a tangent to try new tools without knowing if it's worth it. So someone's got to be in the mood to mess with it. Edit: Oh, I should mention that for those who find it useful there is a Notepad++ Keymap https://marketplace.visualstudio.com/items?itemName=ms-vscode.notepadplusplus-keybindings available for VSCode Edited November 15, 2019 by nimrodxy Link to comment Share on other sites More sharing options...
romasty Posted November 15, 2019 Share Posted November 15, 2019 (edited) Thanks! A good tool is the key to productive work. And the time spent on learning more convenient tools usually bathes.Right now i'm trying papyrus extension for Skyrim LE, but it seems my scripts aren't indexed in project, because Shift-Alt-F12 combination doesn't work. I suspect the problem is that I'm using Vortex, and my project destination folder is out of Skyrim/Data. Skyrim SE and F4 project settings have path for MO2, LE haven't... Although I'm not completely sure that this is the cause of the problem.. I tried to specify more than one paths in the workspace settings, in the folders section, but this didn't work. Edited November 15, 2019 by romasty Link to comment Share on other sites More sharing options...
nimrodxy Posted November 22, 2019 Author Share Posted November 22, 2019 Thanks! A good tool is the key to productive work. And the time spent on learning more convenient tools usually bathes.Right now i'm trying papyrus extension for Skyrim LE, but it seems my scripts aren't indexed in project, because Shift-Alt-F12 combination doesn't work. I suspect the problem is that I'm using Vortex, and my project destination folder is out of Skyrim/Data. Skyrim SE and F4 project settings have path for MO2, LE haven't... Although I'm not completely sure that this is the cause of the problem.. I tried to specify more than one paths in the workspace settings, in the folders section, but this didn't work.I'm not sure what's going on. One thing is that you need a ppj file with the right paths in the Imports element for the language server to find all of the code. (It uses the ppj file to determine where to look for source files.) So if you don't have a ppj file yet then the language server won't find everything esepecially if it's outside of the game directory. I'm not sure what's up with Vortex. I use MO2 and the USVFS "overwrite" directory to capture all of the CK files to a mod-in-development directory, so my source files are also outside the game directory., But I don't need to run vscode under MO2 for things to work, I just need the ppj file. If you want some help figuring it out then ping me on the discord server https://discord.gg/w8PNJCa Link to comment Share on other sites More sharing options...
Recommended Posts