Mitgenosse / Gurkenplayer

Coop multiplayer project for Cities: Skylines.
MIT License
31 stars 6 forks source link

This Coop-Mod is not working anymore #6

Open DaniGTA opened 7 years ago

DaniGTA commented 7 years ago

https://drive.google.com/file/d/0B3N5niz28pjJSlZRUk5HZm1pZkk/view?usp=sharing

Mitgenosse commented 7 years ago

I never came to implement the synchronization of streets and buildings. That may be why it does not work :)

DaniGTA commented 7 years ago

ah, that make sense

Mitgenosse commented 7 years ago

I could not find an easy way to access the necessary building and street information. That's what prevented me from going further. If you have more info about it, maybe you can tell me/us?

DaniGTA commented 7 years ago

http://www.skylineswiki.com/Modding_API -Last Section

"Interfacing with the Unity Engine By including the Unity Engine namespace with using UnityEngine; direction, it is possible to access Unity's scripting API. http://docs.unity3d.com/ScriptReference/ Only the API from UnityEngine is available (Editor and others will not be). It is possible to create GameObjects dynamically, as well as MonoBehaviours and use the standard callback mechanic Unity provides."

Thats the only way in the API too set; get; objects. Here you can see how you can get the Info of a Building: https://github.com/lxteo/Cities-Skylines-Extended-Building-Info/blob/master/ExtendedBuildings/ExtendedLoading.cs

And here you can see how you can create streets: https://github.com/lxteo/Cities-Skylines-Mapper/blob/master/Mapper/RoadMaker.cs

Mitgenosse commented 7 years ago

That's pretty neat. Thanks for sharing!

Venryx commented 3 years ago

This is another mod adding multiplayer, which appears to work (from videos I've seen): https://github.com/CitiesSkylinesMultiplayer/CSM

Maybe worth adding to the readme? (at least unless/until work resumes on this mod)