Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
r9112 - Script-KI find_object(mo_way)
#11
Hier noch eine Fehlermeldung

Code:
Script: Error:    <st>Error: [the index 'x' does not exist]</st>
Script: Error:    CALLSTACK
Script: Error:    <em>* FUNCTION [expand_station()] <br>* addons/ai/sqai//astar.nut
Script: Error:    * line [924]
Script: Error:    </em>
Script: Error:    - - LOCALS
Script: Error:    - - - [fl_st] ARRAY
Script: Error:    - - - [st] INSTANCE(halt_x)
Script: Error:    - - - [st_dock] false
Script: Error:    - - - [i] 4
Script: Error:    - - - [t] 4
Script: Error:    - - - [extension_tile] NULL
Script: Error:    - - - [d] 6
Script: Error:    - - - [r] INSTANCE(tile_x)
Script: Error:    - - - [combined_station] false
Script: Error:    - - - [err] NULL
Script: Error:    - - - [ref_hight] 0
Script: Error:    - - - [print_message_box] 0
Script: Error:    - - - [start_field] INSTANCE(ab_node)
Script: Error:    - - - [select_station] INSTANCE(building_desc_x)
Script: Error:    - - - [wt] 2
Script: Error:    - - - [fields] ARRAY
Script: Error:    - - - [pl] INSTANCE(player_x)
Script: Error:    - - - [this] INSTANCE(rail_connector_t)
Script: Error:    <em>* FUNCTION [check_station()] <br>* addons/ai/sqai//astar.nut
Script: Error:    * line [690]
Script: Error:    </em>
Script: Error:    - - LOCALS
Script: Error:    - - - [i] 5
Script: Error:    - - - [b_tile] ARRAY
Script: Error:    - - - [d] 4
Script: Error:    - - - [t] INSTANCE(tile_x)
Script: Error:    - - - [err] NULL
Script: Error:    - - - [st_build] false
Script: Error:    - - - [tile_build] 2
Script: Error:    - - - [b1_tile] INSTANCE(tile_x)
Script: Error:    - - - [b] 0
Script: Error:    - - - [a] false
Script: Error:    - - - [print_message_box] 0
Script: Error:    - - - [build] 1
Script: Error:    - - - [select_station] INSTANCE(building_desc_x)
Script: Error:    - - - [wt] 2
Script: Error:    - - - [st_lenght] 4
Script: Error:    - - - [starts_field] INSTANCE(ab_node)
Script: Error:    - - - [pl] INSTANCE(player_x)
Script: Error:    - - - [this] INSTANCE(rail_connector_t)
Script: Error:    <em>* FUNCTION [work()] <br>* addons/ai/sqai//rail_connector.nut
Script: Error:    * line [129]
Script: Error:    </em>
Script: Error:    - - LOCALS
Script: Error:    - - - [station_select] INSTANCE(building_desc_x)
Script: Error:    - - - [x] 0
Script: Error:    - - - [station_list] ARRAY
Script: Error:    - - - [err] true
Script: Error:    - - - [count] 4
Script: Error:    - - - [a] 0
Script: Error:    - - - [fd] ARRAY
Script: Error:    - - - [fs] ARRAY
Script: Error:    - - - [tic] 44283249
Script: Error:    - - - [pl] INSTANCE(player_x)
Script: Error:    - - - [this] INSTANCE(rail_connector_t)
Script: Error:    <em>* FUNCTION [step()] <br>* addons/ai/sqai//basic.nut
Script: Error:    * line [92]
Script: Error:    </em>
Script: Error:    - - LOCALS
Script: Error:    - - - [this] INSTANCE(manager_t)
Script: Error:    <em>* FUNCTION [step()] <br>* addons/ai/sqai//basic.nut
Script: Error:    * line [169]
Script: Error:    </em>
Script: Error:    - - LOCALS
Script: Error:    - - - [this] INSTANCE(manager_t)
Script: Error:    <em>* FUNCTION [step()] <br>* addons/ai/sqai/ai.nut
Script: Error:    * line [144]
Script: Error:    </em>
Script: Error:    - - LOCALS
Script: Error:    - - - [this] TABLE
Script: Error:    </error>
Script: Print:    rail_connector_t: stepping a child
Script: Print:    rail_connector_t: doing some work
Script: Print:    Failed to build station at 330,26
Script: Print:    Delivering alternative connector
Script: Print:    New report: expected construction cost: 10705
Zitieren
#12
(08-06-2020, Monday-16:19:44 )Dwachs2 schrieb: Hier noch eine Fehlermeldung

