Jump to content

[Release] Dayz Server Control Panel [PHP]


Sandbird

Recommended Posts

28u6aed.jpg

 

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:

  1. Download the files and add them somewhere inside your www folder (ex: www\dayzController\)
  2. 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.]
  3. Open bats\stop.bat and change names of the arma server exe file and if you use BEC, the bec.exe name

  4. 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. 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.

Link to comment
Share on other sites

Lol I know, double posts are old, but on installing this, I cannot get this to execute the batch files. Any idea what this could be? I enabled the COM extension and enabled short tags in php.ini, what else? I can't think of what could be the problem. I have changed the names of the batch files but I have updated them in the script so they point to the right files and also the directory is correct. I'll post my files here:

 

config.php

<?php
    // Secure this page with user / pass
    // Add login/password pairs below, separated by commas
    // NOTE: all rows except last must have comma "," at the end of the line.
    $LOGIN_INFORMATION = array(
    'admin' => 'No password for you :P'
    };

    //Name of your arma2oaserver.exe
    $armaservname = "arma2oaserver.exe";

    //Path to .bat files
    $serverfolder = "d:\\users\\ds\\desktop\\xampp\\htdocs\\control\\bats";
?>

index.php

(Uploaded to pastebin as it'd be messy here)

http://pastebin.com/2xRsS6AV

 

Also my starter.bat out of interest

@echo off
echo Stopping game server...
taskkill /F /IM arma2oaserver.exe
ping 127.0.0.1 -n 1 >NUL
echo.
echo Stopping BEC...
taskkill /F /IM Bec.exe
ping 127.0.0.1 -n 1 >NUL
echo.
echo Starting server...
cd /D "D:\Steam\Steamapps\Common\Arma 2 Operation Arrowhead"
start "arma2" /min "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 "-mod=@DayZ_Epoch;@DayZ_Epoch_Server;"
ping 127.0.0.1 -n 3 >NUL
echo.
echo Starting BEC...
cd /D "D:\BEC"
rem start Bec.exe -f config.cfg
rem ping 127.0.0.1 -n 1 >NUL
exit

Appreciate any help given,

Thanks.

Link to comment
Share on other sites

Lol I know, double posts are old, but on installing this, I cannot get this to execute the batch files. Any idea what this could be? I enabled the COM extension and enabled short tags in php.ini, what else? I can't think of what could be the problem. I have changed the names of the batch files but I have updated them in the script so they point to the right files and also the directory is correct. I'll post my files here:

 

(Uploaded to pastebin as it'd be messy here)

http://pastebin.com/2xRsS6AV

 

Also my starter.bat out of interest

Appreciate any help given,

Thanks.

 

Hmm, well a couple of things....

a) What PHP version are you using...(hope not 5.5 or something)

b) What does your PHP error log and Appache access log say, when you click the buttons....maybe its a simple slash mission from somewhere.

c) What Windows are you using ? (Hope not windows 8....win8 doesnt allow Apache to execute stuff..you probably have to convert your .bat to .exe and set them to run as admin to work)

d) Before you rename the .bats did it work ?

e) XAMPP T_T why oh why everyone is using this crap :P (personal comment here :P )

 

Your php error logs will tell you the truth....Probably you have your php ini setup to not show errors....thats why you dont see any.

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

well the error log says: Class 'COM' not found. Are you sure you enabled the com support on the right php.ini ? and did you restart the apache server after?

I dont trust Xampp..always had problems with it :P never with wamp...hehehe

But also yeah....5.5 is too high. i would try with 5.2.6 to be sure everything works. 5.5 is too much...and most packages/websites are not 100% compatible with it.

Win 7 should be fine with the script.I am running win7 on the server and no problems there.

Add a page in your www folder called : test.php and add this line in it:

<?php phpinfo();?>

Then browse the page on your browser and check the values there...see if COM is active...Com is needed to 'execute' the bat files...so probably thats why its not working for you.

Link to comment
Share on other sites

Trying to run this on our dedicated box Server 2008 R2 using IIS 7 and PHP Version 5.3.28

It will detect if the server is on- or offline but it won't execute the bat files.

 

i changed the name of the bat file in the index.php as my head just can't ignore words like "stoper"  <--- That is not a word my good friend ;)

 

so i changed it to look for stop.bat, start.bat and reboot.bat

 

Then i changed the folder where it should look for the bat files in the config.php (Yes i remembered the double '\\' so thats not the issue. Here is an example of my setting $serverfolder = "C:\\TestServer_Napf\\";)

 

my PHP log file does not give any errors, even in verbose mode. So any clues to why it won't execute. It won't work with your original code either where it looks for starter.bet, stoper.bat and reboot.bat

com_dotnet.png

 

Also i'm running my own bat files (renamed to start / stop / reboot) and they work just fine when I run them myself, so it's not the bat files

 

