exca / Stationeers-IC10-Automation

Some automation projects for Stationeers, coded using IC10, including a *Basic to IC10 Compiler*.
Other
26 stars 1 forks source link

integration with visual studio code #2

Open Traineratwot opened 10 months ago

Traineratwot commented 10 months ago

Hello, I am the developer of this extension on vscode.

You did the same as I did, but much better. However, it is not as convenient to write code in your program as in the IDE. I would like to integrate your program into vs code. If you're interested, we could work on it together.

To start the integration, I need clarification on some issues:

P.S. Thank you so much for contributing to the community :)

exca commented 10 months ago

Hey there! Thanks for joining!

I know your tool, and it was one of the inspirations for creating a Basic Language Compiler 😉

However, it is not as convenient to write code in your program as in the IDE.

I totally agree that VSCode offers a very convenient IDE, and I'm also using it in my development. The program has been made stand-alone, so, even non-programmers can use it without installing such a heavy tool as VSCode. That was one of the things I wanted when creating my MVP.

what language is used to convert to ic10?

The tool has been done using Unity in C#. For now, the code is not open-source (because some elements I'm using in Unity cannot be shared publicly), but I'm starting to think about releasing it as an independent open-source library (compiled into a DLL), so it could be possible to other people to improve it and use it with other tools.

Can you pull out any data from the game, such as: a list of items, structure, ic10 functions, a list of device parameters and slots

For the moment, no, but I will start to look at it when I start to work on more improvements (a Linter will be implemented, and having this information can be very helpful).

I would like to integrate your program into vs code. If you're interested, we could work on it together.

I would be very glad to work on it, but I will require a lot of time to extract the compiler into a open-source library. As I only work on it during my free time, I cannot work as fast as I would.

Which languages are you using for the VSCode extension? Is a DLL could be a solution to integrate it to the extension?

Cheers!

Traineratwot commented 10 months ago

vscode extensions are written in typescript lang. I don't think I can add the dll to vscode. But, I can package the .exe file and communicate with it via the command line.

If you can provide an exe with an API that will allow us to compile the basic code into ic10 and an Api for reading writing scripts saved in the game, that would be a great start.

Traineratwot commented 10 months ago

Let's continue to chat in discord https://discord.gg/4fd2HC87