Scrap Mechanic Enable Cheat Commands Tutorial

Scrap Mechanic Enable Cheat Commands Tutorial 1 - steamsplay.com
Scrap Mechanic Enable Cheat Commands Tutorial 1 - steamsplay.com

How to enable cheats the easy way in scrap mechanic in 2021 December.

Warning

This could cause your game to crash and world to corrupt so if that happens im not responsible i warned you but this is very rare.

How do i enable cheats.

First navigate to C:\Program Files (x86)\Steam\steamapps\common\Scrap Mechanic\Survival\Scripts\game or where you installed it to.

Now scroll down until you find SurvivalGame.lua open it with notepad or what ever you use like vs code.

Now in the file find line 106 or where it says

if sm.isHost and g_survivalDev then
 self:bindChatCommands()
end

Scrap Mechanic Enable Cheat Commands Tutorial - How do i enable cheats. - A5D46FC

Now change it to

if true then
 self:bindChatCommands()
end

Scrap Mechanic Enable Cheat Commands Tutorial - How do i enable cheats. - DC7C871

Now save it usually with ctrl + s or save file.

And that’s it you activated cheats.

You will have to this after validating the game files and after updates.

Also if this breaks your game or world im not responsible.

What commands can i use.

Well all of these.

sm.game.bindChatCommand( “/ammo”, { { “int”, “quantity”, true } }, “cl_onChatCommand”, “Give ammo (default 50)” )

sm.game.bindChatCommand( “/spudgun”, {}, “cl_onChatCommand”, “Give the spudgun” )

sm.game.bindChatCommand( “/gatling”, {}, “cl_onChatCommand”, “Give the potato gatling gun” )

sm.game.bindChatCommand( “/shotgun”, {}, “cl_onChatCommand”, “Give the fries shotgun” )

sm.game.bindChatCommand( “/sunshake”, {}, “cl_onChatCommand”, “Give 1 sunshake” )

sm.game.bindChatCommand( “/baguette”, {}, “cl_onChatCommand”, “Give 1 revival baguette” )

sm.game.bindChatCommand( “/keycard”, {}, “cl_onChatCommand”, “Give 1 keycard” )

sm.game.bindChatCommand( “/powercore”, {}, “cl_onChatCommand”, “Give 1 powercore” )

sm.game.bindChatCommand( “/components”, { { “int”, “quantity”, true } }, “cl_onChatCommand”, “Give <quantity> components (default 10)” )

sm.game.bindChatCommand( “/glowsticks”, { { “int”, “quantity”, true } }, “cl_onChatCommand”, “Give <quantity> components (default 10)” )

sm.game.bindChatCommand( “/tumble”, { { “bool”, “enable”, true } }, “cl_onChatCommand”, “Set tumble state” )

sm.game.bindChatCommand( “/god”, {}, “cl_onChatCommand”, “Mechanic characters will take no damage” )

sm.game.bindChatCommand( “/respawn”, {}, “cl_onChatCommand”, “Respawn at last bed (or at the crash site)” )

sm.game.bindChatCommand( “/encrypt”, {}, “cl_onChatCommand”, “Restrict interactions in all warehouses” )

sm.game.bindChatCommand( “/decrypt”, {}, “cl_onChatCommand”, “Unrestrict interactions in all warehouses” )

sm.game.bindChatCommand( “/limited”, {}, “cl_onChatCommand”, “Use the limited inventory” )

sm.game.bindChatCommand( “/unlimited”, {}, “cl_onChatCommand”, “Use the unlimited inventory” )

sm.game.bindChatCommand( “/ambush”, { { “number”, “magnitude”, true }, { “int”, “wave”, true } }, “cl_onChatCommand”, “Starts a ‘random’ encounter” )

–sm.game.bindChatCommand( “/recreate”, {}, “cl_onChatCommand”, “Recreate world” )

sm.game.bindChatCommand( “/timeofday”, { { “number”, “timeOfDay”, true } }, “cl_onChatCommand”, “Sets the time of the day as a fraction (0.5=mid day)” )

sm.game.bindChatCommand( “/timeprogress”, { { “bool”, “enabled”, true } }, “cl_onChatCommand”, “Enables or disables time progress” )

sm.game.bindChatCommand( “/day”, {}, “cl_onChatCommand”, “Disable time progression and set time to daytime” )

