Jump to content

alleycat

Member
  • Content Count

    1003
  • Joined

  • Last visited

  • Medals

  • Medals

Everything posted by alleycat

  1. alleycat

    Arma2MySQL

    Are you talking about a specific log file named after the plugin or the rpt files? These only have one line that relates to the SQL, nothing else. ---------- Post added at 12:52 AM ---------- Previous post was at 12:27 AM ---------- Could you also show a precise location where the plugin has to be? I placed it in both folder structures as the readme tells, but it apparently never gets loaded, as there is no log file for it. The databases.txt is in place too.
  2. Assuming I wanted to keep track of variables of a player, like shots fired or distance walked, how to do that? I could run scripts on a player that update all the time but that feels hacky. I do have some C++ experience in game programming and usually I would store the stuff in a player class. What is the equivalent of that in arma2 scripting?
  3. tried something slightly different: //get who called the script _caller = this select 0; //While loop example using local var _testvar = 0; If (local _caller && isPlayer _caller) then { while { _testvar < 100 } do { hintsilent format ["testvar: %1 caller: %2",_testvar,name _caller] ; _testvar = _testvar + 1; sleep 1; }; called with: call { [unit1] execVM "bulletcounter.sqf"; } This time it wont appear at all. ---------- Post added 01-28-2013 at 12:14 AM ---------- Previous post was 01-27-2013 at 11:04 PM ---------- Found the issue, there was no underscore before "this". adding that fixed getting the caller. After some more experimenting I am attempting to code a basic "thirst" level //attempting to create a variable for the player, does this even work? _caller setVariable ["thirst", 1, false]; //Process player variables if (_caller == player) then { while { _caller == player } do { thirst = thirst + 1; hintsilent format ["thirst: %1\n",thirst] ; sleep 10; }; While the loop did work with a _var, when using thirst it only displays "scalar" on hint. This is the thing I dont get. How to assign a variable to a player and have it accessible by scripts that run on the local machine?
  4. alleycat

    Arma2MySQL

    Where is that that log file supposed to be?
  5. Trying to get a dedicated server to run with beta and it is very confusing: Win Server 2008 1. Installed A2 + OA + OA beta over steam 2. What do I have to do to run OA server so it uses the latest beta patch? Install it manually from that site with the latest patches (which gives an invalid cd key error), or somehow use that OA beta on steam? 3. what command line parameters are needed to run the beta? Simply load the beta exe in the expansion/beta, and or use that -beta command?
  6. alleycat

    Arma2MySQL

    ===================================================================== == C:\Program Files (x86)\Steam\steamapps\common\Arma 2 Operation Arrowhead\arma2oaserver.exe == "C:\Program Files (x86)\Steam\steamapps\common\Arma 2 Operation Arrowhead\arma2oaserver.exe" -port=2302 "-config=C:\Program Files (x86)\Steam\steamapps\common\Arma 2 Operation Arrowhead\TA2DST\cat_sql\TA2DST_config.cfg" "-cfg=C:\Program Files (x86)\Steam\steamapps\common\Arma 2 Operation Arrowhead\TA2DST\cat_sql\TA2DST_basic.cfg" "-profiles=C:\Program Files (x86)\Steam\steamapps\common\Arma 2 Operation Arrowhead\TA2DST\cat_sql" -name=TA2DST -pid=PID.log "-ranking=ranking.log" "-mod=Expansion\beta;Expansion\beta\Expansion;@CBA;@CBA_A2;@CBA_OA;@Arma2NET" ===================================================================== Exe timestamp: 2013/01/24 23:31:30 Current time: 2013/01/27 18:46:34 Version 1.62.95251 18:46:34 Mission Arma2NetMySQLPlugin-ExampleMis.utes: Missing 'description.ext::Header' 18:46:34 Server error: Player without identity cat (id 923206864) 18:46:50 Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\wlk\non\non\amovpercmwlksnonwnondf.rtm differs (looped now 0)! MoveName: amovpercmstpsnonwnondnon_amovpercmstpsraswpstdnon 18:46:51 [4306,114.452,0,"XEH: PreInit Started. v1.0.0.187. MISSINIT: missionName=Arma2NetMySQLPlugin-ExampleMis, worldName=utes, isMultiplayer=true, isServer=true, isDedicated=true"] 18:46:53 [4306,116.208,0,"XEH: PreInit Finished. CACHE DISABLED? (Disable caching with cba_disable_cache.pbo): SLX_XEH_RECOMPILE=false, CBA_COMPILE_RECOMPILE=false, CBA_FUNC_RECOMPILE=false"] 18:46:53 [4307,116.543,0,"XEH: PostInit Started"] 18:46:53 [4307,116.642,0,"CBA_VERSIONING: cba=1.0.0.188, cba_a2=1.0.0.8, cba_oa=1.0.0.6, "] 18:46:53 [4307,116.69,0,"XEH: PostInit Finished. State: _isClient=false, _isJip=false, _isDedClient=false, _isServer=true, _isDedServer=true, _playerCheckDone=true, _sp=false, _startInitDone=true, _postInitDone=true, _mpRespawn=false, _machineType=0, _sessionId=1, _level=0, _timeOut=false, _game=1, BIS_functions=L 1-1-B:1, group=L 1-1-B"] 18:47:00 0:02:03.717 (0:00:00.000) cba_versioning - cba - Version Mismatch! (Machine: p1 (cat) version: 1.0.0.190, serverVersion: 1.0.0.188, Level: 4)
  7. After some fiddling I got this working so far: _caller = this select 0; //While loop example using local var _testvar = 0; while { _testvar < 100 } do { hintsilent format ["testvar: %1 caller: %2",_testvar, _caller] ; _testvar = _testvar + 1; sleep 1; } called by call { [soldier1,player] execVM "testvarcounter.sqf"; } Some questions: 1. If I wanted to print out the name of each unit next to the testvar message, how would I do that? How to reference who called the script? Like this: hintsilent format ["testvar: %1 %2",_testvar,unit_that_called_it] ; EDIT: when using _caller, it prints "any"
  8. What I am trying to do in pseudocode: When a player (a - going to use that in MP) spawns, he gets assigned a variable which I want to access during the game. I dont get how this is supposed to work. Is there no player object that I can use variables on? I tried setting a variable on a unit this setVariable ["testvar", 100, true]; Now, how do I access that variable during the game? In c++ I would try something like: that_unit.getvar() but I got no clue to do that in arma2.
  9. Following that bullet example I was thinking this: Call some script in player init that adds a variable to the player. So I attempted this: this execVM "bulletcounter.sqf" But that does not call the script at all it appers (no errors displaying with -showscripterors)
  10. Not sure wether this is supposed to go into mission scripting or addons - Where can I find info on how to create these nice looking right windows key menus?
  11. alleycat

    Arma2MySQL

    I think I might have it working: But there is no box. I am starting at a hangar building with some ai soldiers next to me. No box in the area. The only problem I got on the client was that there was a version mismatch between client/server cba. Does the above message indicate the database does work properly? I am using the v0.02 version of your plugin because that looked easier to setup than the one with the PersistantDB stuff.
  12. Are there any missions available that use databases for persistence that run on OA stock without any addons or A2? I am looking to host one on a dedicated server but I do not want to get overwhelmed with all the mods one has to install.
  13. having an issue that is possibly related to that. When trying to load any mission that has A2 content it skips the mission with a missin addon message. So I attempted to copy the whole arma2 install on my server to a subfolder in my OA folder and loaded the arma2 folder as a mod in the tophe tool. That produces a huge amount of errors. Is there any way to load co properly using this launcher? Provided is: A2 and OA were installed on steam on the server pc. OA content runs flawless, but A2 content is skipped.
  14. I am not following. Why are there none of the stock arma2/OA missions in the folders in which they are supposed to be? This is a fresh install
  15. Why does the latest OA beta patch throw an invalid cd key error when I try to install it on my server pc? I installed OA on that pc over steam so it is all legit.
  16. alleycat

    Arma2MySQL

    This might a total idiot question, but how do i install the plugin? I have setup my database and installed the listed files. But I am not sure what to do with that dll.
  17. The mpmissions folder is empty, that is the cause I assume. Shouldnt there be some default missions in it? Also, if I want to start a server that loads OA +A2, does it do that by default, or do I need to check some of the addon folders?
  18. The issue is there are no missions shown in the tab.
  19. After installing BE and switching it on, the server appears to run, but won't show in the game browser anymore. It did throw an initilaization error. Which I fixed by downloading the dll and putting it into /expansion/Battleye. But as I said, when running the server with it, it wont show in browser and the rcon tool can not connect to it. ---------- Post added at 02:12 PM ---------- Previous post was at 01:33 PM ---------- whoopsie, the server filter was set to BE off. Does show. However connecting using rcon tools still wont work.
  20. How to add missions to it? When I edit the server.cfg, thne launch using the launcher it overwrites the cfg.
  21. The setup manual for the BE rcon tool says: Is that beserver.cfg supposed to be a duplicate of an existing server.cfg?
  22. 2 questions about remote dedicated server hosting. 1. Is it actually necessary to upload my complete ARMA2 installation to the server? 2. Since I own OA on steam and ARMA2 retail, I would like to buy ARMA2 on steam too to have less confusion with different folders. Will A2 Steam install into the same folder as OA steam?
  23. What is the most simple way to spawn any type of artillery munition and have it explode on the spot? Not looking for complex scripts that have any user control, just trying to create some ambient explosions.
  24. What are the dimensions of the chernarus map? I am looking for the actual heightmap size, resolution and size of the texture
×