Code:
Script: Error: <st>Error: [the index 'x' does not exist]</st>
Script: Error: CALLSTACK
Script: Error: <em>* FUNCTION [expand_station()] <br>* addons/ai/sqai//astar.nut
Script: Error: * line [924]
Script: Error: </em>
Script: Error: - - LOCALS
Script: Error: - - - [fl_st] ARRAY
Script: Error: - - - [st] INSTANCE(halt_x)
Script: Error: - - - [st_dock] false
Script: Error: - - - [i] 4
Script: Error: - - - [t] 4
Script: Error: - - - [extension_tile] NULL
Script: Error: - - - [d] 6
Script: Error: - - - [r] INSTANCE(tile_x)
Script: Error: - - - [combined_station] false
Script: Error: - - - [err] NULL
Script: Error: - - - [ref_hight] 0
Script: Error: - - - [print_message_box] 0
Script: Error: - - - [start_field] INSTANCE(ab_node)
Script: Error: - - - [select_station] INSTANCE(building_desc_x)
Script: Error: - - - [wt] 2
Script: Error: - - - [fields] ARRAY
Script: Error: - - - [pl] INSTANCE(player_x)
Script: Error: - - - [this] INSTANCE(rail_connector_t)
Script: Error: <em>* FUNCTION [check_station()] <br>* addons/ai/sqai//astar.nut
Script: Error: * line [690]
Script: Error: </em>
Script: Error: - - LOCALS
Script: Error: - - - [i] 5
Script: Error: - - - [b_tile] ARRAY
Script: Error: - - - [d] 4
Script: Error: - - - [t] INSTANCE(tile_x)
Script: Error: - - - [err] NULL
Script: Error: - - - [st_build] false
Script: Error: - - - [tile_build] 2
Script: Error: - - - [b1_tile] INSTANCE(tile_x)
Script: Error: - - - [b] 0
Script: Error: - - - [a] false
Script: Error: - - - [print_message_box] 0
Script: Error: - - - [build] 1
Script: Error: - - - [select_station] INSTANCE(building_desc_x)
Script: Error: - - - [wt] 2
Script: Error: - - - [st_lenght] 4
Script: Error: - - - [starts_field] INSTANCE(ab_node)
Script: Error: - - - [pl] INSTANCE(player_x)
Script: Error: - - - [this] INSTANCE(rail_connector_t)
Script: Error: <em>* FUNCTION [work()] <br>* addons/ai/sqai//rail_connector.nut
Script: Error: * line [129]
Script: Error: </em>
Script: Error: - - LOCALS
Script: Error: - - - [station_select] INSTANCE(building_desc_x)
Script: Error: - - - [x] 0
Script: Error: - - - [station_list] ARRAY
Script: Error: - - - [err] true
Script: Error: - - - [count] 4
Script: Error: - - - [a] 0
Script: Error: - - - [fd] ARRAY
Script: Error: - - - [fs] ARRAY
Script: Error: - - - [tic] 44283249
Script: Error: - - - [pl] INSTANCE(player_x)
Script: Error: - - - [this] INSTANCE(rail_connector_t)
Script: Error: <em>* FUNCTION [step()] <br>* addons/ai/sqai//basic.nut
Script: Error: * line [92]
Script: Error: </em>
Script: Error: - - LOCALS
Script: Error: - - - [this] INSTANCE(manager_t)
Script: Error: <em>* FUNCTION [step()] <br>* addons/ai/sqai//basic.nut
Script: Error: * line [169]
Script: Error: </em>
Script: Error: - - LOCALS
Script: Error: - - - [this] INSTANCE(manager_t)
Script: Error: <em>* FUNCTION [step()] <br>* addons/ai/sqai/ai.nut
Script: Error: * line [144]
Script: Error: </em>
Script: Error: - - LOCALS
Script: Error: - - - [this] TABLE
Script: Error: </error>
Script: Print: rail_connector_t: stepping a child
Script: Print: rail_connector_t: doing some work
Script: Print: Failed to build station at 330,26
Script: Print: Delivering alternative connector
Script: Print: New report: expected construction cost: 10705

Da ging vorher in Zeile 790ff die Zurordnung daneben. Da war das Feld kein Endfeld.

Code:
...
  local extension_tile = null
  switch(d) {
    case 1:
    extension_tile = square_x(start_field.x, start_field.y + 1)
    break
    case 2:
    extension_tile = square_x(start_field.x - 1, start_field.y)
    break
    case 4:
    extension_tile = square_x(start_field.x, start_field.y - 1)
    break
    case 8:
    extension_tile = square_x(start_field.x + 1, start_field.y)
    break
  }
..

Es ist nervig, das das Forum ständig die Einrückungen beim Code-Block weg nimmt bzw. verändert. Tabs gehen gar nicht. Sollte CODE die Formatierung nicht unangetastet lassen?

(08-06-2020, Monday-16:12:53 )Dwachs2 schrieb: Habe es getestet, aber keine Fehlermeldungen oder Crashes bekommen. Welches Savegame hast du benutzt? Welche/Wieviele KI-Spieler?

Ideal waere ein Savegame (inkl gestarteter KIs), dass sich beim Vorlauf verabschiedet.

Simutrans r9112 gespeichert
https://simutrans-germany.com/files/uplo...1935_a.sve

Die KIs sind deaktiviert beim laden. Der dunkelblauen KI gehört die Strecke deren Felder im Code stehen. Es ist die Kohlestrecke mittig auf der Karte ( Bild steht da nach dem laden ).
Script-KI für Simutrans r10894+ / Simutrans Nightly Builds
Zitieren
#13
Ich habe irgendwie nicht die gleiche pakset-Version. Die Fabrik DMRkraftwerk fehlt. Welche benutzt du?
Zitieren
#14
https://simutrans-germany.com/files/uplo...rk.pak.txt

einfach das .txt entfernen
Script-KI für Simutrans r10894+ / Simutrans Nightly Builds
Zitieren
#15
Danke, hab den Fehler gefunden. Sollte mit r9119 passen.
Zitieren
#16
(08-06-2020, Monday-19:09:46 )Dwachs2 schrieb: Ich habe irgendwie nicht die gleiche pakset-Version. Die Fabrik DMRkraftwerk fehlt. Welche benutzt du?

Dann hast Du wohl noch pak64.german 121.4.1.3.

Ich verwende inzwischen pak64.german 122.0.0.1. Da wurde das DMRkraftwerk hinzugefügt.
Script-KI für Simutrans r10894+ / Simutrans Nightly Builds
Zitieren
#17
funktioniert beides in r9173 ohne Absturz

find_object(mo_way)
find_object(mo_way).get_desc()
Script-KI für Simutrans r10894+ / Simutrans Nightly Builds
Zitieren


Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste