Autoserver commands plz help!

Discussion related to Turbo Sliders and beta version feedback.

Moderator: Forum Moderators

Post Reply
User avatar
CJMoto7
-
Posts: 37
Joined: Wed May 14, 2008 2:02 am
Contact:

Autoserver commands plz help!

Post by CJMoto7 » Fri Nov 21, 2008 1:58 am

Hi i've been using turbosliders for a few years now and i started to get interested in autoservers and made a really good one but i went to read the autoserver readme.txt and it says how to make ur own commands and stuff for autoservers u know like using windows command script.cmd and batch file.bat but i do not understand how to make commands what r the varibles? i don't understand how to mke autoserver scripts can somebody plz help me? :?:
Visit My Website
For tracks, cars and ai lines...etc
My Player Nick: [AUS]cJm_93
Image

User avatar
dede
Community User Level: 5
Community User Level: 5
Posts: 3314
Joined: Mon Apr 10, 2006 10:29 am
Contact:

Post by dede » Fri Nov 21, 2008 2:30 am

This is an example of a .bat file (you can create it using notepad).

custom.bat

Code: Select all

C:/wamp/php/php.exe serverscript.php
You can easily launch external script for stat parsing and so on.

For example, I created a PHP script for useful things (I can run those commands when I'm hosting, using the sliders.ini configuration CustomCmd custom.bat):
/adminmsg /cmd searchip <ip> (searches for the specified <ip>)
/adminmsg /cmd searchnick <nick> (searches for the specified <nick>)
/adminmsg /cmd ipwhois <ip> (displays the country linked to that <ip>)
/adminmsg /cmd clock (displays the current date)
/adminmsg /cmd reverse <string> (displays <string> reversed)
/adminmsg /cmd clearsrc (deletes temporary source file)

User avatar
CJMoto7
-
Posts: 37
Joined: Wed May 14, 2008 2:02 am
Contact:

Post by CJMoto7 » Fri Nov 21, 2008 2:53 am

Thanks dede for ur quick reply but,
could u give me step-by-step on how to acually make that?
like how do u write the commands in the php file? what do u write?
Visit My Website
For tracks, cars and ai lines...etc
My Player Nick: [AUS]cJm_93
Image

User avatar
dede
Community User Level: 5
Community User Level: 5
Posts: 3314
Joined: Mon Apr 10, 2006 10:29 am
Contact:

Post by dede » Fri Nov 21, 2008 10:40 am

CJ_Moto7 wrote:like how do u write the commands in the php file? what do u write?
You're asking too much now. PHP is a programming language. But you can use any programming language you want.

User avatar
CJMoto7
-
Posts: 37
Joined: Wed May 14, 2008 2:02 am
Contact:

Post by CJMoto7 » Sat Nov 22, 2008 1:52 am

ummmm ok but what do u mean? how can turbosliders understand your own programing language? i'm sorry but i just don't get it
Visit My Website
For tracks, cars and ai lines...etc
My Player Nick: [AUS]cJm_93
Image

User avatar
dede
Community User Level: 5
Community User Level: 5
Posts: 3314
Joined: Mon Apr 10, 2006 10:29 am
Contact:

Post by dede » Sat Nov 22, 2008 11:11 am

CJ_Moto7 wrote:ummmm ok but what do u mean? how can turbosliders understand your own programing language? i'm sorry but i just don't get it
Did you ever read my answer? You need to create the bat file, and inside it you can call the interpreter and your own scripts.

OT: after the first warn you posted again some useless topics. Speedway mod is already advertised here at the forum, so please use the search function. And actually, this has to be considered the second warn, so please don't post like that or you get a ban.

User avatar
CJMoto7
-
Posts: 37
Joined: Wed May 14, 2008 2:02 am
Contact:

Post by CJMoto7 » Sun Nov 23, 2008 7:18 am

dede wrote:For example, I created a PHP script for useful things
umm i'm not a noob but i don't know how to make php scripts if u can could u plz show me how or an example? and about the speed way sry about that cause i went and saw the speedway topic and u just sed its at can'tremember.eu and i went there and it did nothing so maybe could u send me the link here? or post the link in that speedway topic plz
Last edited by CJMoto7 on Fri Dec 05, 2008 6:23 am, edited 1 time in total.
Visit My Website
For tracks, cars and ai lines...etc
My Player Nick: [AUS]cJm_93
Image

TURBOSPEEDER
Posts: 20
Joined: Mon May 08, 2006 6:10 pm

Post by TURBOSPEEDER » Sun Nov 23, 2008 10:52 am

lrn 2 write pr0p3r english 1st plz

User avatar
dede
Community User Level: 5
Community User Level: 5
Posts: 3314
Joined: Mon Apr 10, 2006 10:29 am
Contact:

Post by dede » Sun Nov 23, 2008 11:33 am

search.php -> Forum search function, should be used before posting anything. The speedway topic has a link for direct download, so read ALL posts.

http://www.google.it -> This is a little website where you get immediate answer to your problems. Try writing "php script help plz". You will get 101.000 answers. But since it might be too hard to read them, I did that for you and I found http://www.php.net which is a website dedicated to php.

User avatar
CJMoto7
-
Posts: 37
Joined: Wed May 14, 2008 2:02 am
Contact:

Post by CJMoto7 » Wed Dec 03, 2008 4:43 am

ok dede i have made an exellent custom.bat file and i use it alot and have also made a .php file but how do u associate it with the custom.bat file? and furthermore how do u associate it with Turbo Sliders? because it will make my autoserver come alive big time so plz?
Visit My Website
For tracks, cars and ai lines...etc
My Player Nick: [AUS]cJm_93
Image

User avatar
dede
Community User Level: 5
Community User Level: 5
Posts: 3314
Joined: Mon Apr 10, 2006 10:29 am
Contact:

Post by dede » Wed Dec 03, 2008 11:57 am

CJ_Moto7 wrote:ok dede i have made an exellent custom.bat file and i use it alot and have also made a .php file but how do u associate it with the custom.bat file? and furthermore how do u associate it with Turbo Sliders? because it will make my autoserver come alive big time so plz?
Answer

OT: Anyway, stop using this forum as a chat, and posting 10 messages in a row. I removed your "Community User Level", because it seems like you want to get it as high as possible (don't even complain about this decision).
Most of your posts got deleted because they were stupid questions about already discussed (& solved) topics. This post by you is a good example, since I clearly showed you how to do in the second post.
Two warns via PM didn't work, so let's see if this works. This is the last warn, after you get a ban.

User avatar
CJMoto7
-
Posts: 37
Joined: Wed May 14, 2008 2:02 am
Contact:

Post by CJMoto7 » Fri Dec 05, 2008 3:46 am

dede wrote:This is an example of a .bat file (you can create it using notepad).

custom.bat

Code: Select all

C:/wamp/php/php.exe serverscript.php
You can easily launch external script for stat parsing and so on.

For example, I created a PHP script for useful things (I can run those commands when I'm hosting, using the sliders.ini configuration CustomCmd custom.bat):
/adminmsg /cmd searchip <ip> (searches for the specified <ip>)
/adminmsg /cmd searchnick <nick> (searches for the specified <nick>)
/adminmsg /cmd ipwhois <ip> (displays the country linked to that <ip>)
/adminmsg /cmd clock (displays the current date)
/adminmsg /cmd reverse <string> (displays <string> reversed)
/adminmsg /cmd clearsrc (deletes temporary source file)
could u send me a link to download ur script please? i would like what u have made and will help me in making mine tnx :)
Visit My Website
For tracks, cars and ai lines...etc
My Player Nick: [AUS]cJm_93
Image

User avatar
Jazzyclub
Community User Level: 3
Community User Level: 3
Posts: 586
Joined: Sun Nov 14, 2004 2:11 am
Contact:

Post by Jazzyclub » Fri Dec 05, 2008 7:43 pm

or if you like, you can download from tools section my autoserver cretor :)

30 seconds and your autoserver is up for running :)

User avatar
CJMoto7
-
Posts: 37
Joined: Wed May 14, 2008 2:02 am
Contact:

Post by CJMoto7 » Sat Dec 06, 2008 1:21 am

thats ok jassyclub i don't need ur autoserver creator i know how to make an autoserver^ and speacial commands but not like dede has done thats why i want his

^haven't u seen the cup on the home page? the STC cup? thats hosted by me its completely automatic
Visit My Website
For tracks, cars and ai lines...etc
My Player Nick: [AUS]cJm_93
Image

Post Reply