Jump to content

Jarko

Member
  • Content Count

    12
  • Joined

  • Last Visited

Community Reputation

0 Clean Slate

About Jarko

  • Rank
    Freshman

Recent Profile Visitors

111 Profile Views
  1. 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.
  2. 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?
  3. Hmm, odd. I have MT, but not AD, and I do have access to bus lanes.
  4. Very nice, thanks! One question though, why is the road with bus lanes marked as after dark DLC required?
  5. Welp, I managed to make something that works OK enough: http://steamcommunity.com/sharedfiles/filedetails/?id=1269478692
  6. 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; } } } }
  7. 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.
  8. 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.
  9. 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...
  10. 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
×