AP+ 4 problem

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
MadeOke
Engineer
Engineer
Posts: 2
Joined: 30 Nov 2012 16:04

AP+ 4 problem

Post by MadeOke »

Just wanted to start a server on Centos
Download AP+,tcl,tcllib,expect

start with ./autopilot.tcl and got this error

Code: Select all

[::ap::config] Language package successful loaded: en
Autopilot engaged
Starting new game: 'server indo'
Landscape: temperate
Dimensions: 256x256
Starting year: 1950
list element in quotes followed by ":" instead of space
    while executing
"lindex [lindex [split $::errorInfo \n] 0] 1"
    (procedure "::ap::game::version" line 4)
    invoked from within
"::ap::game::version $openttd"
    invoked from within
"set ottd_version [::ap::game::version $openttd]"
    (file "./autopilot.tcl" line 138)
whats wrong?
sorry english is not my 1st languange :oops:

I have this in the folder

Code: Select all

ai             bin            known-bugs.txt                     openttd.cfg
autopilot      changelog.txt  lang                               openttd.exe
autopilot.pid  COPYING        media                              readme.txt
autopilot.tcl  doc            openttd-1.2.3-windows-win32.zip.1  scripts
baseset        docs           openttd_additional.cfg

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: AP+ 4 problem

Post by planetmaker »

The problem is within ap+ according to the error.
Maybe it might need a certain version of expect.
MadeOke
Engineer
Engineer
Posts: 2
Joined: 30 Nov 2012 16:04

Re: AP+ 4 problem

Post by MadeOke »

What's version?
I have expect version 5.43.0
nitro2012
Engineer
Engineer
Posts: 1
Joined: 02 Jul 2014 17:20

Re: AP+ 4 problem

Post by nitro2012 »

Hello,

I too have problem with autopilot.

OpenTTD version: 1.4.1 (2014-06-02)
Server: Linux Mint 17, installed required libraries
Access: normal user to openttd and .openttd folder


I copy autopilot's files to folder with openttd, next I run command

Code: Select all

 cat openttd_additional.cfg >> ~/.openttd/openttd.cfg
OK. I have extra options in openttd.cfg

I run openttd in server mode, OK, I get any errors

I try run autopilot.tcl but I get errors:

Code: Select all

[::ap::config] Language package successful loaded: en
Autopilot engaged
Starting new game: 'Unnamed Server'
Landscape: temperate
Dimensions: 256x256
Starting year: 1950
: spawn id exp6 not open
    while executing
"exp_send -i $::ds -- $command"
    (procedure "::ap::game::console" line 2)
    invoked from within
"::ap::game::console "players\r""
    (procedure "::ap::count::companies" line 6)
    invoked from within
"::ap::count::companies"
    (procedure "::ap::count::players" line 4)
    invoked from within
"::ap::count::players"
    (in namespace eval "::mainloop" script line 22)
    invoked from within
"namespace eval mainloop {

        # Array for players
        array set player {}

        # map player names to id's
        array set nick2id {}

        # company array
        array set c..."
    (file "./autopilot.tcl" line 228)
How I can fix it?
Eddi
Tycoon
Tycoon
Posts: 8272
Joined: 17 Jan 2007 00:14

Re: AP+ 4 problem

Post by Eddi »

autopilot is heavily outdated, you should not use it.
Rohlik
Engineer
Engineer
Posts: 3
Joined: 16 Apr 2015 09:27

Re: AP+ 4 problem

Post by Rohlik »

Is something like autopilot what working with latest version of OpenTTD?
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: AP+ 4 problem

Post by planetmaker »

OpenTTD has an admin port which was implemented to allow easy control of the server via server-side scripts.

One of the readily available solutions which make use of it is SOAP with the libottdadmin2.
https://dev.openttdcoop.org/projects/soap
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 28 guests