BEC: Waiting for server startup

Discussion in 'Server / Admin Tools and Discussions.' started by FirstDataGaming, May 27, 2015.

  1. FirstDataGaming

    FirstDataGaming New Member

    Joined:
    May 27, 2015
    Messages:
    6
    Likes Received:
    0
    Hello, Ive been at this for a couple hours! It always say "Waiting for server startup"
    i think i have all the files set right
    [Bec]
    Ip = 127.0.0.1
    Port = 2302
    BePath = C:\Arma2DayZServer\BattlEye
    Admins = Admins.xml
    Commands = Commands.xml

    [Misc]
    Scheduler = Scheduler.xml
    ServerExeName = C:\Arma2DayZServer\arma2oaserver.exe
    Timeout = 300

    <?xml version="1.0"?>
    <BEAdmins>

    <admin id="0">
    <name>xPooRLoCKerBoYx</name>
    <guid>2e1f84e56d5ebe76a958d0729e1b8592</guid>
    <group>0</group>
    <groupname>Server Owner</groupname>
    </admin>

    </BEAdmins>

    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <?xml-stylesheet href="acs.xsl" type="text/xsl" ?>

    <BeCommands>

    <command id="0">
    <name>!sht</name>
    <group>0</group>
    <cmd>#shutdown</cmd>
    <time></time>
    <text></text>
    <desc>INFO :: Shutdowns the dedicated arma server. use: !sht N, to set a timeout before shutdown, !sht abort, to abort current shutdown, !sht info, to see how long left.</desc>
    </command>

    <command id="1">
    <name>!mis</name>
    <group>0</group>
    <cmd>#missions</cmd>
    <time></time>
    <text></text>
    <desc>INFO :: Show mission. Carefull with this command. an admin should be logged in if this is to be used</desc>
    </command>

    <command id="2">
    <name>!res</name>
    <group>1</group>
    <cmd>#restart</cmd>
    <time></time>
    <text></text>
    <desc>INFO :: Restart mission with current player slot selection</desc>
    </command>

    <command id="3">
    <name>!rea</name>
    <group>0</group>
    <cmd>#reassign</cmd>
    <time></time>
    <text></text>
    <desc>INFO :: Restart the mission with new player slot selection</desc>
    </command>

    <command id="4">
    <name>!lck</name>
    <group>1</group>
    <cmd>#lock</cmd>
    <time></time>
    <text></text>
    <desc>INFO :: Unlocks the Server.</desc>
    </command>

    <command id="5">
    <name>!ulck</name>
    <group>1</group>
    <cmd>#unlock</cmd>
    <time></time>
    <text></text>
    <desc>INFO :: Locks the server. No one will be able to join.</desc>
    </command>

    <command id="6">
    <name>!mp</name>
    <group>0</group>
    <cmd>maxping</cmd>
    <time></time>
    <text>150</text>
    <desc>INFO :: Set a maxping limit on the server. !mp 150</desc>
    </command>

    <command id="7">
    <name>!cm</name>
    <group>0</group>
    <cmd>#mission</cmd>
    <time></time>
    <text></text>
    <desc>INFO :: Change Mission. !cm Mission_File_Name -pbo</desc>
    </command>

    <!-- Permban -->
    <command id="8">
    <name>!bpl</name>
    <group>1</group>
    <cmd>ban</cmd>
    <time>0</time>
    <text>Admins Decision!</text>
    <desc>INFO :: Perm Ban a player. use !r NEW_REASON to set a cusom reason. !bpl name | !bpl name !r custom reason</desc>
    </command>

    <!-- 1 Hour Ban -->
    <command id="9">
    <name>!bpl60</name>
    <group>3</group>
    <cmd>ban</cmd>
    <time>60</time>
    <text>Idiot behavior! Banned for 60 Minutes!</text>
    <desc>INFO :: Ban a player for 1 hour. use !r NEW_REASON to set a cusom reason. !btk name | !btk name !r custom reason</desc>
    </command>

    <!-- 10 Min Ban -->
    <command id="10">
    <name>!bpl10</name>
    <group>3</group>
    <cmd>ban</cmd>
    <time>10</time>
    <text>Wrong behavior! Banned for 10 Minutes!</text>
    <desc>INFO :: Ban a player for 10 min. use !r NEW_REASON to set a cusom reason. !bst name | !bst name !r custom reason</desc>
    </command>

    <!-- Kick Command(s).-->
    <command id="11">
    <name>!kpl</name>
    <group>3</group>
    <cmd>kick</cmd>
    <time></time>
    <text>Admins/Mods Decision!</text>
    <desc>INFO :: Kick a player. use !r NEW_REASON to set a cutoms reason. !kpl name | !kpl name !r custom reason</desc>
    </command>

    <!-- Ban based on Id -->
    <command id="12">
    <name>!bid</name>
    <group>1</group>
    <cmd>bid</cmd>
    <time>0</time>
    <text>Admins Decision!</text>
    <desc>INFO :: Kick a player based on the BEID. use #Beclient players to get he id number. !bid BEID</desc>
    </command>

    <!-- Kickes based on Id -->
    <command id="13">
    <name>!kid</name>
    <group>3</group>
    <cmd>kid</cmd>
    <time></time>
    <text>Admins Decision!</text>
    <desc>INFO :: Kick a player based on the PID. use #userlist to find the pid. !kid ID</desc>
    </command>

    <command id="14">
    <name>!wrn</name>
    <group>3</group>
    <cmd>warn</cmd>
    <time></time>
    <text>This is a Warning given by the admin</text>
    <desc>INFO :: Send a warming to a player, it will increase the warncount defined in the config file. !wrn name</desc>
    </command>

    <command id="15">
    <name>!ata</name>
    <group>0</group>
    <cmd>grant</cmd>
    <time></time>
    <text>4</text>
    <desc>INFO :: Add a temporary admin into group 4. !ata name</desc>
    </command>

    <!-- Remove tmp admin permission -->
    <command id="16">
    <name>!rta</name>
    <group>0</group>
    <cmd>degrant</cmd>
    <time></time>
    <text></text>
    <desc>INFO :: Remove temporary admin. !rta name</desc>
    </command>

    <command id="17">
    <name>!mr</name>
    <group>3</group>
    <cmd>makeroom</cmd>
    <time></time>
    <text>Making Room For Members</text>
    <desc>INFO :: Kick N numbers of player based on join time. last joined players will get kicked.</desc>
    </command>

    <command id="18">
    <name>!help</name>
    <group>10</group>
    <cmd>help</cmd>
    <time></time>
    <text></text>
    <desc>INFO :: Show this message</desc>
    </command>

    <!-- player info -->
    <command id="19">
    <name>!pinf</name>
    <group>3</group>
    <cmd>pinfo</cmd>
    <time></time>
    <text></text>
    <desc>INFO :: Show player info. Beid and join time. !pinf name</desc>
    </command>

    <!-- admin info -->
    <command id="20">
    <name>!ainf</name>
    <group>100</group>
    <cmd>ainfo</cmd>
    <time></time>
    <text></text>
    <desc>INFO :: Show Admins online</desc>
    </command>

    <!-- Show server uptime -->
    <command id="21">
    <name>!upt</name>
    <group>100</group>
    <cmd>uptime</cmd>
    <time></time>
    <text></text>
    <desc>INFO :: Show Server Uptime</desc>
    </command>

    <!-- say something in global or to a player -->
    <command id="22">
    <name>!say</name>
    <group>3</group>
    <cmd>say</cmd>
    <time></time>
    <text></text>
    <desc>INFO :: Send a Battleye message to all players. !say text or send a private massage !say name !text</desc>
    </command>

    <!-- External scripts -->
    <command id="23">
    <name>!restart</name>
    <group>1</group>
    <cmd>external</cmd>
    <time></time>
    <text></text>
    <desc>Restart the Server</desc>
    </command>

    </BeCommands>

    I have no Scheduler yet
    I know alot of these will probibly be useless but its there. i start up BEC with JUST -f Config.cfg

    on another note
    I start up my Epoch server using my .bat file. idk if BEC needs to start up the .BAT or the arma2oaserver.exe. i dont see how Epoch will start up if i dont use the .BAT
    @Echo off
    start "arma2" /min "C:\Arma2DayZServer\arma2oaserver.exe" -port=2302 "-config=instance_11_Chernarus\config.cfg" "-cfg=instance_11_Chernarus\basic.cfg" "-profiles=instance_11_Chernarus" -name=instance_11_Chernarus "[email protected]_Epoch;@DayZ_Epoch_Server;"

    I hope this is enough info, I cant seem to find anything, there are no error in the log eaither
     
  2. ShootingBlanks

    ShootingBlanks OpenDayZ Guru!

    Joined:
    Mar 31, 2013
    Messages:
    2,424
    Likes Received:
    336
    You added the BEC ip to hosts file so it doesnt' try to update? 2nd post -> http://epochmod.com/forum/index.php?/topic/34071-bec-crashes-after-checking-for-new-bec-version/

    BEC must start up AFTER the server and you have to have a delay .. the arma server must be running before starting BEC.

    Here is my "restart.bat" that kills the BEC and the Arma server. Then I can run whatever php scripts or whatever I want .. delete logs etc .. I dont have any of that in here, but I could and should. Then it restarts the server and the BEC. so this bat file starts the other bat files. I could paste the arma startup bat file directly in here I guess.

    Code:
    @echo off
    echo.
    echo KILL arma2oaserver.exe
    set serverkill="C:\arma"
    cd /d %serverkill%
    taskkill /im arma2oaserver.exe
    echo.
    echo Kill Bec.exe
    set beckill="C:\arma\BEC"
    cd /d %beckill%
    taskkill /im bec.exe
    
    timeout 10
    
    echo.
    echo Starting Dayz Server
    :: start the server..
    set dayzpath="C:\arma\"
    cd /d %dayzpath%
    start /min _start_overpoch.bat
    echo.
    echo Starting Bec
    timeout 10
    :: start bec
    set becpath="C:\arma\BEC"
    cd /d %becpath%
    start /min bec.exe -f Config.cfg
    echo.
    echo Server Started 100%
    
    cls
    @exit
     
  3. ShootingBlanks

    ShootingBlanks OpenDayZ Guru!

    Joined:
    Mar 31, 2013
    Messages:
    2,424
    Likes Received:
    336
    BUT IS there a log? The lack of a log means the server is not fully starting.
     
  4. ShootingBlanks

    ShootingBlanks OpenDayZ Guru!

    Joined:
    Mar 31, 2013
    Messages:
    2,424
    Likes Received:
    336
    I can post all my files and details later .. have to go out for an hour.
     
  5. FirstDataGaming

    FirstDataGaming New Member

    Joined:
    May 27, 2015
    Messages:
    6
    Likes Received:
    0
    it posts one when it has a error. but since im not seeing any errors is not posting one. Is there anyway you could join my TS and help me? ive been rippingg my hair out
     
  6. ShootingBlanks

    ShootingBlanks OpenDayZ Guru!

    Joined:
    Mar 31, 2013
    Messages:
    2,424
    Likes Received:
    336
    i am,going to post everything when,o get home. i,can ts3 also. 1am EST or thursday afternoon
     
  7. FirstDataGaming

    FirstDataGaming New Member

    Joined:
    May 27, 2015
    Messages:
    6
    Likes Received:
    0
    My teamspeak is FirstDataGaming.no-ip.org. My Username is xPooRLoCKerBoYx add me on steam so we can figure out a time? i apprtiate the help!
     
  8. ShootingBlanks

    ShootingBlanks OpenDayZ Guru!

    Joined:
    Mar 31, 2013
    Messages:
    2,424
    Likes Received:
    336
    BEC has been confusing enough at times and now that it has been terminated it seems to be difficult to find the documentation any longer. I have a server i have been working on and it has a functional BEC with 7 1/2 hour restarts, 1 message in the scheduler (displays uptime just for an example so I know its working).
    I have zipped (using 7zip http://www.7-zip.org/) using full pathnames. So when you unzip the file it will have all the files in the folders that I had them. I have zipped these files:
    BEC folder including config, scheduler, admin
    Battleye folder and cfg (needs to have the rcon password), bans.txt and the dll
    Hosts file (windows/system32) which is edited so the BEC doesnt fail on update
    Restart.bat file that is run by my scheduler.xml
    https://drive.google.com/file/d/0B4RTx5O3wZvERnJBN1NsWGsxNlU/view?usp=sharing

    this should be able to work on any other server with just a little changes in the configs .. change the paths to match your own actual file locations. The actual BEC files are also included as these configs will only work with the correct version of BEC. So if you use my configs, use my BEC files too so you are sure to have the correct version running.


    Here is some information about the files and pastebin links so you can view them.

    config.cfg
    http://pastebin.com/p3ZABnh5
    The BEC config.cfg file has all the important settings to make bec work. You WILL have to edit the paths to match your own server.

    Scheduler.xml
    http://pastebin.com/fi16BJ3r
    I have a few warnings about restarts and a recurring message showing the uptime just so we know BEC is working. The actual restart job calls my restart.bat file which will shut down everything then restart it all.

    Restart.bat
    http://pastebin.com/6cJpT6Pg
    this file uses windows batch commands to shutdown BEC and the arma server then waits a few seconds before retarting them again. google the commands for information, pretty simple stuff really. If you edit this, just always make sure that your arma server is started BEFORE you start BEC because it will fail if the arma server is not found within a few seconds. Thats why I start the server then have a delay to make sure its running before we finally start BEC.

    Hosts
    http://pastebin.com/Dk7qmuMS
    The BEC tries to update when it starts but since the website is not active, the update will fail and so will BEC. The solution is to have it check the localhost instead and it will find no update and proceed happily along. So all we are doing is giving ibattle.org a new IP of 127.0.0.1 which is the localhost. On my computer this file was located at C:\Windows\System32\drivers\etc\hosts ... yours may be different, google it.
     
    Last edited: May 28, 2015
  9. ShootingBlanks

    ShootingBlanks OpenDayZ Guru!

    Joined:
    Mar 31, 2013
    Messages:
    2,424
    Likes Received:
    336
    Why would you assume that I could add you on Steam? Do you think EVERYONE has steam and uses it?
     
  10. ShootingBlanks

    ShootingBlanks OpenDayZ Guru!

    Joined:
    Mar 31, 2013
    Messages:
    2,424
    Likes Received:
    336
    Waiting on you now ...

    [​IMG]
     

Share This Page