Author: Big
Author Website: http://www.main.thechainofcommand.net/

Requirements: No addons required

Version: 3.1

Short description: NS 3.0 provides many resources you can depend on like CoC_isServer, CoC_isClient, CoC_isServerClient, CoC_isServerDedicated.

Date: 2009-03-18 20:25


Comments: (0)
Rating:



 

COC Network Services
by
Pennywise


Description:
NS 3.0 provides many resources you can depend on like CoC_isServer, CoC_isClient, CoC_isServerClient, CoC_isServerDedicated. In addition, the arrays CoC_ClientList and CoC_PeerList which contain a list of all the connected users, their objects, names and prefixes. NS 3.0 can also provide many a working solution for synchronizing JIP Clients. A new flag has also been added to represent JIP Clients, CoC_isJIPClient. All lists and flags are updated upon respawn and JIP. Index 0 represents the server and is always guaranteed.

Supported send data types are:
    * Boolean
    * Null Group
    * Null Object
    * Side
    * String(strings must be 4000 chars or less)
    * Number
    * Object
    * Group
    * Array (filled with nothing or any of the above in any combination)
    * Multi-Dimensional Array (filled with nothing or any of the above in any combination)
Please read all the documentation this file contains.

Installation:
Place the CoC_NS.pbo file into an Addons folder using the modfolder method . Don't forget to launch your ArmA game using that modfolder.

From the CoC_NSA_Pack copy the folders:
CoCNS_ScriptTemplate.Sara and CoCNS_AddonTemplate.Sara into your C:\Documents and Settings\(ArmA or ArmA Other Profiles)\(Your Username)\missions\

Change log:
* Taken steps to make use of 'isNil'. isNil will tests whether a variable is null. The function returns true if the variable is null and false if it's not.
* There were situations where quotations were being used in place of brackets. ArmA no longer accepts this syntax. Quotations can no longer be used with while blocks, count blocks, and any other forms of control structures. You must use brackets for representing any code to be executed.
* You have to 'compile' any function prior to passing it into 'call'. In addition, you must always use brackets to represent code now.
* Theres a new method call 'str' which Converts any variable to a string. This method was refactored in to replace previous conventions, possibly optimizing code.
* fDecToAlpha.sqf has been deprecated due to 'str' enhancements
* remote scripts execute in ArmA now.
* Implement JIP or an equivalent, "OnPlayerConnected";JIP onPlayerConnected resolved
* JIP onPlayerDisconnect resolved
* CoC_ClientList is no longer empty and CoC_ClientChannel is assigned in ArmA.
* PublicArray now works appropriately. Nested arrays can be sent to clients as well in ArmA.
* PublicVariable now sends strings to enhance service.
* CoC_ClientList boolean value for connection status updates upon JIP rejoin or disconnect CoC_ClientList for tracking connection type. Type is set to one of three modes: "NODE_STARTUP", "NODE_JIP","NODE_JIP_REJOIN".
* Added CoC_isJIPClient flag to quickly check if client is JIP Client.


Special notes:
Please understand there is currently a handshaking process completed on each machine at the beginning of every mission. The is currently at most a 25 sec delay upon mission start, before NS 3.0 completely initializes. We are working to minimize and prevent this wait in our final release. This wait can significantly be reduced by adding the following at the top of your init.sqf:
CoC_ConnectTimeout = 10;
CoC_MaxRetry = 2;

Credits:
Created by The Chain of Command, www.thechainofcommand.com.
Originally Authored by Author: Bn880, Dinger, and Spinor.
Ported to ArmA by Pennywise


Thanks:
A special thanks goes out to Zeus Community, Killswitch, ViperMaul, and lwlooz for assisting with testing and bug fixes!


Forums topic:
- BIS




Enable javascript to be able to download from Armaholic please!



Tags: No tags