Cities: Skylines

Cities: Skylines

Loading Screen Mod Revisited 1.1.11
 This topic has been pinned, so it's probably important
algernon  [developer] 6 Jan, 2023 @ 5:11am
Prefab Skipping 101
What are prefabs?
Prefabs are the assets that come with the game and its DLCs - this includes buildings, props, vehicles, trees, and networks.

(There are other prefabs, too, such as citizens, disasters, and others, that aren't relevant here, so we'll ignore them for now).

What is skipping?
When you skip a prefab that you don't need, it will not be available in game, saving some memory, preventing it from appearing in-game, and reducing the clutter in your menus.

You can skip buildings, vehicles, props, trees, and networks using this mod.

How to skip prefabs: your skipfile
Start the game (to the main menu) and open the Options dialog of this mod - under the 'General' tab you will find the 'Prefab skipping' section. Enable skipping by selecting the checkbox, and click the button to create a new text file in this location (you can also change the file location and/or name here).

This will create a blank skipping file. Now you can add the prefabs that you want to skip to this file, like this:
Buildings: Ore 4x3 Processing Space Elevator Vehicles: Donut Van Bugspray Van Props: Clown Trees: Yew Roads: Basic Road

Note how this file works. The file is divided into sections marked by headers such as 'Buildings:', 'Vehicles:', etc. The prefabs that you want to skip MUST be in the relevant section (i.e. after the relevant header, and before the next header) or they won't be skipped.

Don't just add new prefab names to the end of the file and expect them to work! They MUST go into the correct section.

Wildcards
The skipfile can also handle wildcards, such as the asterisk (*). For example, to skip all prefabs starting with 'Bamboo' , you can use:
Bamboo*

Skipping by category
You can skip entire categories as well in the skip file; categories are distinguished by using a colon (:) after their name. For example, to skip ALL vanilla Residential buildings, you can use:
Residential:*

Where are the prefab names?
See the prefab lists at https://lsm.thebugfix.net/. Not only does this site list all the available prefabs (including with pictures), you can also use it to generate your skipfile for you! Simply select the prefabs you wish to skip and a skip list will automatically be updated at the bottom of the page (there's a shortcut button at the top of the page to save you scrolling all the way down).

Excepting prefabs from skipping
To execpt a prefab from being skipped, you can have a line starting with the word 'Except:' followed by the name of the prefab (or the prefab category, as usual (including wildcards). This can be useful when you want to keep only a subset of prefabs but skip all others.

For example, to skip all vanilla residential buildings EXCEPT for the Green Cities, Campus, and Plazas & Promenades residential buildings, you'd use something like the following:

Buildings: Residential:* Except:ResidentialLowEco:* Except:ResidentialHighEco:* Except:ResidentialWallToWall:* Except:College*

What happens to skipped prefabs?
They are simply removed from the game (and from any buildings or networks that might contain them) - EXCEPT FOR any buildings and networks that are in-use in the map (see below). Note that vehicles, props, and trees will be skipped regardless of whether they're in-use or not.

Skipping buildings
Skipping will NOT apply to any building already placed in your city (as doing so will cause a bunch of errors). You CANNOT remove existing buildings via the skip file; you'll need to delete them in-game first (of course, there's nothing wrong with adding them to the skip file first and then deleting the existing buildings later).

if you use the * pattern to skip all buildings, the mod will keep these buildings anyway to prevent errors:
  • Statue of Shopping: because the game will crash on load if there isn't at least one unique building (unless you have Ploppable RICO Revisited installed to fix this issue).
  • Electricity Pole: required for powerlines and electriicity transmission.
  • Wind Turbine: because the game requires at least one electricity source.
  • Dam Node Building and Dam Power House: required for dams.
  • Water Pipe Junction and Heating Pipe Junction: required for water and heating pipes and transmission.

Skipping networks
Skipping will NOT apply to any network already placed in your city (as doing so will make your save unplayable).

There's also an inbuilt safety mechanism for network prefab skipping to automatically exclude the 'special' in-game invisible networks required for basic building functionality.

However, outside of this, everything is fair game. This includes things like railway/metro station tracks, so yes, you can make your railway stations non-functional if you really want. Skipped networks will simply be removed from buildings.

Logging
The mod puts info like this in the log:
Cargo Harbor -> not skipped because used in city.
Open your output_log.txt to see them.

Any errors in your skip.txt are also reported in the log.
Last edited by algernon; 6 Jan, 2023 @ 5:20am
< >
Showing 1-15 of 35 comments
ENTITY 25 Jan, 2023 @ 9:18am 
The skip file doesn't have any headers in it for me. Can I just manually add Buildings: ?

Edit: I tried adding my own Buildings: heading and it's not working, they're not being skipped. I do have the box checked in the game options. What am I missing here? This is how I have it written in the txt file:

