|
Dedicated Server Discuss technical issues related to hosting your own servers. |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
How do i post a server message in my server without joining the server?
Question in title,
See one of my Servers is for lower level players, so im too low level to join it. but id still like to post a server message announcing when im going off-line and the servers will be shut down. can anyone tell me how to do this? |
#2
|
|||
|
|||
no one knows? come on, id like to be able to do this if possible
|
#3
|
|||
|
|||
Hello and Welcome to the Altitude Community!
Apologies for the late response. I am sure there is some way to accomplish what you are trying to do, but it would take a lot of knowledge in codes like PHP. For Example: Phong made his servers restrict plane setups, and he even made his own welcome message when people joined his servers. You can take a look here. |
#4
|
|||
|
|||
well that looks a little complicated, and i havent bought the game yet, im using the steam free weekend pass, so i dont want to do heavy coding now and then have to do it over again when i buy the game.
|
#5
|
|||
|
|||
Do the level restrictions apply to admins? Because if you make yourself an admin of these servers that you're hosting, then you might be able to get in and type messages.
|
#6
|
|||
|
|||
There's no need for heavy coding to do this.
If you're running the server from a unix-based OS (macs are also unix-based), all you have to do is type this into the console: echo 27275,console,serverMessage Your server message goes here>> ~Altitude/servers/command.txt Where ~Altitude is the directory you keep altitude in, and 27275 is the port number of the server you want the message to go to (you can find the port numbers in your server configuration files). For more information just look at this post http://altitudegame.com/forums/showthread.php?t=2616 . Last edited by lamster; 05-21-2010 at 09:33 PM. |
#7
|
|||
|
|||
Quote:
Quote:
Edit: ok, i cant find the directory, im useing steam to play, so where would i find it on a mac when useing steam? Edit: Edit: i found the directory of the servers folder, but its empty, i have no commands.txt file, is this something i have to create? Last edited by Knight; 05-21-2010 at 10:12 PM. |
#8
|
|||
|
|||
Quote:
|
#9
|
|||
|
|||
bump, still need help...
|
#10
|
|||
|
|||
I believe the commands.txt file is created by the application when you launch your server. Try launching your server first before looking for it. If it's still not there then I'm not sure what to say haha.
|
#11
|
|||
|
|||
Quote:
Edit: it just listed the file... so im going to test it now Last edited by Knight; 05-21-2010 at 10:39 PM. |
#12
|
|||
|
|||
ok it still didnt work, this is the command i used:
echo 27277,console,serverMessage All Servers will be shuting down till 8pm Central time or later>> /applications/altitude/servers/command.txt do i need to add "Macintosh HD or did i do somthing else wrong? |
#13
|
|||
|
|||
You want the Altitude/server directory the server_launcher is running from, for example:
Windows "C:/Program Files/Altitude/servers/command.txt" Mac "/Applications/Altitude/servers/command.txt" Linux "~/altitude/servers/command.txt" That should work, assuming you're running a server on port 27277 -- did the log on the visible server launcher window show a line like this? "Executing: port=27277, type=console, data=serverMessage All Servers..." Last edited by lamster; 05-21-2010 at 10:48 PM. |
#14
|
|||
|
|||
Quote:
Edit: no it didnt show up, like i said, im getting an invalid command error on the console |
#15
|
|||
|
|||
Weird, maybe you need correct case or a space?
Code:
echo 27277,console,serverMessage All Servers will be shuting down till 8pm Central time or later >> "/Applications/Altitude/servers/command.txt" |
#16
|
|||
|
|||
Quote:
"Invalid Command : /echo 27277,console,serverMessage All Servers will be shuting down till 8pm Central time or later >> "/Applications/Altitude/servers/command.txt"" when i use the same code without the quotes around the source file i just get "Invalid Command : /echo 27277,console,serverMessage All Servers will be shuting down till 8pm Central time or later >> /Applications/Altitude/servers/command.txt" |
#17
|
|||
|
|||
Or maybe the echo command wants quotes on the Mac version, e.g.:
echo "27277,console,serverMessage All Servers will be shuting down till 8pm Central time or later" >> /Applications/Altitude/servers/command.txt |
#18
|
|||
|
|||
Aaaahh -- I think we had a miscommunication at some point here. You need to paste the echo command into a Mac Terminal window (finder -> application -> Terminal) -- not the Altitude in-game console.
|
#19
|
|||
|
|||
Quote:
echo "27277,console,serverMessage All Servers will be shuting down till 8pm Central time or later" >> "/Applications/Altitude/servers/command.txt" echo "27277,console,serverMessage All Servers will be shuting down till 8pm Central time or later >> /Applications/Altitude/servers/command.txt" none of these worked. edit: o.o that explains the whole thing... =/ thanks ill let you know if it works |
#20
|
|||
|
|||
it worked:
Quote:
|
#21
|
|||
|
|||
Does this code work on Linux based systems, or does it require a sight change?
|
#22
|
|||
|
|||
The same code works on a linux system, but you need to replace INSTALL_PATH with the directory you installed Altitude to:
echo "27277,console,serverMessage All Servers will be shuting down till 8pm Central time or later" >> INSTALL_PATH/servers/command.txt |
#23
|
|||
|
|||
thanks lamster, now I think i can make a shutdown button on my desktop that will basically just spam BalanceTeams for a server shutdown
ah, scripting is sweeeettt |
|
|