Bos Wars - Patches: patch #7650, Extensible storage of AI state
You are not allowed to post comments on this tracker with your current authentication level.
patch #7650: Extensible storage of AI state
Submitter: | Kalle Olavi Niemitalo <kon> | ||
Submitted: | Sun 30 Oct 2011 03:36:11 PM UTC | ||
Open/Closed: | Closed | Status: | Done |
Assigned to: | kon |
Sun 27 Nov 2011 08:09:17 PM UTC, comment #1: |
Kalle Olavi Niemitalo <kon> |
Sun 30 Oct 2011 03:36:11 PM UTC, original submission:
Currently, AI scripts distribute their state across several global variables such as ai_pos[player], ai_loop_pos[player], and hotspotexists. Each AI initialization Lua function clears those variables for all players. This is in principle a bug because there is no guarantee that different AI scripts use the variables in compatible ways. Also, it is impossible for the engine to clear the AI state when the game ends; thus, state from one game typically leaks to the next game and gets saved with it.
|
Kalle Olavi Niemitalo <kon> |
Depends on the following items: None found
Items that depend on this one: None found
Follow 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2011-11-27 | kon | Open/Closed | Open | Closed | |
Status | None | Done | |||
Assigned to | None | kon | |||
2011-10-30 | kon | Attached File | - | Added 0001-Replaced-AiList-and-_ai_scripts_-with-AiTypes.patch, #24249 | |
Attached File | - | Added 0002-Save-AI-state-in-AiState-AiPlayer.patch, #24250 |
Powered by Savane 3.13-caa5.
Corresponding source code
Tested and applied with some changes.