dfhack icon indicating copy to clipboard operation
dfhack copied to clipboard

Extends spectate plugin

Open cppcooper opened this issue 3 years ago • 1 comments
trafficstars

Using DF AI code as an example I implemented an auto-unpause feature. I tested against a siege event's pause.

resolves https://github.com/DFHack/dfhack/issues/2129

cppcooper avatar Aug 24 '22 18:08 cppcooper

I've taken well beyond simple already to mean I should try to implement the API as idiomatically as possible. So here is my crack at that, based on the lock idea lethosor gave.

To test I enabled the spectate auto-unpause feature, then unpaused the game, and ran reveal hell and could not unpause. Then did the same, but ran nopause 1 after the game loaded which unpaused the game for me and still could not unpause after reveal hell. If there is another test case I've neglected, I don't know what it is yet.

cppcooper avatar Aug 29 '22 01:08 cppcooper

I'll try to address these (in code) before Sunday

cppcooper avatar Oct 19 '22 07:10 cppcooper