[update]

Just setup an apache server on my box and i get the same result. No errors and the com_dotnet is loaded as the picture above. tho this time i'm using PHP version 5.2.17

Link to comment
Share on other sites

Yes i know that stoper.bat is not a word :P But at 2 o clock in the morning i was like what the hell...leave it lol.

OK script updated....it should work fine now with all versions of windows. Redownload please

A new entry in the config.php....Set your cmd path there.

In case you dont have COM support try enabling shell_exec instead and disable WshShell line above.

Link to comment
Share on other sites

None of the new methods are working. tried the new version. it will still give me the offline / online information, but it simply ignores any bat related commands

 

i even wrote a simple bat file that would create a text file on my desktop to see if the bat file is called and it's completely ignoring any bat file calls

 

This is on my apache web server and not the IIS

 

so i just checked the apache error log and got this

ERROR: The process "arma2oaserver3.exe" not found.
ERROR: Input redirection is not supported, exiting the process immediately.
ERROR: Input redirection is not supported, exiting the process immediately.
ERROR: Input redirection is not supported, exiting the process immediately.
ERROR: Input redirection is not supported, exiting the process immediately.
Could Not Find C:\TestServer_Napf\server_3\arma2oaserver3.RPT
Could Not Find C:\TestServer_Napf\server_3\server_log.txt
Could Not Find C:\TestServer_Napf\server_3\HiveExt.log

Seems like you are running the code from the bat file inside a command window created by the com_dotnet/PHP system

 

Can't you just make it run a simple bat file directly on the system, just like if you ran it manually?

Link to comment
Share on other sites

Well if your apache logs says that that means its trying to do the actions in your bat file but cant find the files mentioned there.

As you can see it is executing the commands...the paths are just wrong ?

Try this:

 

Enable line 132:    //$oExec = shell_exec("$cmdLocation /c $cmd");

and disable line 128:      $oExec = $WshShell->Run($cmdline, 0, false);

 

This is the normal shell_exec command....as if you do it manually. Unfortunately the page wont refresh when you click Start, you have to reload the page yourself to see the status.

 

Worst case scenario, install Teamviewer on your PC...do you have Teamspeak client or skype ? I can take a look if you want.

Link to comment
Share on other sites

giving up, nothing works properly. if the script should work just like if i ran the script by clicking it, it would work, but none of the methods implemented works like that, so i'm scrapping this and keep the system access to myself. Thx for the effort tho, will try and build my own php call system that will run the actual bat file and not just pass the commands into a shell started by the php script

Link to comment
Share on other sites

giving up, nothing works properly. if the script should work just like if i ran the script by clicking it, it would work, but none of the methods implemented works like that, so i'm scrapping this and keep the system access to myself. Thx for the effort tho, will try and build my own php call system that will run the actual bat file and not just pass the commands into a shell started by the php script

 

 

