Stationeers

Stationeers

75 ratings
Basic-IC10-Compiler
12
5
2
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
313.314 KB
Dec 8, 2023 @ 1:15pm
Feb 20, 2024 @ 5:58am
5 Change Notes ( view )

Subscribe to download
Basic-IC10-Compiler

Description
This external tool is designed to compile Basic programming language into IC10 MIPS for Stationeers.
You can download the program from this link: [Stationeers-IC10-Automation] https://github.com/exca/Stationeers-IC10-Automation/tree/main/Basic-IC10.
New: Watch the video tutorial to understand how to start.

The tool operates as a standalone program where you can create better scripts using Basic, a high-level language, and then compile them into MIPS for the IC10 (a low-level language). The included minifier in the tool optimizes the compiled code, ensuring it uses fewer lines and helping you avoid reaching the 128-line limit.

Using a high-level language enables faster coding and the utilization of advanced IC10 functions with just a few lines of code. For both beginners and experts, we provide a "Quick Start Guide" with numerous examples.

Features implemented:
- Direct and indirect adressing
- Automatic registers and use o stack to store more registers
- Direct mode (l/s), Batch mode (lb/sb), Name mode (lbn/sbn), Reference ID mode (ld/sd)
- Channel variables
- Arrays of values (automatic stack management)
- Automatic Hash conversion
- If-then-else structure, while, for-next, foreach loops
- Goto, Recursive Subroutines, Custom functions

Check the online help to see the complete list of features and usage.
74 Comments
John Sep 27 @ 11:18pm 
yeah, you're right
Exca133  [author] Sep 27 @ 6:32pm 
Thanks for the suggestion, John.

The format we’re working with here is a high-level language, so it’s not straightforward to add live predictions like in the in-game lb preview. In a low-level language such as IC10 MIPS, each operation expects only one very specific type of parameter, which makes it easier to anticipate the next token. In a Basic-style language, however, there’s no reliable way to predict whether the user intends to type "=", "+", "-", "C", "%", or something else, unless we integrate a machine learning component — which would add too much complexity for this context.

I’m open to any suggestions you might have for a simpler approach.
John Sep 27 @ 3:32pm 
could you add predictions similar to the in-game live predictions (aka just like in-game when i type lb and a preview appears, could you do the same thing here)
Exca133  [author] Aug 13 @ 4:13am 
Hey @Bosch_Drill,
There were no major changes in the IC10 language, so yes, you can use it.
You asked how precise it is, I’m not sure how to answer that. Since it’s a compiler, the precision depends on your code. You’ll need to understand the device variables and how to use them to control the devices you need.
There are plenty of examples on GitHub to help you get started, and you can also join our Discord for support.
Cheers!
Bosch_Drill Aug 11 @ 9:07am 
Hey! Nice work. Well, last commit at github was last year, i'm kinda wondering, can i still use this compiler for nowadays? Like, make code for devices etc. And how precise is compiler work?
Exca133  [author] Jul 4 @ 7:05pm 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).
zorax4295 Jul 3 @ 10:53pm 
Hello would it be PAUSSIBLE to add a functionality allowing us to select the maximum number of lines authorize in IC10 because with mods like More Lines of Code https://steamcommunity.com/sharedfiles/filedetails/?id=32652725
We have 512 line and not 128
Oakrotic Jun 9 @ 10:00am 
@jarhead

The first result on google for "ChatGPT" is the tool, under OpenAI's site. OpenAI is just the business that develops it, perhaps you thought it was something different?

Anyways, here is the link : https://openai.com/
jarhead Apr 25 @ 7:39pm 
(too bad we can't use C#, C+, C++ or even basic html or java to code this stuff. (I have used those and the different code languages can get confusing while learning them.)
jarhead Apr 25 @ 7:37pm 
Where do I get ChatGPT because I have done a google search for it and keep finding a bunch of news stories or descriptions of it (and other stuff like that) but not the actual software itself or even a website that runs it publicly?