Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → [EN] Diablo → Shutdown scheduler with announcement

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 13

1

Topic: Shutdown scheduler with announcement

Is there a configuration somewhere in PvPGN or D2GS  that would allow me to schedule a daily shutdown time and a corresponding in-game warning announcement that is also scheduled? I haven't seen this anywhere in PvPGN/D2GS configs, but that doesn't mean it's not there somewhere.

For example, if I wanted to shutdown the server and restart PvPGN/D2GS everyday at 5am and give the client an in-game warning..
"The server will shutdown in 15 mins for maintenance."

I currently have this set up and working, but it's kinda clumsy using PuTTY and a macro triggered daily by Windows Task Scheduler. Lol..

Is there a cleaner way to do it? Thanks for any help.

Joe

2

Re: Shutdown scheduler with announcement

Joe Schmoe wrote:

Is there a configuration somewhere in PvPGN or D2GS  that would allow me to schedule a daily shutdown time and a corresponding in-game warning announcement that is also scheduled? I haven't seen this anywhere in PvPGN/D2GS configs, but that doesn't mean it's not there somewhere.

For example, if I wanted to shutdown the server and restart PvPGN/D2GS everyday at 5am and give the client an in-game warning..
"The server will shutdown in 15 mins for maintenance."

I currently have this set up and working, but it's kinda clumsy using PuTTY and a macro triggered daily by Windows Task Scheduler. Lol..

Is there a cleaner way to do it? Thanks for any help.

Joe

Maybe replace putty with a telnet command? And have windows task run a bat file using telnet to issue message and restart command. Not sure if this helps you or not. Just another angle.

3

Re: Shutdown scheduler with announcement

reillybenoit wrote:
Joe Schmoe wrote:

Is there a configuration somewhere in PvPGN or D2GS  that would allow me to schedule a daily shutdown time and a corresponding in-game warning announcement that is also scheduled? I haven't seen this anywhere in PvPGN/D2GS configs, but that doesn't mean it's not there somewhere.

For example, if I wanted to shutdown the server and restart PvPGN/D2GS everyday at 5am and give the client an in-game warning..
"The server will shutdown in 15 mins for maintenance."

I currently have this set up and working, but it's kinda clumsy using PuTTY and a macro triggered daily by Windows Task Scheduler. Lol..

Is there a cleaner way to do it? Thanks for any help.

Joe

Maybe replace putty with a telnet command? And have windows task run a bat file using telnet to issue message and restart command. Not sure if this helps you or not. Just another angle.

Hmm. I’ll look into that. I have a series of batch files that restarts the server PC and then starts each service to turn on the server. I run the batches on a schedule using a task scheduler. I was reading somewhere that PvPGN has a memory leak that causes a crash after some time. So I just shutdown and restart everything once a day. Thanks for the idea. I’ll see if I can find a script that can use telnet to issue commands.

Joe

4

Re: Shutdown scheduler with announcement

if you use windows, you can set up bot using topaz chat, which can execute ann command

but there is a problem, topaz chat do not reconnect automatically after server restart

5

Re: Shutdown scheduler with announcement

Karol wrote:

if you use windows, you can set up bot using topaz chat, which can execute ann command

but there is a problem, topaz chat do not reconnect automatically after server restart

Topaz chat. I’m gonna check that out. I remember there was a chat bot back in the day that would play games and trivia in Diablo II chat. That would be kinda cool.

I did some quick research and it looks like telnet doesn’t like batch scripts for establishing connection. Something about latency and delay timeout. It’s possible with 3rd party software scripting I guess. But that’s over my head for now. Thanks for the ideas!

Joe

6

Re: Shutdown scheduler with announcement

I've developed a script for linux where it sends msg via D2GS to the players.

You would only have to add the script to crontab to run at the desired times.

https://forums.pvpgn.pro/viewtopic.php?id=1939

7

Re: Shutdown scheduler with announcement

Feofilaktt wrote:

I've developed a script for linux where it sends msg via D2GS to the players.

You would only have to add the script to crontab to run at the desired times.

https://forums.pvpgn.pro/viewtopic.php?id=1939

I have no experience with bash scripts. I'm gonna check it out and get back to you. Thanks, man!

Joe

Added: 10.02.2019 17:08

Feofilaktt wrote:

I've developed a script for linux where it sends msg via D2GS to the players.

You would only have to add the script to crontab to run at the desired times.

https://forums.pvpgn.pro/viewtopic.php?id=1939

Well, I tried. I tried to Windows Task Scheduler it using Git and Cygwin to call bash.exe to run your .sh script. I couldn't get it to work. I just don't know how. Haha. Been googling it and trying different things. I'll keep trying... Thanks.

Joe

8

Re: Shutdown scheduler with announcement

Joe Schmoe wrote:

Well, I tried. I tried to Windows Task Scheduler it using Git and Cygwin to call bash.exe to run your .sh script. I couldn't get it to work. I just don't know how. Haha. Been googling it and trying different things. I'll keep trying... Thanks.

Joe

Hum, maybe I can send commands via CMD telnet to perform the same actions.

9

Re: Shutdown scheduler with announcement

I thought that it can be done by bnchat.exe but I dont know how pass arguments with login/pass/msg

10

Re: Shutdown scheduler with announcement

Feofilaktt wrote:
Joe Schmoe wrote:

Well, I tried. I tried to Windows Task Scheduler it using Git and Cygwin to call bash.exe to run your .sh script. I couldn't get it to work. I just don't know how. Haha. Been googling it and trying different things. I'll keep trying... Thanks.

Joe

Hum, maybe I can send commands via CMD telnet to perform the same actions.


Thanks, dude. But I'd really like to learn how to use a .sh and bash.exe to do it myself. It might take me some time, but I'll figure it out!

In the meantime, I'm using puTTY -->  https://www.chiark.greenend.org.uk/~sgt … atest.html
and this macro creator --> https://github.com/Pulover/PuloversMacr … rtable.zip

It's convoluted, but it's working. The macro creator can schedule macros via Windows Task Scheduler...
I have my macro open puTTY, start a telnet session, and then send keystrokes to the cmd window. It sends an in-game warning at 15, 5, and 1 minute before server restart everyday.

Joe

11

Re: Shutdown scheduler with announcement

Karol wrote:

if you use windows, you can set up bot using topaz chat, which can execute ann command

but there is a problem, topaz chat do not reconnect automatically after server restart

Stealthbot is working great with D2GS for me. I also managed to get that trivia bot working in game chat channels! Cool beans. Thanks for the ideas. I will probably use macros to automate reconnecting Stealthbot after server restart... My goal is to have everything automated so I can essentially just walk away from it at some point.

Joe

12

Re: Shutdown scheduler with announcement

stealthbot used to have autoreconnect script, if you find it your problem will be solved

13

Re: Shutdown scheduler with announcement

Karol wrote:

stealthbot used to have autoreconnect script, if you find it your problem will be solved

Awesome! I’ll look into it. Thank you.

Joe

Posts: 13

Pages 1

You must login or register to post a reply

Who now at forum

Currently view post: 0 guests, 0 registered users

forums.pvpgn.pro → [EN] Diablo → Shutdown scheduler with announcement



Generated in 0.114 seconds (85% PHP - 15% DB) with 22 queries