Error message about duplicate prefab name during game loading
Cause
If autosave is enabled in the asset editor, and you open an existing asset to create a new one based on it, autosave can save the work-in-progress asset as an autosave file. When you load the next game you may get the error message:
An error occurred Broken asstes: Custom assets: …_Data: Duplicate prefab name [BrokenAssetException]
Solution
Delete the AutoSave.crp file from the “C:\Users\YOUR_USER_NAME\AppData\Local\Colossal Order\Cities_Skylines\Addons\Assets” directory.
As I use Cities: Skylines I want to share tips and tricks I learn while I build my maps and cities.
The game scale
Game element
Real life size
1 cell
8 meters
1 tile
240 cells = 1920 meters
9 tiles
17,280 meters
Zoning grid depth
4 cells = 32 meters
Curb
30 cm high, as roads are sunken into the terrain.
Basic road
2 cells = 16 meters wide Asphalt 10 meters wide Vehicle lane 3 meters wide Parking lane 2 meters wide
Four-lane road
4 cells = 32 meters wide Asphalt width including the median 22.4 meters Asphalt width on each side of the median 8 meters Median width 6.4 meters Vehicle lane width 3 meters Parking lane width 2 meters
Gauge 1.6046 meters Distance between rail centers 1.724meters Rail width 11.94 cm Distance between the centers of 2 parallel tracks 4 meters
Tram tracks
Same as train, but the distance between the centers of two parallel tracks is 3 meters
Monorail
Track width 66 cm Distance between the centers of two parallel tracks is 3 meters.
Elevations
The Cities: Skylines game use multiple units to display elevations and distances.
Tool
Unit
Relative to
Landscaping tool
meters
Lowest elevation (0 meters)
Roads tool
Road segment length 1 unit = 8 meters
Road segment start
Fine Road Tool mod
meter
Precision engineering mod
meter
Lowest elevation (0 meters)
The Landscaping tool’s Level Terrain feature shows the elevation in units, relative to elevation 0. The original ground level is at 60 unit elevation.
The Roads tool displays the road segment lengths in units. 1 unit is 8 meters.
On the Options page of Klyte’s Fine Road Tool mod set the units to metric or imperial units.
The Precision Engineering mod shows the road segment length and elevation in meters relative to the original ground level of 60 units. Press the Shift key to see this extra information.
Minimum clearances
Above
Bridge height
Cruise ships
32-33 m
Ferries
12 m
Railroad, roads
12 m
Water
Water sources in games
In the map editor, you can add water sources to your maps. In game mode, the original game does not have the means to add more water sources. Subscribe to BoodyPinguin’s Extra Landscaping Tools mod to add water sources in your games.
Sea level
In the map editor you can set the sea level by typing a number, the mod in the city only uses the mouse to drag the sea level up and down. To set the level more precisely
Use the Landscaping Tool’s Level Terrain feature to create a small flat top island in the sea.
Select the Water tool, and select the Move Sea Level option.
Move the mouse up and down to set the water level to the top of the island.
Containing waste water pollution
When you discharge waste water to lakes and the sea, it can pollute the drinking water supply. Place a water source with the water level lower than the lake or sea level. It creates a drain to generate a current and remove the pollution.
Traffic
If the traffic is too dense, turn on vehicle despanning. When the vehicles arrive to their destination they disappear.
Subscribe and activate the TM:PE (Traffic Manager: President Edition ) mod
On the top of the screen click the TM:PE Main menu button (looks like a traffic light)
In the upper right corner of the window click the Toggle automatic vehicle despawning button to turn on despawning.
I wanted to recreate the Los Angeles Pacific Electric Railway system based on the 1947 system map in Cities: Skylines. Los Angeles at the beginning of the 20th century had hundreds of miles of electric street cars connecting downtown LA with the surrounding cities.
The map uses the 81 tiles mod by BloodyPenguin. The current version as of writing is “81 Tiles (Fixed for 1.2+)” at https://steamcommunity.com/workshop/filedetails/?id=2858871489
The map also contains Santa Catalina Island in approximate position and shape. If you want to build Avalon, you need to do some terraforming to make room for the casino, the harbor, and the rest of the city. I have not added any sandy beaches on the main land and the island, it is a fun project to recreate them with the terraforming tool. The reservoirs and rivers don’t have water sources to avoid flooding if you block any of the rivers during construction. If you want to get water from them, use Boody Pinguin’s Extra Landscaping Tools mod to add water sources.
Historic Vehicles
Get historic vehicles
Subscribe to -Historic/Veteran Vehicles- No’s all in one at https://steamcommunity.com/sharedfiles/filedetails/?id=495877905
Disable the default (modern) vehicles
Follow the instructions at https://steamcommunity.com/sharedfiles/filedetails/?id=453245152
Install the Advanced Vehicle Options mod from
In the Content Manager activate the mod
Start the game
In the lower right corner click the Advanced Vehicle Options button
For each vehicle set the Allow this vehicle to spawn checkbox.
Export the vehicle configuration if you want to be able to import it into other cities. It will be saved at C:\Users\YOUR_USER_NAME\AppData\Local\Colossal Order\Cities_Skylines\AdvancedVehicleOptions_VehicleData.xml
To transfer real life places to Cities: skylines you can use the Image Overlay 2 mod. It superimposes the selected PNG file over your layout with configurable position, rotation and transparency. See Cities: Skylines mods for more information.
To create a map using a height map in Cities: Skylines:
1. Choose a height map from a trusted source or create your own using a software like Photoshop or GIMP. The height map should be a grayscale image and must have a resolution of 1081×1081 pixels.
2. Open Cities: Skylines and click on “New Game” and then select “Map Editor.”
3. Click on “Import Heightmap” and select the grayscale image you want to use for your map.
4. Adjust the settings for sea level, water flow, and terrain height to your liking.
5. Add resources and adjust the terrain using the terrain tools.
6. Add roads, buildings, and other assets to your map.
7. Test your map by clicking on “Play” and selecting the “Map” tab.
8. Save your map and share it with other Cities: Skylines players online.
Remember that creating a map using a heightmap can be time consuming and requires patience and attention to detail. But the result can be a beautifully crafted and realistic city that you can be proud of.
Configure Cities: Skylines to use the PNG file as an overlay
Create a PNG file of the street layout
To convert a PDF file to PNG, use the free PDF to PNG converter at https://pdf2png.com/
Save the PNG file in the “C:\Program Files (x86)\Steam\steamapps\common\Cities_Skylines\Files” directory where your Steam games are on your hard drive
Install the Image Overlay 2 mod
Configure the mod to read the image files from the directory where the image file is
To display the overlay
Open the city
Press Shift + Enter to display and hide the overlay
Troubleshooting
In the old version if the image does not move, press Shift + V to unlock the image. It looks like the new version does not lock the image anymore.
When you start a new city in Cities: Skylines even if you have the 81 tiles mod installed, the map only shows one tile. To unlock all tiles
Before opening the city
Install the 81 tiles mod
Start a new city
Press ESC to open the menu
Select Options
In the Mods settings section click the 81 tiles item
Click the Unlock all tiles for free button
Important
When the 81 tiles mod is installed, it is very important to exit to the Desktop every time you switch between cities or editors, otherwise, you will get errors in the game. Always select Quit game to Desktop. Returning to the Desktop clears the memory for a fresh start for the next session.
175 ml (3/4 bögre) langyos (40-43 °C) víz ( körülbelül 20 másodpercig melegítsük a mikróban )
1/2 teáskanál cukor
1-1/8 teáskanál por élesztő ( 1/2 csomag )
250 g (2 bögre) finomliszt
1/2 teáskanál só
40 ml (1/6 bögre) oliva olaj
2 vastag nagy pizzához
350 ml (1-1/2 bögre) langyos (40-43 °C) víz ( körülbelül 30 másodpercig melegítsük a mikróban )
1 teáskanál cukor
2-1/4 teáskanál por élesztő ( 1 csomag )
500 g (4 bögre) finomliszt
1 teáskanál só
80 ml (1/3 bögre) oliva olaj
Elkészítés
Keverjük össze a langyos vizet, cukrot és élesztőt egy kicsi edényben. Várjunk 10 percet, vagy amíg felhabzik.
A dagasztógép edényében 3-5 percig keverjük össze a lisztet, sót, oliva olajat és az élesztő keveréket a dagasztó hurokkal. A tészta kész, amikor lágy és rugalmas, és tisztán lejön az edéy faláról.
Ha vékony pizzát készítünk, kelesztés nélkül azonnal dolgozhatunk vele.
Ha vastag pizzát készítünk, vagy aznap később akarunk pizzát készíteni, formázzunk gömböt a tésztából és tegyük egy kiolajozott edénybe. Olajozzuk be a tésszta gömböt is és takarjuk le az edényt fóliával vagy fedéllel.
Ha vastag pizzát készítünk, kelesszük 30 percig, vagy tegyük be a hőtőbe amíg dolgozni kezdünk vele.
Ha nem akarunk aznap pizzát sütni, fagyasszuk le a a tésztát.
Baking
Melegítsük elő a sütőt a legmagasabb lehetséges hőmérsékletre.
Ha 290 °C-on sütünk, a pizza 8 – 10 perc alatt elkészül.
3/4 cup (6 fl oz) warm (105-110 °F) water ( around 20 seconds in the microwave )
1/2 teaspoon sugar
1-1/8 teaspoon active dry yeast ( 1/2 package )
2 cups all-purpose flour
1/2 teaspoon salt
1/6 cup (1.3 fl oz) olive oil
For 2 large thick crust pizzas
1-1/2 cup (12 fl oz) warm (105-110 °F) water ( around 30 seconds in the microwave )
1 teaspoon sugar
2-1/4 teaspoon active dry yeast ( 1 package )
4 cups all-purpose flour
1 teaspoon salt
1/3 cup (2.7 fl oz) olive oil
Instructions
In a small bowl whisk the water, sugar, and yeast together, Let it sit for about 10 minutes or until it froths up.
In the bowl of the mixer mix together the flour, salt, olive oil, and yeast mixture with the dough hook for about 3-5 minutes or until the dough is soft and elastic. It is done when it comes clean down from the side.
To make thin crust pizza, use the dough without proofing.
For thick crust pizza, or to use it later the same day, shape the dough into a ball and put it into an oiled bowl. Also, rub the dough with oil and cover it with a foil wrap or a lid.
For thick crust pizza proof it for 30 minutes.
To use it on another day freeze the dough.
Baking
Preheat the oven to the highest temperature it can provide.
If we bake on 550 °F, the pizza is done in 8 – 10 minutes.
If your WordPress site is already hosted at another provider you may be able to save money if you manage it yourself in AWS Lightsail.
Create the WordPress Lightsail instance
To migrate your existing site to AWS Lightsail, first create a WordPress Lightsail instance. See Host WordPress in AWS Lightsail
Migrate an existing site to a Lightsail WordPress instance
Export your old WordPress site
Log into you old WordPress site
Install the All-in-One WP Migration plugin to export the existing WordPress site.
Warning: This plugin can only import sites for free under 80 MB size. If your blog export file is larger, you need to buy the “All-in-One WP Migration Unlimited” plugin for $69.
Using the plugin export the old WordPress site. In the WordPress Dashboard select Plugins, All-in-One WP Migration, Export
Click Export to to select the export location
Select File as the export location. Other methods require you to pay additional fees to the plugin creators.
The export will start automatically
When the export process completed, download the export file
Close the browser window of the old site, and do not make any more modifications in the old WordPress blog.
Import the WordPress site into the new hosting location
Import the site into the new instance
Log into your new WordPress blog with the temporary credentials described at “Log into your WordPress blog” on Host WordPress in AWS Lightsail
Update the new WordPress instance to the version of your existing blog
Install and activate the All-in-One WP Migration plugin to import the existing WordPress site into the new location.
In the Dashboard select Plugins, All-in-One WP Migration, Import
The free plugin imports maximum 80 GB export files. If your site is larger, you need to purchase the “Unlimited” plugin. The price at the time of writing is $69.
Once you installed and activated the “Unlimited” plugin, start the import again.
Select the File option
If you have selected a too small instance you get the error message
There is not enough space available on the disk. Free up … GB of disk space.
In this case migrate your Lightsail instance to a larger type.
The import will display a few message boxes
Once the file has been uploaded to the instance the plugin is ready to for the modification. If you are really sure you want to overwrite the target WordPress installation, click Proceed to continue.
The actual update starts
When the update completed this message appears. If you are planing to change the domain name of the site slick the Save permalinks structure link.
Close the message with the FINISH button
Until the domain name and SSL certificate pointed to the new site
Update your “hosts” file
Permalinks in your WordPress blog contain the domain name of your site. To be able to test the new site until you point your domain to it, you can instruct your computer to use the public IP of the new site when you enter the domain name into the browser.
Open the /etc/hosts file in a text editor
Add this line and save the file:
PUBLIC_IP MY-BLOG.COM
Navigate to specific pages, not to the landing page
Open you site browsing to a specific page without using “https” in the URL to force the site to use the “http” protocol, ( MY-BLOG.COM/wp-admin/ or MY-BLOG.COM/archives/1). If you browse to the domain name only, ( MY-BLOG.COM ) the site will redirect you to the “https” protocol, the browser will constantly display warning messages, the page save and image upload will not work.
Your connection is not private
Attackers might be trying to steal your information from MY-BLOG.COM (for example, passwords, messages, or credit cards). Learn more
NET::ERR_CERT_AUTHORITY_INVALID
Once your domain has been pointed to the new LightSail instance
Update the links in the database
Replace the http://IP_ADDRESS with https://YOUR_DOMAIN
SSH into the LightSail instance as described above
Open the /opt/bitnami/wordpress/wp-config.php file cd /opt/bitnami/wordpress nano wp-config.php
Select the bitnami_wordpress database on the left side. In the wp_options table you can see the current configuration settings for ‘siteurl’ and ‘home’
On the top select the SQL tab, and enter the query below. Replace THE_OLD_URL and THE_NEW_URL with the actual values of your site. Make sure to set the correct “http” or”https” values for the old and new addresses.
set @old_url = 'http://THE_OLD_URL'; set @new_url = 'http://THE_NEW_URL'; UPDATE wp_options SET option_value = replace(option_value, @old_url, @new_url) WHERE option_name = 'home' OR option_name = 'siteurl'; UPDATE wp_posts SET post_content = replace(post_content, @old_url, @new_url); UPDATE wp_postmeta SET meta_value = replace(meta_value, @old_url, @new_url); UPDATE wp_usermeta SET meta_value = replace(meta_value, @old_url, @new_url); UPDATE wp_links SET link_url = replace(link_url, @old_url, @new_url); UPDATE wp_comments SET comment_content = replace(comment_content, @old_url, @new_url); UPDATE wp_posts SET post_content = replace(post_content, @old_url, @new_ur); UPDATE wp_links SET link_image = replace(link_image, @old_url, @new_ur); UPDATE wp_posts SET guid = replace(guid, @old_url, @new_url);
Click the Go button
Check the changes
To check the database changes execute the query select * from bitnami_wordpress.wp_options where option_name = 'siteurl' or option_name = 'home';
If you are just starting your WordPress blog, or you already have a site hosted somewhere AWS Lightsail provides a cost effective hosting solution.
To create a WordPress site in AWS Lightsail
Create a Lightsail instance
Log into your AWS account
Navigate to the Lightsail service
Set the instance location bu clicking on the Change AWS Region and Availability Zone
Select the Linux operating system (Linux has many application blueprints)
Select WordPress
Enable automatic snapshots to create daily backups
We will start with the smallest instance plan, it that serves the site well there is no reason to pay more for it.
Enter a unique name for this instance
If you want to keep track of project costs in your AWS account you can tag the instance with the project name in key-value tag
Click the Create instance button
Check the new WordPress site
You can test the WordPress site with your browser at the IP address shown on the page. For now just check if the site is running, we will log in once we created a static IP address below.
Create a static IP address
The IP address is your instance’s unique identifier on the internet. Behind the scene in the internet everything is addressed by IP addresses. Your domain name points there, and you can use it to connect to your instance. Lightsail instances have public IP addresses, but if you restart you instance it will change, so your site will be inaccessible to your visitors until you manually point your domain name to the new IP address. Statis IP addresses are free if those are connected to Lightsail instances, so there is no reason to not to create one.
On the Networking tab of your Lightsail instance click the Create static IP link
Enter a unique name for the static IP address
Click the Create button
Your site’s static IP address has been created
Log into your WordPress site
Get the temporary default password
To find the temporary default password we need to connect to the Lightsail instance
Connect to your Lightsail instance using a browser based SSH client by clicking the Connect using SSH button
or if you want to use your workstation’s terminal or any other SSH client, save the SSH key created by Lightsail in the ~/.ssh directory on your workstation. Click the Download default key link.
Execute this command in the SSH connection to get the temporary password
cat $HOME/bitnami_application_password
Log into your WordPress blog
Using your browser navigate to the login page using the public IP of your site MY_PUBLIC_IP/wp-login.php
Enter user as the user name, and the password copied from the terminal
Migrate your existing WordPress blog to the new Lightsail instance
Point your domain name to the new Lightsail instance
Once you set up your site, point your domain name to the new Lightsail instance.
Create an A (address) DNS record at your domain registrar to point your domain to the public IP address of your site.
Also create a CNAME record to redirect www. traffic to your domain.
After making DNS changes wait at least 30 minutes for the global propagation to the Lightsail instance.
Fix the permalinks
Once the domain is pointed to the WordPress site update the permalinks to include the domain name in the database entries.
Log into your WordPress blog’s dashboard
In the Settings menu select Permalinks
At the bottom click the Save Changes button
The confirmation message should appear on the top of the page
Set up a Let’s Encrypt SSL certificate
Secure the connectivity to your site with an SSL certificate. Let’s Encrypt provides free SSL certificates with auto renewal service, so you will never have to manage or pay for your SSL site certificate anymore.
If the Lightsail instance is directly exposed to the internet
If you don’t use load balancer, NGINX proxy or CDN (AWS Cloudfront) the Bitnami configuration script can create a Let’s Encrypt certificate and create a cron job for monthly automatic renewal.
Connect your Lightsail instance via an SSH connection described above
Execute the command
sudo /opt/bitnami/bncert-tool
Domains Please provide a valid space-separated list of domains for which you wish to configure your web server.
Enter the domain name of your site
The following domains were not included: www.MY-BLOG.COM. Do you want to add them? [Y/n]:
Answer Y
Enable/disable redirections Please select the redirections you wish to enable or disable on your Bitnami installation. Enable HTTP to HTTPS redirection [Y/n]:
Answer Y
Enable non-www to www redirection [Y/n]:
Answer N
Enable www to non-www redirection [y/N]:
Answer Y
The utility will list the pending changes. Do you agree to these changes? [Y/n]:
If you use a CDN network (AWS CloudFront) for content caching and delivery, you need to use the Alternative Approach to set up the Let’s Encrypt SSL certificate.
Our WordPress Lightsail instance uses the Approach A: Using system packages. configuration. (to check this, execute the command in the SSH terminal of your Lightsail instance:
test ! -f "/opt/bitnami/common/bin/openssl" && echo "Approach A: Using system packages." || echo "Approach B: Self-contained installation."
Follow the instructions below to set up the SSL certificate.