Jump to content
domistyle

DaRT - A Lightweight DayZ (and ArmA) RCon Tool (v2.1 | 11/10/2015)

Recommended Posts

I finally got enough time to include automated messages in DaRT.

I even took it a little bit further and included a little script language into DaRT which enables you to do schedulers like with BEC but via RCon and with more options.

Beside that DaRT can also execute 1 single command via parameters if you don't want to fiddle with the scripts.

You also have the possibility to loop scripts so it either loops a few times or forever.

You can see a example script below and what it can do.

// exec= allows you to execute RCon commands

exec=say -1 This is a test for scripts in DaRT!

exec=say -1 Waiting for 5 seconds...

// wait= causes DaRT to wait the specified amount of time in ms

wait=5000

// You can use %p to display the amount of online players

exec=say -1 There are %p players online.

// You can use %b to display the amount of banned players

exec=say -1 %b players are banned from this server.

// You can use %a to display the amount of online admins

exec=say -1 %a admins are currently online!

// You can use %r to get a random player name

exec=say -1 Random player: %r

// kickAll will kick everyone on the server

// The reason is optional.

kickAll=Kicked everyone!

// banAll will ban everyone from the server

// The reason is optional.

banAll=Banned everyone!

// You can also use if to only display messages if a certain requirement is met

// You can also use %p, %b, ... here

if %p > 0:exec=say -1 %p players are online! =)

// You can also use this to kick everyone as soon as more than 20 players are on the server...

if %p > 20:kickAll

// ...or lock the server once 20 players are online...

if %p > 19:exec=#lock

// ...and unlock it again once population is under 20 again

if %p < 20:exec=#unlock

// You can also use an else statement for locking/unlocking the server like this

if %p > 19:exec=#lock:exec=#unlock

// You can use %l to access the loop #

// Looped 4 times means it got executed 1 + 4 times. Total of 5.

exec=say -1 Looped %l times

// This will cause DaRT to quit the script

quit

Feedback and feature requests are welcome.

For people having problem with the if part:

if %p > 19:exec=#lock:exec=#unlock

That should make reading it easier.

Basically it is:

if requirement:then:else

else is optional of course.

Edited by DomiStyle
  • Like 1

Share this post


Link to post
Share on other sites

Hi sorry this may seem seriously stupid, but really im not that good when it comes to downloading and installing and files and all that stuff, ive downloaded the framework and the files, but from there im completely stuck? i have no idea what to do...

Share this post


Link to post
Share on other sites

Don't know if this is server side or Dart side, but lately my admin chat going through Dart takes an extremely long time to show in-game, if it even shows up at all.

Share this post


Link to post
Share on other sites

Hi sorry this may seem seriously stupid, but really im not that good when it comes to downloading and installing and files and all that stuff, ive downloaded the framework and the files, but from there im completely stuck? i have no idea what to do...

Did you execute the DaRT.exe?

Don't know if this is server side or Dart side, but lately my admin chat going through Dart takes an extremely long time to show in-game, if it even shows up at all.

Are you streaming logs via RCon?

Share this post


Link to post
Share on other sites

Did you execute the DaRT.exe?

Not sure how to? I really have no clue with these things but unfortunately I absolutely need this for my server

Share this post


Link to post
Share on other sites

Did you execute the DaRT.exe?

I executed it, i got it working then when i turned my computer off and then back on it stopped working, it now wont let me open in? when i click run it just spins then stops and does nothing?

Share this post


Link to post
Share on other sites

Newb question here. Where can I set my rcon password? I have looked up and down all the files I can find but seem to be missing where the rcon password is.Please help.

Share this post


Link to post
Share on other sites

Hosting with Dayz.st and when I go to login with DaRT I get this message:

[2013-03-06 | 18:48:52] Connecting to ya.you.wish.I.would:POSTMYIP

[2013-03-06 | 18:48:52] Login invalid!

Entered my password a dozen times and double checked IP. Still a no go. I am a noob to hosting to so it could be something I am doing

Share this post


Link to post
Share on other sites

How do you add the automated messages?

You can use a single command or a script.

Just add a shortcut to DaRT or use a batch file.

To execute a single command:

DaRT.exe -ip="127.0.0.1" -port="2302" -password="password" -command="say -1 This is a test from DaRT console mode =)" -output="output.txt" -close

-ip: Specify your server ip address here

-port: Specify your server port here

-password: Your port

-command: The command you want to execute

-output: If you want to save the output to a file, add it here. You can use this to read the player list or similar.

-close: Will close the window after executing the file. If you do not add this parameter it will wait for you to quit.

To execute a script:

DaRT.exe -ip="127.0.0.1" -port="2302" -password="password" -script="script.txt" -output="output.txt" -loop="0" -close

-script:Path to your script file

-loop: Loop mode (-1 = Infinite loop, 0 = Don't loop, 1 = Loop 1 time, 2 = Loop 2 times and so on)

Instead of using the -command parameter you use the -script parameter here.

After that you create a file in the same folder as your DaRT.exe name it script.txt.

In the script.txt you can specify whatever you want to do with it.

exec=say -1 This is a test from DaRT script mode

wait=5000

exec=say -1 There are %p players online!

exec=say -1 There are %b players banned!

exec=say -1 There are %a admins online!

exec=say -1 You can also use %r to choose a random online player!

exec=say -1 This script does not loop, but if it would you could use %l to access the loop #

wait=5000

exec=say -1 This will lock your server if more than one player is online.

if %p > 0:exec=#lock:exec#unlock

wait=5000

exec=say -1 This will output only if more than 1000 players are banned.

if %b > 1000:say -1 Wow, we got over 1000 players banned!

wait=2000

exec=say -1 Will kick everyone from the server in 5 seconds!

wait=1000

exec=say -1 1...

wait=1000

exec=say -1 2...

wait=1000

exec=say -1 3...

wait=1000

exec=say -1 4...

wait=1000

exec=say -1 5...

exec=kickAll

After that just start the shortcut/batch file and the command/commands will get executed.

Tell me if you need any help.

Hosting with Dayz.st and when I go to login with DaRT I get this message:

[2013-03-06 | 18:48:52] Connecting to ya.you.wish.I.would:POSTMYIP

[2013-03-06 | 18:48:52] Login invalid!

Entered my password a dozen times and double checked IP. Still a no go. I am a noob to hosting to so it could be something I am doing

Did you set your password in beserver.cfg?

The password in your server.cfg is not your RCon password!

Edited by DomiStyle

Share this post


Link to post
Share on other sites

Seems a little complicated for my limited skills. I managed to have BEC loop messages which was fairly easy. I don;t understand this:

To execute a script:

DaRT.exe -ip="127.0.0.1" -port="2302" -password="password" -script="script.txt" -output="output.txt" -loop="0" -close

-script:Path to your script file

Where does this go and how do I set it up?

Also, the latest version gives an error when trying to ban players from the player database. You have to manually copy the guid and use execute to manually apply the ban.

Overall, I still like Dart more than any other Rcon tool out there.

  • Like 1

Share this post


Link to post
Share on other sites

Seems a little complicated for my limited skills. I managed to have BEC loop messages which was fairly easy. I don;t understand this:

To execute a script:

DaRT.exe -ip="127.0.0.1" -port="2302" -password="password" -script="script.txt" -output="output.txt" -loop="0" -close

-script:Path to your script file

Where does this go and how do I set it up?

Also, the latest version gives an error when trying to ban players from the player database. You have to manually copy the guid and use execute to manually apply the ban.

Overall, I still like Dart more than any other Rcon tool out there.

It's simple.

Just create a new shortcut to DaRT and attach the parameters from above to it.

You can do this by going to the settings of the shortcut and attach the parameters under target after DaRT.exe.

The alternative is to create a .bat file in the same folder as DaRT and put the above code in it.

When you execute the shortcut or the bat file it will execute the script you specified with the settings you chose.

I will take a look at the crash. Thanks for reporting.

Share this post


Link to post
Share on other sites

I have problem - when i say in global by russian, cyrillic symbols printed ingame like: "???? ?? ?????" - i think it's codepage problem, so can i change DaRT output codepage in config or by other way?

ArmA2Rcon prints cyrillic messages normally, but DaRT is better for me.

Edited by Andrakann

Share this post


Link to post
Share on other sites

I have problem - when i say in global by russian, cyrillic symbols printed ingame like: "???? ?? ?????" - i think it's codepage problem, so can i change DaRT output codepage in config or by other way?

ArmA2Rcon prints cyrillic messages normally, but DaRT is better for me.

There currently is not but expect a fix with v0.9.1.

Should come out in a few days.

  • Like 1

Share this post


Link to post
Share on other sites

On v0.9 trying to ban a GUID in the player list (right click on player name ban GUID) gives error "An error occurred, please try again."

Server is on dayz.st if that makes any difference.

Share this post


Link to post
Share on other sites

On v0.9 trying to ban a GUID in the player list (right click on player name ban GUID) gives error "An error occurred, please try again."

Server is on dayz.st if that makes any difference.

Already fixed in next version.

Share this post


Link to post
Share on other sites

Can we have some sort of alert filters? Like if someone says admin in chat it'll start flashing in the taskbar. :lol:

Share this post


Link to post
Share on other sites

Can we have some sort of alert filters? Like if someone says admin in chat it'll start flashing in the taskbar. :lol:

Sure. Will be in the next version.

Also: Download link is down at the moment incase anyone is wondering.

I am working on getting it back online.

edit: Download is back up!

Edited by DomiStyle

Share this post


Link to post
Share on other sites

While I had noticed that previous posts had been made about flags and country codes being mixed incorrectly (ca. August '12 correction, December '12), I figured I would post it again. Sorry if this is a continuing issue that was never fixed, but I did not see anything recently posted and assumed that it might have been resolved. In particular, my DaRT is confusing Americans and Canadians. I am using v0.9.

Again, sorry if this is truly a duplicate report.

Edited by Aurelius_O
  • Like 1

Share this post


Link to post
Share on other sites

While I had noticed that previous posts had been made about flags and country codes being mixed incorrectly (ca. August '12 correction, December '12), I figured I would post it again. Sorry if this is a continuing issue that was never fixed, but I did not see anything recently posted and assumed that it might have been resolved. In particular, my DaRT is confusing Americans and Canadians. I am using v0.9.

Again, sorry if this is truly a duplicate report.

Hmm...didn't have that problem for a while.

Will take a look at it.

Share this post


Link to post
Share on other sites

Is there anyway to turn off the news part at the top of the program, seems trend micro thinks that the site is bad and blocks the program from running.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×