Combat hooks?

Wardly

Chieftain
Joined
Nov 9, 2014
Messages
39
Is there any hooks other then Events.EndCombatSim?

What i'm doing is catching combat results and saving it to a sqlite table. But i need to persist that data and i'm thinking of using the tableSaver from Pazyryk but the hook i currently us is around that EndCombatSim which is apparently a no no anyway. But without any other solution i don't have to many options.

So how do others do this if they aren't using the EndCombatSim hook?
 
It doesn't sound too no-no-y to me.

I mean do you need to save actual results or do you need only approximate results before the random spread comes into play? If you need to know exact results, I doubt there are any ways of getting them until after the combat plays out without affecting the randomization.
 
Oh what i have now gives me exact results. I mean it works perfectly fine. I even got TableSaver to work without any issues (that i know of yet anyway). I was just hoping that there were other more suitable hooks to get the job done rather then depending on animation hooks.

Also if i'm not mistaken the results of the battle are already determined before the animation of it happening is ever started. I've actually tested this using RunCombatSim and EndCombatSim they contain the same battle results. The RunCombatSim hooks are run just before the battle animation whereas the EndCombatSim hooks are ran after the animation of the battle is complete.

But since we don't have the DLL's for beyond earth yet i'm thinking i'll have to wait until they release them :/
 
Don't hold your breath, only the game core dll (GameEvents) was released for CivV, and all the Events (which are part of the UI, including RunCombatSin and EndCombatSIm) aren't in that (but in the graphics dll)
 
Back
Top Bottom