Bug #31028

Not working on dedicated servers

Added by Sickboy over 3 years ago. Updated over 3 years ago.

Status:Closed Start date:05/07/2012
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Component: I am using:
Close Reason: Reproducible for you:No
Affected Version: Language:Please set for missions
Operating system: First affected build:Please Specify...
Affected ArmA II version: First affected ArmA II version:
Reproduced by another DH user:No Single / Multi Player?:
I am using some Mods:No

Description

callExtension works fine on both Windows Clients and Dedicated Servers, as evidenced by the latest available JayArma2Lib, for callExtension.

ARMA2Net does not work however, while Server support is actually one of the most powerful features, e.g for persistent gaming etc.
ARMA2Net seems to be the fastest growing and well setup extension project - it would be extremely useful if it can be made working on dedicated servers.

Details in the forums; http://forums.bistudio.com/showthread.php?131325-Arma2NET&p=2144328&viewfull=1#post2144328

Arma2NET_serverTest.7z (2.1 kB) Jman, 05/07/2012 13:39

Arma2NET_serverTest_3.desert_E.7z (757 Bytes) Sickboy, 05/07/2012 16:15

History

Updated by Sickboy over 3 years ago

Is there anything myself or other users can do to assist with this process?

Updated by Sickboy over 3 years ago

  • Description updated (diff)

Updated by Jman over 3 years ago

Repro steps:

Make sure .NET Framework 4 Client Profile is installed on the server and it's running the latest arma2server beta

1. Install @Arma2NET on the server making sure you have the DateTimePlugin in it's addins folder and upload the example mission.
2. No need to install @Arma2NET on client. In this example only the server calls callExtension.
3. Run the mission and the server time should be displayed in the hint box.
4. You can also check RPT on server for the servertime output and on the client where it gets PV'd from the server.

Updated by Scott_NZ over 3 years ago

I need people to reproduce this issue using the stock dll, and then try https://bitbucket.org/Scott_NZ/arma2net/downloads/Arma2Net.Unmanaged-2.dll if it doesn't work.
This dll should immediately return the arguments passed to it via callExtension.

Updated by Jman over 3 years ago

For my part I have tried stock and both test dll's posted on biforum thread. All tests result in an empty string indicating that the dll is not being loaded by arma2server.exe

Updated by Scott_NZ over 3 years ago

Please give this one a go. It contains no managed code, and it is the bare minimum needed for callExtension to work. https://bitbucket.org/Scott_NZ/arma2net/downloads/UnmanagedTest.dll
It should return "Hello world".

Updated by Jman over 3 years ago

Ok tested and still returning nothing. If you can write into Arma2's rpt file whether the dll is actually being loaded via arma2server.exe just like the jayarma2lib functionality does that might be more revealing. I do not believe the dll is being loaded at all.

Updated by Sickboy over 3 years ago

Ok I have performed tests now too, and with the official release:

Windows 7 SP1, x64, UAC enabled.

It's working for me with attached mission, and this startup:

Exe timestamp: 2012/05/02 20:02:31
Current time:  2012/05/07 18:09:13
Version 1.60.92479

C:\Games\ARMA 2\expansion\beta\arma2oaserver.exe
expansion\beta\arma2oaserver.exe  -mod=expansion\beta;expansion\beta\expansion;@Arma2NET -config=test.cfg

Output in arma2oaserver.rpt:

18:12:05 "Initiating callExtension" 
18:12:06 ["throw "Arma2Net.Managed.FunctionNotFoundException""]
18:12:06 "Initialized callExtension"

And the same, when I use -profiles startup switch:

Exe timestamp: 2012/05/02 20:02:31
Current time:  2012/05/07 18:17:04

Version 1.60.92479
C:\Games\ARMA 2\expansion\beta\arma2oaserver.exe
expansion\beta\arma2oaserver.exe  -mod=expansion\beta;expansion\beta\expansion;@Arma2NET -config=test_01 "-profiles=C:\games\arma 2\profiles" 

18:17:12 "Initiating callExtension" 
18:17:12 ["throw "Arma2Net.Managed.FunctionNotFoundException""]
18:17:12 "Initialized callExtension" 

Updated by admin over 3 years ago

What confused me that JMan speaks of arma2server.exe and Arma2's.
Do you really mean Arma 2 or you only forgot the oa tag in there?

Updated by Jman over 3 years ago

This is my setup:

E:\Programs\ArmA2-Private\Expansion\beta\arma2oaserver.exe -port=2502 -name=Server-Public -config=E:\Server-Public\Server-Public.cfg -cfg=E:\Server-Public\ArmA2-Public.cfg -profiles=E:\Server-Public

-mod=expansion\beta;expansion\beta\expansion;@Arma2NET

Exe timestamp: 2012/04/26 16:34:46
Current time: 2012/05/07 16:12:54
Version 1.60.92329

Updated by Jman over 3 years ago

Issue resolved. The Windows Server box was missing a required MSVCR100.dll file from windows/system32

=====================================================================
E:\Programs\ArmA2\Expansion\beta\arma2oaserver.exe
E:\Programs\ArmA2\Expansion\beta\arma2oaserver.exe -port=2602 -mod=expansion\beta;expansion\beta\expansion;@Arma2NET -name=Server-test -config=E:\Server-test\Server-test.cfg -cfg=E:\Server-test\Arma2-test.cfg -profiles=E:\Server-test =====================================================================
Exe timestamp: 2012/04/26 16:34:46
Current time: 2012/05/07 18:35:57

Version 1.60.92329
2012/05/07, 18:35:57 ca\missions\MPScenarios\MP_Deathmatch.chernarus: string @str_mpdeathmatch_subname cannot be localized client-side - move to global stringtable
2012/05/07, 18:36:00 ca\missions\MPScenarios\MP_Deathmatch.chernarus: string @str_mpdeathmatch_subname cannot be localized client-side - move to global stringtable
2012/05/07, 18:36:02 Mission Arma2NET_serverTest_3.desert_E: Missing 'description.ext::Header'
2012/05/07, 18:36:15 "Initiating callExtension"
2012/05/07, 18:36:15 ["Hello world"]
2012/05/07, 18:36:15 "Initialized callExtension"
2012/05/07, 18:36:27 Server: Object 3:2 not found (message 225)

Updated by Sickboy over 3 years ago

Okay, great! Glad you got it sorted, and imo the ticket may be rejected - thanks for your time and efforts Scott!

Updated by Jman over 3 years ago

Thank you to Scott and Sickboy for moral support!

Updated by firefly2442 over 3 years ago

Woohoo! Thanks for testing this all! :D

Updated by Scott_NZ over 3 years ago

Oh my god, I had a sneaking suspicion that file was missing. That's why I wanted you to test the third dll ;)

Updated by Jman over 3 years ago

  • Status changed from New to Closed

Also available in: Atom PDF