View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004535 | Spring engine | AI | public | 2014-09-06 12:24 | 2014-09-07 00:05 |
| Reporter | lamer | Assigned To | abma | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | 97.0.1+git | ||||
| Summary | 0004535: C++ AI. Events EVENT_ENEMY_CREATED, EVENT_ENEMY_FINISHED not sent | ||||
| Description | When cheating enabled no EVENT_ENEMY_CREATED, EVENT_ENEMY_FINISHED sent. | ||||
| Steps To Reproduce | Cheats* cheats = callback->GetCheats(); cheats->SetEnabled(true); delete cheats; And then print every incoming event/topic inside C++ AI. | ||||
| Additional Information | EVENT_ENEMY_FINISHED sent only when enemy unit is in los (as it should be without cheats) | ||||
| Tags | No tags attached. | ||||
| Checked infolog.txt for Errors | |||||
|
|
sth. here is wrong i guess: https://github.com/spring/spring/blob/develop/rts/ExternalAI/EngineOutHandler.cpp#L230 (not sure) |
|
|
Sorry, my bad, no bug. There is Cheats::SetEventsEnabled function i missed. Next code works. Cheats* cheats = callback->GetCheats(); cheats->SetEnabled(true); cheats->SetEventsEnabled(true); delete cheats; |
|
|
no worries, thanks for the feedback! |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2014-09-06 12:24 | lamer | New Issue | |
| 2014-09-06 17:23 | abma | Note Added: 0013608 | |
| 2014-09-06 18:23 | lamer | Note Added: 0013609 | |
| 2014-09-06 18:25 | lamer | Note Edited: 0013609 | |
| 2014-09-07 00:05 | abma | Note Added: 0013611 | |
| 2014-09-07 00:05 | abma | Status | new => closed |
| 2014-09-07 00:05 | abma | Assigned To | => abma |
| 2014-09-07 00:05 | abma | Resolution | open => no change required |