On some servers, you got commands (like !help, !stats). How do I make that, too? Just make a game script/AI or something like a Python-script?
Bennievv
Server commands?
Moderator: OpenTTD Developers
Re: Server commands?
For that you need something that can read the chat. Neither AIs nor Game Scripts can do that. I know that scripts that wrap around the dedicated server console can do that. I'm unsure if admin bots can do that.
An example of a script that can do what you want is the Autopilot script. IIRC its written in TCL/TK. But you can make a autopilot sort of script with pretty much any programming language. As long as you can start a process (OpenTTD) and hookup to standard input/output of that process.
An example of a script that can do what you want is the Autopilot script. IIRC its written in TCL/TK. But you can make a autopilot sort of script with pretty much any programming language. As long as you can start a process (OpenTTD) and hookup to standard input/output of that process.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
Re: Server commands?
Thanks for your answerZuu wrote:For that you need something that can read the chat. Neither AIs nor Game Scripts can do that. I know that scripts that wrap around the dedicated server console can do that. I'm unsure if admin bots can do that.
An example of a script that can do what you want is the Autopilot script. IIRC its written in TCL/TK. But you can make a autopilot sort of script with pretty much any programming language. As long as you can start a process (OpenTTD) and hookup to standard input/output of that process.

Who is online
Users browsing this forum: No registered users and 6 guests