Quote:
Originally Posted by BAILOPAN
Ignore all heckling of usefulness! (Especially if it's from me.)
|
If I heeded heckling, there'd be a lot I never programmed. There would've also been a lot less drama earlier this year
I refactored the PySMX smxreader code a bunch, which made things pretty, but I somehow introduced a race condition. While it's unfortunate, and I still haven't figured it out, yet, I continued with development. I've implemented a small set of opcodes and a format-string-only PrintToServer native, which allows for the execution of the test plug-in in the repo.
You can check out the code here:
https://github.com/theY4Kman/pysmx/tree/racecondition
Under the test/ directory you'll find test.py, which reads and executes the OnPluginStart public function in test.smx. The source to test.smx is available as well (the .smx being provided for quick testing).
The next steps are implementing the rest of the opcodes, writing the SourceMod core library in Python, and finally creating test runners and helpers (asserts and the such). When those steps are complete, you'll be able to setup a fake game environment, including players and entities, and unit test individual public functions in your plug-in.
__________________