OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Resources Beta Testing & Submission => Topic started by: Worldeater on 13 Jul 2009, 20:47:55
-
Here's a bunch of functions I wrote for ArmA over the past few months. They are untested, undocumented and
might does contain horrible bugs. I've tried to keep the code as clean, simple and readable as possible. Since I won't finish this project I decided to release the raw stuff. Maybe someone finds it useful...
Licence: MIT (http://en.wikipedia.org/wiki/MIT_License)
Edit: I found a newer version which looks less buggy. Also found some "test cases" for Str, Queue and RingBuffer (see "_test.sqf"). A small test leads to the assumption that at least the functions used there are working properly.
-
Thanks WorldEater. These do look useful.
I suspect you had a test mission or two that helped you debug these functions. Is that something you can share too?
A working example always helps me understand better....
I understand this is an unsupported release, so no worries if not.
-
Nope, sorry. I've used a single SQF to test the functions as I wrote them and it changed constantly. The planed unit tests were never finished... :(
But take a look at the "_this select" lines at the top of the functions. Most of the variables names are self-documenting (well, at least I hope they are). The RingBuffer and Queue structures are "documented" in the corresponding func_*New functions.
If you plan to use these functions for A2, don't! Use CBA (http://www.ofpec.com/forum/index.php?topic=33677.0) instead!