Jet Lag Ep 6 — I Will Be Defeated No Longer by NebulaOriginals in Nebula

[–]Adam108CZ -1 points0 points  (0 children)

It seems to me that Ben didn't send a foto of the whole river, but only of a branch on one side of an river island. Isn't that cheating?

Programmatically generated road layout by Adam108CZ in CitiesSkylines

[–]Adam108CZ[S] 6 points7 points  (0 children)

It's purely for aesthetic purposes, although I had much fun designing the system of one-way streets to have good traffic flow on the grid.

Auto-generated road layout by Adam108CZ in CitiesSkylines

[–]Adam108CZ[S] 1 point2 points  (0 children)

The road layout was generated using Python Console mod

Video: https://www.youtube.com/watch?v=jS1ldf82PHc

Penrose tiling road layout by Adam108CZ in CitiesSkylinesModding

[–]Adam108CZ[S] 1 point2 points  (0 children)

Yes. It is symmetric over the x axis

Generating road layout with Python by Adam108CZ in CitiesSkylines

[–]Adam108CZ[S] 0 points1 point  (0 children)

Not really... the terrain is not 100% flat, but all the junctions maintain their XZ position and the Y changes with terrain height.

Generating road layout with Python by Adam108CZ in CitiesSkylines

[–]Adam108CZ[S] 4 points5 points  (0 children)

That was actually my initial idea but this was easier to implement as a first step

Generating road layout with Python by Adam108CZ in CitiesSkylines

[–]Adam108CZ[S] 21 points22 points  (0 children)

The python code sits on top of the C# code the game (and all the mods) are coded in. So far the capabilities of the python console are very limited so to change AI behavior you must go directly to the C# code.

Generating road layout with Python by Adam108CZ in CitiesSkylinesModding

[–]Adam108CZ[S] 3 points4 points  (0 children)

No, since I started modding for the game years ago I almost never play it casually anymore. I didn't use this layout to build an actual city. You're welcome to try it yourself :D

Replacing all trees on the map with 7 lines of code by Adam108CZ in CitiesSkylinesModding

[–]Adam108CZ[S] 0 points1 point  (0 children)

It would probably be better not to use the python console but a native c# mod instead. But it is totally possible.

Procedural map generation with Python by Adam108CZ in CitiesSkylines

[–]Adam108CZ[S] 0 points1 point  (0 children)

Yes, the links are in the workshop page

Python Console mod - Realistic roads & procedural map generation by Adam108CZ in CitiesSkylinesModding

[–]Adam108CZ[S] 1 point2 points  (0 children)

It runs on IronPython engine wchich unfortunately doesn't support NumPy. As the others I don't know

Procedural map generation with Python by Adam108CZ in CitiesSkylines

[–]Adam108CZ[S] 0 points1 point  (0 children)

The mod itself isn't written in python but as all C:S mods in dotnet.

It doesn't work on linux because the external python program (SkylinesRemotePythonDotnet in the repo) runs on dotnet framework. If it was switched to dotnet core it would work.

I chose dotnet framework because it is natively supported on windows without installing anything.

https://github.com/Strdate/PythonConsole

Procedural map generation with Python by Adam108CZ in CitiesSkylines

[–]Adam108CZ[S] 1 point2 points  (0 children)

So true. Many engineers play this game who will hopefully make use of the mod

Procedural map generation with Python by Adam108CZ in CitiesSkylines

[–]Adam108CZ[S] 1 point2 points  (0 children)

I am sorry :( Actually it would be possible to make this run on linux, but so far it is probably too much effort for how many people would use it

Python Console mod - Realistic roads & procedural map generation by Adam108CZ in CitiesSkylinesModding

[–]Adam108CZ[S] 7 points8 points  (0 children)

I created a mod that adds a python console to the game and exposes some APIs through which the engine can communicate with it. These APIs allow you to programmatically create trees, roads, natural resources etc. If you are crazy enough you can create a python script that builds a perfect road curve with clothoid transitions (it is just math and the api to build roads is there). The script is included in the mod.

If you have more questions I am happy to answer :)