Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console: start_all_ais console command #4216

Closed
DorpsGek opened this issue Nov 11, 2010 · 5 comments
Closed

Console: start_all_ais console command #4216

DorpsGek opened this issue Nov 11, 2010 · 5 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

Kogut opened the ticket and wrote:

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

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/4216
@DorpsGek
Copy link
Member Author

MagicBuzz wrote:

-- Ignore this patch, there is a bug in it --

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/4216#comment9089

@DorpsGek
Copy link
Member Author

MagicBuzz wrote:

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.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/4216#comment9090

@DorpsGek
Copy link
Member Author

MagicBuzz wrote:

Fixed a compilation warning when comparing int and uint

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/4216#comment9091

@DorpsGek
Copy link
Member Author

MagicBuzz wrote:

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 . 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 - new AIs.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/4216#comment9107

@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) enhancement labels Apr 7, 2018
@andythenorth
Copy link
Contributor

Nothing for 8 years, let's move on :) Happy to re-open if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

2 participants