Like i said try enabling shell_exec instead, in the index.php. That running the actual bat file, instead of using the COM support. (http://www.php.net/shell_exec)

The script doesnt parse the .bat files...It executes the .bat in a console and brings the results back to php...Thats why it looks like parsing the file.

It works for me on Windows 7 64bit, Windows 8 64bit, and Windows 7 32bit.

I told you i can look at it with Teamviewer and see why its not working..

Link to comment
Share on other sites

one thing i do hate is when scripters don't give proper credits for other scripters work tho, so it looks like the poster did all the work

 

"your" login system is from http://www.zubrag.com/scripts/password-protect.php with a few small modifications. 

the least you can do is give the guy some props and post his link, what you did there is utterly tasteless! 

Link to comment
Share on other sites

one thing i do hate is when scripters don't give proper credits for other scripters work tho, so it looks like the poster did all the work

 

"your" login system is from http://www.zubrag.com/scripts/password-protect.php with a few small modifications. 

the least you can do is give the guy some props and post his link, what you did there is utterly tasteless! 

 

You are absolutely right. I work in a website company for the past 15 years making websites. The login script was in a little login page we had for a localhost administration website. I thought some fellow colleague wrote it, and it would be a nice addition to the page to make it more secure.....so yeah.

Login script remove.

 

Get your own protection.

 

ps:

giving up, nothing works properly. 
if the script should work just like if i ran the script by clicking it, it would work, but none of the methods implemented works like that, 
so i'm scrapping this and keep the system access to myself. 
Thx for the effort tho, will try and build my own php call system that will run the actual bat file and not just 
pass the commands into a shell started by the php script

I should have guessed from your last sarcastic post that you were a 'special person'...you cant even follow simple instructions.....and i wanted to help as well....pfff...

its my fault for releasing it here in the first place.

Wont happen again...

Link to comment
Share on other sites

Don't be discouraged by the posts of some people. There are people that truly appreciate what you do and what you contribute. If it isn't now, then it could be weeks later, when it's someone that has been looking for this a long time. I browse the forums a lot and I haven't seen a tidy restart CP, that is free as well, yet!

 

There are people that really appreciate this, but just are not that vocal about it. I've seen your recent contributions and they really are something, it would be sad to see you go or pull back because of a few rotten apples!

Link to comment
Share on other sites

wow really, your a bit touchy!? Your attacking me for your own screw up?, there was nothing sarcastic in any of my posts you might want to go read up on what 'being sarcastic' is. I really do appreciate the effort and the time you have put into it since PHP isn't my strong side. I also told you that i got it running by editing my own bat file, so it would comply to the way the PHP calls and run bat files.

I can follow simple instructions, but you simply can't read. I said multiple times (try and read my posts again) that none of the execution modes implemented worked like expected. Normally when I write bat files, I would not redirect the bat files to a folder as i run the bat from the folder with the files i need to automate, there fore no need to use CD calls. And when PHP runs a bat file you have to redirect and that's why it didn't work.
That means that i did follow your instructions and they didn't work as expected since my bat file called files in the same directory as the bat file. But PHP runs it in a virtual environment and the bat file is not run from the folder that it's in, there for none of the methods runs the bat file just like if you clicked it

 

It's funny how you are being all defensive and attacking me calling me a "Special Person" just because I say I hate when a scripter don't give proper credit, and i think it is tasteless when scripters do, it's my opinion. You knew before release that you didn't write the code, but you still took credit for it.
You released the script to help out the community, but you also released it to get some credit on a social forum so others can see what you can do, that is normal human behavior, to get acknowledgement from our piers. And that's all fine, we are all doing it.
But don't go make all this about me. When i release stuff i remember to give proper credit, and if i'm unsure on where some code is from, i say so, i don't take credit for others work like you did!

But nice to see that you choose to keep it in and gave credit instead

Link to comment
Share on other sites

Ok dude, i am not gonna analyze this any further. In my 1st post i say it.......and i added an example.

....... Make sure the paths are relative to your server's paths. (i added a simple example in the file)

You were trying to do this the wrong way...AS IT IS, the script works, if you just add the right paths in the .bat files. You should have tried with that at the first sign of trouble.

They give you a cheesecake you are complaining about the fork. As if that login page was the source code of windows 2008. Its a freaking form submit....Its so simple i thought my grandma/colleague wrote it....

Link to comment
Share on other sites

  • 1 month later...

Came back to this after working on a long school project, but with that over with, I can focus on this. I've managed to get it working by installing wamp and PHP 5.2.6. The only thing that doesn't execute when I tell it to start is the BEC.exe. Does this have something to do with the fact that the command line is hidden when executing in this script? It just doesn't want to execute .exe files. Paths are definitely correct, can't see what it could be. Any ideas?

 

Also, when I open BEC manually, it can't find the arma2oaserver.exe and fails to connect, so I cannot use BEC with this tool. Any way you could add support for this please?

Link to comment
Share on other sites

Came back to this after working on a long school project, but with that over with, I can focus on this. I've managed to get it working by installing wamp and PHP 5.2.6. The only thing that doesn't execute when I tell it to start is the BEC.exe. Does this have something to do with the fact that the command line is hidden when executing in this script? It just doesn't want to execute .exe files. Paths are definitely correct, can't see what it could be. Any ideas?

 

Also, when I open BEC manually, it can't find the arma2oaserver.exe and fails to connect, so I cannot use BEC with this tool. Any way you could add support for this please?

 

a ) Go to Task manager to check if bec is running

b )The only thing i can think ...since BEC is not running manually as well, is that the paths are wrong...I have my setup like this :

  • Bec folder is inside my root arma folder
  • My instance_11_Chernarus is in my root arma folder
  • Inside Bec\Config\config.cfg i have:
    BePath = C:\Program Files (x86)\Steam\steamapps\common\arma 2 operation arrowhead\instance_11_Chernarus\BattlEye

    Thats were the Battleye filters are.

  • Inside this folder \instance_11.....\Battleye is also : BEServer.dll and BEServer.cfg

  • Inside the config.cfg i have the name of my server's exe:

    ServerExeName = arma2oaserver.exe
    

Now with all the above....opening a CMD and going to the path where bec is and writing Bec.exe -f config.cfg should work 100%

Also check the start.bat

echo Starting BEC...
cd /D "C:\Program Files (x86)\Steam\steamapps\common\arma 2 operation arrowhead\BEC"
start Bec.exe -f config.cfg
ping 127.0.0.1 -n 1 >NUL

Make sure this path is a FULL path to where you have BEC.

 

As it is the script works fine...I think you have setup your folders wrong, thats why its not working for you.

 

ps: As always, i am available to check your setup with Teamviewer and get this all sorted it...shouldnt take too long:)

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...