Overview
Map Mod, More Vacuum Pipes, Grow Stone and more!
Update Notes and Other Info
At this time, no mods are up to date. You are of course free to download them anyway and make them work lol. You also have permission to use them in your own modpacks.
Once I get more free time I’ll get back here and update everything. 🙂
~ Xeridox
Latest updates
12-18-20: Mineral Crystals updated to SM 048 and patched to work with More Vacuum Pipes.
12-11-20: Cross pipes have been added to the Vacuum T-Pipe Mod which is now the More Vacuum Pipes Mod, and is also updated to SM version 048.
Discalaimer. Modifying SM files are done at your own risk. I am not responsible for what happens to your computer, SM installation or your sanity.
These mods are unofficial.
Future Scrap Mechanic updates may break these mods and/or cause unwanted side effects. If you’re ok with the possibility of re-installing SM after said future update, then you may proceed.
Happy modding 🙂
The XeriModPack
An unofficial modpack for Scrap Mechanic Survival
by Xeridox
Last revision:
June 28, 2020
Current mods included:
The Map Mod – Never get lost again.
Mineral Crystals – Grow your own stone chunks!
Vacuum T-Pipes – Adds a T-junction vacuum pipe
More Chance For Metal – Increases the chance for metal from stone chunks
No More Corn Collision – Turns off collision for corn
No More Fake Foliage – Deletes most non-collidable trees and bushes
Also added cell coordinates and compass to time display.
IMPORTANT! The map mod doesn’t work in multiplayer and really messes things up…so I have created a version of the mod pack without the map mod, at least until the bugs are worked out.
This mod is NOT up to date.
Get the version including the map here (singleplayer):
[link]
No map version is here (multiplayer approved!):
[link]
Installation
Extract the zip file.
Copy all folders to your Scrap Mechanic folder.
Normally this is found at
C:Program Files (x86)SteamsteamappscommonScrap Mechanic
It should ask if you want to replace…select ‘copy and replace’ and preferably click the checkbox at the bottom for ‘do this for all’
Run the game and enjoy! 🙂
More mods to be added later…
Map Mod
I’m sure by now you have discovered how easy it is to get lost in the Scrap Mechanic world…well look no further!
To view the map, simply enter /map into chat. (chat is usually the enter key).
It works by checking cells for certain tags…For now, if it finds a tag with “lake” it colors the map cell blue, otherwise green. It also colors one white for whichever map cell the player is in. Future updates may include POI’s on the map, but for now it only discerns ground and water.
It’s not perfect, but should at least allow you to find your way around the world easier, at least until the devs add a better version. 🙂
IMPORTANT! If you need to re-install Scrap Mechanic and you already have the mod, you will need to back up your maps folder first. It is found in Scrap Mechanic/Survival/Scripts/game. It is best to go ahead and back up the entire folder, because it includes not only all the world maps but also a special file that keeps up with the maps and won’t work without it. Also do it in this order: Re-install SM, install the mod, then copy-paste your backup maps folder into the Scrap Mechanic/Survival/Scripts/game folder.
If you want to play in multiplayer don’t install this mod yet. I am working on it and will update this page once I work the bugs out.
This mod is also a part of the XeriModPack.
SM version must be 4.7, other versions may not work.
Get it here:
[link]
Install by copying the zip file’s contents into your Scrap Mechanic folder. Choose yes when asked to overwrite files.
Mineral Crystals Mod
Running out of stone piles in your world?
Introducing the Mineral Crystals Mod.
This mod adds mineral crystals, which drop randomly from breaking stone chunks.
The seeds can then be replanted like a normal crop. When fully grown it will spawn a new stone pile, which can be harvested like any other stone pile.
For obvious reasons, be sure to plant these quite a bit further from each other than you would normal crops.
Updated 12-18-20:
– Patched for compatibility with the More Vacuum Pipes Mod
– Shortened growth time a bit.
Works with SM version 048, may not work with older or newer versions.
Get it here:
[link]
More Vacuum Pipes Mod
Adds two new vacuum pipes: a 3-way ‘T’ pipe and a 4-way ‘cross’ pipe.
I rebuilt my automated potato farm…so much neater! 🙂
You know you want them now…
UPDATE 12-11-2020: Cross pipe added.
Patched for compatibility with the Mineral Crystals Mod.
This mod is for Scrap Mechanic version 048 and may not work with other versions.
Get the mod here:
[link]
Instructions
Download and unzip the above file into your Scrap Mechanic folder, normally located at
C:Program Files (x86)SteamsteamappscommonScrap Mechanic
It should ask you some questions about replacing files and folders…answer yes of course 🙂
The new pipes are craftable from the craftbot. Enjoy! 🙂
Oil Pump Mod – by SevereUC
As of SM version 048, you can now pump from new oil ponds found in the world, so this mod will no longer be updated. However, if anyone else wants to update it and use it in your modpacks, feel free to do so. 🙂
This is NOT my mod, SevereUC made this mod.
This allows your vacuum pump to extract oil from oil geysers.
This mod is NOT up to date.
You can get the mod here:
[link]
Installation
Extract the zip file.
Copy all folders to your Scrap Mechanic folder.
Normally this is found at
C:Program Files (x86)SteamsteamappscommonScrap Mechanic
It should ask if you want to replace files and folders…select ‘copy and replace’ and preferably click the checkbox at the bottom for ‘do this for all’ when it appears.
The following is the original instructions for modding the files yourself. If you downloaded the file above, you don’t need this.
Backup the following file, then open the original. Your install folder may differ from the one shown.
C:Program Files (x86)SteamsteamappscommonScrap MechanicSurvivalScriptsgameinteractablesVacuum.lua
Including the quotations, search for: “AreaTrigger”
The code we are looking for should say:
end
elseif type( result ) == “AreaTrigger” then
Highlight the word end and replace it with:
— Start of oil code
elseif result:getType() == “oil” then
local data = result:getData()
if data then
local partUuid = data[“harvest”]
local amount = data[“amount”]
if partUuid and amount then
partUuid = sm.uuid.new( partUuid )
local container = FindContainerToCollectTo( self.sv.connectedContainers, partUuid, amount )
if container then
table.insert( incomingObjects, { container = container, uuid = partUuid, amount = amount} )
end
end
end
end
break
— End of oil code
Note: Lines beginning with — are just comments and the game ignores them.
Save and exit that file.
Backup and open original file:
Scrap MechanicSurvivalHarvestablesDatabaseHarvestableSetshvs_farmables.json
Including the quotations Search for “hvs_farmables_oilgeyser”
Add “type”: “oil”,
so that the code now looks like this:
“name”: “hvs_farmables_oilgeyser”,
“type”: “oil”,
“color”: “51584dff”,
Including the quotations Search for “OilGeyser”
The following lines need to be added to the inside of the data brackets:
“harvest”: “1147e59d-6940-42b4-840b-07f05054f5e0”,
“amount”: 1
Be sure that every comma and bracket is in place, and there are no extra commas or brackets.
Your code should now look like this:
“class”: “OilGeyser”,
“data”: {
“harvest”: “1147e59d-6940-42b4-840b-07f05054f5e0”,
“amount”: 1
}
Save the file and you should be all set for pumping oil. Place a pump as close as you can to an oil bubble, pointing straight down. You may also try popping the bubble and moving the pump further in. Be sure to keep an eye on your air meter…
No More Fake Foliage Mod
This gets rid of trees and bushes which cannot be cut down or collided with. It does NOT get rid of the really large trees (which are fewer in number) or ground clutter. Please note this may also remove those assets from creative mode as well, so I strongly encourage making a backup first.
This mod is also a part of the XeriModPack.
Please note your installation folder may be different from mine…
Backup the following file, then open the original:
C:Program Files (x86)SteamsteamappscommonScrap MechanicDataTerrainDatabaseassetsets.json
Find the ‘foliage’ entry that looks like this:
{
“assetSet”: “$GAME_DATA/Terrain/Database/AssetSets/foliage.json”,
“category”: “Foliage”
},
Delete ALL of that entry, including the first and last brackets and the comma.
Save the file and enjoy not having those annoying things in your face when you’re trying to explore or slowing your game down. 🙂
No More Corn Collision Mod
Since SM 048, corn breaks when hit by a creation, so this mod may be obsolete.
Yes, corn is how we get milk from Wocs…Other than that, corn is evil. We should be able to drive right through it…
…and now you can!
Introducing the No More Corn Collision Mod (or, The No More Evil Corn Mod).
This will allow you to pass through corn (in a car or on foot), yet leave it where you can still hit it with the hammer.
This mod is also a part of the XeriModPack.
First, navigate to your Scrap MechanicSurvivalHarvestablesDatabaseHarvestableSets folder.
Backup the file “hvs_farmables.json” just in case you mess up.
Open the original file and search for
“col”: “$SURVIVAL_DATA/Harvestables/Collision/Farmables/hvs_farmables_cornplants_col.obj”,
Paste the following code right after that:
“collides”: {
“character”: false,
“body”: false,
“projectile”: false,
“melee”: true
},
Don’t forget to save the file.
Play the game and never crash into corn again. 🙂
Of course, you can play with those values…but “body” means any player-made creation. If projectile is true you would be able to shoot the corn.
More Chance For Metal Mod
This will give you a higher chance for metal from stone chunks.
This mod is also a part of the XeriModPack.
Your SM installation folder may be different, but this is the default.
The file you’re looking for is
C:Program Files (x86)SteamsteamappscommonScrap MechanicSurvivalScriptsgameharvestableStoneChunk.lua
Back it up first before you modify it 🙂
This line controls it:
local harvest = math.random( 3 ) == 1 and obj_harvest_metal2 or obj_harvest_stone
So, whenever “math.random( 3 )” is 1, then you will get metal, otherwise stone.
Change the == to > like:
local harvest = math.random( 3 ) > 1 and obj_harvest_metal2 or obj_harvest_stone
If it doesn’t give you enough just increase the 3 to a 5 or something.
Don’t forget to save the file 🙂
Cell Coordinates
First off, a little info on the world in which we live…
From East to West is 128 cells and North to South is 96 cells, with a cell size of 64×64 meters.
128×64 = 8,192, or 8.192 KM
96×64 = 6,144, or 6.144 KM
8.192 x 6.144 = 50.331648 square kilometers.
The crashed ship is always in the same cell (-36,-40), in the southwest corner, as are lots of other POI’s, viewable in generate_cells.lua. The image here is a map of these predetermined cells. It does not show grass, water or warehouses, as these change each time a new world is generated.
Need a compass? The sun is always to the south and slightly west. At night you can still see the shadows from the non-existent moon, which is in the same place in the sky (I suspect future updates may change this).
And now the mod…
ATTENTION This is old and needs to be updated. These instructions will NOT work for the current version of SM.
The file you need is C:Program Files (x86)SteamsteamappscommonScrap MechanicSurvivalScriptsgameSurvivalPlayer.lua
Back it up first, then open the original. There are 3 lines you need to modify, simply by either deleting a “–” from the beginning, or adding one.
Step 1
——–
Search for the following line and add a “–” at the beginning and a space (that’s two dashes, without the quotes, you will see other lines with them just a few lines below in the code):
self.cl.hud:setText( “Time”, getTimeOfDayString() )
change it to
— self.cl.hud:setText( “Time”, getTimeOfDayString() )
Step 2
———
A few lines down, delete the two dashes:
— local text = math.floor( character.worldPosition.x / CellSize )..”, “..math.floor( character.worldPosition.y / CellSize )
so it looks like
local text = math.floor( character.worldPosition.x / CellSize )..”, “..math.floor( character.worldPosition.y / CellSize )
Step 3
———
A few more lines down (lots of them with a — at the beginning)
Again, delete the two dashes from
— self.cl.hud:setText( “Time”, text )
Save the file and run the game. Where the time usually is you should see cell coordinates. They will change every 64 meters.
For me the time no longer appears, but to change it back, simply use your backup file (you DID make a backup before you started monkeying with the code, right?) or just reverse the changes. If the file is still open in your text editor you can just CTRL+U for undo. Have fun 🙂