Modify

Ticket #1416 (new bug)

Opened 2 years ago

Last modified 5 weeks ago

Changing players by ctrl+o deactivates AI scripts

Reported by: Per Owned by:
Priority: normal Milestone: unspecified
Component: Engine: Scripting / AI Version: git/master
Keywords: Cc:
Blocked By: Blocking:
Operating System: All/Non-Specific

Description

In trunk. This regression must be recent, since I tested doing this quite recently.

Attachments

Change History

comment:1 Changed 2 years ago by Per

The AI script for the currently selected player is the only one that is run.

comment:2 Changed 2 years ago by Per

Update: This is not recent after all, I must just not have seen it before. The problem is in 2.2, 2.3 and trunk, but harder to test on older releases because changing active player would cause crashes until recently.

What is happening is that if selectedPlayer != starting player in skirmish, then only selectedPlayer's AI appears to be executing. Everyone else is on hold. If selectedPlayer becomes starting player again, all AIs start running again.

comment:3 Changed 22 months ago by Buginator

I think you just call the AI takeover routine again, and it should be fixed, (as in, it reassigns the AI again).

comment:4 Changed 22 months ago by Per

But why does it happen in the first place?

comment:5 Changed 5 weeks ago by cybersphinx

  • Milestone changed from 3.0 to unspecified

Milestone 3.0 deleted

View

Add a comment

Provide an email address (will not be publicly visible) in the Author field or register an account (uses your forum account).

Modify Ticket

Action
as new
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.