Stationeers

Stationeers

76 个评价
Basic-IC10-Compiler
12
5
2
2
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
313.314 KB
2023 年 12 月 8 日 下午 1:15
2024 年 2 月 20 日 上午 5:58
5 项改动说明 ( 查看 )

订阅以下载
Basic-IC10-Compiler

描述
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 条留言
John 9 月 27 日 下午 11:18 
yeah, you're right
Exca133  [作者] 9 月 27 日 下午 6:32 
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 9 月 27 日 下午 3:32 
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  [作者] 8 月 13 日 上午 4:13 
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 8 月 11 日 上午 9:07 
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  [作者] 7 月 4 日 下午 7:05 
此留言正在等待我们的自动内容检查系统分析。在我们证实其内容无害之前(例如试图窃取信息的钓鱼站点链接),留言将暂时隐藏。
zorax4295 7 月 3 日 下午 10:53 
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://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=32652725
We have 512 line and not 128
Oakrotic 6 月 9 日 上午 10:00 
@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 4 月 25 日 下午 7:39 
(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 4 月 25 日 下午 7:37 
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?