Cities: Skylines II notes

These are some of the important features of Cities: Skylines II (also known as Cities: Skylines 2) released on October 14, 2023. This post is a work in progress, check back for more details as my city grows. Special thanks to Biffa for the great examples at Our Cities Skylines 2 Journey Starts Now! Are …

Locust installation and setup

Installation To install Locust, follow the instructions at Locust Installation Troubleshooting If the check fails with the error message ValueError: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 152 from C header, got 40 from PyObject Make sure you use the Anaconda virtual Python environment to avoid version conflicts between installed Python components. Create your …

Returning trains do not follow the station list in Railway Empire 2

When we select stations to define a rail line, only one way travel is defined. The returning train always selects the shortest path. In this example Vienna West is in the station list, the return path is not defined, so the train will return through Vienna Ost, the shorter path.   To make sure the returning …

Making a profit in Railway Empire 2

To increase profit (or reduce losses) you can make adjustments to your empire. Keep a train lines profitable Train completed last tour without freight If the train frequently leaves a station without freight, set the minimum number of wagons to 4 for that station. The train will wait at the station until at least 4 …

Error: MUI: The data grid component requires all rows to have a unique id property

Error: MUI: The data grid component requires all rows to have a unique id property.Alternatively, you can use the getRowId prop to specify a custom id for each row.A row was provided without id in the rows prop: The Material UI Data Grid needs to have a unique ID to identify the rows. To specify …

Build a high traffic railway station in Railway Empire 2

If only one main line runs through your railway station, but the traffic is very high, build a station with 8 tracks. To allow trains to use any track of the station, we could use 8 track gridirons, but those require long parallel tracks. We can use four 2 track gridirons, and combine the tracks …

Data access in Remix React.js web applications

Remix vastly simplifies access to backend processes by auto-generating all API calls between the browser and the web server. We only need to create the “loader()” function to get data from the server and the “action()” function to submit a form. Reading Environment variable values For security reasons the Node.js web application environment variables are …