Buildings:
L1_1x1_detached_13
Last edited by ENTITY; 25 Jan, 2023 @ 9:30am
algernon  [developer] 25 Jan, 2023 @ 4:45pm 
Do you have that building in your save already?
ENTITY 25 Jan, 2023 @ 5:11pm 
Originally posted by algernon:
Do you have that building in your save already?
I deleted it everywhere, meticulously searched street by street, it's a small city.
algernon  [developer] 25 Jan, 2023 @ 5:51pm 
Okay, post your output log and I'll take a look (all skipping is logged there).
ENTITY 25 Jan, 2023 @ 7:16pm 
Originally posted by algernon:
Okay, post your output log and I'll take a look (all skipping is logged there).
https://www.dropbox.com/s/sdwbpi8g4jhn8zg/output_log.txt?dl=0
ENTITY 25 Jan, 2023 @ 7:38pm 
I think I figured this out. I saw in the log that it wasn't skipping due to being used in the city. So what I did is go around, de-zone all the spots it could pop up, let it play for a minute, then I saved and quit. Loaded the game up again and it doesn't seem to be coming back. Checked the output log and it's saying it's skipped now.

TL;DR for anyone coming to this later, make sure to de-zone any spots the prefab you're trying to skip could be growing. It must be queuing up the build before anything shows up visually.
algernon  [developer] 26 Jan, 2023 @ 12:54am 
Ah, yes, if it's under construction then it's still counted as used - good find!
NSky 17 Feb, 2023 @ 10:06am 
If I skip everything I get the "Object reference not set to an instance of an object [System.NullReferenceException]" error.
If I want to skip as much assets as possible and not get the error, what should I unskip?

Btw, this only happens when I load a new game, loading a saved game with everything skipped works fine.
And several updates ago I didn't get an error even after skipping every vanilla assets
algernon  [developer] 17 Feb, 2023 @ 4:41pm 
Originally posted by NeonSkyline:
If I skip everything I get the "Object reference not set to an instance of an object [System.NullReferenceException]" error.
If I want to skip as much assets as possible and not get the error, what should I unskip?

Btw, this only happens when I load a new game, loading a saved game with everything skipped works fine.
And several updates ago I didn't get an error even after skipping every vanilla assets

That's because of the safety mechanisms that apply when loading existing saves, to not skip any buildings in use.

I'd GUESS from this that you're skipping essential buildings, although vehicles is also possible. What's "essential" depends on what custom replacements you have, and exactly where the error is occuring - it's impossible to give you any firm advice without seeing your output log showing the error,
NSky 20 Feb, 2023 @ 12:59am 
Originally posted by algernon:
Originally posted by NeonSkyline:
If I skip everything I get the "Object reference not set to an instance of an object [System.NullReferenceException]" error.
If I want to skip as much assets as possible and not get the error, what should I unskip?

Btw, this only happens when I load a new game, loading a saved game with everything skipped works fine.
And several updates ago I didn't get an error even after skipping every vanilla assets

That's because of the safety mechanisms that apply when loading existing saves, to not skip any buildings in use.

I'd GUESS from this that you're skipping essential buildings, although vehicles is also possible. What's "essential" depends on what custom replacements you have, and exactly where the error is occuring - it's impossible to give you any firm advice without seeing your output log showing the error,
I managed to solve it by unskipping vehicles, now I can skip almost everything when starting a new map🙂
algernon  [developer] 20 Feb, 2023 @ 1:55am 
Ah, yes, if you're skipping vehicles then make sure you've got at least one custom vehicle of each type skipped. You need at least one passenger car, and one tourist car, plus one of each cargo type. Add public transport vehicles as used, of course. And bikes. And electric cars.
Musharaf 6 Mar, 2023 @ 1:14pm 
Hi I want to skip asset from "Landscaping:" but it doesnt work. It is in tab with fences. Is somewhere list of categories?
algernon  [developer] 6 Mar, 2023 @ 10:05pm 
Originally posted by Musharaf:
Hi I want to skip asset from "Landscaping:" but it doesnt work. It is in tab with fences. Is somewhere list of categories?

See the prefab skipping website at https://lsm.thebugfix.net/.
Musharaf 7 Mar, 2023 @ 11:50am 
I saw that website and it doesn´t work, thats why I wrote here because sombebody who made it could guess where could be problem. There is not exact list of categories. "Lanscaping" is category but what about subcategories? It must be something else when I have correctly written category "Landscaping" and asset name and it doesnt work. So what else should be (in)correct? Roads skipping works fine for me btw.
Last edited by Musharaf; 7 Mar, 2023 @ 11:53am
algernon  [developer] 7 Mar, 2023 @ 9:50pm 
The category for each asset is listed under that asset entry. For exampe:
Abandoned Car 01
Beautification None
Level1

The asset name is "Abandoned Car 01". The Category is "Beautification" and the sub-category is "None", and the level is "Level1".
< >
Showing 1-15 of 35 comments
Per page: 1530 50