The only other things I can think of to try later are adding a water-potassium reaction to try and detonate the payload, or adding a smoking agent alongside Ch3F or superheated inert chems to keep the gunpowder 'in game' long enough to pass ignition temp. Another alternative might be to make, say, RDX and then leach the stabilizing agent away in a reaction but the only suitable reaction for that requires a temperature of >200k.
Overall I'm starting to think the code is fucked, because even if I'm doing it wrong it shouldn't be this complicated.