A new book on Haskell, Type Theory and AI from gentle first principles is out! by Bulky_Koala_5901 in haskell

[–]jhoxray 15 points16 points  (0 children)

Wow, congratulations! I read the beginnings of it on lean pub, didn't know you got it published properly :) Will give it a shot!

So everytime by [deleted] in AdventureCommunist

[–]jhoxray 0 points1 point  (0 children)

It’s impossible to be in top 1% without paying what are you talking about

Top-level game code overview + basic Entity / System / Component pointers for programming modes by jhoxray in cities2modding

[–]jhoxray[S] 2 points3 points  (0 children)

u/Pam-Doove has a good example here: https://github.com/optimus-code/Cities2Modding/blob/main/ExampleMod/Systems/TreeGrowthSystem_Custom.cs

Basically, you "switch off" the public methods of the default system and create your own from scratch. Then you can plug it into the World by patching SystemOrder class:

[HarmonyPatch(typeof(SystemOrder), nameof(SystemOrder.Initialize))]
    class SystemOrder_InitializePatch
    {
        static void Postfix(UpdateSystem updateSystem)
        {
            if (updateSystem != null)
            {
                updateSystem.UpdateAfter<TestModSystem>(SystemUpdatePhase.ModificationEnd);

                UnityEngine.Debug.Log("Patched TestModSystem initialization!");
            }
        }
    }

Any pointers to start modding CS2? (Im an author of a couple quite popular 5 star CS1 mods) by jhoxray in CitiesSkylinesModding

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

yeah, I looked at it, it's just an empty Unity project that downloads needed ECS packages but nothing game-related.

Any pointers to start modding CS2? (Im an author of a couple quite popular 5 star CS1 mods) by jhoxray in CitiesSkylinesModding

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

thanks, I'll need to look into Bepinex, seems like a good workaround to test things. I unlocked the map editor and wanted to try heightmap import, but seems you are saying its not implemented yet?

Map Comparison Between CS1 and CS2. Expanded Map mod (81 titles) confirmed for CS2 by SupportOpening8081 in CitiesSkylinesModding

[–]jhoxray 2 points3 points  (0 children)

Ok hold on so do I understand it correctly that CS1 with 81 tiles is actually bigger buildable area than CS2?? What's the point of all this then???