Connection types
There are many connection types, and all of them have at least one object that can output it, and one that can accept it.
But there's a problem - we cannot connect a "Number" output to an input that accepts "String"
It may make sense for a person, because both text and numbers are just letters on a sheet of paper, but for computer it doesn't make sense.
Trying to tell computer to display a number as text will cause unpredictable effects, including crashes.
But there's a problem - we cannot connect a "Number" output to an input that accepts "String"
It may make sense for a person, because both text and numbers are just letters on a sheet of paper, but for computer it doesn't make sense.
Trying to tell computer to display a number as text will cause unpredictable effects, including crashes.
What can we do about this?
Well, that depends on the exact scenario you're in. But here are some good news - you can convert any type to a string!
Fairly recently, a new gate was added - "To String". It allows you to convert any input value to a string
Well, that depends on the exact scenario you're in. But here are some good news - you can convert any type to a string!
Fairly recently, a new gate was added - "To String". It allows you to convert any input value to a string
Unusual types
You might've noticed that some gates have a weird input type called "Any"
That means this gate will accept any type, be it number, bool, or even an array.
But there are more:
That means this gate will accept any type, be it number, bool, or even an array.
But there are more:
-
Unknown
Technical "Null" type, cannot be connected to anything and inputs can't accept any type. -
Any
Any type except "Unknown" -
Any non Array
Any type except "Unknown" and arrays (i.e. Accepts "Bool" but does not accept "Bool Array") -
Any Array
Any array type, such as "Bool Array", "Number Array", etc. -
Any (nonref.)
Any type except: "Unknown", "Inventory", "Power Circuit" and "Texture". Those types cannot be saved and so are not allowed for that particular gate.
This is currently exclusive to memory cell, since it has to save data between game restarts.