Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Registers? you use sc.getReg and sc.setReg. This is now a pattern, People are asking this more than normal. Doks (Our documentation framework) is such garbage that we will replace it entirly
And no, there's no replacement towards os.execute because SM does not have that at all. If your wondering if we are going to use DLM or BetterAPI, no. DLM is long gone and BetterAPI is horrible and violates copyright.
Search through the sidebar instead of the searchbar. if you cant find it, it's 100% in the pages so go through them.
We use Lua because to mod in Scrap Mechanic, you need to know Lua. Finding a good Lua interpreter is already quite challenging.
From what I’ve researched, there’s no Python interpreter for Lua, so using Python isn’t possible. Even if one exists, it’s unlikely we would implement it.
Compiled languages like C are not an option because we would need to write our own compiler, and frankly, we’re not skilled enough for that. Even if we did manage to create one, it would probably be slower than our LuaVM, making it not worth the effort.
There’s also a reason why we use a custom VM instead of ScrapVM or LuaInLua. LuaInLua (which the other two computer mods use) is incredibly slow. We have a benchmark script that tests the performance of for loops and addition operations. LuaInLua gave us a result of 0.30, while our LuaVM scored 0.01. The lower the number, the better the performance. ScrapVM is faster, but ours is even faster by 0.01.