1. Dashboard
  2. Forum
  3. Filebase
  4. Lexikon
  5. Artikel
  6. Spieletest
  7. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  8. Zur Transport Fever Community
  • Anmelden
  • Registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Forum
  • Filebase-Eintrag
  • Lexikon
  • Artikel (Bewertungssystem)
  • Erweiterte Suche
  1. WiSim Welt
  2. Forum
  3. Spiele
  4. Cities in Motion
  5. Discussions about Cities in Motion
  6. Problems

Metro Crossing Mod

  • Syrikzero
  • 26. November 2011 um 12:45
  • Syrikzero
    Anfänger
    Beiträge
    22
    • 26. November 2011 um 12:45
    • #1

    Ive been up all night trying to figure out what is the grid path for ground metros.

    Here is what i'm working with right now

    Zitat

    this.width = 4;
    this.length = 4;
    this.flags = GRID_ITEM_COVER | GRID_ITEM_LOCK_GROUND | GRID_ITEM_CROSS_TRACK;
    this.connections = 0x11000044;
    this.type = GRID_ITEM_SMALL_ROAD;
    //this.storeMesh = true;

    this.offsetx = 0;
    this.offsetz = 0;

    with (this.loadSkeleton("crossing_scene.skeleton")) {
    .loadAnimation("default", "crossing_anim.animation", 0);
    .playAnimation("default", 1.0);
    }

    this.doorOpenStart = 0.0;
    this.doorOpenLen = 30.0 / 30.0;
    this.doorCloseStart = 35.0 / 30.0;
    this.doorCloseLen = 30.0 / 30.0;

    event this.onLoaded::() {
    this.setPathFlags("t-a0", GRID_PATH_INTERSECTION | GRID_PATH_ROAD_SMALL);
    this.setPathFlags("t-a1", GRID_PATH_INTERSECTION | GRID_PATH_ROAD_SMALL);
    this.setPathFlags("t-b0", GRID_PATH_INTERSECTION | GRID_PATH_ROAD_SMALL);
    this.setPathFlags("t-b1", GRID_PATH_INTERSECTION | GRID_PATH_ROAD_SMALL);
    this.setPathFlags("t-c0", GRID_PATH_INTERSECTION | GRID_ITEM_GROUND_METRO);
    this.setPathFlags("t-c1", GRID_PATH_INTERSECTION | GRID_ITEM_GROUND_METRO);
    this.setPathFlags("t-d0", GRID_PATH_INTERSECTION | GRID_ITEM_GROUND_METRO);
    this.setPathFlags("t-d1", GRID_PATH_INTERSECTION | GRID_ITEM_GROUND_METRO);

    with (this.moveSound = new_sound(this)) {
    .load("/metro/sounds/Level crossing warning bell-1.wav");
    .volume = 0.5;
    .minDistance = 50.0;
    .maxDistance = 300.0;
    }

    Alles anzeigen

    The red is showing where I think I went wrong

    • Zitieren
  • eis_os
    Profi
    Beiträge
    1.025
    Filebase Einträge
    2
    • 26. November 2011 um 13:40
    • #2

    You can't use an ITEM constants in a path, all CIM constants can be found in the scratch pad. Path points won't be able to connect if their location isn't near a other path point. So even if your object has right path, it won't mean it's usable...

    • Zitieren
  • Syrikzero
    Anfänger
    Beiträge
    22
    • 26. November 2011 um 14:01
    • #3

    I know it possible to make a Metro crossing here the rest of what I have so far I believe.

    "this.width = 4;
    this.length = 4;
    this.flags = GRID_ITEM_COVER | GRID_ITEM_LOCK_GROUND | GRID_ITEM_CROSS_TRACK;
    this.connections = 0x11000044;
    this.type = GRID_ITEM_SMALL_ROAD;
    //this.storeMesh = true;

    this.offsetx = 0;
    this.offsetz = 0;

    with (this.loadSkeleton("crossing_scene.skeleton")) {
    .loadAnimation("default", "crossing_anim.animation", 0);
    .playAnimation("default", 1.0);
    }

    this.doorOpenStart = 0.0;
    this.doorOpenLen = 30.0 / 30.0;
    this.doorCloseStart = 35.0 / 30.0;
    this.doorCloseLen = 30.0 / 30.0;

    event this.onLoaded::() {
    this.setPathFlags("t-a0", GRID_PATH_INTERSECTION | GRID_PATH_ROAD_SMALL);
    this.setPathFlags("t-a1", GRID_PATH_INTERSECTION | GRID_PATH_ROAD_SMALL);
    this.setPathFlags("t-b0", GRID_PATH_INTERSECTION | GRID_PATH_ROAD_SMALL);
    this.setPathFlags("t-b1", GRID_PATH_INTERSECTION | GRID_PATH_ROAD_SMALL);
    this.setPathFlags("t-c0", GRID_PATH_INTERSECTION | GRID_PATH_TRAIN_TRACK);
    this.setPathFlags("t-c1", GRID_PATH_INTERSECTION | GRID_PATH_TRAIN_TRACK);
    this.setPathFlags("t-d0", GRID_PATH_INTERSECTION | GRID_PATH_TRAIN_TRACK);
    this.setPathFlags("t-d1", GRID_PATH_INTERSECTION | GRID_PATH_TRAIN_TRACK);
    this.setPathFlags("t-e0", GRID_PATH_INTERSECTION | GRID_PATH_METROG_BASIC);
    this.setPathFlags("t-e1", GRID_PATH_INTERSECTION | GRID_PATH_METROG_BASIC);
    this.setPathFlags("t-f0", GRID_PATH_INTERSECTION | GRID_PATH_METROG_BASIC);
    this.setPathFlags("t-f1", GRID_PATH_INTERSECTION | GRID_PATH_METROG_BASIC);
    }

    with (this.moveSound = new_sound(this)) {
    .load("/metro/sounds/Level crossing warning bell-1.wav");
    .volume = 0.5;
    .minDistance = 50.0;
    .maxDistance = 300.0;
    }"

    I think this might be right still playing around.

    • Zitieren
  • eis_os
    Profi
    Beiträge
    1.025
    Filebase Einträge
    2
    • 26. November 2011 um 15:21
    • #4

    ?( Looks like you don't want help as you still use a non existend GRID constant. Don't expect me to follow this thread ..

    • Zitieren
  • Syrikzero
    Anfänger
    Beiträge
    22
    • 26. November 2011 um 16:40
    • #5

    Idk where to begin to be honest I just figured use the same format as the tram mod you know the tram crossing I assume they are both dramatically different So exactly how do I get the metro to cross I mean in general doesn't need to look like a actual RR crosing just a track over road I just thought a second ago I could use a misc. item to give that crossing illusion. Then again a real crossing would be nice this is my 1st time actually working on a script. I don.t count the Illumination for custom metros.

    Also that what I was meaning to ask what is the metro's grid name. Or if it even in that classification how would I make it enable to share with the road.

    A better idea is how could we connect State Track with Metro Track and have each one work hand in hand.

    • Zitieren

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!

Benutzerkonto erstellen Anmelden

Twitch

  1. Datenschutzerklärung
  2. Impressum
Community-Software: WoltLab Suite™