sm.game.bindChatCommand( “/spawn”, { { “string”, “unitName”, true } }, “cl_onChatCommand”, “Spawn a unit: ‘woc’, ‘tapebot’, ‘totebot’, ‘haybot'” )

sm.game.bindChatCommand( “/harvestable”, { { “string”, “harvestableName”, true } }, “cl_onChatCommand”, “Create a harvestable: ‘tree’, ‘stone'” )

sm.game.bindChatCommand( “/cleardebug”, {}, “cl_onChatCommand”, “Clear debug draw objects” )

sm.game.bindChatCommand( “/export”, { { “string”, “name”, false } }, “cl_onChatCommand”, “Exports blueprint $SURVIVAL_DATA/LocalBlueprints/<name>.blueprint” )

sm.game.bindChatCommand( “/import”, { { “string”, “name”, false } }, “cl_onChatCommand”, “Imports blueprint $SURVIVAL_DATA/LocalBlueprints/<name>.blueprint” )

sm.game.bindChatCommand( “/starterkit”, {}, “cl_onChatCommand”, “Spawn a starter kit” )

sm.game.bindChatCommand( “/mechanicstartkit”, {}, “cl_onChatCommand”, “Spawn a starter kit for starting at mechanic station” )

sm.game.bindChatCommand( “/pipekit”, {}, “cl_onChatCommand”, “Spawn a pipe kit” )

sm.game.bindChatCommand( “/foodkit”, {}, “cl_onChatCommand”, “Spawn a food kit” )

sm.game.bindChatCommand( “/seedkit”, {}, “cl_onChatCommand”, “Spawn a seed kit” )

sm.game.bindChatCommand( “/die”, {}, “cl_onChatCommand”, “Kill the player” )

sm.game.bindChatCommand( “/sethp”, { { “number”, “hp”, false } }, “cl_onChatCommand”, “Set player hp value” )

sm.game.bindChatCommand( “/setwater”, { { “number”, “water”, false } }, “cl_onChatCommand”, “Set player water value” )

sm.game.bindChatCommand( “/setfood”, { { “number”, “food”, false } }, “cl_onChatCommand”, “Set player food value” )

sm.game.bindChatCommand( “/aggroall”, {}, “cl_onChatCommand”, “All hostile units will be made aware of the player’s position” )

sm.game.bindChatCommand( “/goto”, { { “string”, “name”, false } }, “cl_onChatCommand”, “Teleport to predefined position” )

sm.game.bindChatCommand( “/raid”, { { “int”, “level”, false }, { “int”, “wave”, true }, { “number”, “hours”, true } }, “cl_onChatCommand”, “Start a level <level> raid at player position at wave <wave> in <delay> hours.” )

sm.game.bindChatCommand( “/stopraid”, {}, “cl_onChatCommand”, “Cancel all incoming raids” )

sm.game.bindChatCommand( “/disableraids”, { { “bool”, “enabled”, false } }, “cl_onChatCommand”, “Disable raids if true” )

sm.game.bindChatCommand( “/camera”, {}, “cl_onChatCommand”, “Spawn a SplineCamera tool” )

sm.game.bindChatCommand( “/noaggro”, { { “bool”, “enable”, true } }, “cl_onChatCommand”, “Toggles the player as a target” )

sm.game.bindChatCommand( “/killall”, {}, “cl_onChatCommand”, “Kills all spawned units” )

sm.game.bindChatCommand( “/printglobals”, {}, “cl_onChatCommand”, “Print all global lua variables” )

sm.game.bindChatCommand( “/clearpathnodes”, {}, “cl_onChatCommand”, “Clear all path nodes in overworld” )

sm.game.bindChatCommand( “/enablepathpotatoes”, { { “bool”, “enable”, true } }, “cl_onChatCommand”, “Creates path nodes at potato hits in overworld and links to previous node” )

sm.game.bindChatCommand( “/activatequest”, { { “string”, “uuid”, true } }, “cl_onChatCommand”, “Activate quest” )

sm.game.bindChatCommand( “/completequest”, { { “string”, “uuid”, true } }, “cl_onChatCommand”, “Complete quest” )

All of these were just ripped from the code.

Now enjoy your cheats in survival.

 

Here we come to an end for Scrap Mechanic Enable Cheat Commands Tutorial hope you enjoy it. If you think we forget something to include or we should make an update to the post let us know via comment, and we will fix it asap! Thanks and have a great day!


Be the first to comment

Leave a Reply

Your email address will not be published.


*