-
Content Count
12 -
Joined
-
Last Visited
Community Reputation
0 Clean SlateAbout Jarko
-
Rank
Freshman
Recent Profile Visitors
-
BadPeanut: Road Modding [WIP] first look for a new bridge (SHB)
Jarko replied to Bad Peanut's topic in Cities: Skylines Modding - Open Discussion
yeah it's not letting me -
BadPeanut: Road Modding [WIP] first look for a new bridge (SHB)
Jarko replied to Bad Peanut's topic in Cities: Skylines Modding - Open Discussion
Ah gotcha. Hmm, what might be a solution is to upload them twice, once for each DLC. But that's up to you. Btw, I hope I didn't come across as bitching, that was not my intention. -
BadPeanut: Road Modding [WIP] first look for a new bridge (SHB)
Jarko replied to Bad Peanut's topic in Cities: Skylines Modding - Open Discussion
It might be I'm missing something, and if that's the case, I'm sorry. But if they come in Mass Transit, shouldn't they be marked as Mass Transit DLC, instead of After Dark? -
BadPeanut: Road Modding [WIP] first look for a new bridge (SHB)
Jarko replied to Bad Peanut's topic in Cities: Skylines Modding - Open Discussion
Hmm, odd. I have MT, but not AD, and I do have access to bus lanes. -
BadPeanut: Road Modding [WIP] first look for a new bridge (SHB)
Jarko replied to Bad Peanut's topic in Cities: Skylines Modding - Open Discussion
Very nice, thanks! One question though, why is the road with bus lanes marked as after dark DLC required? -
Allowing trains to stop at both sides of the station
Jarko replied to Jarko's topic in Cities: Skylines Modding - Open Discussion
Welp, I managed to make something that works OK enough: http://steamcommunity.com/sharedfiles/filedetails/?id=1269478692 -
Allowing trains to stop at both sides of the station
Jarko replied to Jarko's topic in Cities: Skylines Modding - Open Discussion
Hmm, so there is two parts to it. One is changing the direction of the station track to both. That works. But there is something in the way that has to do with the track being fixed to the station. If I make it unprotected with boformer's script, I am able to select individual lanes for the lines. I can't find a way to make the tracks unprotected by default though. It is not in their `info` instance, but does appear as soon as they are created along with the trainstation. So I thought that I could make a toggle out of boformer's script, that can temporarily unprotect the tracks to create a line. I'm struggling with the implementation of that though. I created a listener class that should do it, but on itself it isn't doing much: public class ToggleOptions : MonoBehaviour { private bool tracksProtected = true; void update() { if((Input.GetKey(KeyCode.LeftControl) || Input.GetKey(KeyCode.RightControl)) && Input.GetKeyDown(KeyCode.P)) { Debug.Log("Sign of life"); var mgr = NetManager.instance; for (var i = 0; i < mgr.m_segments.m_size; i++) { if (mgr.m_segments.m_buffer[i].m_flags == NetSegment.Flags.None || mgr.m_segments.m_buffer[i].Info.name != "Train Station Track") continue; if (tracksProtected) { mgr.m_segments.m_buffer[i].m_flags &= ~NetSegment.Flags.Untouchable; } else { mgr.m_segments.m_buffer[i].m_flags |= NetSegment.Flags.Untouchable; } tracksProtected = !tracksProtected; } } } } -
Allowing trains to stop at both sides of the station
Jarko replied to Jarko's topic in Cities: Skylines Modding - Open Discussion
Maybe this will make things clearer: I confirmed that setting the direction of all lanes in the station track to `Direction.Both` allows this, but only if I separate the tracks from the station using this script. Without that, there seems to be a point in the middle of the track that blocks the hitbox of the individual lanes. -
Allowing trains to stop at both sides of the station
Jarko replied to Jarko's topic in Cities: Skylines Modding - Open Discussion
I don't think that's exactly what I was looking for though. I'm looking to be able to specify which lane within each station track segment. -
Allowing trains to stop at both sides of the station
Jarko replied to Jarko's topic in Cities: Skylines Modding - Open Discussion
hmm, so it seems... thanks. -
Allowing trains to stop at both sides of the station
Jarko replied to Jarko's topic in Cities: Skylines Modding - Open Discussion
Hmm I think I found a way. Changing both lanes from a train station track to Direction.Both allows both tracks to be selected individually: var netInfo = PrefabCollection<NetInfo>.FindLoaded("Train Station Track"); foreach(var lane in netInfo.m_lanes) { lane.m_direction = NetInfo.Direction.Both; } Debug.Log("Success"); Now to work this into a mod... -
Allowing trains to stop at both sides of the station
Jarko posted a topic in Cities: Skylines Modding - Open Discussion
Hi everybody, I have been playing a bunch of Cities Skylines recently, and I love the work the community has done modding trainstations and such. There is one thing bothering me though: That is that my intercity trains have to wait for the slow stopping trains, instead of passing via the other track in a station. I understand it is hard to modify the pathfinding of trains, so I thought that forcing the stopping trains to stop on the left side on the track, this would allow non-stopping trains to pass on the (default) right. The setup I have is two double one-way tracks in a 4 track station. One thing I noticed was that in the vanilla game, the trains always enter the station so that they leave on the right side (as far as I am aware, or it was entering, something like that at least). So I was looking for a way to allow selection of either of the lanes of the station track. I've been spelunking a bit in the code of CS, but I must admit, I am new to modding, and a bit lost. So I stumbled onto this discussion and figured that maybe if I replaced the tracks in the station with double one-way tracks, this might just work. I do see that there is a special lane type for stations, so I'm not sure if this is possible without modification. Anyways, my question is if you have any suggestions or pointers for how to approach this. Thanks
