Open Tibia
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Open Tibia

A OT Server Community. A Place To Get Help
 
HomeGallerySearchLatest imagesRegisterLog in

 

 A small tutorial "How to make a Restarter for your Ot&q

Go down 
2 posters
AuthorMessage
Joey

Joey


Number of posts : 52
Age : 31
Localisation : Cairo
Registration date : 2007-06-28

A small tutorial "How to make a Restarter for your Ot&q Empty
PostSubject: A small tutorial "How to make a Restarter for your Ot&q   A small tutorial "How to make a Restarter for your Ot&q Icon_minitimeSun Jul 01, 2007 4:07 am

Hope it helps..

1. You need to place a '@<hidden>' sign before most of the commands (I will alert you when you need to)
2. In order to make the BIOS window say something (i.e- My Restarter) you need to use the command 'echo'
3. At the end of every project you need to place the command 'pause' at the end of it, or the program will self exit
4. When making it restart a program there is no special command, all you do is write the file name after the '@<hidden>' sign.

Enough of the explanations, heres what you would do to make a simple program (Please Open Notepad)

Step 1:
Place a title on the program (i.e- My Restarter) like this:

@<hidden> My Restarter
You can add more obviously after that (i.e- By: John Doe) like this

@<hidden> My Restarter

@<hidden> By: John Doe
And so on

Step 2:
Skip down 2-3 Lines. Now how do I get it to load the executable file? (i.e-ots.exe). Try this:
Add this to the current progress

@<hidden>
(If the filename contains spaces, put it in quotes (i.e-"YOUR FILE.EXE")

So now we should have

@<hidden> My Restarter

@<hidden> By: John Doe

@<hidden>"YOUR FILE.exe"
So now it will open the executable, but I want it to say something after it resets, how do I do it?
Add:

@<hidden> Restarting. . .
After

@<hidden>"YOUR FILE.exe"
So now we should have something that looks like:

@<hidden> My Restarter

@<hidden> By: John Doe

@<hidden>"YOUR FILE.exe"
@<hidden> Restarting. . .
Soo.. It opens, and says 'Restarting. . .' when it crashs or when I exit it, but it only does it once Sad, how do I make it do it over and over?

Before

@<hidden>"YOUR FILE.exe"
Add:

:DEMON
Then after

@<hidden> Restarting. . .
Add:

:goto DEMON
Now it will continue to restart (You can replace 'DEMON' with any WORD)


Soo.. How do I finish this?

Remember you have to add the 'Pause' command to finish it.

Add:

:exit
Below

:goto DEMON
Then add

@<hidden>
After

:exit
So you should end up with something like this:

@<hidden> My Restarter

@<hidden> By: John Doe

:DEMON
@<hidden>"YOUR FILE.exe"
@<hidden> Restarting. . .
:goto DEMON

:exit

@<hidden>
CONGRATULATIONS! If you completed it correctly, you should have a PERFECT restarter!

Oh Lord its a TEXT file! How do I fix this?

Go to || SAVE->'ALL FILES'->(Your_name.BAT)

Then save that to your DESKTOP (For the easiest access).

Now, you have an executable batch file on your desktop, place it in the same directory as the ots.exe (Or whatever you named it) and it WILL restart!

Below is a restarter I did in a batch file setup (It has features I didnt go over with you in it):


@<hidden> 1f

@<hidden> :: Checking for 'Tibia.exe'. . .
@<hidden> ::
@<hidden> ::
@<hidden> not exist tibia.exe GOTO problem
@<hidden> exist tibia.exe GOTO FOUND

:problem
@<hidden> :: Sorry! Couldnt locate 'Tibia.exe'!
@<hidden> ::
@<hidden> ::
@<hidden> ::
@<hidden>


:FOUND
@<hidden> :: 'Tibia.exe' was found and we are proceeding!
@<hidden> ::
@<hidden> ::
:GOTO HELL


:HELL

@<hidden>
@<hidden> :: restarting. . .
@<hidden> ::

:goto HELL


:exit


@<hidden>


Update:

Add the '@<hidden>' command to add the title to the prompt window:



@<hidden> My Restarter


Just change the "Tibia.exe" with your Otserv.exe or whatever you named it Smile

--------------------------------------------------------------------------------

enjoy Very Happy plz comment if it works and if i could fix it in anyway.
Back to top Go down
Twiddles
Admin
Admin
Twiddles


Number of posts : 160
Age : 31
Localisation : Borehamwood
Registration date : 2007-06-22

A small tutorial "How to make a Restarter for your Ot&q Empty
PostSubject: Re: A small tutorial "How to make a Restarter for your Ot&q   A small tutorial "How to make a Restarter for your Ot&q Icon_minitimeSun Jul 01, 2007 12:08 pm

I really didnt know that Razz



//Twiddles
Back to top Go down
http://www.opentibia.co.uk
Joey

Joey


Number of posts : 52
Age : 31
Localisation : Cairo
Registration date : 2007-06-28

A small tutorial "How to make a Restarter for your Ot&q Empty
PostSubject: Re: A small tutorial "How to make a Restarter for your Ot&q   A small tutorial "How to make a Restarter for your Ot&q Icon_minitimeSun Jul 01, 2007 2:22 pm

hope it helps. Smile
Back to top Go down
Sponsored content





A small tutorial "How to make a Restarter for your Ot&q Empty
PostSubject: Re: A small tutorial "How to make a Restarter for your Ot&q   A small tutorial "How to make a Restarter for your Ot&q Icon_minitime

Back to top Go down
 
A small tutorial "How to make a Restarter for your Ot&q
Back to top 
Page 1 of 1
 Similar topics
-
» This is a small tutorial about Portforwarding
» Everything U Need To Make A 7.6-7.8-7.81-7.9-7.92 Server
» How to make your own Custom Monster.

Permissions in this forum:You cannot reply to topics in this forum
Open Tibia :: Technical Help :: General Help-
Jump to: