-
Content Count
3 -
Joined
-
Last Visited
Community Reputation
0 Clean SlateAbout CynCeyd
-
Rank
Freshman
-
Create road(s) programatically
CynCeyd replied to CynCeyd's topic in Cities: Skylines Modding - Open Discussion
That's what I already did with CreateNode. There are two strange things about this: Firstly, for some reason I don't know yet, when I hook CreateNode and just click on the road tool bar a few thousand nodes get created (yet with no visible effect) and secondly the roads never connect (both before and after using the forked code to adjust the height correctly). I serialized all parameters from a called CreateNode and dispatched them to the clients - I verified the data and it was identical on all clients. That's why I believe I'm missing something in order to create a road correctly. Perhaps you can tell me, whether I require to synchronize CreateSegment as well in order to correctly create or more correctly connect the roads. -
Create road(s) programatically
CynCeyd replied to CynCeyd's topic in Cities: Skylines Modding - Open Discussion
Hi, thank you @boformer. I will take a look on that later. To answer your question: I'm trying to create a simple server / client system which automatically dispatches the clients actions (just like "creating" a road) to all the other clients. That stuff works great already, just the road dispatchment won't quite work. I would be happy to have a single way to solve my issue, but it seems like you have much more experience on modding this game. Please excuse me, if this didn't quite answer your question. -
Hi, I'm currently experimenting with Cities: Skylines modding and I am pretty much stuck on one issue. I'd like to create roads (including the connection of those and thereby creating intersections). Unfortunately my research wasn't successful yet and I have no clue what I could do now apart from asking here. I already tried to hook the NetTool (by hooking the IL code and capturing the CreateNode / CreateNodeImpl function) and calling NetTool.CreateNode manually afterwards. To some extent this works (without any extra code it does create the road, but look at the attachment for results). I also forked some GitHub repository that contained code which allowed me to at least create roads at the correct height, but they never connected and thus never created intersections. I guess I'm missing some code to seperately create an intersection which respectively creates "correct" roads, but I'm lost here. Can someone please give me a hint on this issue? Thanks in advance
