Jump to content

WAE

Member
  • Posts

    60
  • Joined

  • Last visited

Reputation Activity

  1. Like
    WAE got a reaction from PcKoPaT in [Tutorial/Release] Disable the salvage vehicle option while in trader city   
    Hey guys, firstly, I would like to apologise for anything wrong in this thread. It's currently nearly 6am in the morning and I haven't slept :D Also, there's the fact that I haven't tested this much, so if you discover any bugs (not that there will be), let me know. If there is an easier way to do this too, like a variable in the init.sqf, pls be quiet, I didn't notice :P
     
    Basically, I've been playing on Epoch with some members of the community I am apart of, and we have seen many complaints of salvaging from vehicles while in trader zones in side chat. For our server, we would like to completely remove this and after tweaking the salvage vehicle script, I thought I'd release it here as a helping hand for other server admins/owners. Also, excuse me if this has already been done. I know it's simple, but I haven't actually searched that thoroughly on the forums, I did a quick search and didn't find anything, so I ended up here!
     
    Step 1) Download the two attached files and put them in the root of your mission file in a folder called custom.
     
    Step 2a) If you already have a custom compiles and fn_selfActions, skip this, otherwise, move onto 2b & 2c.
     
    Step 2b I) To create a custom fn_selfActions (which is what we need), you're going to need a custom compiles.sqf file. To do this, go to @DayZ_Epoch\addons and open dayz_code.pbo with any PBO software. For this example, I'm using PBO Manager.
     
    Step 2b II) Inside this PBO, extract the file located at this directory: init\compiles.sqf to the "custom" folder in your mission root directory.
     
    Step 2b III) In your init.sqf file, replace the following:
    call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions With:
    call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile regular functions You've now got a custom compiles.sqf
     
    Step 2c I) For a custom fn_selfActions.sqf, copy the file in the dayz_code PBO located at compile\fn_selfActions.sqf to the "custom" folder in your mission directory.
     
    Step 2c II) In your compiles.sqf that you recently just copied, change the following:
    fnc_usec_selfActions = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_selfActions.sqf"; //Checks which actions for self To:
    fnc_usec_selfActions = compile preprocessFileLineNumbers "custom\fn_selfActions.sqf"; //Checks which actions for self You've now got a custom compiles and fn_selfActions.sqf
     
    After creating your custom files, it's time to get on with the actual script its self!
     
    Step 3) In your fn_selfActions.sqf, replace the following:
    _menu1 = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_SALVAGEV", "\z\addons\dayz_code\actions\salvage_vehicle.sqf",_cursorTarget, 0, true, false, "",""]; With:
    _menu1 = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_SALVAGEV", "custom\salvage_vehicle.sqf",_cursorTarget, 0, true, false, "",""]; That code will be located somewhere around here:
    //Repairing Vehicles if ((dayz_myCursorTarget != _cursorTarget) and _isVehicle and !_isMan and _hasToolbox and (damage _cursorTarget < 1) and !_isDisallowRepair) then { if (s_player_repair_crtl < 0) then { dayz_myCursorTarget = _cursorTarget; _menu = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_REPAIRV", "\z\addons\dayz_code\actions\repair_vehicle.sqf",_cursorTarget, 0, true, false, "",""]; // _menu1 = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_SALVAGEV", "\z\addons\dayz_code\actions\salvage_vehicle.sqf",_cursorTarget, 0, true, false, "",""]; _menu1 = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_SALVAGEV", "custom\salvage_vehicle.sqf",_cursorTarget, 0, true, false, "",""]; s_player_repairActions set [count s_player_repairActions,_menu]; s_player_repairActions set [count s_player_repairActions,_menu1]; s_player_repair_crtl = 1; } else { {dayz_myCursorTarget removeAction _x} forEach s_player_repairActions;s_player_repairActions = []; s_player_repair_crtl = -1; }; }; I have commented out the old code in case I need to replace it, but yours should look similar to that.
     
    Step 4) [Optional] If you used a different folder name to the one I said to use, the following lines need to be updated with the new names:
     
    In salvage_vehicle.sqf:
    _handle = dayz_myCursorTarget addAction [_string, "custom\salvage.sqf",[_vehicle,_part,_x], 0, false, true, "",""]; Replace that with whatever your folder name is.
     
    And you're done!
     
    Let me know what you think of this, I think it's quite handy and simple to do.
     
    DOWNLOAD:
     
    Salvage.sqf: http://www.mediafire.com/view/s8a3feya8d9g8ac/salvage.sqf
    Salvage_vehicle.sqf: http://www.mediafire.com/view/13xfk7sccovy32m/salvage_vehicle.sqf
     
    Sorry they are not github links, I have no clue how to use it :P
     
  2. Like
    WAE got a reaction from Jokaru in [Tutorial/Release] Disable the salvage vehicle option while in trader city   
    Hey guys, firstly, I would like to apologise for anything wrong in this thread. It's currently nearly 6am in the morning and I haven't slept :D Also, there's the fact that I haven't tested this much, so if you discover any bugs (not that there will be), let me know. If there is an easier way to do this too, like a variable in the init.sqf, pls be quiet, I didn't notice :P
     
    Basically, I've been playing on Epoch with some members of the community I am apart of, and we have seen many complaints of salvaging from vehicles while in trader zones in side chat. For our server, we would like to completely remove this and after tweaking the salvage vehicle script, I thought I'd release it here as a helping hand for other server admins/owners. Also, excuse me if this has already been done. I know it's simple, but I haven't actually searched that thoroughly on the forums, I did a quick search and didn't find anything, so I ended up here!
     
    Step 1) Download the two attached files and put them in the root of your mission file in a folder called custom.
     
    Step 2a) If you already have a custom compiles and fn_selfActions, skip this, otherwise, move onto 2b & 2c.
     
    Step 2b I) To create a custom fn_selfActions (which is what we need), you're going to need a custom compiles.sqf file. To do this, go to @DayZ_Epoch\addons and open dayz_code.pbo with any PBO software. For this example, I'm using PBO Manager.
     
    Step 2b II) Inside this PBO, extract the file located at this directory: init\compiles.sqf to the "custom" folder in your mission root directory.
     
    Step 2b III) In your init.sqf file, replace the following:
    call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions With:
    call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile regular functions You've now got a custom compiles.sqf
     
    Step 2c I) For a custom fn_selfActions.sqf, copy the file in the dayz_code PBO located at compile\fn_selfActions.sqf to the "custom" folder in your mission directory.
     
    Step 2c II) In your compiles.sqf that you recently just copied, change the following:
    fnc_usec_selfActions = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_selfActions.sqf"; //Checks which actions for self To:
    fnc_usec_selfActions = compile preprocessFileLineNumbers "custom\fn_selfActions.sqf"; //Checks which actions for self You've now got a custom compiles and fn_selfActions.sqf
     
    After creating your custom files, it's time to get on with the actual script its self!
     
    Step 3) In your fn_selfActions.sqf, replace the following:
    _menu1 = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_SALVAGEV", "\z\addons\dayz_code\actions\salvage_vehicle.sqf",_cursorTarget, 0, true, false, "",""]; With:
    _menu1 = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_SALVAGEV", "custom\salvage_vehicle.sqf",_cursorTarget, 0, true, false, "",""]; That code will be located somewhere around here:
    //Repairing Vehicles if ((dayz_myCursorTarget != _cursorTarget) and _isVehicle and !_isMan and _hasToolbox and (damage _cursorTarget < 1) and !_isDisallowRepair) then { if (s_player_repair_crtl < 0) then { dayz_myCursorTarget = _cursorTarget; _menu = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_REPAIRV", "\z\addons\dayz_code\actions\repair_vehicle.sqf",_cursorTarget, 0, true, false, "",""]; // _menu1 = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_SALVAGEV", "\z\addons\dayz_code\actions\salvage_vehicle.sqf",_cursorTarget, 0, true, false, "",""]; _menu1 = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_SALVAGEV", "custom\salvage_vehicle.sqf",_cursorTarget, 0, true, false, "",""]; s_player_repairActions set [count s_player_repairActions,_menu]; s_player_repairActions set [count s_player_repairActions,_menu1]; s_player_repair_crtl = 1; } else { {dayz_myCursorTarget removeAction _x} forEach s_player_repairActions;s_player_repairActions = []; s_player_repair_crtl = -1; }; }; I have commented out the old code in case I need to replace it, but yours should look similar to that.
     
    Step 4) [Optional] If you used a different folder name to the one I said to use, the following lines need to be updated with the new names:
     
    In salvage_vehicle.sqf:
    _handle = dayz_myCursorTarget addAction [_string, "custom\salvage.sqf",[_vehicle,_part,_x], 0, false, true, "",""]; Replace that with whatever your folder name is.
     
    And you're done!
     
    Let me know what you think of this, I think it's quite handy and simple to do.
     
    DOWNLOAD:
     
    Salvage.sqf: http://www.mediafire.com/view/s8a3feya8d9g8ac/salvage.sqf
    Salvage_vehicle.sqf: http://www.mediafire.com/view/13xfk7sccovy32m/salvage_vehicle.sqf
     
    Sorry they are not github links, I have no clue how to use it :P
     
  3. Like
    WAE got a reaction from sk827015 in [Tutorial/Release] Disable the salvage vehicle option while in trader city   
    Fuck, yeah, told you I would fuck something up, Let me edit the post and add the files haha. I KNEW IT!
     
    EDIT: Download buttons are now there, thanks for that reminder haha
  4. Like
    WAE got a reaction from Friendly in Desperately need help installing scripts   
    Well, I'm just putting it out there. Who wants to pay for help when there's others offering it for free? Also, just because I put a swear word in the sentence, doesn't make it rude, was just stating the truth. :)
  5. Like
    WAE reacted to Friendly in Desperately need help installing scripts   
    I can help you for free.
  6. Like
    WAE got a reaction from Friendly in Desperately need help installing scripts   
    Yeah fuck paying for a little bit of help.
  7. Like
    WAE got a reaction from Sandbird in [Release] Dayz Server Control Panel [PHP]   
    a) Using 5.5.9 - Is it a bad thing? You mentioned that you hope it isn't this version. Oh god, what have I fucked up now :D
    B)
    13-Mar-2014 19:57:18 Europe/Berlin] PHP Notice: Trying to get property of non-object in C:\Users\DS\Desktop\Xampp\htdocs\epochtraders\include\function\prices.func.php on line 135 16-Mar-2014 21:19:12 Europe/Berlin] PHP Notice: Trying to get property of non-object in C:\Users\DS\Desktop\Xampp\htdocs\epochtraders\include\function\prices.func.php on line 135 20-Mar-2014 18:53:27 Europe/Berlin] PHP Fatal error: Class 'COM' not found in C:\Users\DS\Desktop\Xampp\htdocs\control\index.php on line 125 20-Mar-2014 18:58:10 Europe/Berlin] PHP Fatal error: Class 'COM' not found in C:\Users\Desktop\Xampp\htdocs\control\index.php on line 125 That is the contents of my php_error_log file. The top two have nothing to do with this, but the bottom two do. I think (correct me if I'm wrong btw) that they are nothing to do with this at the moment. When I first installed this, I forgot to make the changes to the php.ini file, I then went ahead and made the changes after seeing the error on the page and the page loaded correctly. Now, whenever I click the buttons nothing happens. The text pops up where it says something about the server being ready in 60 seconds time, but the batch files do not open on the other computer. Plus, I've clicked the button more than twice, so surely they can't be what's wrong with it at the moment.
    192.168.0.49 - - [20/Mar/2014:17:51:44 +0000] "GET /control HTTP/1.1" 301 337 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:17:51:44 +0000] "GET /control/ HTTP/1.1" 200 607 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:17:51:45 +0000] "GET /favicon.ico HTTP/1.1" 404 1055 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:17:51:49 +0000] "POST /control/ HTTP/1.1" 200 1335 "http://192.168.0.17/control/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:17:51:50 +0000] "GET /control/img/danger.jpg HTTP/1.1" 200 2846 "http://192.168.0.17/control/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:17:53:21 +0000] "POST /control/ HTTP/1.1" 200 1336 "http://192.168.0.17/control/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:17:53:21 +0000] "GET /control/img/danger.jpg HTTP/1.1" 304 - "http://192.168.0.17/control/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:17:53:27 +0000] "POST /control/index.php HTTP/1.1" 200 136 "http://192.168.0.17/control/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:17:58:10 +0000] "POST /control/index.php HTTP/1.1" 200 136 "http://192.168.0.17/control/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:17:58:29 +0000] "GET /control HTTP/1.1" 301 337 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:17:58:29 +0000] "GET /control/ HTTP/1.1" 200 1336 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:17:58:31 +0000] "POST /control/index.php HTTP/1.1" 200 1493 "http://192.168.0.17/control/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:17:58:37 +0000] "GET /control/index.php HTTP/1.1" 200 1336 "http://192.168.0.17/control/index.php" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:17:58:37 +0000] "GET /control/img/danger.jpg HTTP/1.1" 304 - "http://192.168.0.17/control/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:17:59:53 +0000] "POST /control/index.php HTTP/1.1" 200 1336 "http://192.168.0.17/control/index.php" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:18:00:31 +0000] "POST /control/index.php HTTP/1.1" 200 1336 "http://192.168.0.17/control/index.php" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:18:00:31 +0000] "GET /control/img/danger.jpg HTTP/1.1" 304 - "http://192.168.0.17/control/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:18:00:44 +0000] "POST /control/index.php HTTP/1.1" 200 1493 "http://192.168.0.17/control/index.php" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:18:00:50 +0000] "GET /control/index.php HTTP/1.1" 200 1336 "http://192.168.0.17/control/index.php" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:18:00:50 +0000] "GET /control/img/danger.jpg HTTP/1.1" 304 - "http://192.168.0.17/control/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:18:03:17 +0000] "POST /control/index.php HTTP/1.1" 200 1566 "http://192.168.0.17/control/index.php" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:18:03:23 +0000] "GET /control/index.php HTTP/1.1" 200 1336 "http://192.168.0.17/control/index.php" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:18:03:23 +0000] "GET /control/img/danger.jpg HTTP/1.1" 304 - "http://192.168.0.17/control/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:18:04:16 +0000] "GET /control/index.php HTTP/1.1" 200 1335 "http://192.168.0.17/control/index.php" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:18:04:16 +0000] "GET /control/img/danger.jpg HTTP/1.1" 304 - "http://192.168.0.17/control/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:18:04:18 +0000] "POST /control/index.php HTTP/1.1" 200 1565 "http://192.168.0.17/control/index.php" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:18:04:23 +0000] "GET /control/index.php HTTP/1.1" 200 1335 "http://192.168.0.17/control/index.php" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:18:04:24 +0000] "GET /control/img/danger.jpg HTTP/1.1" 304 - "http://192.168.0.17/control/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:18:05:46 +0000] "GET /control/index.php HTTP/1.1" 200 1336 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:18:05:50 +0000] "POST /control/index.php HTTP/1.1" 200 1493 "http://192.168.0.17/control/index.php" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:18:05:55 +0000] "GET /control/index.php HTTP/1.1" 200 1336 "http://192.168.0.17/control/index.php" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" 192.168.0.49 - - [20/Mar/2014:18:05:55 +0000] "GET /control/img/danger.jpg HTTP/1.1" 304 - "http://192.168.0.17/control/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" That is the apache access log from today only, to include the whole thing from previous dates would make this post never ending. It doesn't look like anything's wrong in there, then again, I may be wrong :)
     
    c) Windows 7 Professional is currently being used on the computer hosting the Xampp server and Windows 8.1 is being used on my main computer where I clicked the start server button from.
    d) I have no idea if it worked before I renamed the bats because I didn't try it. I renamed them because the batch file "Stoper" was annoying the hell out of me, but I made the appropriate changes in the index.php file for it to work.
    e) Personally, I've had a bad experience with Wamp, things like not being able to get it to work in certain situations, and I use a FileZilla server so I thought, why the fuck not get them all in 1 :)
  8. Like
    WAE got a reaction from Rythron in Rite's Shooting Range   
    Loving this, probably going to use it on my server for players to practice their shooting! *Gives Rythron a good old pat on the back* :')
  9. Like
    WAE got a reaction from Sandbird in [Release] Dayz Server Control Panel [PHP]   
    Pretty useful since I want to be able to give my admins power to restart the server if say a hacker comes on and destroys all the buildings using a script of some sort without giving them complete access to the box it's self. Good work!
  10. Like
    WAE reacted to Sandbird in [Release] Dayz Server Control Panel [PHP]   
    Installation Time : Easy
    This is a little script i wrote for controlling a dayz server, from a webpage...so moderators or game admins can restart the server in case something happens.....but without giving them full Teamviewer access, for example.

    Its pretty simple to use and install. All you need is an Apache server on the same machine your game server is.
    Probably this cant be installed in a Vilalayer or dayz.st server...but for anyone else that hosts their game server on a dedicated box, it should work fine.

    The good thing i noticed with running the server like this is that both the arma.exe and bec.exe run in the background....there is no GUI panel and that saves a lot of CPU !
    (If you run the server with the script, open your taskmanager and see the difference.)
    Now about how it works...well its simple.

    The page has 3 buttons.
    Start will start the server Stop will shutdown the server Reboot will reboot the whole machine (in case something went really bad) Installation:
    Download the files and add them somewhere inside your www folder (ex: www\dayzController\) Open config.php and change the values there: 
    'admin' => 'password'  [what user/pass you whant to be able to access the page.] (You can add multiple users by adding values like an arma array, separated by comma.) $armaservname = "arma2oaserver.exe";  [name of your game server .exe file] $serverfolder = "c:\\wamp\\www\\dayzController\\bats\\";  [exact location where the bats folder is on your HD.] Open bats\stop.bat and change names of the arma server exe file and if you use BEC, the bec.exe name
    Open bats\start.bat and copy / Paste your normal .bat start up file in here. Make sure the paths are relative to your server's paths. (i added a simple example in the file)
    5) Open your php.ini file and change/add/enable these values:
    COM support:
    [COM_DOT_NET] extension=php_com_dotnet.dll Also you need to enable short tags (not needed 100%, but in case in a future update, i forget to add <?php and use <?. I tend to do that :P):
    short_open_tag = On If you dont have COM Support and cant enable it...then enable line 132, and comment line 128. Page will not refresh if you start the server...but it will work.
     
    PS: MAKE SURE in the bat script you enter FULL PATHS to the .exe files, or use my method to change directories. PHP server requires that.
     

    -=Download Link=-
     
    Credits
    - Whoever wrote the login script at http://www.zubrag.com/scripts/password-protect.php
    - geekgarage for debugging the bat files.
×
×
  • Create New...