Difference between revisions of "Tutorials/Map Editor/Map Editor Workflow/3. (Advanced) Hot editing"

From SCS Modding Wiki
Jump to navigation Jump to search
(Created page with "<!-- Defining header row with links to parent page of the tutorial and with links to next/previous steps in tutorials If you will have user guide on one page, you don't n...")
 
(No difference)

Latest revision as of 13:41, 7 August 2019

Now that we know how to create .scs files, we are able to load the work we made. Also, distribution of mods is done with these .scs files. However, when creating a bigger mod, repacking those archives is gonna take a long time. Not to mention that the game locks such archives from writing while running. At first you will probably not fully utilise the advantages of hot editing, but trust me. Once you get the hang of it you never want to go back.

So what is hot editing? For this we need to thank Komat and MandelSoft. They pointed out here that the game also can read directories following the same base structure. So now we need to make such "symbolic link". It sounds very difficult, but actually it is very easy!

1

Cmd admin.jpg

Open a command prompt in windows as an Administrator (it won't work otherwise; you won't have the privileges to do that).
2

Cmd link.jpg

Use the mklink command to create a "junction" type symbolic link. To do this, you need the following format: mklink /D <mod folder + dir name in mod folder> <project folder>

In my case this would be: mklink /D "E:\Documenten\Euro Truck Simulator 2\mod\wip" "C:\mapmod"

3

Symbolic link.jpg

A folder will appear which looks like a shortcut. This is the so called symbolic link. Now you no longer have to create any .scs archives. All you have to do is copy the map files to your project folder. You don't even have to close the game. Typing edit europe will reload the map with your latest changes.

TIP: When planning on making a bigger mod it's always wise to use some sort of version control (for example SVN). With a hot editing you can easily create a link from the root folder of your project to the mod folder.