OpenTTD

Tasklist

FS#4216 - Console: start_all_ais console command

Attached to Project: OpenTTD
Opened by Kogut (Kogut) - Thursday, 11 November 2010, 10:05 GMT
Last edited by andythenorth (andythenorth) - Monday, 21 August 2017, 06:52 GMT
Type Feature Request
Category Script
Status New
Assigned To No-one
Operating System All
Severity Very Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No

Details

start_all_ais console command

to avoid typing start_ai + enter
+ up arrow + enter
+ up arrow + enter
+ up arrow + enter
+ up arrow + enter
+ up arrow + enter
+ up arrow + enter
+ up arrow + enter
+ up arrow + enter
+ up arrow + enter
+ up arrow + enter
+ up arrow + enter
+ up arrow + enter
+ up arrow + enter
+ up arrow + enter
This task depends upon

Comment by Sylvain Devidal (MagicBuzz) - Tuesday, 16 November 2010, 11:47 GMT
-- Ignore this patch, there is a bug in it --
Comment by Sylvain Devidal (MagicBuzz) - Tuesday, 16 November 2010, 12:06 GMT
Here is a patch that contains 3 new console commands :

start_all_ais : No arguments. Starts all non-running AIs (take care : number of AI that will start is egual to the parameter "_settings_game.difficulty.max_no_competitors".
stop_all_ais : No arguments. Stops any running AI.
reload_all_ais : No arguments. Stops then restarts any running AI.
Comment by Sylvain Devidal (MagicBuzz) - Tuesday, 16 November 2010, 12:19 GMT
Fixed a compilation warning when comparing int and uint
Comment by Sylvain Devidal (MagicBuzz) - Wednesday, 17 November 2010, 09:37 GMT
Change:
- Renamed start_all_ais by start_all_ai
- Renamed stop_all_ais by stop_all_ai
- Renamed reload_all_ais by reload_all_ai
=> AIs in lower case doesn't look natural

Added Feature:
- start_all_ai now supports an argument <AI count>. It's the desired total AI count.

Fix:
- start_all_ai now doesn't start more AIs than desired. IE when already running AIs, it will start <AI count> - <Already running AIs> new AIs.

Loading...