Stationeers

Stationeers

Slang
7 opmerkingen
JoeDiertay  [auteur] 17 minuten geleden 
Currently I'm torn between adding more documentation or adding a source map so the IC Housing will tell you what line in the Slang source the error is on instead of the compiled IC10
JoeDiertay  [auteur] 20 minuten geleden 
I'm definitely working on it! I had to prioritize a couple of bugs first. I'm actively using this mod as well so I can work on bugs and pain points that might be missed by the community
MadelynPlays 4 uur geleden 
Well this is pretty great. My only feedback, and i'm sure you're working on it, would be a wiki with slang syntax and specific documentation. I can get around cause i'm familiar with C based languages, but having a resource like the in game list of variables and functions would be helpful.
JoeDiertay  [auteur] 23 uur geleden 
I could probably also work on some "context awareness" in the compiler to see if you are trying to pass a string into a batched function and automatically hash it for you
JoeDiertay  [auteur] 9 dec om 9:53 
As for functions, I'm working on doing a code refactor of the tokenizer right now. When that's done and I get the rest of the IC10 built-in functions in, I'll work on fixing up the ABI for functions :)
JoeDiertay  [auteur] 9 dec om 9:52 
Thanks for trying Slang!

So IC10 really doesn't have a concept of "Strings". So in Slang if you want to use a string you generally are going to want to use the `hash("SomeString")` function. As of _now_ LogicTypes and other things _are_ handled as strings in Slang.

Such as:

[code]
const solarPanels = hash("StructureSolarPanelDual");

lbn(solarPanels, "Charge", "Sum");
[/code]

In the future I will be strongly typing the structure names, logic types, and batch modes so that autocomplete works as intended and misuse will cause compiler errors in game :)
reality 8 dec om 23:57 
hey, congrats on the beta release! i really really love using this. it's reduced the friction and slimmed the difficulty curve of getting into stationeers coding for me quite significantly. the same tasks that I was shooting for took less than half the time because of how approachable this is.

i think you mention it somewhere in the stationpedia where functions don't quite work as intended and i'm noticing that as well (various issues with scope-awareness and variable usage). i'm really excited for when this fully implemented!

i also couldn't figure out if there was a way to set strings or really use strings at all yet? looking forward to the feature parity for IC10.

thanks so much for making this and i hope you continue to work on it! :steamthumbsup: