ServerMessages: auto global RCon messages

Discussion in 'Server / Admin Tools and Discussions.' started by gdscei, Apr 1, 2013.

  1. timothypaul26

    timothypaul26 New Member

    Joined:
    Sep 6, 2013
    Messages:
    25
    Likes Received:
    0
    I can't help you with Linux, windows 7 user here. I can't imagine that it's that much different though. Might be a port issue or something silly.
     
  2. Redeyes1987

    Redeyes1987 New Member

    Joined:
    Mar 19, 2014
    Messages:
    2
    Likes Received:
    0
    This works awesome.. Very easy to use and very helpfull.

    Thanks
     
  3. gooses89

    gooses89 New Member

    Joined:
    Nov 24, 2013
    Messages:
    10
    Likes Received:
    0
    I'm getting this when I try to run it in Windows Server 2012.


    Code:
    Unhandled Exception: System.FormatException: String was not recognized as a vali
    d DateTime.
       at System.DateTimeParse.ParseExact(String s, String format, DateTimeFormatInf
    o dtfi, DateTimeStyles style)
       at System.DateTime.ParseExact(String s, String format, IFormatProvider provid
    er)
       at ServerMessages.timeChecker.Check()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionCo
    ntext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C
    ontextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C
    ontextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
     
  4. ShootingBlanks

    ShootingBlanks OpenDayZ Guru!

    Joined:
    Mar 31, 2013
    Messages:
    2,421
    Likes Received:
    336
    Looks like you are missing/incorrect verion of a windows dll. Make sure you installed what is required.
    Wouldnt it be easier to use an sqf file that prints from an array of messages? When i get home and will post it as a simpler alternative
     
  5. gooses89

    gooses89 New Member

    Joined:
    Nov 24, 2013
    Messages:
    10
    Likes Received:
    0
    Nothing is stated as being required for it, and I've used it in the past with no issues.
     
  6. ShootingBlanks

    ShootingBlanks OpenDayZ Guru!

    Joined:
    Mar 31, 2013
    Messages:
    2,421
    Likes Received:
    336
    It uses the BattleNET dll's
    This is the original error you are having, Perhaps you simply have a malformed datetime string?

    Code:
    Unhandled Exception: System.FormatException: String was not recognized as a valid DateTime.
    
    As I said, there is an easier way maybe? If your 'message rcon' isn't running, then you get no messages.
    Here is an alternative script ... untested, but should work.
    Code:
    sleep 180;
    _AddvertiseArray = [
        ["The fasted way to contact an admin is to join our teamspeak and ask for help.],
        ["Join up on our website and take part in the discussions],
        ["Dont be a victim, Shoot First and SURVIVE!"],
        ["The server restarts every 6 hours"]
       ];
    while {true} do {
        sleep 300; //Every 5 Min
        _message = _AddvertiseArray select (random (count _AddvertiseArray - 1));
        titleText [_message, "PLAIN DOWN", 3];
    };
    
    Save this code as ads.txt and place it in your mission pbo.
    In your init.sqf file add this line
    if (!isserver) then { execvm "ads.txt";};
     
    Last edited: Nov 30, 2014
  7. ShootingBlanks

    ShootingBlanks OpenDayZ Guru!

    Joined:
    Mar 31, 2013
    Messages:
    2,421
    Likes Received:
    336
    I looked at the github for this project, it has the battlenet dll included in the source so you can't have the wrong version. It must be a malformed string.
     
  8. gooses89

    gooses89 New Member

    Joined:
    Nov 24, 2013
    Messages:
    10
    Likes Received:
    0
    I like to be able to edit the messages without changing the pbos
     
  9. ShootingBlanks

    ShootingBlanks OpenDayZ Guru!

    Joined:
    Mar 31, 2013
    Messages:
    2,421
    Likes Received:
    336
    good point.
    I am going to change that (for my own benefit).
     
  10. feiercrack

    feiercrack Member

    Joined:
    Aug 13, 2014
    Messages:
    33
    Likes Received:
    0
    Great script!

    Can we have time stamps in chatlog?

    also i like to have that chat.log in a specific folder. is that possible?

    Thanks

    Cheers
     
    Last edited: Mar 5, 2015

Share This Page