Comments (9)
@ArcticSnowSky Try this solution
If it helps, I could think about pull request.
from vsc-se.
Sorry, I havent done any SE coding since 2018. if you figure it out let me know!
from vsc-se.
@ArcticSnowSky Don't suppose you had any luck with this one? I'm encountering the same thing and sadly not very experienced with .NET tooling.
from vsc-se.
Hi, I'm sorry, I was trying a bit around but after some time I lost my attention due to christmas etc and did not return yet for gaming due to work.
However I'd be still interested!
from vsc-se.
@reksar Hi and thank you for the notification!
I tried your project and I'm happy like a child on x-mas seeing Intellisense working :).
I will go on with some tests combined with ingame - definitely a good start!
from vsc-se.
@ArcticSnowSky Glad to be helpful. You can combine export.bat
with terminal tasks in VS Code and update your script in-game instead of copy/paste ;)
from vsc-se.
@reksar jeah at the moment I'm trying get a single key shortcut on my task so that I don't have to press so many times Ctrl+shift+b -> Enter :D.
My Task looks like this:
# task.json
{
"version": "2.0.0",
"tasks": [
{
"label": "export",
"type": "shell",
"command": "scripts\\export.bat",
"args": [
"..\\${relativeFileDirname}"
],
"group": "build",
"problemMatcher": []
}
]
}
So finally I removed the task and created a launch.json, this way I simply press F5 and it gets exported.
# launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Export",
"type": "clr",
"request": "launch",
"program": "${workspaceFolder}\\scripts\\export.bat",
"args": "..\\${relativeFileDirname}",
}
]
}
Additionally I added on line 18 of export.bat
# export.bat
SET script_dir=%script_dir:..\scripts\=%
from vsc-se.
@ArcticSnowSky Glad to be helpful. You can combine
export.bat
with terminal tasks in VS Code and update your script in-game instead of copy/paste ;)
The export works, however I don't know how to update the programmable block ingame in a fast manner; do I have to do every time the following mouse clicks (don't know the exact translation)?
- click "modify" to enter the code editor
- click "search for scripts"
- doubleclick the script
- click ok
- compile
- execute
Is there a faster way that I don't know?
Your solution works great, it feels clean and simple to adapt! Just great!
When I started to create a programmated rocket launcher for a satellite with remote antenna status updates and command functions, the code became to complex to write it in the ingame editor - also I didn't want to have the game open and the fans running loud for several hours, when I was solely writing code the whole time.
Without a good Code Editor I didn't want to spend any more time - now I'm back in game 👍
from vsc-se.
@ArcticSnowSky Thank you for the feedback. Thanks to it I made automated export during saving the Script.cs
with Ctrl+S
(look at the current version).
Simple steps from here does not works for me :( Probably, the problem is in SDK environment settings, so I decided to avoid the SDK by adding the task and key binding.
These steps are painful for me too. After you asked about it, I am thinking it over now.
- click "modify" to enter the code editor
- click "search for scripts"
- doubleclick the script
- click ok
- compile
- execute
from vsc-se.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vsc-se.