Author: Spooner
Author Website:

Requirements: No addons required

Version: 0.5.3

Short description:

Date: 2008-11-04 04:53


Comments: (0)
Rating:



 





4-spon_core_debugclient.jpg

SPON Core
by
Spooner


Description:
Core components required by most of the other SPON script packs (the README for each package will say whether it actually requires SPON Core and what minimum version is required). Many of the features provided here might be of use in creating your own mission scripts.

SPON Core is avilable in two versions. One is an addon and the other is mission-script-based which does not require any addons to be installed on client or server. It requires ArmA 1.09 or higher.


Features:
- Standard
    * Provides common features used by other SPON components, such as SPON VBIED, SPON Recognise and SPON Map.
    * User event handling: Any player or server can broadcast local or global events. Those that have previously registered for the event will have their code run (Used very similarly to standard ArmA events).
    * Broadcasting object variables with SPON_publicObjectVariable.
    * Key event handling: Allows de-coupled key event handlers to be set up (normally a new key event handler deletes any existing handler).
    * Some global variables (read-only) to complement the built-in "isServer".
    * SPON_formatTime function is available: Formats an elapsed time, in seconds, as 0:00:00 or 0:00:00.000, which is appropriate for formatting elapsed time ("time" command), but not time of day.
- Optional
    * Debug log:
      o Makes a permanent record of all debug messages, viewable in a window, thus not cluttering up the chat window with debug messages.
      o Allows the client to view all debug messages that have been generated on the client or the server at any time (JIP clients can only see server messages generated after they joined)!
    * Automatic monitoring of in-game men and vehicles:
      o Lists of player, men and vehicle objects in the mission are kept updated.
      o SPON events are published whenever any of these is found on the server for the first time and when a player is first or last found on the server. These events can be used to perform init actions on the objects, without the need of addons (Although init might be slightly delayed after the object has been created).
Plans:
* Ensure that SPON_players_* arrays are synchronised across all machines and updated immediately on join/leave in progress by another player.
* Allow registering global event names, so that they can be published using less bandwidth.
* Expand USAGE section in README.txt, to make the systems more usable by third parties


Known issues:
* Variables updated with SPON_publicObjectVariable are not automatically updated for JIP players (though JIP players will get any new values sent after they have joined).
* Debug message logging on dedicated servers is currently broken.


Credits:
* Provide a common set of scripts to minimise the repetition of scripts within the other SPON components.
* To provide a strong base for anyone developing SP, and especially MP, missions.
* Consistent GUI across all SPON GUI-based components. Font/colour schema can be chosen from a selection of standard schema.
* Avoid addons, in favour of scripting, as far as possible. Addon version and 100% mission-scripts versions are available!


Version:
v0.5.3
* Using the debug log can reset the value of nil.
* Adding multiple key event handlers to one key will cause only the first to be run [Reported by i0n0s].
* SPON_isMP is incorrectly set to true in SP missions (unless you are playing from the SP editor without saving the mission).

v0.5.1
- Modified
* Replaced Gnu Public Licence (GPL) with the less restrictive Lesser GPL (LGPL).

- Fixed
* If SPON Core addon is loaded and SPON Core mission-scripts are run in the mission, then "things" get in a mess.
* SPON Core key event handlers incompatible with Shole's Display Event Handlers (If both are used, DEH's key events will always work, while SPON's won't).
* Some errors in macros.inc.sqf

Forum topic:
- OFPEC.com




Enable javascript to be able to download from Armaholic please!



Tags: No tags