How to CHANGE SIZE of your world in SCRAP MECHANIC

Scrap Mechanic4 · 28 ratings1.2k views52 favorites2 min readby Учим читайскийView on Steam ↗

Introdusion

Several days ago I decided to make tank and aircraft battles with my friend. But size of map wasn't enogh for speedy aircrafts, nuclear bombs, mortairs and other...

I tried to find some information about my problem. but nothing usefull - sad☹
I decided to open root folder of game and investigate how to do this by myself.
After two hours i found cherished files and properties inside.

I created very small world, only 6 cells unlike with default creative terrain with ~16 cells
Also i've made XXL world with 46 cells. Not enough ceiling high of the world to show all this map㋛

Today I'll show you how to change size of your Creative world in Scrap Mechanic. It's realy easy :)

How to change size of the world

To edit size of the world we have to open next folders:

  • ...\(steam folder)\steamapps\common\Scrap Mechanic\Data\Scripts\game\terrain
  • ...\(steam folder)\steamapps\common\Scrap Mechanic\Data\Scripts\game\worlds

In folder \terrain we will work with terrain_creative.lua and terrain_creative_celldata.lua
In folder \worlds - CreativeTerrainWorld.lua

I recomend to make a backup and after open this 3 files with any text editor.

n will equal quantity of cells
In this example I choosed - 20

Terrain_creative.lua
You need to find this row(it should be number 45)

generateWorld( -n, n, -n, n, seed )

replace n to quantity of cells do you want
CreativeTerrainWorld.lua
In file CreativeTerrainWorld.lua need to add next rows: CreativeTerrainWorld.cellMinX = -n+6
CreativeTerrainWorld.cellMaxX = n+6
CreativeTerrainWorld.cellMinY = -n+6
CreativeTerrainWorld.cellMaxY = n+6

This n shold be + 6 more than your planned world size

In my first example a did 46 cells and it was too much because in this world i got ~10 FPS.
My pc:
  • i5-2500 3.3GHz
  • 8 RAM DDR3
  • 1050ti 4 RAM DDR4 without extrapower connetions

Anyway you can try 46 or more, up to you.
Terrain_creative_celldata.lua
There we will edit row number 9

BORDER_START = n*64

You need to multiply quantity of cells in your future world to 64(default size of cell)
Finaly
we just need to create new creative world and choose default terrain preset

You are welcome!

Explanation

This guide was created by its original author on the Steam Community. Are you the author and want it removed? Request removal.