GithubHelp home page GithubHelp logo

neosecundus / sescripts Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 398 KB

Base Project for Space Engineers in-game script development. Some scripts included.

License: MIT License

C# 92.59% Shell 7.41%
space engineers spaceengineers csharp scripting vscode project-template

sescripts's Introduction

Space Engineers Scripting

Here are the steps to set up Visual Studio Code for Space Engineers ingame script development.

This will provide an environment where Autocompletion / Intellisense works for the Space Engineers API.

Setup

  • I'll assume you already have SE installed!
  • Install Visual Studio Code (VSC)
  • Install the following VSC Extensions:
    • c# extension in VSC (OmniSharp)
    • NuGet Package manager VSC Extension
  • install .net cli tools / SDK (you may not need those)
  • install net framework dev-pack 4.6.1
  • Then clone this repository.

Configuration and operation

  • If you have a non-standard SE location, change SpaceEngineers.csproj to link to your location
  • 'open folder' (this folder) from VSC.
  • You can use the 'script_manager.sh' if you have WSL/Linux installed. It creates new files and pushes/pulls scripts from your SE Folder.
    • Otherwise you will have to do it manually or re-create the script for batch/powershell. (I won't) To create a new Script manually copy the default folder into the Scripts folder and rename it.

    DO NOT rename the script itself!

    • Secondly you need to change the namespace of the script, otherwise it will conflict with the default.
  • Something you always have to do manually is to add your Script to the SEScripts.csproj file. There is a section with a list of <Compile Include="Scripts/[Script_Name].cs />. Add your Script to those. Omnisharp will only provide Code completion and Intellisense when this Include was added.
  • Put your code changes between the region tags (see comment in template)

Credit to https://github.com/mrdaemon for the working .csproj file.

sescripts's People

Contributors

neosecundus avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.