Page 12 of 63 FirstFirst ... 289101112131415162262 ... LastLast
Results 111 to 120 of 621

  Click here to go to the first Developer post in this thread.  

Thread: JayArma2Lib

  1. #111
    Just tried them with Beta 73251 (as told in the first post) - JA2L couldn´t detect version of ArmA error occurs. Rolled back to 73246 and all is fine.

    So i´m waiting for the next release which is compatible to the new Beta 73311. Couldn´t await to test the new MP backpack commands...

  2. #112
    Any news about a new version with support fot Beta 73311?


    Regards,
    Mike

  3. #113
    Quote Originally Posted by MadMike.48th View Post
    Any news about a new version with support fot Beta 73311?


    Regards,
    Mike

    Jay will not be around for a while. His mother passed away this week and he is out of town dealing with that.

    So have patience!

  4. #114
    Oh shit - i understand... No problem, hope he is doing well.

    Regards,
    Mike

  5. #115
    My condolences to you and your family, that is terribly sad news.

    I asked this question over in the Acre thread and was directed to ask here. I tried running this example by changing the name of the pipe and a small test script. It is able to successfully connect and write the data but the return value from the write is not true/false, it's a string "_JERR_NULL". Is there anything special I need to do in the code to return a true handle from the successful write, which is then passed to JayArma2Lib dll, then passed as a return value to the script in Arma2? Thanks.

    http://msdn.microsoft.com/en-us/libr...=VS.85%29.aspx

    Code:
    // Named Pipe Test
    
    _pipeHandle = ["\\.\pipe\armapipe"] call jayarma2lib_fnc_openpipe;
    if(!isNil("_pipeHandle")) then
    {
    	player sidechat "Pipe connected!";
    	//success!
    	_ret = [_pipeHandle, "Hello from Arma!"] call jayarma2lib_fnc_writepipe;
    	if(_ret == true) then
    	{
    		player sidechat "Write success";
    	}
    	else
    	{
    		player sidechat "Write failed";
    	};
    	player sidechat _ret;  //<- this is returning a string as "_JERR_NULL"
    }
    else
    {
    	player sidechat "Unable to connect to named pipe :(";
    };

  6. #116
    Code:
    while {(GVAR(runServer))} do {
    			if(isNil QUOTE(GVAR(pipeHandle))) then {
    				LOG("ATEEEMPTING TO OPEN PIPE!");
    				GVAR(pipeHandle) = ["\\.\pipe\acre_comm_pipe"] call jayarma2lib_fnc_openPipe;
    				if(isNil(QUOTE(GVAR(pipeHandle)))) then { 
    					if(time > 5) then {
    						hintSilent "WARNING: ACRE IS NOT CONNECTED TO TEAMSPEAK!";
    						LOG("Teamspeak3 not responding, trying again.");
    					};
    					GVAR(serverStarted) = false;
    				} else {
    					LOG("PIPE OPENED!");
    					GVAR(serverStarted) = true;
    				};
    			};
    			sleep 5;
    		};
    and in another script (read script)...

    Code:
    if(!(isNil QUOTE(GVAR(pipeHandle)))) then {
    		_ret = [GVAR(pipeHandle)] call jayarma2lib_fnc_readPipe;
    		if(!(isNil "_ret")) then {
    			if(!(_ret == "_JERR_FALSE")) then {
    				if(_ret != "_JERR_NULL") then {
    					TRACE_1("got message", _ret);
    					_ret call GVAR(ioEventFnc);
    				};
    			} else {
    				GVAR(pipeHandle) = nil;
    			};
    		};
    	};


    ---------- Post added at 01:56 PM ---------- Previous post was at 01:55 PM ----------

    oh and I forgot to mention - we use async pipes in JayArmA2Lib, so read will *always* return instantly, it does not block. Same with write. So you can guarantee off of those basic return values in read whether the read was successful or not.

    Write operates basically the same. But we have it as a *guaranteed* communication of a single packet if the pipe is open. No partial packet failures.

    ---------- Post added at 02:12 PM ---------- Previous post was at 01:56 PM ----------

    Added OA Beta 73968 Support

    VERSION 1.3.5
    - Added OA 1.54 B73968 NON-STEAM beta support

  7. #117

  8. #118
    Thanks for the clarification.
    Last edited by firefly2442; Oct 9 2010 at 02:56.

  9. #119
    Awesome Jay! Hope you find sometime to play.
    ...Free people unbanable...

  10. #120
    A few small questions:

    1) Does ACRE use one named pipe for all communication?

    2) Does ACRE use both reading and writing to the pipe? Can this be done on the same pipe?

    Thanks.

Page 12 of 63 FirstFirst ... 289101112131415162262 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •