It is recommended to create a symbolic link from. Scrap Mechanic Welcome to the machine-filled creative paradise of Scrap Mechanic, a multiplayer sandbox game with imagination and ingenuity at its core. There's a test mod included in this repo. Made with help of the Scrap Mechanic Mods community: Please make regular backups of your worlds as this mod may in some cases crash the game and make the file unloadable. returns the description.json of a mod as a table. If your mod contains such an integer, you have to convert it back yourself.
#Scrap mechanic mods 64 Bit
Note: Due to sm.json.open crashing when it tries to load a 64 bit integer, all integers that require more than 32 bits are stored as strings. Loading a database stores all entries into a dictionary with the localId of a mod as key. name )Įnd - Make sure to unload the databases after you're done using them, they take up quite a bit of memory getAllInstalledMods() - Returns an array of localIds (UUIDs, strings) - Do something with the localIds for _, localId in ipairs(loadedMods) do - Get the name of the mod found it's description.json print( ModDatabase.
getAllLoadedMods() - Returns an array of localIds (UUIDs, strings) -] - Getting all installed mods local installedMods = ModDatabase. I play games, I make modsDone a lot of stuff with Scrap Mechanic, and other similar building gamesJust started Minecraft, but will always be interested in tr. Getting all loaded mods local loadedMods = ModDatabase. Everything works both server-side and client-side function ModDatabaseTest.doDatabaseStuff( self )