Guillaume 10 Posted January 29, 2014 hi i think i might have a stupid problem I can't resolve: So here is my configuration : Player init command : null = execVM "init.sqf"; init.sqf: player addEventHandler ["Fired",{null = execVM "display.sqf"}] display.sqf: _result = call compile ("Arma2Net.Unmanaged" callExtension "ShotCounter [shotCount]"); hint _result; ShotCounter.dll using System;using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Arma2Net.AddInProxy; namespace ShotCounter { [AddIn("ShotCounter")] public class ShotCounter : MethodAddIn { private int counter = 0; public string shotCount() { counter++; return counter.ToString(); } } } So here is the problem. Normaly everytime i shot the script is supposed to call the extension and add 1 to the variable counter. But instead of 1 adds 3. So if i do a test and fire my weapon the Hint give me that : Shot 1 : "1" Shot 2 : "6" Shot 3 : "9" Shot 4 : "12" shot 5 : "15" I can't see where is the problem, i must be missing a fundamental part of how all this is working. Hope to have some help here Thanks ( I'm doing my best to speak a decent english, don't be mean ^^ ) Share this post Link to post Share on other sites
HeliJunkie 11 Posted January 29, 2014 Hi Guillaume! Think "init.sqf" will be called twice. 1.) It's a special filename wich is called by the game engine @ mission start 2.) It's called by you from the init field of your soldier So I can explain me, why it increment by 2. Why the counter is incrementing by 3... don't know. So here my first suggestions: Remove the line player addEventHandler ["Fired",{null = execVM "display.sqf"}] from the init.sqf file. Place ONLY this addEventHandler ["Fired",{null = execVM "display.sqf"}] in the init field of the soldier. So you should get rid of calling "addEventHandler" twice. Another suggestion: Maybe the script is called 3 times, but so fast, that you only see the last hint. So try "hintC" (in display.sqf) for debugging. HintC should pause the game each time display.sqf is called. Maybe you will see more messages then. Hope this will help you to get you closer to the solution. HeliJunkie Share this post Link to post Share on other sites
Guillaume 10 Posted January 29, 2014 Hi Guillaume!Think "init.sqf" will be called twice. 1.) It's a special filename wich is called by the game engine @ mission start 2.) It's called by you from the init field of your soldier So I can explain me, why it increment by 2. Why the counter is incrementing by 3... don't know. So here my first suggestions: Remove the line player addEventHandler ["Fired",{null = execVM "display.sqf"}] from the init.sqf file. Place ONLY this addEventHandler ["Fired",{null = execVM "display.sqf"}] in the init field of the soldier. So you should get rid of calling "addEventHandler" twice. Another suggestion: Maybe the script is called 3 times, but so fast, that you only see the last hint. So try "hintC" (in display.sqf) for debugging. HintC should pause the game each time display.sqf is called. Maybe you will see more messages then. Hope this will help you to get you closer to the solution. HeliJunkie Thanks a lot, i didn't now that init is executed no matter what. so the script was running multiple times as you said Share this post Link to post Share on other sites
blckeagls 12 Posted January 30, 2014 (edited) Hello.. I have tried everything... Followed all instructions.. For some reason, I can't get Arma2NET to be loaded into my server. I did this for testing: hint ("HELLO"); -- WORKS sleep 2; hint ("Arma2Net.Unmanaged" callExtension "ClrVersion"); -- Does not work.... My start line: start "arma2" "Expansion\beta\arma2oaserver.exe" -port=2302 "-config=instance_11_Chernarus\config.cfg" "-cfg=instance_11_Chernarus\basic.cfg" "-profiles=instance_11_Chernarus" -name=instance_11_Chernarus -arma2netdev "-mod=@Arma2NET;@DayZ_Epoch;@DayZ_Epoch_Server;Expansion/beta;Expansion/beta/Expansion;" -cpuCount=4 -noCB -maxMem=10235 -exThreads=1 I have .NET 4.0 Installed... I installed Mono.... The script works with the Arma2NetExplorer.exe.... When i run the game it produces no logs... When i run Arma2NetExplorer.exe it does.... Have no idea why it doesn't do anything!!!! Any Help would be greatly appreciated.... Edited January 30, 2014 by blckeagls Share this post Link to post Share on other sites
blckeagls 12 Posted January 30, 2014 Hello.. I have tried everything... Followed all instructions.. For some reason, I can't get Arma2NET to be loaded into my server. I did this for testing: hint ("HELLO"); -- WORKS sleep 2; hint ("Arma2Net.Unmanaged" callExtension "ClrVersion"); -- Does not work.... My start line: start "arma2" "Expansion\beta\arma2oaserver.exe" -port=2302 "-config=instance_11_Chernarus\config.cfg" "-cfg=instance_11_Chernarus\basic.cfg" "-profiles=instance_11_Chernarus" -name=instance_11_Chernarus -arma2netdev "-mod=@Arma2NET;@DayZ_Epoch;@DayZ_Epoch_Server;Expan sion/beta;Expansion/beta/Expansion;" -cpuCount=4 -noCB -maxMem=10235 -exThreads=1 I have .NET 4.0 Installed... I installed Mono.... The script works with the Arma2NetExplorer.exe.... When i run the game it produces no logs... When i run Arma2NetExplorer.exe it does.... Have no idea why it doesn't do anything!!!! Any Help would be greatly appreciated.... Share this post Link to post Share on other sites
HeliJunkie 11 Posted January 30, 2014 install c++ redist 2008 and try again Gesendet von meinem GT-I9000 mit Tapatalk 2 Share this post Link to post Share on other sites
blckeagls 12 Posted January 30, 2014 Did not work... Share this post Link to post Share on other sites
blckeagls 12 Posted January 31, 2014 From Add/Remove programs I: Uninstalled all .NET packages.. Uninstalled all visual c++ packages... Uninstalled SqlLite... Then I: Installed http://download.microsoft.com/downlo...Full_setup.exe Installed http://system.data.sqlite.org/blobs/...0-1.0.89.0.exe (clicked the check boxes install assemblies into global cache & designer components) Installed http://download.microsoft.com/downlo...redist_x86.exe (c++ redist 2008) Then I checked Add/Remove programs and here is what is installed: Microsoft .NET Framework 4 Client Profile Microsoft .NET Framework 4 Extended Microsoft .NET Framework 4.5 Multi-Targeting Pack Microsoft .NET Framework 4.5 SDK Microsoft .NET Framework Multi-Targeting Pack Microsoft .NET Framework Multi-Targeting Pack (ENU) Microsoft .NET Framework SDK Microsoft Visual C++ 2008 Redistributable - x85 9.0.21022 Microsoft Visual C++ 2010 x86 Redistributable - 10.0.40219 System.Data.SQLite v1.0.89.0 Does not load into Arma 2... Is it not compatible with Dayz_Epoch???? What am I doing wrong for it not to load in the Server but the "Arma2NET Explorer" executes correctly. Even the mysql plugin works with the "Arma2NET Explorer".... Just doesnt work in the mod when I do any of these: titleText[("Arma2Net.Unmanaged" callExtension "ClrVersion"),"PLAIN"]; _insertTest = "Arma2Net.Unmanaged" callExtension "Arma2NETMySQLCommand ['dayz_epoch', 'insert into donor_bank values (34555,44344444)']"; But in Arma2NET_Explorer this runs perfectly: ClrVersion Arma2NETMySQLCommand ['dayz_epoch', 'insert into donor_bank values (34555,44344444)'] ---------- Post added at 00:45 ---------- Previous post was at 00:40 ---------- This is on my sqf script... All but the _insertTest work.... Any ideas? hint ("HELLO"); sleep 1; insertTest = "Arma2Net.Unmanaged" callExtension "Arma2NETMySQLCommand ['dayz_epoch', 'insert into donor_bank values (34555,44344444)']"; hint ("executed"); Output: Hello (pause) Executed No changes in database.... Share this post Link to post Share on other sites
Guillaume 10 Posted January 31, 2014 (edited) [RESOLVED] A little question here : here is the code (very simple) _profileName = name player; _store = call compile ("Arma2Net.Unmanaged" callExtension "ShotCounter [storeNewProfile,_profileName]"); yet i'd like the _profileName not to be considered as the string _profileName but as the value of it. let me be clear. When this execute it register "_profileName" in the database, and not my actual profileName. how can i manage that ? EDIT : I tried this : _store = call compile format [("Arma2Net.Unmanaged" callExtension "ShotCounter [storeNewProfile,%1]"),_profileName];_result = call compile ("Arma2Net.Unmanaged" callExtension "ShotCounter [countReset]"); hint format["%1",_store] there is the method of my dll : public string storeNewProfile(string profile) { string connectionString = "SERVER=" + server + ";" + "DATABASE=" + database + ";" + "UID=" + uid + ";" + "PASSWORD=" + password + ";"; try { connection = new MySqlConnection(connectionString); try { this.Insert("profile", "profile", "\'" + profile + "\'"); return profile + " added to " + database; } catch (MySqlException ex) { return ex.Message.ToString(); } } catch (Exception e) { return e.Message.ToString(); } return "lol"; } The thing the value of _stored in the last Hint is the correct one ( my actual profile name ) but the value stored in the database is "%1". Ok nevermind i found it ^^ here is the correct command line : _store = call compile("Arma2Net.Unmanaged" callExtension format ["ShotCounter [storeNewProfile,%1]",_profileName]); Edited January 31, 2014 by Guillaume Share this post Link to post Share on other sites
blckeagls 12 Posted February 5, 2014 (edited) My SQF Code with execution comments _text = "Arma2Net.Unmanaged" callExtension "ClrVersion"; titleText[format["Version: %1",_text],"PLAIN"]; // Displays "Version: " _text does not execute sleep 2; _selectTest = "Arma2Net.Unmanaged" callExtension "Arma2NETMySQLCommand ['dayz_epoch', 'SELECT * FROM donor_bank LIMIT 3']"; titleText[format["This is result: %1",_selectTest],"PLAIN"]; // Displays "This is result: " _selectTest does not execute "Arma2Net.Unmanaged" callExtension "Arma2NETMySQLCommand ['dayz_epoch', 'insert into donor_bank (PlayerUID) values (555555) ']"; // Does not edit DB When I run these commands in Arma2NET Explorer, they work..... This is what I run in Arma2NET Explorer and it work: ClrVersion Arma2NETMySQLCommand ['dayz_epoch', 'SELECT * FROM donor_bank LIMIT 3'] Arma2NETMySQLCommand ['dayz_epoch', 'insert into donor_bank (PlayerUID) values (555555) '] Startup line: start "arma2" "Expansion\beta\arma2oaserver.exe" -port=2302 "-config=instance_11_Chernarus\config.cfg" "-cfg=instance_11_Chernarus\basic.cfg" -arma2netdev "-profiles=instance_11_Chernarus" -name=instance_11_Chernarus "-mod=@Arma2NET;@DayZ_Epoch;@DayZ_Epoch_Server;Expansion/beta;Expansion/beta/Expansion;" -cpuCount=4 -noCB -maxMem=10000 -exThreads=1 Why does this not work in game? ---------- Post added at 18:39 ---------- Previous post was at 18:26 ---------- This is the Arma2NET Explorer Logs (I get no logs through game). ARMA2NET Log: 02/05/2014 12:50:27 Arma2NET 2.3.0.0 running on CLR 4.0.30319.1008 02/05/2014 12:50:27 Loaded into process Arma2NetExplorer 02/05/2014 12:50:27 Loading add-ins 02/05/2014 12:50:27 Domain Name Version Publisher Description 02/05/2014 12:50:27 Arma2NetExplorer.exe Arma2NETMySQL 0.1.0.0 firefly2442 Runs MySQL procedure commands. 02/05/2014 12:50:27 Arma2NetExplorer.exe Arma2NETMySQLCommand0.1.0.0 firefly2442 Runs raw MySQL/SQLite commands 02/05/2014 12:50:27 Arma2NetExplorer.exe Arma2NETMySQLCommandAsync0.1.0.0 firefly2442 Runs asynchronous raw MySQL/SQLite commands 02/05/2014 12:50:27 Arma2NetExplorer.exe ClrVersion 2.0.0.0 Scott_NZ Retrieves the version of the Common Language Runtime. 02/05/2014 12:50:27 Arma2NetExplorer.exe CompareVersion 2.0.0.0 Scott_NZ Compares two version strings and returns an integer indicating how they compare. 02/05/2014 12:50:27 Arma2NetExplorer.exe Version 2.0.0.0 Scott_NZ Returns the version of Arma2NET. 02/05/2014 12:50:27 Arma2NetExplorer.exe GetClipboardText 1.0.0.0 Scott_NZ Gets the clipboard text value. 02/05/2014 12:50:27 Arma2NetExplorer.exe SetClipboardText 1.0.0.0 Scott_NZ Sets the clipboard to a text value. 02/05/2014 12:50:27 Arma2NetExplorer.exe CommandLine 2.0.0.0 Scott_NZ Returns the command line used to start the application. 02/05/2014 12:50:27 Arma2NetExplorer.exe DateTime 2.0.0.0 Scott_NZ Returns the current date and time. 02/05/2014 12:50:27 Arma2NET initialized in 00:00:00.0810222 02/05/2014 12:50:27 function: ClrVersion 02/05/2014 12:50:27 maxResultSize: 4095 02/05/2014 12:50:27 Result size: 16 02/05/2014 12:50:27 Result: "4.0.30319.1008" 02/05/2014 12:50:34 function: Arma2NETMySQLCommand ['dayz_epoch', 'SELECT * FROM donor_bank LIMIT 3'] 02/05/2014 12:50:34 maxResultSize: 4095 02/05/2014 12:50:34 Result size: 16 02/05/2014 12:50:34 Result: [[["1234", ""]]] 02/05/2014 12:50:38 function: Arma2NETMySQLCommand ['dayz_epoch', 'insert into donor_bank (PlayerUID) values (555555) '] 02/05/2014 12:50:38 maxResultSize: 4095 02/05/2014 12:50:38 Result size: 4 02/05/2014 12:50:38 Result: [[]] Arma2NETMySQL Log: Info: 12:50:34 - Logging started in directory: C:\Users\Brandon\AppData\Local\Arma2NETMySQL/logs/ Info: 12:50:34 - Arma2NETMySQL Plugin Started. Info: 12:50:34 - Version number: 0.1.0.0 Info: 12:50:34 - Loading databases... Info: 12:50:34 - Databases.txt file loading in from: D:\SERVER\Server\@Arma2NET\Databases.txt Info: 12:50:34 - Type: mysql Database: dayz_epoch IPAddress: 184.xx.xx.xx Port: 3306 Username: dayz_epoch Password: NotShownForSecurityReasons Info: 12:50:34 - Received - Database: dayz_epoch SQL Query: SELECT * FROM donor_bank LIMIT 3 Info: 12:50:38 - Received - Database: dayz_epoch SQL Query: insert into donor_bank (PlayerUID) values (555555) Edited February 5, 2014 by blckeagls Share this post Link to post Share on other sites
firefly2442 6 Posted February 5, 2014 Info: 12:36:44 - Received - Database: donor_bank SQL Query: SELECT * FROM PlayerUID LIMIT 3 Are you sure this is the code that you're running? This database name doesn't match what you have above... You can have multiple databases in the Databases.txt file but they all have to be specified, otherwise the queries won't work. Share this post Link to post Share on other sites
blckeagls 12 Posted February 5, 2014 (edited) I did a wrong copy paste.. edited post with correct code and logs... I don't think the issue is not with the code anyhow... It does not run when the server starts up.... I should receive some kind of logs (error or not) when the commands are executed... I receive nothing. I have only one database in my database.sqf file... I have tested and they work through arma2net explorer... Can we focus on getting this to run in the actual game? It runs in Arma2NET Explorer... Just not in the actual game.... ---------- Post added at 19:06 ---------- Previous post was at 18:58 ---------- Directory Listing of Server/ Volume in drive D is Programs Volume Serial Number is 1226-5B55 Directory of D:\SERVER\Server 02/05/2014 01:03 PM <DIR> . 02/05/2014 01:03 PM <DIR> .. 02/05/2014 11:59 AM <DIR> @Arma2NET 01/29/2014 08:01 PM <DIR> @Dayz 02/01/2014 10:37 AM <DIR> @DayZ_Epoch 01/30/2014 11:52 AM <DIR> @DayZ_Epoch_Server 11/05/2013 12:41 AM 3,069 ACR_Lite_UnInstall.csv 11/05/2013 12:41 AM 747,144 ACR_Lite_UnInstall.exe 02/05/2014 11:58 AM <DIR> AddIns 01/29/2014 08:04 PM <DIR> AddOns 02/03/2014 05:28 PM 11,263,112 arma2.exe 12/03/2012 11:31 AM 16,896 Arma2Net.AddInProxy.dll 12/03/2012 11:31 AM 19,456 Arma2Net.Managed.dll 12/03/2012 11:31 AM 37,888 Arma2Net.Unmanaged.dll 12/03/2012 11:31 AM 116,224 Arma2Net.Unmanaged.Mono.dll 12/03/2012 11:31 AM 19,456 Arma2NetExplorer.exe 11/18/2013 04:55 PM 20,992 Arma2NETMySQLPlugin.dll 02/03/2014 05:28 PM 13,157,000 arma2oa.exe 02/03/2014 05:28 PM 12,364,936 arma2oaserver.exe 11/04/2013 11:02 PM 5,185,156 ARMA2OA_manual.pdf 01/10/2014 02:29 AM 9,387,144 arma2server.exe 01/29/2014 08:04 PM <DIR> BattlEye 01/29/2014 08:04 PM <DIR> Binaries 02/03/2014 05:28 PM 226 bis.url 02/03/2014 05:28 PM 339 checkFileList.lst 02/03/2014 04:35 PM <DIR> Common 02/03/2014 05:28 PM 3,285,504 Database.dll 02/03/2014 05:28 PM 3,115,520 DatabaseMySql.dll 02/03/2014 05:28 PM 287,232 DatabasePostgre.dll 02/05/2014 01:04 PM 0 director.txt 01/29/2014 08:04 PM <DIR> dll 02/03/2014 04:43 PM <DIR> donor 01/29/2014 08:04 PM <DIR> Dta 01/29/2014 08:05 PM <DIR> Expansion 02/03/2014 05:28 PM 352,256 ijl15.dll 02/05/2014 12:20 PM <DIR> instance_11_Chernarus 01/29/2014 08:06 PM <DIR> Keys 02/03/2014 05:28 PM 153,034 lang.ini 11/04/2013 11:11 PM 1,565 Launch Arma2 OA Beta Patch.lnk 01/28/2014 11:22 PM 2,492,416 libmysql.dll 02/15/2012 06:24 PM 12,561 license.rtf 02/03/2014 05:28 PM 58,856 logo-paul.bmp 01/29/2014 08:06 PM <DIR> Missions 01/30/2014 05:52 PM <DIR> MPMissions 06/11/2011 12:15 AM 829,264 msvcr100.dll 06/19/2013 11:35 PM 438,272 MySql.Data.dll 02/03/2014 05:28 PM 279,880 paul.dll 07/27/2012 11:47 PM 2,123 readme.md 10/26/2013 01:25 PM 984,576 System.Data.SQLite.dll 02/03/2014 05:28 PM 169,288 tbb.dll 02/03/2014 05:28 PM 68,424 tbbmalloc.dll 02/03/2014 05:28 PM 983 Uninstall Arma2 OA Beta Patch.lnk 02/03/2014 05:28 PM 1,943 uninstall.csv 02/03/2014 05:28 PM 601,224 uninstall.exe 02/03/2014 05:28 PM 2,760 UnInstall_OA.csv 02/03/2014 05:28 PM 633,992 UnInstall_OA.exe 02/03/2014 05:28 PM 593,322 wallpaper1.jpg 02/03/2014 05:28 PM 645,131 wallpaper2.jpg 02/05/2014 11:12 AM 505 _restart.bat 40 File(s) 67,349,669 bytes 19 Dir(s) 56,773,115,904 bytes free Directory Listing of @Arma2NET Volume in drive D is Programs Volume Serial Number is 1226-5B55 Directory of D:\SERVER\Server\@Arma2NET 02/05/2014 01:05 PM <DIR> . 02/05/2014 01:05 PM <DIR> .. 02/03/2014 05:34 PM <DIR> AddIns 12/03/2012 11:31 AM 16,896 Arma2Net.AddInProxy.dll 12/03/2012 11:31 AM 19,456 Arma2Net.Managed.dll 12/03/2012 11:31 AM 37,888 Arma2Net.Unmanaged.dll 12/03/2012 11:31 AM 116,224 Arma2Net.Unmanaged.Mono.dll 12/03/2012 11:31 AM 19,456 Arma2NetExplorer.exe 02/05/2014 12:48 PM 3,969 Arma2NetExplorerEvaluatorHistory.dat 11/18/2013 04:55 PM 20,992 Arma2NETMySQLPlugin.dll 04/09/2012 05:10 AM 82 authors.txt 12/03/2012 11:18 AM 8,264 changelog.txt 02/03/2014 05:46 PM 494 Databases.txt 02/05/2014 01:05 PM 0 director.txt 02/15/2012 06:24 PM 12,561 license.rtf 08/23/2012 11:34 PM 80 MonoPaths.txt 06/19/2013 11:35 PM 438,272 MySql.Data.dll 07/27/2012 11:47 PM 2,123 readme.md 10/26/2013 01:25 PM 984,576 System.Data.SQLite.dll 16 File(s) 1,681,333 bytes 3 Dir(s) 56,773,111,808 bytes free Edited February 5, 2014 by blckeagls Share this post Link to post Share on other sites
firefly2442 6 Posted February 5, 2014 I don't see any errors in the logs and the file structure looks fine. If you delete all the log files and then re-run your SQF mission/example, what does it say? Share this post Link to post Share on other sites
blckeagls 12 Posted February 5, 2014 It does not create a log when i run the script in game... ---------- Post added at 20:00 ---------- Previous post was at 19:29 ---------- This should work in an SQF if Arma2NET is running: _text = "Arma2Net.Unmanaged" callExtension "ClrVersion"; titleText[format["Version: %1",_text],"PLAIN"]; Here is my start script: cd "D:\SERVER\Server" start "arma2" "Expansion\beta\arma2oaserver.exe" -port=2302 "-config=instance_11_Chernarus\config.cfg" "-cfg=instance_11_Chernarus\basic.cfg" -arma2netdev "-profiles=instance_11_Chernarus" -name=instance_11_Chernarus "-mod=@Arma2NET;@DayZ_Epoch;@DayZ_Epoch_Server;Expansion/beta;Expansion/beta/Expansion;" -cpuCount=4 -noCB -maxMem=10000 -exThreads=1 It does not run on my server. Why? Share this post Link to post Share on other sites
firefly2442 6 Posted February 8, 2014 This works for me in Arma2 OA: hint("Arma2Net.Unmanaged" callExtension "ClrVersion"); Fire up the editor and place it in the initialization for the player unit. It does not create a log when i run the script in game...---------- Post added at 20:00 ---------- Previous post was at 19:29 ---------- This should work in an SQF if Arma2NET is running: _text = "Arma2Net.Unmanaged" callExtension "ClrVersion"; titleText[format["Version: %1",_text],"PLAIN"]; Here is my start script: cd "D:\SERVER\Server" start "arma2" "Expansion\beta\arma2oaserver.exe" -port=2302 "-config=instance_11_Chernarus\config.cfg" "-cfg=instance_11_Chernarus\basic.cfg" -arma2netdev "-profiles=instance_11_Chernarus" -name=instance_11_Chernarus "-mod=@Arma2NET;@DayZ_Epoch;@DayZ_Epoch_Server;Expansion/beta;Expansion/beta/Expansion;" -cpuCount=4 -noCB -maxMem=10000 -exThreads=1 It does not run on my server. Why? Share this post Link to post Share on other sites
das_beast 10 Posted February 8, 2014 Hi. I need some help getting my Arma 2 MSO server to run the persistent database; I have tried many things, and Googled for hours, but it still does not work. I am running a windows 2008 R2 server. here are the installs/versions of the mysql/.net framework: This is the start up parameters for my server : arma2oaserver.exe -ip=74.91.127.38 -port=2303 -arma2netdev "-config=C:\Arma server 2\Arma 2 Operation Arrowhead\TADST\MSO\TADST_config.cfg" "-cfg=C:\Arma server 2\Arma 2 Operation Arrowhead\TADST\MSO\TADST_basic.cfg" "-profiles=C:\Arma server 2\Arma 2 Operation Arrowhead\TADST\MSO" -name=MSO "-mod=;C:\Arma server 2\Arma 2;C:\Arma server 2\Arma 2 Operation Arrowhead\Expansion;ca;@ace;@acex;@acex_ru;@acex_sm;@acex_usnavy;@acre;@cba;@cba_a2;@cba_oa;@jayarma2lib;@Arma2NET" Here is the RPT file for the server, trying to use PDB crashes the server: http://pastebin.com/cA6qbZiL Here is the ARMA2NET log: http://pastebin.com/e7jzK0Ay The server works fine if I have PDB disabled in the parameters, but the second I turn it on,and we start the map; we cannot get past the setting up new client for the persistent database screen, and then the server crashes. Share this post Link to post Share on other sites
firefly2442 6 Posted February 8, 2014 I'm not sure if MSO is even supported anymore. I think they stopped working on it. Hi. I need some help getting my Arma 2 MSO server to run the persistent database; I have tried many things, and Googled for hours, but it still does not work. I am running a windows 2008 R2 server. here are the installs/versions of the mysql/.net framework: http://i.imgur.com/RBehoXH.pngThis is the start up parameters for my server : arma2oaserver.exe -ip=74.91.127.38 -port=2303 -arma2netdev "-config=C:\Arma server 2\Arma 2 Operation Arrowhead\TADST\MSO\TADST_config.cfg" "-cfg=C:\Arma server 2\Arma 2 Operation Arrowhead\TADST\MSO\TADST_basic.cfg" "-profiles=C:\Arma server 2\Arma 2 Operation Arrowhead\TADST\MSO" -name=MSO "-mod=;C:\Arma server 2\Arma 2;C:\Arma server 2\Arma 2 Operation Arrowhead\Expansion;ca;@ace;@acex;@acex_ru;@acex_sm;@acex_usnavy;@acre;@cba;@cba_a2;@cba_oa;@jayarma2lib;@Arma2NET" Here is the RPT file for the server, trying to use PDB crashes the server: http://pastebin.com/cA6qbZiL Here is the ARMA2NET log: http://pastebin.com/e7jzK0Ay The server works fine if I have PDB disabled in the parameters, but the second I turn it on,and we start the map; we cannot get past the setting up new client for the persistent database screen, and then the server crashes. Share this post Link to post Share on other sites
blckeagls 12 Posted March 3, 2014 This is still no working. The script runs, but provides no results. Here is my scripts. _result = "Arma2Net.Unmanaged" callExtension "Arma2NETMySQLCommand ['dayz_epoch', 'SELECT * FROM object_data LIMIT 1']"; sleep 2; cutText [format["This is result: %1",_result],"PLAIN"]; _result = "Arma2Net.Unmanaged" callExtension "Arma2NETMySQL ['dayz_epoch', 'SELECT * FROM object_data LIMIT 1']"; sleep 2; cutText [format["This is result: %1",_result],"PLAIN"]; _result = "Arma2Net.Unmanaged" callExtension "DateTime ['now',]"; sleep 2; titleText [format["This is Date: %1",_result],"PLAIN DOWN"]; sleep 2; hint ("Arma2Net.Unmanaged" callExtension "DateTime ['now', 'HH:mm:ss dd/MM/yyyy']"); I just get the text, no results. The hint message doesn't display also. Also, there is no logs when I run it in game. When I run the "Arma2NetExplorer.exe" it produces logs and works correctly. Here is my startup line: start "arma2" "Expansion\beta\arma2oaserver.exe" -port=2302 "-config=instance_11_Chernarus\config.cfg" "-cfg=instance_11_Chernarus\basic.cfg" "-profiles=instance_11_Chernarus" -name=instance_11_Chernarus -Arma2NETDev "-mod=@Arma2NET;@DayZ_Epoch;@DayZ_Epoch_Server;Expansion/beta;Expansion/beta/Expansion;" -cpuCount=14 -maxMem=20470 -exThreads=0 -showscripterrors This works for me in Arma2 OA:Fire up the editor and place it in the initialization for the player unit. Share this post Link to post Share on other sites
firefly2442 6 Posted March 3, 2014 You're sure there are no logs here when you run the game? C:\Users\Yourname\AppData\Local\Arma2NET\ But they do show up here when you run Arma2NETExplorer? Where do you have Arma2NET located? Is it in the root Arma2 OA folder? If so, try copying it to the beta folder directory. Perhaps it's not getting loaded in because of that?... This is still no working. The script runs, but provides no results. Here is my scripts._result = "Arma2Net.Unmanaged" callExtension "Arma2NETMySQLCommand ['dayz_epoch', 'SELECT * FROM object_data LIMIT 1']"; sleep 2; cutText [format["This is result: %1",_result],"PLAIN"]; _result = "Arma2Net.Unmanaged" callExtension "Arma2NETMySQL ['dayz_epoch', 'SELECT * FROM object_data LIMIT 1']"; sleep 2; cutText [format["This is result: %1",_result],"PLAIN"]; _result = "Arma2Net.Unmanaged" callExtension "DateTime ['now',]"; sleep 2; titleText [format["This is Date: %1",_result],"PLAIN DOWN"]; sleep 2; hint ("Arma2Net.Unmanaged" callExtension "DateTime ['now', 'HH:mm:ss dd/MM/yyyy']"); I just get the text, no results. The hint message doesn't display also. Also, there is no logs when I run it in game. When I run the "Arma2NetExplorer.exe" it produces logs and works correctly. Here is my startup line: start "arma2" "Expansion\beta\arma2oaserver.exe" -port=2302 "-config=instance_11_Chernarus\config.cfg" "-cfg=instance_11_Chernarus\basic.cfg" "-profiles=instance_11_Chernarus" -name=instance_11_Chernarus -Arma2NETDev "-mod=@Arma2NET;@DayZ_Epoch;@DayZ_Epoch_Server;Expansion/beta;Expansion/beta/Expansion;" -cpuCount=14 -maxMem=20470 -exThreads=0 -showscripterrors Share this post Link to post Share on other sites
CrixzGamez 1 Posted March 9, 2014 Alight, does anyone want to help me setup a PRE-Made MP Mission and Pre-mad @load_server I cant get the database to connect with the server and I would like to learn how to edit peoples ranks and whitelist people! Ill pay you money when done helping - price will be descussed :) Share this post Link to post Share on other sites
sandbird 10 Posted March 23, 2014 (edited) When i am writing this in the Arma2Net Explorer : Arma2Net.Unmanaged" callExtension "ClrVersion" Should this return a result ? Cause i am getting : throw "Arma2Net.Managed.FunctionNotFoundException"" Arma2Net log file: 03/23/2014 21:47:15 Arma2NET 2.3.0.0 running on CLR 4.0.30319.18449 03/23/2014 21:47:15 Loaded into process Arma2NetExplorer 03/23/2014 21:47:15 Loading add-ins 03/23/2014 21:47:15 Domain Name Version Publisher Description 03/23/2014 21:47:15 Arma2NetExplorer.exe Arma2NETMySQL 0.1.0.0 firefly2442 Runs MySQL procedure commands. 03/23/2014 21:47:15 Arma2NetExplorer.exe Arma2NETMySQLCommand0.1.0.0 firefly2442 Runs raw MySQL/SQLite commands 03/23/2014 21:47:15 Arma2NetExplorer.exe Arma2NETMySQLCommandAsync0.1.0.0 firefly2442 Runs asynchronous raw MySQL/SQLite commands 03/23/2014 21:47:15 Arma2NetExplorer.exe ClrVersion 2.0.0.0 Scott_NZ Retrieves the version of the Common Language Runtime. 03/23/2014 21:47:15 Arma2NetExplorer.exe CompareVersion 2.0.0.0 Scott_NZ Compares two version strings and returns an integer indicating how they compare. 03/23/2014 21:47:15 Arma2NetExplorer.exe Version 2.0.0.0 Scott_NZ Returns the version of Arma2NET. 03/23/2014 21:47:15 Arma2NetExplorer.exe GetClipboardText 1.0.0.0 Scott_NZ Gets the clipboard text value. 03/23/2014 21:47:15 Arma2NetExplorer.exe SetClipboardText 1.0.0.0 Scott_NZ Sets the clipboard to a text value. 03/23/2014 21:47:15 Arma2NetExplorer.exe CommandLine 2.0.0.0 Scott_NZ Returns the command line used to start the application. 03/23/2014 21:47:15 Arma2NetExplorer.exe DateTime 2.0.0.0 Scott_NZ Returns the current date and time. 03/23/2014 21:47:15 Arma2NET initialized in 00:00:00.0693927 03/23/2014 21:47:15 Caught exception of type Arma2Net.Managed.FunctionNotFoundException 03/23/2014 21:47:15 Arma2Net.Managed.FunctionNotFoundException: The specified add-in was not found: Arma2Net.Unmanaged" at Arma2Net.Managed.AddInManager.InvokeAddIn(String addInName, String arguments, Int32 maxResultSize) at Arma2Net.Managed.Bridge.InvokeBuiltInOrAddIn(String function, Int32 maxResultSize) at Arma2Net.Managed.Bridge.InvokeFunction(String function, Int32 maxResultSize) 03/23/2014 21:47:15 function: Arma2Net.Unmanaged" callExtension "ClrVersion" 03/23/2014 21:47:15 maxResultSize: 4095 And i have installed: http://system.data.sqlite.org/downloads/1.0.89.0/sqlite-netFx40-setup-bundle-x86-2010-1.0.89.0.exe Running on win8 64bit Already had the dotNetFx40_Client_x86_x64 my computer says IGNORE PLEASE...Answered Edited March 23, 2014 by Sandbird answered Share this post Link to post Share on other sites
xXMultivitaminXx 10 Posted March 24, 2014 Exciting stuff. I'm working on getting a VM up as a dedicated server or something so I can start researching the feasibility of a Linux version of Arma2NET. Hey how does the Linux Version progress? Are you making one in the Future or do you gave up? Share this post Link to post Share on other sites
Polaris 1 Posted April 4, 2014 (edited) I have a quick question about empty strings. I've noticed that when processing inputs a single double quote stays a single double quote but two double quotes adjacent (an empty string) becomes a single double quote resulting in arrays looking like this ["weapon",",",","stuff"]; instead of ["weapon,"","","","stuff"]; Edited April 4, 2014 by Polaris Share this post Link to post Share on other sites