|
Dedicated Server Discuss technical issues related to hosting your own servers. |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Is it possible to create custom commands?
I did just notice the command "/vote custom x", what is the second parameter, is it possible to create custom commands? In that case, how?
|
#2
|
|||
|
|||
Lam posted on the last update notes:
Quote:
|
#3
|
|||
|
|||
The problem is, that this "tutorial" doesn't say where to define the costum command.
Code:
<customCommands> <CustomCommandDescriptor name="startLadder" votePassPercentage="60" /> </customCommands> But where do i define what startLadder will do. For example Code:
<customCommands> <CustomCommandDescriptor name="startLadder" votePassPercentage="60" /> <log>"Your log message"</log> <command>"Your first command"</command> <command>"Your second command"</command> </customCommands> |
#4
|
|||
|
|||
From my understanding, you can't define what a custom command will do in the launcher config. The only thing you can do is to define a command, which will then be logged onto log.txt. From there, you must have a parser attached to log.txt which will notice when that command is logged, and then that parser itself will in turn have to write to command.txt to do the desired actions.
|
#5
|
|||
|
|||
What nobodyhome said is right: custom commands aren't exposing a scripting layer or anything like that, rather they're providing a very simple hook into the game's console/vote system for 3rd-party mods to watch for in the log file.
|
#6
|
|||
|
|||
is it possible to use the /testcameraviewscale command in the command.txt file?
|
#7
|
|||
|
|||
Quote:
Code:
echo 27275,console,testCameraViewScale 200>> ~Altitude/servers/command.txt |
#8
|
|||
|
|||
thx, but i tried it and it doesnt seem to work for some reason.
|
#9
|
|||
|
|||
Make sure that the server is already running before you try to write a command to command.txt. Tec's use of the "echo" command works for a server on the UNIX platform ("echo" is a unix command), but I assume you are running a server on windows or mac. In this case you will have to
1. Run the server 2. Add the line tec wrote (minus the echo) to the bottom of the file. Make sure that there aren't any spaces between the commas (I've found that that makes it not work). 3. Save the file That should do it. |
|
|