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. Probleme

Problme mit editor - kann keine neue karte starten - bei abruch spielabsturz

  • Coaster
  • 19. November 2011 um 13:56
  • Coaster
    Anfänger
    Beiträge
    31
    • 19. November 2011 um 13:56
    • #1

    Hallo, ich kann seit kurzem keine karte im editor starten, wenn ich das dann abbreche, stürzt das spiel ab

    hier die Log:

    Opened log in "userdata/log_metro.txt".
    Version: 1.0.21
    initializing FMOD...
    [done]
    initializing OpenGL-window...
    [done]
    Loaded language "de"
    Engine initialization finished
    Loading ui...
    [done]
    Loading addon "addons/Combino_FR"...
    [done]
    Loading addon "addons/KBF_Mod"...
    [done]
    Loading addon "addons/KBF_Mod_Farbpool"...
    [done]
    Loading addon "addons/SCN_Hypnoplan_42"...
    [done]
    Loading addon "addons/SCN_LF1"...
    [done]
    Loading addon "addons/SCN_LF2"...
    [done]
    Loading addon "addons/eis_os_trampuzzle_04"...
    [done]
    Loading addon "addons/mappack01"...
    [done]
    Loading addon "addons/munich"...
    [done]
    Loading addon "addons/railway_metro"...
    [done]
    Loading addon "addons/rvrtr1m-cw"...
    [done]
    Loading addon "addons/rvrtr1m-cw1"...
    [done]
    Loading addon "addons/rvrtr2m-cw"...
    [done]
    Loading addon "addons/rvrtr2m-cw1"...
    [done]
    Loading addon "addons/rvrtr3m-cw"...
    [done]
    Loading addon "addons/rvrtr3m-cw1"...
    [done]
    Loading addon "addons/stationpack01"...
    [done]
    Loading addon "addons/tatra-t3-cc-TB"...
    [done]
    Loading addon "addons/tatra-t3-cc-TBB"...
    [done]
    Loading addon "addons/tatra-t3-cc-TL"...
    [done]
    Loading addon "addons/tatra-t3-cc-TLB"...
    [done]
    Loading addon "addons/tatra-t3-cc-TLL"...
    [done]
    Loading addon "addons/tatra-t3-cc-TT"...
    [done]
    Loading addon "addons/tatra-t3-cc-TTB"...
    [done]
    Loading addon "addons/tatra-t3-cc-TTT"...
    [done]
    Loading addon "addons/tatra-t3-cc-solo"...
    [done]
    Loading addon "addons/tatra-t3-dresden-TB"...
    [done]
    Loading addon "addons/tatra-t3-dresden-TBB"...
    [done]
    Loading addon "addons/tatra-t3-dresden-TL"...
    [done]
    Loading addon "addons/tatra-t3-dresden-TLB"...
    [done]
    Loading addon "addons/tatra-t3-dresden-TLL"...
    [done]
    Loading addon "addons/tatra-t3-dresden-TT"...
    [done]
    Loading addon "addons/tatra-t3-dresden-TTB"...
    [done]
    Loading addon "addons/tatra-t3-dresden-TTT"...
    [done]
    Loading addon "addons/tatra-t3-dresden-solo"...
    [done]
    Loading addon "addons/tatra-t3-leipzig1-TB"...
    [done]
    Loading addon "addons/tatra-t3-leipzig1-TBB"...
    [done]
    Loading addon "addons/tatra-t3-leipzig1-TL"...
    [done]
    Loading addon "addons/tatra-t3-leipzig1-TLB"...
    [done]
    Loading addon "addons/tatra-t3-leipzig1-TLL"...
    [done]
    Loading addon "addons/tatra-t3-leipzig1-TT"...
    [done]
    Loading addon "addons/tatra-t3-leipzig1-TTB"...
    [done]
    Loading addon "addons/tatra-t3-leipzig1-TTT"...
    [done]
    Loading addon "addons/tatra-t3-leipzig1-solo"...
    [done]
    Loading addon "addons/tatra-t3-leipzig2-TB"...
    [done]
    Loading addon "addons/tatra-t3-leipzig2-TBB"...
    [done]
    Loading addon "addons/tatra-t3-leipzig2-TL"...
    [done]
    Loading addon "addons/tatra-t3-leipzig2-TLB"...
    [done]
    Loading addon "addons/tatra-t3-leipzig2-TLL"...
    [done]
    Loading addon "addons/tatra-t3-leipzig2-TT"...
    [done]
    Loading addon "addons/tatra-t3-leipzig2-TTB"...
    [done]
    Loading addon "addons/tatra-t3-leipzig2-TTT"...
    [done]
    Loading addon "addons/tatra-t3-leipzig2-solo"...
    [done]
    Loading addon "addons/tokyo"...
    [done]
    Loading addon "addons/vehiclepack01"...
    [done]
    Loading addon "addons/vehiclepack02"...
    [done]
    Loading addon "addons/vehiclepack03"...
    [done]
    Loading addon "addons/vehiclepack04"...
    [done]
    Loading achievements...
    [done]
    Loading main menu...
    [done]
    Steam initialized
    Start map editor
    Error: Runtime error in "metro/ui/menus/editor.script" at line 117: Array index out of bounds (4)!
    Error: Runtime error in "metro/ui/menus/mainmenu.script" at line 249: Internal error!


    ich hoffe, ihr könnt mir helfen.


    edit: hat denn keiner ne idee??

    Gruß aus dem Emsland

    Coaster

    Einmal editiert, zuletzt von Coaster (21. November 2011 um 14:11)

    • Zitieren
  • Coaster
    Anfänger
    Beiträge
    31
    • 24. November 2011 um 16:54
    • #2

    sorry für doppelpost, aber hat denn keiner ne idee??

    Gruß aus dem Emsland

    Coaster

    • Zitieren
  • Speedy
    Meister
    Beiträge
    2.067
    Filebase Einträge
    21
    • 24. November 2011 um 17:04
    • #3

    Du hast nicht zufällig den Mod "Mehr Karten für den Editor"? Denn die Zeile 117 in der editor.script ändert die Anzahl der möglichen Karten. Und eventuell passt das gerade nicht mit den andreen Mods zusammen.

    • Zitieren
  • Coaster
    Anfänger
    Beiträge
    31
    • 24. November 2011 um 19:03
    • #4

    ich wüßte jetzt nicht, das ich diesen Mod hab, aber die script sieht so aus:

    $desktop = MAIN.$desktop;
    $strings = MAIN.$strings;
    $settings = MAIN.$settings;
    $menu = MAIN.$main.$menu;

    $cityname = changeFileExt(extractFileName(MAIN.$gridFileName), "");
    $startdate = MAIN.$gridStartingDate;
    $citylocation = MAIN.$gridLocation;
    $cellsize = MAIN.$gridCellSize;
    $description = MAIN.$gridDescription;

    $box = MAIN.$ui.createHudElement(int(($desktop.width - 1000) * 0.5), int(($desktop.height - 600) * 0.5), 1000, 600, 1 | 2 | 4 | 8, $desktop);
    $box.canActivate = true;
    $box.active = true;
    $box.$content.canActivate = true;
    $box.$content.active = true;

    $title = MAIN.$ui.createHeadingBar($box, expandPattern($strings.$menu_mapSettings_title, $numPassed, $totalNum));

    with ($nameTitle = new_control($box.$content)) {
    .setRect(40, 60, 200, 18);
    MAIN.$ui.setTextFont(current);
    .textAlign = ALIGN_MIDDLE | ALIGN_LEFT;
    .text = $strings.$menu_mapName_title;
    .visible = true;
    .canActivate = false;
    }
    with ($nameInput = new_editControl($box.$content)) {
    .setBorder(0xFF777777, 2);
    .setRect(40, 80, 280, 25);
    .background = 0x60777777;
    .setMargins(2, 5, 2, 2);
    MAIN.$ui.setTextFont(current);
    .caretColor = 0xFFFFFFFF;
    .maxLength = 32;
    .text = $cityname;
    .selStart = #$cityname;
    .visible = true;
    event .onCheckInput::($key) {
    .rejectInput = !($key >= 'a' && $key <= 'z' || $key >= 'A' && $key <= 'Z' || $key >= '0' && $key <= '9' || $key >= ',' && $key <= '.' || $key == '_' || $key == ' ' || $key >= 192);
    }
    event .onChange::() {
    $cityname = .text;
    }
    }

    with ($yearTitle = new_control($box.$content)) {
    .setRect(320, 140, 300, 18);
    MAIN.$ui.setTextFont(current);
    .textAlign = ALIGN_MIDDLE | ALIGN_LEFT;
    .text = $strings.$menu_mapYear_title;
    .visible = true;
    .canActivate = false;
    }
    $tempClock = clock(0, $startdate);
    $yearEdit = MAIN.$ui.createNumberEdit($box.$content, 320, 160, 100, 25, 1920, 2020, 5, "%0", $tempClock.years);
    delete $tempClock;
    $yearEdit.setBorder(0xFF777777, 2);
    $yearEdit.background = 0;
    $yearEdit.$action = macro :: $startdate = mkdate(1, 1, $yearEdit.$value);

    with ($locationTitle = new_control($box.$content)) {
    .setRect(40, 120, 200, 18);
    MAIN.$ui.setTextFont(current);
    .textAlign = ALIGN_MIDDLE | ALIGN_LEFT;
    .text = $strings.$menu_mapLocation_title;
    .visible = true;
    .canActivate = false;
    }
    with ($locationArea = new_control($box.$content)) {
    .setRect(40, 140, 200, 260);
    .setBorder(0xFF777777, 2);
    .visible = true;
    .canActivate = false;
    }
    with ($locationBox = MAIN.$ui.createScrollArea($locationArea, 2, 2, $locationArea.width - 4, $locationArea.height - 4)) {
    .$content.background = 0;
    $y = 0;
    }
    function addLocation($location) {
    $name = $strings.getVariable("location_"+extractFileName($location)+"_name");
    if (!(defined $name)) $name = extractFileName($location);
    $button = MAIN.$ui.createChoiceButton($locationBox.$content, $locationArea, 0, $y, $locationBox.$content.width, 18, $name, macro($location) :: $citylocation = $0);
    if ($citylocation == $location) MAIN.$ui.selectChoiceButton($button, $locationArea);
    $y += 18;
    }
    foreach (list_dirs("metro/locations")) {
    addLocation("metro/locations/"+current);
    }
    foreach (list_dirs("metro/location-data")) {
    if (file_exists("metro/location-data/"+current+"/location.script")) {
    addLocation("metro/location-data/"+current);
    }
    }
    foreach (MAIN.$addons.$locations) {
    addLocation(current);
    }

    with ($sizeTitle = new_control($box.$content)) {
    .setRect(320, 200, 200, 18);
    MAIN.$ui.setTextFont(current);
    .textAlign = ALIGN_MIDDLE | ALIGN_LEFT;
    .text = $strings.$menu_mapSize_title;
    .visible = true;
    .canActivate = false;
    }
    with ($sizeArea = new_control($box.$content)) {
    .setRect(320, 220, 200, 180);
    .setBorder(0xFF777777, 2);
    .visible = true;
    .canActivate = false;
    }
    with ($sizeBox = MAIN.$ui.createScrollArea($sizeArea, 2, 2, $sizeArea.width - 4, $sizeArea.height - 4)) {
    .$content.background = 0;
    $y = 0;
    }
    for ($i = 0; $i < 11; ++$i) {
    $button = MAIN.$ui.createChoiceButton($sizeBox.$content, $sizeArea, 0, $y, $sizeBox.$content.width, 18, $strings.$menu_mapSize_items[$i], macro(($i + 2) * 256) :: $cellsize = $0);
    if ($cellsize == ($i + 2) * 256) MAIN.$ui.selectChoiceButton($button, $sizeArea);
    $y += 18;
    }

    with ($descTitle = new_control($box.$content)) {
    .setRect(40, 420, 910, 18);
    MAIN.$ui.setTextFont(current);
    .textAlign = ALIGN_MIDDLE | ALIGN_LEFT;
    .text = $strings.$menu_mapDescription_title;
    .visible = true;
    .canActivate = false;
    }
    with ($descInput = new_editControl($box.$content)) {
    .setBorder(0xFF777777, 2);
    .setRect(40, 440, 910, 25);
    .background = 0x60777777;
    .setMargins(2, 5, 2, 2);
    MAIN.$ui.setTextFont(current);
    .caretColor = 0xFFFFFFFF;
    .maxLength = 256;
    .text = $description;
    .selStart = #$description;
    .visible = true;
    event .onCheckInput::($key) {
    .rejectInput = $key < 32;//!($key >= 'a' && $key <= 'z' || $key >= 'A' && $key <= 'Z' || $key >= '0' && $key <= '9' || $key == '_');
    }
    event .onChange::() {
    $description = .text;
    }
    }

    if (MAIN.$grid : false) {
    $locationBox.enabled = false;
    foreach ($locationBox.$content.children()) {
    .visibility = 0.3;
    }
    $sizeBox.enabled = false;
    foreach ($sizeBox.$content.children()) {
    .visibility = 0.3;
    }
    }

    with ($okButton = $menu.createMenuButton($box.$content, $strings.$menu_ok_button, "ok")) {
    .setRect(40, $box.$content.height - .height - 20, .width, .height);
    }

    with ($backButton = $menu.createMenuButton($box.$content, $strings.$menu_cancel_button, "back")) {
    .setRect($box.$content.width - .width - 40, $box.$content.height - .height - 20, .width, .height);
    }

    event this.onDestroy::() {
    delete $box;
    }

    ich kenne mich leider damit nicht so aus um den genauen Fehler zu finden

    Gruß aus dem Emsland

    Coaster

    • Zitieren
  • Speedy
    Meister
    Beiträge
    2.067
    Filebase Einträge
    21
    • 24. November 2011 um 22:33
    • #5
    Zitat von Coaster

    .$content.background = 0;
    $y = 0;
    }
    for ($i = 0; $i < 11; ++$i) {
    $button = MAIN.$ui.createChoiceButton($sizeBox.$content, $sizeArea, 0, $y, $sizeBox.$content.width, 18, $strings.$menu_mapSize_items[$i], macro(($i + 2) * 256) :: $cellsize = $0);


    Es geht dabei um die rot markierte Zeile. Du hast also den Mehr -Karten-Mod drin. Was du aber nicht geändert hast ist die "de.strings". Die findest du im Ordner "string".
    Dort sollte dann diese Zeile stehen.

    Code
    $menu_mapSize_items = ["winzig (256x256)", "Klein (512x512)", "Mittel (768x768)", "Groß (1024x1024)", "XL (1280x1280)", "XXL (1536x1536)", "noch größer (1792x1792)", "noch viel größer (2048x2048)", "nochmal eins größer (2304x2304)", "extrem groß (2560x2560)", "richtig extrem groß (2816x2816)"];


    Genau diese Zeile kopierst du und überschreibst damit die Vorhandene.Die dürfte die ungefähr so aussehen:

    Code
    $menu_mapSize_items = ["winzig (256x256)", "Klein (512x512)", "Mittel (768x768)", "Groß (1024x1024)", "XL (1280x1280)"];
    • Zitieren
  • Coaster
    Anfänger
    Beiträge
    31
    • 25. November 2011 um 02:56
    • #6

    jetzt gehts wieder, danke für deine Mühe

    Gruß aus dem Emsland

    Coaster

    • 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™