Open mboedigh opened 5 years ago
Can anyone please confirm whether they see the same problem. I'm suspecting something is wrong in the protocol. To test just add these lines to your client any time after OnGameStart() is called. The first assert works for me and the second fails.
const UnitTypes& data = Observation()->GetUnitTypeData(); auto& marine = data[UnitTypeID(UNIT_TYPEID::TERRAN_MARINE)]; assert(!marine.weapons.empty()); auto& battle_cruiser = data[UnitTypeID(UNIT_TYPEID::TERRAN_BATTLECRUISER)]; assert(!battle_cruiser.weapons.empty());
If it works (or not) please let me know your setup.
Code something like this (not actual tested code), fails assertion because weapons is empty.
This was called in OnGameStart(). Many other units have their weapons data set properly. Here I've used game version Base74741.