Author Topic: [EXCLUSIVE] How to make an automatic restart file?  (Read 4089 times)

0 Members and 1 Guest are viewing this topic.

Offline heekz.shadow

  • LU testers
  • Made Man
  • *
  • Posts: 249
    • View Profile
[EXCLUSIVE] How to make an automatic restart file?
« on: June 16, 2011, 09:21:39 pm »
Well, today I gonna show you how to make a Auto-Restart for servers. This is the output method
First, create a restart.txt file and paste this code in it
Code: [Select]
@echo off
TASKKILL /F /IM "vcmp-svr.exe"
CD "Location"
start vcmp-svr.exe

IMPORTANT: Rename Location with your target-zone of your server E.g: "C:\MyOwnServer" and make sure that your server executable is called vcmp-svr.exe ATTENTION: Not vcmp-srv.exe, it's vcmp-svr.exe [See the svr - srv ]

ATTENTION: This don't starts the server,just shuts it down and restart and works as a starter too but it won't have what to close so it may cause bugs.

then change the extension of .txt in to .bat

Run it and have fun!

Coded in exclusivity by Shadow
Here to make VC-MP better.
« Last Edit: June 16, 2011, 09:26:58 pm by heekz.shadow »
Code: [Select]
[20:23] <habi> later only i heard that lu chatbox is customizable. On my first visit, it appeared ugly.
[20:23] <habi> May be that also be the reason why lu has no players

Offline Madara

  • Street Thug
  • *
  • Posts: 48
    • View Profile
Re: [EXCLUSIVE] How to make an automatic restart file?
« Reply #1 on: June 16, 2011, 10:32:14 pm »
Well, today I gonna show you how to make a Auto-Restart for servers. This is the output method
First, create a restart.txt file and paste this code in it
Code: [Select]
@echo off
TASKKILL /F /IM "vcmp-svr.exe"
CD "Location"
start vcmp-svr.exe

IMPORTANT: Rename Location with your target-zone of your server E.g: "C:\MyOwnServer" and make sure that your server executable is called vcmp-svr.exe ATTENTION: Not vcmp-srv.exe, it's vcmp-svr.exe [See the svr - srv ]

ATTENTION: This don't starts the server,just shuts it down and restart and works as a starter too but it won't have what to close so it may cause bugs.

then change the extension of .txt in to .bat

Run it and have fun!

Coded in exclusivity by Shadow
Here to make VC-MP better.

I already had seen an in SAMP, and has long i had knowledge of this,  pawn of VCMP not have the ability to auto-restart, and this has no effect on a server, because when you restart (with that method) players who are inside the server disconnects, or lost connection.

This may work for the next version of Pawn, to version 0.4 VCMP.

Greetings ;)
« Last Edit: June 16, 2011, 10:36:01 pm by Madara »

Offline heekz.shadow

  • LU testers
  • Made Man
  • *
  • Posts: 249
    • View Profile
Re: [EXCLUSIVE] How to make an automatic restart file?
« Reply #2 on: June 16, 2011, 11:13:45 pm »
You didn't understood. You can make a shortcut of this and this economises space, time and performance. Why? Cuz it is very fast and it runs an unbugged vcmp-svr.exe. Also, it closes all tasks with the name of "vcmp-svr.exe" as you can see at TASKKILL command setted there. You also don't have to go to the same location all the time

It is just good :D
It can be also used as a restartscript for javaservers or javachatrooms
Code: [Select]
[20:23] <habi> later only i heard that lu chatbox is customizable. On my first visit, it appeared ugly.
[20:23] <habi> May be that also be the reason why lu has no players

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: [EXCLUSIVE] How to make an automatic restart file?
« Reply #3 on: June 16, 2011, 11:28:46 pm »
Not good for server hosters since it terminates every single instance of VC:MP servers. It also doesn't auto-restart; all it does it close all VC:MP servers, start it, and it's done.
Do not PM me for support.




Offline [MKs]WiLsON

  • Street Thug
  • *
  • Posts: 33
  • NVM
    • View Profile
Re: [EXCLUSIVE] How to make an automatic restart file?
« Reply #4 on: June 17, 2011, 11:53:19 am »
 its auto start?