View Issue Details

IDProjectCategoryView StatusLast Update
0004535Spring engineAIpublic2014-09-07 00:05
Reporterlamer Assigned Toabma  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version97.0.1+git 
Summary0004535: C++ AI. Events EVENT_ENEMY_CREATED, EVENT_ENEMY_FINISHED not sent
DescriptionWhen cheating enabled no EVENT_ENEMY_CREATED, EVENT_ENEMY_FINISHED sent.
Steps To ReproduceCheats* cheats = callback->GetCheats();
cheats->SetEnabled(true);
delete cheats;

And then print every incoming event/topic inside C++ AI.
Additional InformationEVENT_ENEMY_FINISHED sent only when enemy unit is in los (as it should be without cheats)
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

abma

2014-09-06 17:23

administrator   ~0013608

sth. here is wrong i guess:
https://github.com/spring/spring/blob/develop/rts/ExternalAI/EngineOutHandler.cpp#L230

(not sure)

lamer

2014-09-06 18:23

reporter   ~0013609

Last edited: 2014-09-06 18:25

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;

abma

2014-09-07 00:05

administrator   ~0013611

no worries, thanks for the feedback!

Issue History

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